Skip to the content
2 layers87.5 × 134.3 mmSpy, the printed circuit board in 3D

Autonomous robotics competition with Bluetooth control, line following, color sensing, wall navigation, and KiCad designs.

Size
87.5 × 134.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
46
Pads
96
Tracks, vias
241, 5
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Nov 2025
Updated
29 Oct 2026

Overview

Spy is an open-source printed circuit board by moneerhijaz, from the moneerhijaz/robotathon-2025 repository on GitHub. It is a 2-layer board of 87.5 × 134.3 mm with 11 parts on 46 nets, routed with 241 tracks and 5 vias.

It is built around the ESP32-DEVKITC-VE, GP2Y0A21YK0F and L298N, with the SEN-12787 among its other parts. Its parts include 7 ICs and 2 connectors. It belongs with the radio and wireless and robots and motor control boards and the ESP32 boards of this library.

Main components

4

README

README.md

IEEE RAS Robotathon 2025

ESP32 competition robot firmware combining Bluetooth control, line following, color detection, and infrared wall navigation, with KiCad design files.

Moneer Hijaz served as Lead Programmer for the team entry, which placed first and received Most Creative Code. Role and outcome are recorded in the owner's approved portfolio questionnaire and competition write-up; this checkout does not contain an independent competition results sheet. Mechanical and electrical work were team contributions.

Competition robot with its sensors and wiring exposed

What is implemented

  • Bluetooth gamepad mode selection through Bluepad32.
  • Manual differential drive, launcher ramping, and an angle servo.
  • Eight-element QTR line sensing with calibration and an active bang-bang follower.
  • APDS9960 color sampling and front/right Sharp IR wall-navigation routines.
  • Alternative PID and wall-correction experiments retained in source.

Safety and validation: hardware was not available for this review. The disconnect callback clears the controller pointer but does not stop motors; blocking calibration/turn/launcher routines can delay input handling. A mode button is not an emergency stop. Keep drive wheels raised and launcher power disconnected during initial testing, with an independent power cutoff available.

Architecture

mermaid
flowchart TD
  Pad[Bluetooth gamepad] --> BP[Bluepad32 / callbacks]
  BP --> ESP[ESP32 mode dispatch]
  QTR[8 analog QTR sensors] --> ESP
  IR[Front and right Sharp IR] --> ESP
  Color[APDS9960 / I2C] --> ESP
  ESP --> Drive[Drive motor control pins]
  ESP --> Launch[Launcher motor control pins]
  ESP --> Servo[Angle servo]

The firmware defines drive pins 19/18 and 17/16, launcher pins 4/5, servo pin 23, color I2C pins 21/22, front/right IR pins 25/26, and line pins 36/35/34/14/13/39/33/32. Left/right labels in source comments conflict; confirm actual wiring with motor power disabled. Spy/ contains the KiCad schematic/board and fabrication exports; their presence is not evidence of manufacture.

Build and controls

Use ESP-IDF 4.4.8 as the reproduction candidate; vendored Arduino explicitly requires IDF 4.4.x. See build and flash for commands, limitations, and the hardware checklist.

InputActive behavior
BManual mode: left stick drives, right stick steers; bumpers rotate at neutral
AColor automation
XFront/right wall automation
YLine automation; first entry starts moving calibration and returns to manual
R2 in manualLauncher ramp control
D-pad up/down in manualServo open/closed (60/0 degrees)

Source map and design notes

  • main/arduino_main.cpp: sensors, motor outputs, modes, experimental alternatives.
  • components/callbacks/: controller lifecycle; other components are vendored dependencies.
  • Spy/, Robotathon_kicad/: board/schematic and component assets.
  • docs/engineering-notes.md: preserved calibration, equations, settings, and alternative algorithms.
  • notes.pdf: original project document, retained in place.
  • RobotathonESP32: historical gitlink without a .gitmodules mapping; the root project is the documented build entry point.

The active bang-bang follower makes discrete corrections; the retained PID implementation shows the alternative tradeoff. Timed wall turns depend on battery, traction, and geometry rather than measured heading.

Credits and licensing

Preserve the template's Ricardo Quesada attribution, vendored library notices, and component licensing. The source credits Fabian's alternative line algorithm. Confirm the complete teammate roster and ownership of board/library assets before redistributing them separately. No new blanket license is assigned.

Parts

11
QtyValueFootprintReferences
2GP2Y0A21YK0FGP2Y0A21YK0F:22-23-2031U2, U3
2Screw_Terminal_01x02Connector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G_1x02_P5.00mm_HorizontalJ1, J2
2~FS5103B:FS5103BServo1, Servo2
131903190:MODULE_3190U7
1ESP32-DevKitCPCM_Espressif:ESP32-DevKitCU1
1L298NL298N:TO127P2020X500X2100-15U5
1QTR-8AQTR-8A:QTR-8AU6
1SEN-12787SEN-12787:MODULE_SEN-12787U4

Similar boards

  • 2 layers102.6 × 102.6 mmMini robot2, the printed circuit board in 3D

    Mini robot2

    eliasmonzon/pcb

    circuitos_electronicos

    67 parts1
  • 2 layers92.5 × 100 mmRcj res b board, the printed circuit board in 3D

    Rcj res b board

    CCMNR/board

    PCB for CCMNR robot

    93 parts
  • 4 layers127 × 88.9 mmL298N ROBOTINO, the printed circuit board in 3D

    L298N ROBOTINO

    123khg/Robotino

    Football car project to compete in the "Launchtime 9th Football Car Design Competition" held by the EEE Student's Associations. Project consists of 2 cars, one goalkeeper and one striker.

    40 parts
  • 2 layers100 × 100 mmL298, puente h, the printed circuit board in 3D

    L298, puente h

    Aruzamen-Cristian/Lemurian-Clean

    El robot acuático recolector de basura, Lemurian-Clean, es una innovadora solución para la limpieza de cuerpos de agua.

    29 parts
  • 2 layers76.1 × 85 mmFlypi, the printed circuit board in 3D

    Flypi

    amchagas/Flypi

    This is the repository for the flypi project

    45 parts88GPL-2.0
  • 4 layers85 × 54 mmPECDR, the printed circuit board in 3D

    PECDR

    pedro-ibs/trekking

    Desenvolvimento de um robô rádio-controlado/autônomo da moralidade “tracker”

    68 parts9
  • 2 layers66.3 × 34.3 mmC64PSUv3, the printed circuit board in 3D

    C64PSUv3

    FabioNMI/C64PSU

    A low-cost, lightweight and very reliable power supply for the Commodore 64

    37 parts2
  • 2 layersRoboForce, the printed circuit board in 3D

    RoboForce

    Khuzhin06/RoboForce

    Тогда вы не зря зашли к нам, мы постараемся максимально подробно и быстро рассказать о нашем пути создания робота на ROS2 Jazzy и esp32,по этим материалам вы с легкостью сможете повторить этот проект.

    3 parts2

Questions

How big is the Spy PCB?

It measures 87.5 × 134.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Spy use?

11 parts, built around the ESP32-DEVKITC-VE, GP2Y0A21YK0F, L298N and SEN-12787. 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 Spy KiCad files?

From the moneerhijaz/robotathon-2025 repository on GitHub, at the commit this page was made from: the board is Spy/Spy.kicad_pcb and its schematic Spy/Spy.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Spy design in my own project?

Its repository states no licence, so its author keeps all rights: ask moneerhijaz before reusing the design.