Connecting Pin 5V To A0 - General Electronics - Arduino Forum

Connecting pin 5V to A0 Other Hardware General Electronics April 18, 2019, 7:32am 1

Hello boys,

Can I connect a resistance directly between 5V and A0 of the board and reed the output ? Or will it burn the arduino ?

Thanks, Preacher

1 Like April 18, 2019, 7:39am 2

Can I connect a resistance directly between 5V and A0 of the board and reed the output ?

You can put 5V into an analog pin even without a resistor: it's meant to tolerate thet.

When you put a potentiometer across 5V and 0V and the wiper to analog pin, which is a very common thing to do, and turn the pot to one extreme, you are actually connecting the pin to 5V anyway.

April 18, 2019, 7:45am 3

neiklot: When you put a potentiometer across 5V and 0V and the wiper to analog pin, which is a very common thing to do, and turn the pot to one extreme, you are actually connecting the pin to 5V anyway.

Fair enough. Thanks for the answer, Best to save...

April 18, 2019, 7:57am 4

What are you actually trying to do?

April 18, 2019, 8:19am 5

Note that the allowable voltage range of the analog input depends on what voltage the microcontroller is running at. Most of the common AVR-based Arduino boards (e.g. Uno, Mega, Leonardo, Nano) run at 5 V and can take up to 5 V input to the analog pins. Other Arduino boards run at 3.3 V (e.g. Zero, MKR) and subjecting their analog pins to 5 V could cause damage.

April 18, 2019, 5:27pm 6

Can I connect a resistance directly between 5V and A0 of the board and reed the output ? Or will it burn the arduino ?

It should read 1023 assuming the "5V" is exactly equal to (or slightly higher than) the power supply/reference.

The input can range between zero and Vcc (usually 5V). The datasheet for the ATmega chip says the "absolute maximum" is -0.5V or Vcc+0.5V.

Do you meant the "output" of the resistor? The Arduino has an input impedance of approximately 100 meghoms (essentially infinite impedance/resistance) so any "reasonable value" resistor won't give you a voltage drop and you'll just be reading 5V.

A resistor (along with the protection diodes built into the chip) will provide some over-voltage protection.

April 21, 2019, 8:15pm 7

You're fine, unless the resistor is a low value and you accidentally set A0 to be an output, as opposed to input.

April 21, 2019, 10:07pm 8

And of course you would ‘never’ connect 5v to A0 if A0 was every made an output.

April 22, 2019, 6:41pm 9

Beginners often think that a single resistor will drop a voltage across it. It will not.

To drop a voltage you need current through it and if you simply connect a resistor of what ever value to between 5V and a measuring device you will see 5V.

Cue for pedantic idiots to say well if you use a 100M resistor you will see a change. Please try and resist.

April 23, 2019, 1:10am 10

Grumpy_Mike: Beginners often think that a single resistor will drop a voltage across it. It will not.

To drop a voltage you need current through it and if you simply connect a resistor of what ever value to between 5V and a measuring device you will see 5V. ...

so... for example a resistor at an op-amp input will have the same voltage at either end of itself ?

April 23, 2019, 9:15am 11

BabyGeezer: so... for example a resistor at an op-amp input will have the same voltage at either end of itself ?

Given no other connections to that input then yes.

Topic Replies Views Activity
Arduino Due I/O voltage tolerance on A0 Due 3 1300 May 6, 2021
What will the voltage be at my input pin? Frequently-Asked Questions 6 1595 May 6, 2021
[Solved]Read voltage across a resistor and use it as an input to an anlog pin. General Electronics 12 9863 May 6, 2021
Connecting 5V to the A0 pin General Electronics 4 128 December 19, 2024
Analog input, series resistor needed? General Electronics 8 17124 May 6, 2021
Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply.

Tag » Arduino Analog Pin 5v Output