SunFounder ESP32 Starter Kit
1.23 5.7 Feel the Light
The photoresistor is a commonly used device for analog inputs, similar to a potentiometer. Its resistance value changes
based on the intensity of the light it receives. When exposed to strong light, the resistance of the photoresistor decreases,
and as the light intensity decreases, the resistance increases.
By reading the value of the photoresistor, we can gather information about the ambient light conditions. This infor-
mation can be used for tasks such as controlling the brightness of an LED, adjusting the sensitivity of a sensor, or
implementing light-dependent actions in a project.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
ESP32 Starter Kit 320+
You can also buy them separately from the links below.
COMPONENT INTRODUCTION PURCHASE LINK
ESP32 WROOM 32E
ESP32 Camera Extension -
Breadboard
Jumper Wires
Resistor
Photoresistor
Available Pins
• Available Pins
Here is a list of available pins on the ESP32 board for this project.
Available Pins IO14, IO25, I35, I34, I39, I36
• Strapping Pins
The following pins are strapping pins, which affect the startup process of the ESP32 during power on
or reset. However, once the ESP32 is booted up successfully, they can be used as regular pins.
Strapping Pins IO0, IO12
Schematic
1.23. 5.7 Feel the Light 83