ESP32 Starter Kit
2. Working Principle
Essentially, potentiometer is an element that can change the value of resistance. According to Ohm's law(U=I*R), the
resistance affects the voltage. Our potentiometer is 10K.
In this project, the maximum resistance is 10K. The ESP32 board will equally divide the voltage of 3V into 4095 parts
(3/4095=0.0007326007326). The analog voltage is obtained by multiplying the read value and 0.0007326007326.
9.2. Scratch Project
269
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers