Tie two input pins together

I have a special breakout board that breaks out pins from an Arduino Mega to eight ethernet jacks (8P8C jacks). Each jack breaks out 6 pins of the Mega.

When I designed the breakout board, I didn't imagine that I might want to split analog pins across ALL 8 of the jacks. Currently they are all connected to only three of the jacks, and the other jacks get digital-only pins.

So I'd like to make some analog inputs available to more than just 3 of the jacks, and as a quick fix I'd like to just jumper some of these analog pins over to other 8P8C jacks, to make analog input available to more than just 3 of these jacks.

So my question is this: let's say I want to measure an analog voltage, but that voltage is only available at one of the digital pins. Can I short out that digital pin with an analog pin, and read the voltage on the analog pin? Obviously I know I will no longer be able to use the digital pin for any function purpose.

For the sake of interest, here's the board I'm talking about:

Yes, it is possible.
To ensure that the digital pin does not affect the measurements on the analog pin, it must be switched to input mode

1 Like

Thanks, that's most helpful.

If a digital pin is set to input (without input pullup enabled) the pins impedance is about 100meg.

If the digital pin is set to output the pin sits at HIGH (5V) or LOW (0V).

Connecting an analog pin to a digital pin will read the voltage on that digital pin.

This is the important bit,.
Microcontrollers are fun and all that, byt you still have to understand signal loading on pins as they interact with the wider world!.

Electronics 102

To a lesser extent, in other ways, you also need to consider capacitance and inductance between unconnected signal lines.
Digital signals are ‘electrical ‘signals, subject to the laws of physics- just like analog signals,

1 Like

@lastchancename - Is there also the condition needing an external VREF so each pin is measured against the reference, because Arduino "measuring itself" would give an invalid reading? Asking for a friend.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.