PIC24 PCB Design Control Systems

Line Follower Robot โ€” PIC24

Autonomous line-following robot built around the PIC24 microcontroller with a custom-designed PCB. Uses an IR reflectance sensor array for line detection and a PD control algorithm for smooth, accurate path tracking. Demonstrates end-to-end embedded system design from schematic capture through PCB fabrication to firmware.

PIC24
16-bit MCU
IR
Sensor Array
PD
Control Loop
PCB
Custom Board
View on Hackster Compare: Analog Version โ†’
Key Design Decisions
๐Ÿ”ฒ

PIC24 over Arduino

PIC24 provides hardware PWM, ADC with DMA, and configurable peripherals in a lower-power package. Demonstrates proficiency beyond the Arduino ecosystem with direct register-level programming via MPLAB X.

๐Ÿ“ก

IR Reflectance Sensor Array

Multiple IR LED/phototransistor pairs arranged in a line. Each sensor outputs an analog voltage proportional to surface reflectance. ADC readings are thresholded to create a binary line position map.

๐ŸŽฏ

PD Control Algorithm

Proportional-Derivative control computes motor differential from line position error. P term responds to current offset; D term damps oscillation on curves. Tuned for the specific track geometry.

๐Ÿ› ๏ธ

Custom PCB Design

End-to-end board design: schematic capture, component footprint creation, PCB layout with proper ground planes, and fabrication. Integrates MCU, motor driver, sensor headers, and power regulation on a single board.

Hardware & Tools
ComponentTechnologyPurpose
MCUPIC24FJ128GA01016-bit microcontroller, 32 MHz
SensorsQRE1113 IR ArrayLine detection via reflectance
Motor DriverL298N / DRV8833DC motor H-bridge control
MotorsN20 Gear MotorsDrive and steering
PCB DesignKiCad / EagleSchematic + layout + fabrication
IDEMPLAB X + XC16PIC24 firmware development
PowerLiPo Battery + RegulatorOnboard power supply
Related Projects