Maximum voltage/current of analog pins

What is the maximum voltage and current that I can input into an analog pin on an Arduino Mega?

5V 0.01A maximum

  • Why do you ask ? :thinking:

Is it possible to decrease 6v to 5v using resistors?

  • Yes.

  • What are you trying to do ?

voltage divider. is your project a big secret?

No it is a robot dog and I am making sure the current does not go below 4v and I am using the analog pin but it is 5v max. and what ohm resistor to use?

An analog input pin should never draw a significant amount of current. If you apply a voltage exceeding 5V (on a 5V Arduino) and it draws more than about 1 mA, that will destroy the input protection diode.

You are confusing voltage and current. An analog input can measure voltage from 0 V to 5V (on a 5V Arduino).

This would be a good time to brush up on electrical fundamentals.

voltage-divider-main-circuit
R1 3,3k; R2 5,6k;
then 4V on battery will be measured as 515 on ADC, and 5V as 643, and 6V as 772.