Skip to the content
2 layers160 × 42 mmESP kicad2, the printed circuit board in 3D

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

2

README

README.md

ESP Line Following Robot

GROUP 48: 2nd Year Embedded Systems Project (ESP) 2023/24.

Project is in collaboration with 5 teammates:

Gallery

Buggy Render

Buggy Picture on the final race day

Buggy Render

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

  1. Use the wiring diagram to connect the components.
  2. Clone the project directly to Keil Studio Cloud.
  3. Compile and flash on to the microcontroller.
  4. Control the buggy using Bluetooth commands.

How to run

  1. Connect BLE to a phone
  2. Place the whole sensor array in the black area of the track
  3. Send "calibrate" Command
  4. Wait until message is recieved on the phone
  5. Place the buggy in the middle of the line
  6. Send "line_follow" Command

Buggy Commands

Setup

  1. Use "Serial Bluetooth Terminal" app on Android
  2. Settings -> Send -> Newline -> None
  3. 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

Article Link

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

Parts

28
QtyValueFootprintReferences
6100RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R3, R5, R7, R9, R11
64.7KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R4, R6, R8, R10, R12
6TCRT5000TCRT5000 (1):OPTO_TCRT5000U1, U2, U3, U4, U5, U6
2100nCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1, C2
12.2uCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC3
15v Power Connector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_VerticalJ3
1Analog outputConnector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_VerticalJ2
1Digital InputConnector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_VerticalJ1
1LF33_TO220Package_TO_SOT_THT:TO-220-3_VerticalU8
1ULN2003Package_DIP:DIP-16_W7.62mmU7

The 26 most common of 28 parts.

Similar boards

  • 2 layers200 × 78.8 mmOpenridingcontroller rev2, the printed circuit board in 3D

    Openridingcontroller rev2

    Squalius-cephalus/OpenRidingController

    D.I.Y horse riding controller for the PC.

    30 parts13
  • 2 layers66.4 × 52.5 mmWatermeter v0.4, the printed circuit board in 3D

    Watermeter v0.4

    rbisschops/mySensors

    mySensors

    39 parts6
  • 2 layers135.8 × 56.1 mmPower board, the printed circuit board in 3D

    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 mmMeshmerize, the printed circuit board in 3D

    Meshmerize

    ChinmayLonkar/MAZEBLAZE

    Meshmerize BOT

    62 parts3
  • 2 layers103 × 80 mmEduRoMAA EduCIAA, the printed circuit board in 3D

    EduRoMAA EduCIAA

    ciiiutnfrc/eduromaa

    Versión educativa del robot móvil RoMAA (EduRoMAA)

    81 parts3GPL-3.0
  • 2 layers150 × 100 mmMaze kiCad, the printed circuit board in 3D

    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 mmLine sensor, the printed circuit board in 3D

    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.