Skip to the content
2 layersFinal project, the printed circuit board in 3D

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.md

ENPM 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 1Run 2
Run 1 pathRun 2 path

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 layout
  • arduino/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), and pyserial

Running the mission

bash
sudo pigpiod          # start pigpio daemon if not running
python main.py        # autonomous run
python -m fp          # equivalent

Package layout

text
.
|-- 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 masks

tests/ holds the pytest suite; scripts/verify.sh runs the checks.

Running tests

bash
python -m pytest tests/ -v

Parts

8
QtyValueFootprintReferences
11kResistor_SMD:R_0201_0603MetricR1
12kResistor_SMD:R_0201_0603MetricR2
1Back_Right_EncoderConnector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_VerticalJ2
1Front_Left_EncoderConnector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_VerticalJ7
1H-BridgeConnector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_VerticalJ9
1Raspberry_Pi_4bConnector_PinHeader_1.00mm:PinHeader_2x20_P1.00mm_VerticalJ1
1ServoConnector_PinHeader_1.00mm:PinHeader_1x03_P1.00mm_VerticalJ3
1UltrasonicConnector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_VerticalJ8

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

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

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

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

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    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.