Tuesday, 12 June 2018

microcontroller - Overvoltage protection with zener - How do you get a sharp knee clamp for analog input?


I'm working with an MCU that sees a 0-5V input range. I have a possibility where they may accidentally see 12V (user error).


My problem is this analog input using a 5V Zener has a knee that isn't as sharp as I'd want and can load the sensor reading giving a bad measurement.


How can I get a sharper knee for around 5-5.5V or so?


enter image description here




Answer



Here is one method:


schematic


simulate this circuit – Schematic created using CircuitLab


enter image description here


If the errant user leaves the +12 on there the resistor will see almost half a watt and the transistor a few hundred mW. You could increase R1 to a few hundred ohms to reduce both those numbers. Note that the input current is diverted to ground through Q1 rather than into the +5V supply. The latter can cause unwanted side effects.


This is still dependent on the characteristics of a PN junction so the clamp voltage will change with temperature and there will be some leakage as you approach the clamping voltage. You can play with R2/R3 ratio to change the clamping voltage and even try to make it temperature dependent with a thermistor or diode to a higher voltage source but it's far from perfect.


If you want something more precise, especially over temperature, you'd probably have to combine an active op-amp clamp with something like the above to handle fast transients.


Edit: As Jack Creasey mentioned in a comment, in this case R2 can be replaced with a diode or a transistor with collect tied to base (ideally in a dual NPN-PNP transistor array) to give better temperature compensation. You can add a small resistor in series to give a bit more headroom if you want to be able to go closer to the supply rail.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...