🔧 Components Used
🎯 Lesson Objective
In this lesson, students will understand:
• The hardware components required to build the Light Sensitive Robot
• The purpose of each component in the system
• How these components work together to create a light-responsive robot
This lesson introduces the electronic and mechanical components used in the Light Sensitive Robot project.
1️⃣ ESP32 Microcontroller
The ESP32 acts as the main controller of the robot.
It performs the following tasks:
🧠 Reads the light sensor data
⚙ Processes the sensor values
🚗 Controls the motors through the motor driver
📡 Executes the program logic
The ESP32 receives signals from the LDR sensor and decides how the robot should move based on the light intensity.
Because of its high processing power and multiple input/output pins, ESP32 is ideal for robotics projects.
2️⃣ LDR Sensor (Light Dependent Resistor)
The LDR sensor is responsible for detecting light intensity.
The resistance of the LDR changes depending on the amount of light falling on it.
Behavior of LDR:
• Bright light → Resistance decreases
• Low light → Resistance increases
The ESP32 reads this change using its analog input pin.
This allows the robot to detect changes in light levels.
The LDR is commonly used in:
💡 Automatic street lights
📷 Camera brightness control
🏠 Smart home lighting systems
3️⃣ L298N Motor Driver
The L298N motor driver is used to control the DC motors of the robot.
Microcontrollers cannot directly power motors because motors require higher current.
The motor driver acts as an interface between:
🧠 ESP32 microcontroller
⚙ DC motors
The ESP32 sends control signals to the motor driver, and the motor driver supplies the required power to the motors.
The L298N driver allows the robot to:
➡ Move forward
⬅ Move backward
↩ Turn left
↪ Turn right
🛑 Stop
4️⃣ DC Motors
The DC motors provide movement for the robot.
In this project, two motors are used:
• One motor for the left wheel
• One motor for the right wheel
By controlling these motors separately, the robot can change direction and move based on the light detected.
DC motors are widely used in robotics because they are simple, efficient, and easy to control.
5️⃣ Robot Chassis
The robot chassis forms the physical structure of the robot.
It holds all components such as:
• ESP32
• Motor driver
• Motors
• Battery
• Sensors
The chassis also includes wheels and a caster wheel for stability.
Proper mounting ensures that the robot moves smoothly and that sensors are positioned correctly.
6️⃣ Jumper Wires
Jumper wires are used to connect electronic components together.
These wires allow electrical signals to travel between:
🔌 ESP32
🔎 LDR sensor
⚙ Motor driver
Different types of jumper wires may be used depending on the connection.
Proper wiring ensures that signals and power reach the correct components.
7️⃣ Power Supply
The robot requires a power source to operate.
Possible power sources include:
🔋 Lithium battery pack
🔋 Rechargeable batteries
🔋 External power supply
The power supply provides energy for:
⚙ Motors
🧠 ESP32
🔎 Sensors
A stable power supply ensures reliable robot operation.
8️⃣ How the Components Work Together
All components in the Light Sensitive Robot work together as a system.
The process works as follows:
1️⃣ The LDR sensor detects light intensity.
2️⃣ The ESP32 reads the sensor value.
3️⃣ The program compares the light level with a threshold value.
4️⃣ Based on the light intensity, the ESP32 sends commands to the motor driver.
5️⃣ The motor driver controls the motors and moves the robot.
This system allows the robot to automatically react to light conditions.
🚀 What Happens Next
Now that you understand the components used in the Light Sensitive Robot, the next step is to connect these components together.