greets
I found a few schematics showing how to connect multiple buttons to an analog pin by using a resistor ladder, however one of the schematics is a bit confusing:
Isn't this circuit going to waste energy since the Vcc is connected to the ground (even if goes through a few resistors)?
the following layout makes much more sense to me:
Here R4 is a pull-down resistor and energy is only used while a button is pressed.
the next one is using the pull-up resistor on A5:
I'm thinking of using this last one (with 200 Ohm resistors instead of the 2K) , however I'm not sure if shorting an analog pin to ground is ok (when the right button is pressed)...?