

ESP kicad2
2nd Year Embedded Systems Project (ESP) - Line Following Robot Buggy
- Size
- 160 × 42 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 28
- Nets
- 29
- Pads
- 107
- Tracks, vias
- 169, 0
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 11 Feb 2024
- Updated
- 30 Apr 2025
Overview
ESP kicad2 is an open-source printed circuit board by Amrlxyz, from the Amrlxyz/esp-lfr-buggy repository on GitHub. It is a 2-layer board of 160 × 42 mm with 28 parts on 29 nets, routed with 169 tracks and 0 vias.
It is built around the TCRT5000 and ULN2003. Its parts include 12 resistors, 8 ICs, 3 capacitors and 3 connectors. It belongs with the STM32 boards of this library.
Main components
2TCRT5000
DIP-4-25℃~+85℃ 0.4V 1.25V 100mA 15mm 70V 950nm Phototransistor DIP-4 Reflective Optical Interrupters ROHSVishay IntertechnologyReflective Optical InterruptersULN2003
SOP-161.1V@250uA,100mA 25pF 2V 30V 500mA 50uA 50uA Seven channels SOP-16 Darlington Transistor Arrays ROHSBLDarlington Transistor Arrays
README
README.mdESP Line Following Robot
GROUP 48: 2nd Year Embedded Systems Project (ESP) 2023/24.
Project is in collaboration with 5 teammates:
- @Amrlxyz (me) : Main Programmer + 3D CAD Designer
- @Hubr1z : 2nd Programmer
- @Sarahelma : PCB Designer
- @nishoujiwojiubuhuine : 3rd Programmer + General Tech
- @Giselle-zheng : Wiring and Electrical
Gallery

Buggy Picture on the final race day
Final Buggy Render Using SolidWorks
Achievements
- ESP 2023/24 Final Race Winner !!!
- 100% for TDA (Techincal Demonstration A)
- 100% for TDB (Techincal Demonstration B)
- 100% for TDC (Techincal Demonstration C)
Features
- Mbed v5.15
- Nucleo STM32F401RE
- Custom Sensor Array PCB
- Array of 6x TCRT5000 IR sensor for line following
- Custom CAD Model Designed in Solidworks
API Documentation
Link to documentation: Github Pages
How to Use
Flashing the MCU
- Use the wiring diagram to connect the components.
- Clone the project directly to Keil Studio Cloud.
- Compile and flash on to the microcontroller.
- Control the buggy using Bluetooth commands.
How to run
- Connect BLE to a phone
- Place the whole sensor array in the black area of the track
- Send "calibrate" Command
- Wait until message is recieved on the phone
- Place the buggy in the middle of the line
- Send "line_follow" Command
Buggy Commands
Setup
- Use "Serial Bluetooth Terminal" app on Android
- Settings -> Send -> Newline -> None
- Send Commands
Command Format
[2/3 Capital Letters] [optional value for certain commands] ['/' -> end character]
Full command list is in main.cpp
Examples:
EC/ -> "Execute" "Calibrate"
EF/ -> "Execute" "line_follow"
GSB/ -> Get the speed of both motors
Linkedin Article
I might have mentioned a follow-up technical write-up at the end... but life (and distractions) keep happening. We'll see.
Hello Future UoM 2nd Yr EEE Students
Feel free to use this code as inspiration (at your own risk). Looking back, definitely there are ways to improve it.
If you find the code helpful, feel free to drop a star ⭐ on the repo (I crave external validation)
Goodluck!
Dependencies
Imported 3rd Party Mbed Libraries
- Driver Board Onboard Battery Monitor by Sam Walsh
- QEI Library by Aron Berk
Parts
28| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 100R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R3, R5, R7, R9, R11 |
| 6 | 4.7K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R4, R6, R8, R10, R12 |
| 6 | TCRT5000 | TCRT5000 (1):OPTO_TCRT5000 | U1, U2, U3, U4, U5, U6 |
| 2 | 100n | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C1, C2 |
| 1 | 2.2u | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C3 |
| 1 | 5v Power | Connector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical | J3 |
| 1 | Analog output | Connector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_Vertical | J2 |
| 1 | Digital Input | Connector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_Vertical | J1 |
| 1 | LF33_TO220 | Package_TO_SOT_THT:TO-220-3_Vertical | U8 |
| 1 | ULN2003 | Package_DIP:DIP-16_W7.62mm | U7 |
The 26 most common of 28 parts.
Similar boards
- 2 layers50 × 50 mm

- 2 layers200 × 78.8 mm

Openridingcontroller rev2
Squalius-cephalus/OpenRidingController
D.I.Y horse riding controller for the PC.
30 parts13 - 2 layers66.4 × 52.5 mm

- 2 layers135.8 × 56.1 mm

Power board
xtarke/automated_buggy
This shield connects microcontroller (MSP-EXP430FR2355) pins to the car's power board. Go to Power Board for more hardware information.
87 parts5GPL-3.0 - 2 layers34.1 × 108.8 mm

- 2 layers103 × 80 mm

EduRoMAA EduCIAA
ciiiutnfrc/eduromaa
Versión educativa del robot móvil RoMAA (EduRoMAA)
81 parts3GPL-3.0 - 2 layers150 × 100 mm

Maze kiCad
billtsol/Maze
This project demonstrates how to use an Arduino board, IR sensors, and a motor driver shield to create a maze-solving robot.
39 parts2 - 2 layers134.4 × 99.6 mm

Line sensor
Potato-eater/Legacy2026
github repo for Robocup Junior Australia lightweight soccer team
79 parts2
Questions
How big is the ESP kicad2 PCB?
It measures 160 × 42 mm and has 2 copper layers, 1.6 mm thick.
What parts does the ESP kicad2 use?
28 parts, built around the TCRT5000 and ULN2003. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the ESP kicad2 KiCad files?
From the Amrlxyz/esp-lfr-buggy repository on GitHub, at the commit this page was made from: the board is hardware/Sensor PCB/ESP_kicad2.kicad_pcb and its schematic hardware/Sensor PCB/ESP.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the ESP kicad2 design in my own project?
Its repository states no licence, so its author keeps all rights: ask Amrlxyz before reusing the design.