Pages: [1]   Go Down
Author Topic: Maximum Current/Voltage into an analog pin on an Arduino Uno  (Read 11222 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the maximum voltage and current that I can input into an analog pin on an Arduino Uno? The Uno website says:
- Input Voltage (recommended): 7-12V
- DC Current per I/O Pin: 40 mA

Is this correct?

Thanks
Natasha
Logged

0
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2855
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

7-12V is the maximum input voltage you can apply to the external DC input power jack.

The analog input pin voltage is limited to 0V-5V. Anything outside that range will damage your microcontroller.

And to clarify, you do not "input" current into a pin. The pin decides how much current to draw in response to an applied voltage. If your applied voltage is in the range 0V-5V then the amount of current that will flow into the pin is very close to 0. Just make sure you configure the analog pin as an input, and not an output.

--
The Rugged Motor Driver: two H-bridges, more power than an L298, fully protected
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27427
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

If you are using the pin as an output , make sure to use an appropriate current limit resistor to avoid sinking more than 40mA (absolue maximum) when driving an output low, or sourcing more than 40mA when driving an output high.
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.

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the clarification guys! I just have one more question, when defining the analog pins as input in the pinMode function, am i referring the the analog pins as A0, A1.... ie:

pinMode(A1, INPUT)

thanks
« Last Edit: February 12, 2011, 01:00:28 am by Sonia » Logged

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

If you are only using the analogue inputs as analogue inputs then simple don't do anything it gets set automatically. If you are using them as a digital input or output then use pin number 14 for A0, 15 for A1 and so on.

The 5V input limit only applies to an arduino that is powered from 5V, lower voltage arduinos like those that run from 3.3v then that is the limit. This applies to not only analogue pins but also to digital pins.
Logged

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

K thanks a bunch!
Logged

Pages: [1]   Go Up
Jump to: