Go Down

Topic: Maximum Current/Voltage into an analog pin on an Arduino Uno (Read 12380 times) previous topic - next topic

Sonia

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

RuggedCircuits

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

CrossRoads

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.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Sonia

#3
Feb 12, 2011, 06:42 am Last Edit: Feb 12, 2011, 07:00 am by Sonia Reason: 1
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

Grumpy_Mike

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.


Go Up