EasyManua.ls Logo

SunFounder ESP32 - Page 520

Default Icon
771 pages
Print Icon
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
COMPONENT INTRODUCTION PURCHASE LINK
ESP32 WROOM 32E
ESP32 Camera Extension -
Breadboard
Jumper Wires
Resistor
Photoresistor
4.10.2 You Will Learn
Photoresistor working principle
Stopping sound playback and stopping scripts from running
4.10.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.
514 Chapter 4. Play with Scratch

Table of Contents