Go Down

Topic: Are the input pins protected against high voltage? (Read 717 times) previous topic - next topic

TomS

Hello Arduino'ers!

I am trying to figure out if the analog in pins of the ATmega328p (Arduino Uno) are somehow protected?
If an input voltage > 5V comes in, will it destroy the chip or are there measures in place to prevent this from happening?

I am not talking huge voltages here just wondering what happens if a spike somewhere between 5-10 V hits the analog in?

If it is not protected yet, how can I accomplish this?
I need precise ADC readings from 0-5V but anything that would be higher can be "cut off".

Thank you very much! :)
Tom

James C4S

In the datasheet, under "Electrical Characteristics" there is a table that outlines the "Absolute Maximum Ratings."   (Page 316 in my copy.)

"Voltage on any Pin except RESET with respect to Ground ................................-0.5V to VCC+0.5V"

Anything above this (Vcc+0.5v) could damage the pin.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Graynomad

Quote
If an input voltage > 5V comes in, will it destroy the chip

Probably.

Quote
are there measures in place to prevent this from happening?


My favourite method is to clamp the pin with schottky diodes to VCC and GND and also have a small resistor (150R) in series before the diodes.

Many people use zeners but they will affect your ADC reading.
______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

TomS


My favourite method is to clamp the pin with schottky diodes to VCC and GND and also have a small resistor (150R) in series before the diodes.

Just to be sure I understand you correctly, you use one schottky diode from A0 in to Vcc and another one from A0 to GND, correct?
Which way are they oriented?

Thank you very much!
Tom

Graynomad

#4
Apr 19, 2011, 04:29 am Last Edit: Apr 19, 2011, 04:32 am by Graynomad Reason: 1
This is how I would do it.

You have to look at the ability of the diodes and the size (physical) of the resistor for various voltages, for example if you expect 50v then the resistor has to be able to dissipate a lot of heat.

But for general protection I think anything will do.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

TomS



Go Up