8051 / ROBOT CONTROL

MCS-51 Wall-Following Robot

An AT89C51 robot-control project using two time-of-flight sensors, software I²C, and timer interrupts to adjust motor outputs along a corridor.

3D design view of the MCS-51 minimum-system PCB.
2VL53L0X distance sensors
12 MHzMinimum-system clock
2 timersMotor-output PWM generation

01 / OVERVIEW

Project overview

Objective

Use the distances measured on both sides of a corridor to adjust the two motor outputs and steer the robot.

Project implementation

The public project includes 8051 Assembly firmware, a Proteus project, and PCB design views. The minimum-system board provides power regulation, a 12 MHz clock, reset circuitry, and I/O headers.

  • AT89C51
  • 8051 Assembly
  • VL53L0X
  • Software I²C
  • Timer PWM
  • Proteus

02 / CONTROL PATH

Distance sensing to motor outputs

  1. 01

    Sense both walls

    Two VL53L0X sensors sit at the front-left and front-right, angled slightly forward.

  2. 02

    Read over software I²C

    Each sensor uses its own software I²C interface in the 8051 Assembly firmware.

  3. 03

    Update motor timing

    Sensor readings update timer reload values. Timer0 and Timer1 interrupts generate PWM on P1.0 and P1.1.

  4. 04

    Correct steering

    Adjusting the two motor outputs changes the steering along the corridor.

03 / HARDWARE

MCS-51 minimum-system board

The board includes power regulation, a 12 MHz clock, reset circuitry, and external I/O headers for the AT89C51 system.

04 / IMPLEMENTATION EVIDENCE

Firmware, simulation project, and PCB

ArtifactWhat it contains
Assembly firmwareSensor setup and reads, separate software I²C interfaces, and timer interrupt routines.
Proteus projectThe supplied project uses ASEM-51 and was created for Proteus 8.13 or a compatible version.
PCB design viewsLayout and 3D representation of the minimum-system board.

The public materials document the implementation. They do not provide quantified corridor-tracking error or a measured completion rate.

REFERENCE MATERIAL

Explore the full project

More detail is available in the original repository.

View GitHub repository