EasyManua.ls Logo

SunFounder ESP32

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder ESP32 Starter Kit
4.13.2 You Will Learn
Fill the sprite with colors
Touch between the sprites
4.13.3 Build the Circuit
A photoresistor or photocell is a light-controlled variable resistor. The resistance of a photoresistor decreases with
increasing incident light intensity.
Build the circuit according to the following diagram.
Connect one end of the photoresistor to 5V, the other end to pin35, and connect a 10K resistor in series with GND at
this end.
So when the light intensity increases, the resistance of a photoresistor decreases, the voltage division of the 10K resistor
increases, and the value obtained by pin35 becomes larger.
536 Chapter 4. Play with Scratch

Table of Contents