

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
4ESP32-DEVKITC-VE
-- WiFi Modules ROHSEspressif SystemsWiFi ModulesGP2Y0A21YK0F
--10℃~+60℃ 10cm~80cm 13.5mm 18.9mm 30mA 4.5V~5.5V 44.5mm Yes - Position Sensors ROHSSharp MicroelectronicsPosition SensorsL298N
Multiwatt-15-25℃~+130℃ 2 2A 4.5V~7V Bipolar Driver Overcurrent Protection、Over temperature protection Yes Multiwatt-15 Stepper Motor Driver ROHSHGSEMIStepper Motor DriverSEN-12787
-Interrupt output - Specialized Sensors ROHSSparkFun ElectronicsSpecialized Sensors
README
README.mdIEEE 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.

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
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.
| Input | Active behavior |
|---|---|
| B | Manual mode: left stick drives, right stick steers; bumpers rotate at neutral |
| A | Color automation |
| X | Front/right wall automation |
| Y | Line automation; first entry starts moving calibration and returns to manual |
| R2 in manual | Launcher ramp control |
| D-pad up/down in manual | Servo 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.gitmodulesmapping; 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | GP2Y0A21YK0F | GP2Y0A21YK0F:22-23-2031 | U2, U3 |
| 2 | Screw_Terminal_01x02 | Connector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G_1x02_P5.00mm_Horizontal | J1, J2 |
| 2 | ~ | FS5103B:FS5103B | Servo1, Servo2 |
| 1 | 3190 | 3190:MODULE_3190 | U7 |
| 1 | ESP32-DevKitC | PCM_Espressif:ESP32-DevKitC | U1 |
| 1 | L298N | L298N:TO127P2020X500X2100-15 | U5 |
| 1 | QTR-8A | QTR-8A:QTR-8A | U6 |
| 1 | SEN-12787 | SEN-12787:MODULE_SEN-12787 | U4 |
Similar boards
- 2 layers102.6 × 102.6 mm

- 2 layers92.5 × 100 mm

- 4 layers127 × 88.9 mm

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 mm

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 mm

- 4 layers85 × 54 mm

PECDR
pedro-ibs/trekking
Desenvolvimento de um robô rádio-controlado/autônomo da moralidade “tracker”
68 parts9 - 2 layers66.3 × 34.3 mm

C64PSUv3
FabioNMI/C64PSU
A low-cost, lightweight and very reliable power supply for the Commodore 64
37 parts2 - 2 layers

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.