Skip to the content
2 layers70 × 60 mmESP32 SMART ROBOT-, the printed circuit board in 3D

ESP32 SMART ROBOT-

HENILX0/ESP32_SMART_ROBOT-

The Smart Relocator Robot is fully automated to scan, detect, analyze, and relocate objects safely using an intelligent sequence of hardware and trigonometric logic:

Size
70 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
71
Pads
107
Tracks, vias
100, 0
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
21 Sep 2026
Updated
25 Sep 2026

Overview

ESP32 SMART ROBOT- is an open-source printed circuit board by HENILX0, from the HENILX0/ESP32_SMART_ROBOT- repository on GitHub. It is a 2-layer board of 70 × 60 mm with 15 parts on 71 nets, routed with 100 tracks and 0 vias.

Its parts include 7 connectors, 1 capacitor, 1 IC, 1 diode and 1 switch. It belongs with the robots and motor control boards and the ESP32 boards of this library.

README

README.md
esp32robott # ESP32_SMART_ROBOT-

⚙️ How It Works (Working Mechanism & Algorithm)

The Smart Relocator Robot is fully automated to scan, detect, analyze, and relocate objects safely using an intelligent sequence of hardware and trigonometric logic:

1. Scanning & Object Detection

  • Servo & Ultrasonic Sweep: The top-mounted servo motor rotates continuously from $0^\circ$ to $180^\circ$, carrying an ultrasonic sensor to scan the surroundings.
  • Proximity Trigger: When the sensor detects an object at a distance of less than 8 cm, the servo stops instantly, recording the precise angle of detection.

2. Precision Alignment using MPU6050

  • Orientation Logic: Based on the recorded servo angle, the robot determines the turn direction:
    • If the angle is between $0^\circ$ and $90^\circ$, the robot turns right.
    • If the angle is between $90^\circ$ and $180^\circ$, the robot turns left.
  • Exact Heading: The MPU6050 IMU sensor provides real-time feedback to ensure the robot rotates precisely to face the target object head-on.

3. Trigonometric Size Validation (The Gripper Constraint)

  • Object Dimension Check: Since the custom rack-and-pinion gripper has a maximum gripping width of 14 cm, the robot must verify object dimensions before attempting a pickup.
  • Edge-to-Edge Scanning: The ultrasonic sensor registers the starting point (Point A, $<8\text{ cm}$) and the ending point (Point B) of the object.
  • Trigonometry in Action: Using the known scan angles and distances between Point A and Point B, the ESP32 calculates the actual length of the object using trigonometry:
    • If object length < 14 cm: The robot proceeds to pick it up.
    • If object length > 14 cm: The robot skips the object, backs up, and continues scanning for a valid target.

4. Relocation & Placement

  • Once the object is securely grabbed by the rack-and-pinion mechanism, the robot executes a post-pickup scan.
  • It searches for an open space with a clear distance of greater than 15 cm, navigates to that location, and safely places the object down.

Mechanical Design & 3D CAD Architecture

Every component in this robot has been custom-modeled in Onshape to ensure optimal weight distribution, precise clearances, and structural rigidity. Below is the detailed breakdown of each custom 3D-printed part.

1. Primary Chassis & Power Deck ("The Foundation Chassis")

base part of robot

robot base
  • Description: This serves as the main structural backbone of the entire robot. Designed to house the core heavy components, it securely anchors the drive motors, motor driver board, lithium-ion power cells, and the front/rear caster wheel for smooth, balanced mobility. Additionally, it features built-in mounting bosses and vertical alignment slots to firmly secure the structural support strips that bridge the base deck to the middle and top electronic layers

2. Electronics Deck ("The Honeycomb Core")

Middle Part

middle part
  • Description: This central platform is specifically designed to house the custom ESP32 control board and sensitive electronics[cite: 6]. It features a lightweight honeycomb lattice pattern[cite: 6], which not only reduces overall material weight and print time but also provides optimal cable management slots for clean wire routing[cite: 6]. Additionally, the open hexagonal geometry serves as multi-point anchor slots for zip-ties, allowing the custom PCB, sensors, and battery packs to be securely fastened down without shifting during robot movement[cite: 6].

3. Top Deck ("Sensor & Servo Platform")

Top Part

top part
  • Description: This acts as the uppermost structural deck of the robot, dedicated entirely to housing the scanning assembly. Its front flat platform features precise cutouts to securely mount the servo motor and ultrasonic sensor, allowing for an unobstructed $0^\circ$ to $180^\circ$ sweep. The remaining surface incorporates a honeycomb grid structure, ensuring a lightweight profile while providing dedicated routing channels for sensor wiring to drop down to the main electronics deck.

4. Structural Support Strips ("Vertical Chassis Connectors")

Robot Joint

robot joint
  • Description: These are vertical support links engineered to rigidly connect the base, middle, and top decks together into a unified chassis. A total of three units are deployed across the left, right, and rear sections of the robot. Secured using precision 2.5 mm screws, these connectors eliminate flex and maintain exact vertical spacing between layers to ensure overall structural integrity.

5. Sensor Mounting Bracket ("Servo-Ultrasonic Coupling Joint")

Ultrasonic Servo Joint

ultrasonic servo joint
  • Description: This custom-engineered coupling bracket bridges the servo motor shaft and the ultrasonic sensor module. It is designed to translate rotational motion directly into accurate angular sweeps without mechanical backlash or wobbling. This ensures that the distance readings and heading angles collected during the $0^\circ$ to $180^\circ$ scanning phase remain precise and reliable.

6. Gripper Base Plate ("Rack-and-Pinion Foundation Platform")

Gripper Support Part

gripper supprot part
  • Description: This dedicated mounting platform serves as the structural base for the robot's custom grip mechanism. It securely aligns and houses the linear rack-and-pinion components, providing a stable guide track for smooth sliding motion. The central cutout allows for direct motor or gear shaft integration, ensuring that the rotational input translates cleanly into symmetrical opening and closing actions for picking up objects within the 14 cm limit.

    7. Front Gripper Mount ("H-Pattern Structural Link")

H Part

h part
  • Description: This robust H-pattern structural frame is mounted directly onto the front section of the robot's main chassis. It acts as the primary transition bridge and load-bearing platform that securely anchors the gripper base plate to the robot. Designed with precision mounting holes and a central cable/actuator passthrough cutout, this frame ensures rigid alignment between the front-end manipulator mechanism and the main body, absorbing mechanical loads and stresses during object lifting and manipulation tasks.

    8. Gripper Jaw Assembly ("Rack and Linear Slide")

Rack

rack
  • Description: This is the custom-designed rack and integrated jaw component that generates linear motion When the pinion gear meshes and rotates along this rack, it efficiently converts rotational motion into smooth linear travel This mechanism enables the gripper jaws to open and close symmetrically, ensuring precise and reliable object pickup and placement operations within the 14 cm constraint limit.

9. Drive Gear ("Pinion Actuator")

Pinion Part

pinion part
  • Description: This custom pinion gear connects directly to the servo motor shaft As the servo rotates, the gear meshes with the rack slides to drive the gripper jaws open and closed.
gg gnd pcb gnf

Custom Electronic Circuit & PCB DesignPower Management:The system is powered by a dual 3.7V lithium-ion battery setup (delivering roughly 7V total), connected through a master DPDT power switch. An LM2596 buck converter steps down this voltage to a stable 5V output rail, paired with a large 1000uF smoothing capacitor to handle current spikes. This regulated 5V line supplies clean power to the ESP32 microcontroller, dual servo motors, ultrasonic sensor, and the MPU6050 IMU module.PCB Layout & Grounding (KiCad): Designed entirely in KiCad, the board features solid ground planes on both the front and back layers using filled copper zones to minimize electrical noise and ensure a robust return path. ESP32 GPIO Pin Configuration:Motor Driver Interface: IN1 = 15, IN2 = 2, IN3 = 4, IN4 = 5, ENA = 27, ENB = 26Actuators & Status: Servo 1 = 12, Servo 2 = 14, Status LED = 18 (driven via GPIO)Sensors: MPU6050 (connected via standard SDA and SCL lines), Ultrasonic Sensor — Trig = 32, Echo = 33

https://github.com/user-attachments/assets/c385274c-e79a-47ae-9acf-f8de7c93ed3c

Current Implementation Status: This functional prototype demonstrates the core mobility, power distribution, and scanning subsystems of the robot. At this stage, the integrated ESP32 microcontroller processes real-time distance data from the servo-swept ultrasonic sensor to successfully detect objects in its environment and navigate toward them.

  • Notes on Current Build: The rack-and-pinion gripper mechanism is currently omitted from this testing phase as final 3D prints are pending production However, the core chassis, dual lithium-ion power configuration, buck converter regulation, and motor driving logic have been fully validated on this physical hardware build

Grant Utilization & Future Scope ("Why Stardance Funding?")

  • Funding Objective: The primary goal of applying for the Stardance grant is to secure essential funding for high-precision 3D printing of the complex mechanical assemblies (specifically the rack-and-pinion gripper and structural enclosures) and professional-grade manufacturing of the custom ESP32 Printed Circuit Board (PCB).
  • Project Completion: While the foundational architecture, firmware logic, and basic mobile tracking prototype have been successfully validated, the grant will directly enable the transition from a breadboard/prototype setup to a fully integrated, robust, and production-ready autonomous relocation robot.

Firmware

  • Current Implementation: The current script handles core functionalities including servo-driven ultrasonic scanning, multi-directional motor control (Forward, Right, Left, Stop), and actuator logic. Future updates will introduce advanced spatial mapping, IMU sensor fusion (MPU6050), and trigonometric coordinate calculations for precise autonomous object relocation.

Parts

15
QtyValueFootprintReferences
4MountingHole_PadMountingHole:MountingHole_2.2mm_M2_Pad_ViaH1, H2, H3, H4
1C_USCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1
1ESP32-DEVKIT-V1ESP32-DEVKIT-V1:MODULE_ESP32_DEVKIT_V1U1
1LEDLED_THT:LED_D5.0mmD1
1MOTOR DRIVER PINConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalJ1
1MPU6050Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ6
1POWER IN PINConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ2
1POWER IN&OUTConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ7
1SERVO1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1SERVO2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1SW_Push_DPDTButton_Switch_THT:SW_Push_2P2T_Toggle_CK_PVA2OAH5xxxxxxV2SW1
1ULTRASONIC SENSORConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5

Similar boards

  • 2 layers19 × 76 mmSub, the printed circuit board in 3D

    Sub

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    15 parts3kApache-2.0
  • 2 layers26.7 × 62.2 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    15 parts1kGPL-3.0
  • 2 layers100 × 44 mmVideoslot, the printed circuit board in 3D

    Videoslot

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    15 parts1k
  • 2 layers91 × 51 mmBusinessCard, the printed circuit board in 3D

    BusinessCard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    15 parts915
  • 2 layers24.3 × 57.9 mmFlosspods pro flex, the printed circuit board in 3D

    Flosspods pro flex

    kenp-io/not-for-airpods-repairs

    The content of this repository is licensed under the WTFPL License. Please have a close look at the terms before using this material.

    15 parts609WTFPL
  • 2 layers20.3 × 15.2 mmL0 Load, the printed circuit board in 3D

    L0 Load

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    15 parts546MIT
  • 2 layers68 × 50 mmEleLab v2 PowerFeed, the printed circuit board in 3D

    EleLab v2 PowerFeed

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    15 parts531GPL-3.0
  • 2 layers50.8 × 35.6 mmInterface, the printed circuit board in 3D

    Interface

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    15 parts454

Questions

How big is the ESP32 SMART ROBOT- PCB?

It measures 70 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32 SMART ROBOT- use?

15 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 ESP32 SMART ROBOT- KiCad files?

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

Can I use the ESP32 SMART ROBOT- design in my own project?

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