Pages: [1]   Go Down
Author Topic: Are the input pins protected against high voltage?  (Read 687 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 110
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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! smiley
Tom
Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 129
Posts: 8585
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Full Member
***
Karma: 0
Posts: 110
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 129
Posts: 8585
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* Untitled.jpg (25.81 KB, 960x540 - viewed 33 times.)
« Last Edit: April 18, 2011, 09:32:31 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Full Member
***
Karma: 0
Posts: 110
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot!!
I will give this a try smiley
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 34493
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: