WIP
This commit is contained in:
@@ -80,3 +80,8 @@ $$ Vout = 5 * \frac{10k}{10k + 10k} $$
|
||||
|
||||
... Or `Vout = 2.5v`. For fun, stick different value resistors in the R1 and R2 place. Probe it, and see how the value at the tap changes. And THAT is why potentiometers act like a voltage divider - because by turning the dial, you can change the sweep of the wiper, which changes the size of the resistive material on both sides of the wiper, which changes the resistance value of the material on both sides of the wiper, changing the resistance values of the two sides of the potentiometer!
|
||||
|
||||
This is also why the tutorial circuit is wired up the way it is. Because it's using a 10k resistor as the first half, and the photoresistor, as the second half, of a voltage divider. As the photoresistor reacts to light, the resistance value of the photoresistor changes, which changes the R2 value in the voltage divider, which varies the value being shown on the tap at the GPIO pin which is processed by the ADC on the ESP32.
|
||||
|
||||
<center>
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/mLRcBCJlfTI?si=HKVtczsoNd6J_6LD" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
</center>
|
||||
|
||||
Reference in New Issue
Block a user