Pages: [1]   Go Down
Author Topic: Safety of going over AREF  (Read 409 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an A1302 hall effect sensor that outputs an analog voltage proportional to the magnetic field. I'm mostly interested on lower field values (of the same polarity) and I'd like to increase sensitivity while decreasing range. I'm thinking about feeding a 2.5V to the AREF pin, which would effective double the resolution over the 0-2.5V range.

My question is what happens if the sensor outputs a voltage higher than AREF on an analog pin - will it cap the value, overflow like a variable or burn the ATMega?
Don't wanna try before asking for obvious reasons smiley-wink
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16464
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an A1302 hall effect sensor that outputs an analog voltage proportional to the magnetic field. I'm mostly interested on lower field values (of the same polarity) and I'd like to increase sensitivity while decreasing range. I'm thinking about feeding a 2.5V to the AREF pin, which would effective double the resolution over the 0-2.5V range.

My question is what happens if the sensor outputs a voltage higher than AREF on an analog pin - will it cap the value, overflow like a variable or burn the ATMega?
Don't wanna try before asking for obvious reasons smiley-wink

Having the analog input pin go over the voltage value of the voltage applied to the AREF pin (and having selected the external voltage reference) is not a problem, no damage, just that any value => then AREF will all return a 1023 count when you perform the analogRead(). The risk of electrical damage is if you have a voltage wired to the AREF pin but then select one of the internal voltage references there is a current path that can cause damage. See the warning caution in the arduino reference section ( http://arduino.cc/en/Reference/AnalogReference ).
Also note that the arduino mega board has a built in internal reference option of 2.56vdc and 1.1vdc while the Uno has only a optional 1.1vdc internal reference.

Lefty
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 435
Posts: 23604
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't exceed Vcc by >=0.5V or you risk damaging the pin.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, that's perfect. I'm using a Mega and that internal 2.56V will do a great job!

Thanks guys!
Logged

Pages: [1]   Go Up
Jump to: