Are the input pins protected against high voltage?

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! :slight_smile:
Tom

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.

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

Probably.

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

Graynomad:
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

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

Thanks a lot!!
I will give this a try :slight_smile:

See if this makes things more clear:-
http://www.thebox.myzen.co.uk/Tutorial/Protection.html