

Final project
ENPM 701 Grand Challenge: autonomous block-retrieval robot (Raspberry Pi 4B, vision, localization)
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 8
- Nets
- 37
- Pads
- 65
- Tracks, vias
- 55, 0
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 20 Oct 2026
- Updated
- 20 Oct 2026
Overview
Final project is an open-source printed circuit board by mdevhurt1, from the mdevhurt1/enpm701-block-retrieval-robot repository on GitHub. It is a 2-layer board with 8 parts on 37 nets, routed with 55 tracks and 0 vias.
Its parts include 6 connectors and 2 resistors. It belongs with the robots and motor control boards of this library.
README
README.mdENPM 701 Grand Challenge -- Final Project
Overview
Autonomous Raspberry Pi 4B robot that locates colored blocks (red, green, blue) in a 7x7 ft arena, picks them up, and delivers them to the NW collection zone. Starts from the SW launch zone. Uses pigpio for hardware-timed encoder counting and wall-proximity localization.
Results
Recorded paths from two full runs (launch zone bottom left, collection zone top left):
| Run 1 | Run 2 |
|---|---|
![]() | ![]() |
Timelapses with detection overlay: run 1, run 2.
Hardware
CAD/: FreeCAD model and printable STL mounts (Pi, camera, gripper, H-bridge, ultrasonic, battery cage)Electrical/: KiCad schematic and board layoutarduino/imu_serial/: Arduino sketch that streams IMU heading over serial
Requirements
- Raspberry Pi with pigpiod running (
sudo pigpiod) - Dev and test packages:
pip install -r requirements-dev.txt - On the Pi, also:
pigpio,picamera2(with libcamera), andpyserial
Running the mission
sudo pigpiod # start pigpio daemon if not running
python main.py # autonomous run
python -m fp # equivalentPackage layout
.
|-- main.py
|-- fp/
| |-- arena.py # arena geometry, zone bounds, coordinate math
| |-- cli.py # startup, hardware init, run loop
| |-- fsm.py # mission state machine
| |-- hal.py # pigpio GPIO, motors, encoders, ultrasonic, IMU, servo
| |-- localization.py # pose tracking, wall-clearance checks
| |-- mapping.py # path recording and PNG visualization
| |-- motion.py # drive, pivot, localize, approach, grab, release
| |-- search.py # grid-based search planner, 360-degree scan
| \-- vision.py # camera capture, HSV blob detection
\-- calibration/
|-- calibrate_camera.py # compute and save camera intrinsics (checkerboard)
|-- blob_size.py # display blob area and centroid readings live
|-- capture_full_res.py # capture full-res frames under every AWB mode
|-- encoder_test.py # verify encoder counts per revolution
|-- extract_hsv.py # polygon-masked HSV range extraction
|-- hsv_tuner.py # live trackbar HSV tuner (requires Pi camera)
|-- hsv_tuner_static.py # trackbar HSV tuner on a saved JPEG
|-- make_timelapse.py # stitch timelapse frames with detection overlay
|-- ultrasonic_test.py # print live ultrasonic readings
\-- vision_sample.py # capture frame, detect blocks, save maskstests/ holds the pytest suite; scripts/verify.sh runs the checks.
Running tests
python -m pytest tests/ -vParts
8| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 1k | Resistor_SMD:R_0201_0603Metric | R1 |
| 1 | 2k | Resistor_SMD:R_0201_0603Metric | R2 |
| 1 | Back_Right_Encoder | Connector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_Vertical | J2 |
| 1 | Front_Left_Encoder | Connector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_Vertical | J7 |
| 1 | H-Bridge | Connector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_Vertical | J9 |
| 1 | Raspberry_Pi_4b | Connector_PinHeader_1.00mm:PinHeader_2x20_P1.00mm_Vertical | J1 |
| 1 | Servo | Connector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_Vertical | J3 |
| 1 | Ultrasonic | Connector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_Vertical | J8 |
Similar boards
- 2 layers20.5 × 24.8 mm

- 2 layers14.4 × 10.5 mm

OSO SWAB B1-00 Sensor Watch Accelerometer
joeycastillo/Sensor-Watch
A board replacement for the classic Casio F-91W wristwatch
8 parts2.1k - 2 layers7.9 × 39.1 mm

Brain board STM32F407 SD wing it
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
8 parts1.2k - 2 layers59.9 × 25.7 mm

Buffer
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
8 parts1kGPL-3.0 - 2 layers52 × 12.6 mm

USB
shanteacontrols/OpenDeck
A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.
8 parts960Apache-2.0 - 2 layers87.5 × 48.5 mm

7 input macropad
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
8 parts915 - 2 layers36.2 × 63.1 mm

PicoMemcard pico
dangiu/PicoMemcard
Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
8 parts694GPL-3.0 - 2 layers36 × 10 mm

PCB4-PWR BTN Rev.A
OLIMEX/DIY-LAPTOP
Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop
8 parts578Apache-2.0
Questions
What parts does the Final project use?
8 parts. 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 Final project KiCad files?
From the mdevhurt1/enpm701-block-retrieval-robot repository on GitHub, at the commit this page was made from: the board is Electrical/final_project/final_project.kicad_pcb and its schematic Electrical/final_project/final_project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Final project design in my own project?
Its repository states no licence, so its author keeps all rights: ask mdevhurt1 before reusing the design.

