Light Following Robot (Phototropic Bot)

light following robot (phototropic bot)

Phototropism is a natural phenomenon where organisms move in response to light. Inspired by this concept, a Light Following Robot is designed to move toward a light source automatically without human intervention.

The robot uses Light Dependent Resistors (LDRs) to detect the direction of light. A microcontroller processes sensor data and controls motors using a motor driver. When the light intensity changes, the robot adjusts its movement accordingly.

Key Features :
  • Fully autonomous operation
  • Detects and follows light sources
  • Simple and cost-effective design
  • Ideal for beginners in robotics

Connection Description (Wiring Map)

Main Components :
  1. Microcontroller: Arduino Uno / Nano

  2. Light Sensors: LDRs with voltage divider circuits

  3. Motor Driver: L298N / L293D

  4. DC Motors: For movement

  5. Robot Chassis & Wheels

Power Supply: Battery (9V / 12V)

light following robot (phototropic bot)

CIRCUIT DIAGRAM

Wiring Summary :

Component

Arduino Pin

Description

Left LDR

A0

Detects light on left side

Right LDR

A1

Detects light on right side

Motor Driver IN1

D4

Left motor control

Motor Driver IN2

D5

Left motor control

Motor Driver IN3

D6

Right motor control

Motor Driver IN4

D7

Right motor control

Motor Driver ENA/ENB

Jumper / PWM pins

Motor speed control

Power Supply

Vin / GND

System power

Common Ground

GND

Shared ground

LDR Circuit :

  • Each LDR forms a voltage divider with a resistor

Output voltage varies with light intensity

Working Principle :

  1. LDRs continuously sense light intensity.

  2. Arduino compares values from left and right sensors.

  3. Movement logic:

    • Both sensors equal: Robot moves forward

    • Left LDR brighter: Robot turns left

    • Right LDR brighter: Robot turns right

    • Low light on both: Robot stops

  4. Motor driver activates motors accordingly.

Testing the Hardware :

  1. LDR Sensor Test

     

    • View analog readings in Serial Monitor

       

    • Shine a torch to observe value changes

       

  2. Motor Test

     

    • Test motors individually using motor driver

       

  3. Directional Test

     

    • Shine light from different directions

       

    • Verify correct turning behavior

       

  4. Full System Test

     

    • Place robot in dark area

       

Move light source and observe robot following it

Troubleshooting :

Problem

Possible Cause

Solution

Robot not moving

Battery drained

Recharge or replace battery

Robot moves in wrong direction

LDR wiring reversed

Swap LDR connections

Erratic movement

Ambient light interference

Shield LDRs or adjust threshold

Motors not rotating

Motor driver fault

Check driver IC and connections

Robot keeps rotating

Sensor sensitivity mismatch

Calibrate LDR resistor values

( A Light Following Robot, also known as a Phototropic Bot, is an autonomous robot that detects and follows a light source. The robot uses light sensors to measure light intensity and moves toward the brightest source. This project demonstrates the principle of phototropism and is widely used to understand sensor-based autonomous navigation in robotics. )

Scroll to Top