I understand that when the button is in its open state the voltage on the input pin should be fairly close to \$ V_{cc} \$ provided \$ R_1 << R_2 \$ as \$ V_{in} = V_{cc} \frac{R_2}{R_1 + R_2}\$. But, I do not understand why the voltage on the input pin changes to low (close to 0) when the button is closed.
Voltage Dividers in a pull-up resistor circuit (why does the pin go to low)
pullupvoltagevoltage divider
Related Topic
- Calculation of a voltage in a single mesh circuit
- Electronic – Ideal Op-amp Question with complicated feedback resistance
- Electronic – Relation between Output voltage and current in a transresistance amplifier
- Electrical – How Does A Pull Up Resistor In Parallel Work
- Electronic – Find the voltage drop across each resistor in the circuit
Best Answer
When you press the button, you connect the input pin, and the bottom end of R1, to ground.
Current will flow through R1, and through the button to ground.