What's the point of the digital pins in the voltage ladder? #353
Unanswered
FelixCodeStorage
asked this question in
Q&A
Replies: 2 comments 10 replies
-
I didn't tested the circuit but it should work. You do not need to change the firmware just disconnect the digital pin. |
Beta Was this translation helpful? Give feedback.
8 replies
-
Just released 2.4.9 with a new pedal mode: Analog+Switch. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I don't understand why you need to use a digital pin in order to use the voltage ladder.
The 10k Ohms pull up resistor from 3,3V to the analog pin and the resistors of the voltage ladder form a voltage divider which should easily be measurable with only the analog pin.
Do you use the digital Pins as 3,3 V sources ?
The voltage divider between 10k Ohms and 330 Ohms should result in 3,2V analog Pin voltage while a divider between the digital Pins 2k Ohms and 330 Ohms should result in 2,8V which makes more sense.
When my assumption is correct you could easily free up 6 digital pins and increase the accuracy by using a 2k Ohm analog Pin pull up resistor.
I attached a drawing of the circuit I had in mind.
Thanks for your answer
.
Beta Was this translation helpful? Give feedback.
All reactions