Hi everyone,
I just finished Project 07 Keyboard Instrument and it is a quite fun instrument
However, I have some clarification questions on the functionality of the resistor ladder and the analog read function and I hope, you can help me.
As far as I understand the circuit (I attached the circuit as image), all the resistors and switches are connected in parallel.
Hence, my understanding is, that the voltage applied to each switch is equal.
When pressing one button, the voltage source and the resistor are in series to the analog read input connection which, for me, would mean, that there are always 5 V reaching the analog read connection as soon as you press a button. But the current changes according to the resistance.
In the starter kit book, Ohm's Law is described with a 220 Ohm resistor connected in series to an LED, where the resistor is necessary to reduce the current reaching the LED and avoid any damage.
This is why my confusion arises with he resistor ladder of this project: the resistors and the anaolg read connection are connected in the same way as the resistor and the LED.
So how does the analog in produce the different frequencies as function of the different input signals.
I thought it only works with voltage inputs.
I know this is a basic question, but I still don't get the mode of operation of this project and I am looking forward to any hint you can provide.
Thanks a lot
Cheers
Bernhard
Project 07 Keyboard Instrume