Chase the Light! Build a Robot That Can See and Follow
Overview
Have you ever wondered how a robot knows where to move? Robots cannot see like humans, but they can sense their surroundings using special electronic components called sensors. In this Light-Following Robot activity, students will build a tiny light-following robot that can detect a light source and move toward it.
By using light sensors, motors, and a simple circuit, students will explore how robots collect information, make decisions, and take action. This beginner-friendly robotics activity introduces the basics of robot vision, electronics, and automation while showing how real robots use sensors to navigate.
From self-driving cars to Mars rovers, many advanced machines work using the same idea — sense, process, and respond.
Time: 45–60 minutes
Complexity: Beginner
Setup: Low-cost electronics materials
Activity Materials Required
• Small cardboard piece (robot body)
• 2 geared DC motors
• 2 wheels
• Battery holder with batteries
• Light sensors (LDR – Light Dependent Resistor)
• Motor driver module (L293D or similar)
• Connecting wires
• Small switch
• Tape or glue
• Rubber bands
• Scissors
• Marker or pencil
• Small LED flashlight or phone torch (for testing)
• Open floor space for testing
Step-by-Step Instructions
Follow these steps carefully to build your light-following robot:
1. Design the robot body:
Take a small piece of cardboard and draw a simple robot design. Decide where the motors, wheels, battery, sensors, and circuit components will be placed. Cut the cardboard into a suitable shape for your robot base.
2. Attach the motors and wheels:
Fix the DC motors on both sides of the cardboard base using tape or glue. Attach wheels to the motor shafts. Make sure the wheels can rotate freely without touching the body.
3. Add the light sensors:
Place two LDR light sensors at the front of the robot — one on the left side and one on the right side. These sensors help the robot compare the amount of light coming from different directions.
4. Connect the motor driver:
Connect the motors to the motor driver module. The motor driver acts like a control system that allows the small signals from the circuit to control the stronger motors.
5. Connect the battery and switch:
Attach the battery holder to the robot body. Connect the battery wires to the motor driver and add an on/off switch to control the power supply.
6. Complete the sensor circuit:
Connect the LDR sensors to the control circuit. When one sensor receives more light than the other, the circuit sends signals to adjust the motor movement.
7. Test the robot with a light source:
Switch on your robot and shine a flashlight from different directions. Observe how the robot changes its movement. If the left sensor detects more light, the robot should turn left. If the right sensor detects more light, it should turn right.
8. Improve and experiment:
Change the position of sensors, adjust the robot weight, or modify the wheel placement. Test which design helps your robot follow the light more smoothly.
The Science Behind the Activity
A light-following robot works using the same basic idea as many smart machines — sensing and decision-making.
The LDR sensor is an electronic component that changes its resistance depending on the amount of light it receives. When bright light falls on the sensor, its electrical behavior changes. The robot uses this information to understand where the light source is located.
The two sensors act like the robot’s “eyes.” Instead of seeing pictures like a camera, they compare light intensity. If the left sensor receives more light, the robot understands that the light is coming from the left side and adjusts its movement in that direction.
The motor driver works like the robot’s “muscle controller.” Sensors provide information, but they cannot directly power motors. The motor driver receives signals from the sensors and controls how the motors rotate.
The wheels convert electrical energy from the battery into mechanical motion. This allows the robot to move toward the light source.
This process is similar to how animals respond to their environment. Some plants grow toward sunlight, and some insects move toward light. Engineers use the same idea of responding to signals when designing robots.
This Light-Following Robot activity demonstrates a simple form of robot vision. Modern robots use advanced sensors, cameras, and artificial intelligence to recognize objects, avoid obstacles, and navigate environments. A tiny light-following robot is the first step toward understanding how intelligent machines work.
Pro Tip: Try testing your robot in different lighting conditions. A robot that works well in a bright room may behave differently in a darker room because sensors detect changes in light intensity.
Expected Results
Students will observe that the robot moves toward the brightest light source. When the light direction changes, the robot adjusts its path based on the sensor readings.
Some robots may move slowly or turn too much depending on sensor placement and motor speed. Students will notice that small changes in design can affect robot performance.
By experimenting with sensor positions and wheel alignment, students will understand why engineers test and improve robot designs many times before creating final products.
Conclusion
The Light-Following Robot activity transforms simple electronic parts into an intelligent moving machine. Students learn how sensors help robots collect information and how circuits help robots make decisions.
By building this robot, students explore the connection between electronics, programming logic, and engineering design. They discover that robots do not actually “see” like humans — they use sensors to understand the world around them.
From tiny classroom robots to space exploration machines, the same principles of sensing, processing, and movement help robots complete important tasks.


















