line-follower-robot

built a custom line-following robot with a 3D-printed frame and PCB that autonomously follows a looping black-line course.


Sensors & Sensing

  • Used photoresistors and voltage dividers to detect black vs. white surfaces

  • Integrated LEDs and a light shield for better contrast and noise reduction

Control System

  • Powered by an Arduino Mega with motor shield

  • Designed and tuned a PID loop to track deviations in sensor input and adjust motion

  • Implemented serial diagnostics for calibration and debugging

Mechanical Design

  • Designed and 3D-printed a custom chassis with dedicated components:

    • Photoresistor mounts

    • Centered battery pack

    • Arduino mounting tray

    • Built-in cable channels for tidy wiring

  • Mounted DC motors with precision alignment for balanced motion

PCB:

Schematics:

year

2025

year

2025

year

2025

year

2025

tools

Arduino mega, Photoresistors, Custom PCB, 3D printing, C/C++, PID control, Hardware wiring, Embedded systems

tools

Arduino mega, Photoresistors, Custom PCB, 3D printing, C/C++, PID control, Hardware wiring, Embedded systems

tools

Arduino mega, Photoresistors, Custom PCB, 3D printing, C/C++, PID control, Hardware wiring, Embedded systems

tools

Arduino mega, Photoresistors, Custom PCB, 3D printing, C/C++, PID control, Hardware wiring, Embedded systems