Skip to the content
2 layers76.2 × 50.8 mmPower distribution circuit, the printed circuit board in 3D

Power distribution circuit

canizalesjaime/homebot
Size
76.2 × 50.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
5
Pads
30
Tracks, vias
20, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Feb 2024
Updated
7 Nov 2026

Overview

Power distribution circuit is an open-source printed circuit board by canizalesjaime, from the canizalesjaime/homebot repository on GitHub. It is a 2-layer board of 76.2 × 50.8 mm with 13 parts on 5 nets, routed with 20 tracks and 0 vias.

README

README.md

Project Description

  • A compact 3D-printed mobile robot with a 4-DOF servo arm and dual TT motors for navigation. Integrated LiDAR for obstacle avoidance, a camera with YOLOv8n for real-time object detection, and an BNO055 IMU for pose estimation.
  • A web-based interface for remote control of the robot and arm, featuring live video with detection overlays and accelerometer data. Implemented using react and tailwind css to design the frontend and fast api to interact with the backend.
  • video

System Design

Software architecture

Main creates an object for each peripheral device which has a class defined: motor wheels, arm, accelerometer, camera, and lidar. Depending on feedback from frontend or physical sensors, call relevant method to determine output. One dockerfile sets up frontend for use on your computer, and another dockerfile sets up dependencies on raspberry pi 5 to run backend.

Hardware

  • stl files used for 3D printing robot base included in freecad_files
  • pcb board power by a 7.4V LiPo battery 2200mAh, buck converter to 5V to power raspberry pi 5 and 4 servo motors, 7.4V used to power all the tt motors(with encoders)
  • The robotic arm shown in was 3D printed using a model created by FABRI_CREATOR.
    STL file available here: Mini Robotic Arm on Cults3D
    Licensed under Cults PU (Personal Use) – No commercial use or AI applications.

Peripheral Sensors, Motor Drivers Used on Raspberry pi 5

IMU BNO055
  • VCC(3.3) -> PCB
  • GND -> PCB
  • SCL -> PCB
  • SDA -> PCB
TB6612 Motor Driver 1
  • GND -> PCB
  • +12V -> PCB
  • VCC(3.3) -> PCB
  • ENA -> PIN 32 (GPIO 12)
  • IN1 -> PIN 11 (GPIO 17)
  • IN2 -> PIN 13 (GPIO 27)
  • IN3 -> PIN 16 (GPIO 23)
  • IN4 -> PIN 18 (GPIO 24)
  • ENB -> PIN 33 (GPIO 13)
  • STBY -> PIN 22 (GPIO 25)
Encoder TT Motor Left
  • VCC(3.3) -> PCB
  • GND -> PCB
  • A -> PIN 29 (GPIO 5)
  • B -> PIN 31 (GPIO 6)
Encoder TT Motor Right
  • VCC(3.3) -> PCB
  • GND -> PCB
  • A -> PIN 36 (GPIO 16)
  • B -> PIN 37 (GPIO 26)
RPLidar 2D
  • VCC -> PIN 4(5V)
  • RX -> PIN 8 (GPIO 14)
  • TX -> PIN 10(GPIO 15)
  • GND -> PIN 14
PCB
  • VCC -> PIN 1 (3.3V)
  • SDA -> PIN 3 (SDA)
  • SCL -> PIN 5 (SCL)
  • GND -> PIN 6
  • Connect lithium battery to screw terminal J1
  • Connect J3 to buck converter to power Pi
  • Connect J2 to get as input: 3.3V, SDA, SCL, GND
  • Connect bno055 to J5
  • J7(left), and J8(right) are for encoders
  • Connect tb6612 to J9, to get 3.3V(logic), 7.4V(power motors), GND
PCA9685 12-bit PWM controller(removed for now)
  • VCC(3.3) -> PCB
  • SDA -> PCB
  • SCL -> PCB
  • GND -> PCB

Working Setup

Web App(Frontend)

  • Note: Recommended to use another computer for this part to take some of the load off raspberry pi 5. Still works if you decide to use the raspberry pi 5 just a bit slower.
  • works fine on ubuntu with docker setup below or on windows use devcontainers:
  1. docker build -f ./robot_dashboard.Dockerfile -t web-setup .
  2. docker run -it --rm --net=host --name web-container -v /home/jaime/homebot:/workspace web-setup:latest

Backend(must run on raspberry pi)

subscriber-publisher architecture

transform tree

Docker setup

  1. docker build -f ./humble_pi.Dockerfile -t ros2-setup .
  2. docker run -it --rm
    --init
    --privileged
    --net=host
    --device=/dev/gpiomem
    --device=/dev/mem
    --device=/dev/ttyAMA0
    --cap-add=SYS_RAWIO
    -e DISPLAY=$DISPLAY
    -e QT_X11_NO_MITSHM=1
    -v /tmp/.X11-unix:/tmp/.X11-unix:rw
    -v /sys/class/gpio:/sys/class/gpio:cached
    -v /dev:/dev
    -v /run:/run
    --name ros2-container
    -v /home/jaime/homebot:/workspaces/homebot
    jaimec21/jazzy_pi:latest
  3. Testing backend without ros2:
text
uvicorn main:app --host 0.0.0.0 --port 8000

workspace setup(backend with ros2)

  1. source /opt/jazzy/setup.bash
  2. cd /workspaces/homebot/ros2_ws
  3. colcon build or colcon build --symlink-install or colcon build --packages-select arm_description or colcon build --symlink-install --packages-select arm_description
  4. source install/setup.bash
  5. ros2 launch robot_control robot_move_launch.py
  6. ros2 launch robot_description display.launch.py
  7. ros2 launch arm_description display_arm.launch.py
  8. rpy is applied with roll first
  9. ros2 pkg create robot_interfaces --build-type ament_cmake

useful commands to remember

  1. ros2 service call /capture_image std_srvs/srv/Trigger
  2. xhost +local:root and xhost -local:root (for rviz2 on kubuntu)
  3. ros2 run tf2_tools view_frames (saves tf frames in pdf)
  4. ros2 pkg create robot_description --build-type ament_python (create package)
  5. ros2 run rqt_graph rqt_graph (view sub-pub architecture)
  6. ros2 run <package_name> <executable_name>
  7. ros2 launch <package_name> <executable_name>
  8. ros2 run tf2_ros tf2_echo world gripper1_link
  9. simple docker:
text
docker run -it --rm --init --privileged --net=host --name ros2-container -v /home/jaime/homebot:/workspaces/homebot jaimec21/jazzy_pi:latest
  1. open another terminal for container:
text
docker exec -it ros2-container bash
  1. ros2 run tf2_ros static_transform_publisher
    --x 0 --y 0 --z 0
    --roll 0 --pitch 0 --yaw 0
    --frame-id map
    --child-frame-id laser
  2. launch robot_description and ros2 launch rplidar_ros rplidar_c1_launch.py
  3. ros2 service call /calculate_ik robot_interfaces/srv/CalculateIK "{x: 0.1, y: 0.0, z: 0.2}"
  4. ros2 action send_goal /move_arm robot_interfaces/action/MoveArm "{angles: [30, 30, 30, 30, 30, 30]}"

To Do (phase 1)

  1. one motor slower(left motor from homebots frame)and laggy and ticks seem weird, fix in code by analyzing ticks-differential-drive/odom in rviz(turn to action), then implement inverse kinematics(test with tennis navigation)
  2. network between computer, and homebot(ros_ip) for faster rviz. Look into networking and firewalls and other security features,modify /etc/hosts file(try kubuntu for better networking) ?
  3. slam for homebot, (bno055, motor encoders, lidar)(look up command on heracles on how to run lidar in ros2(in terminal and add here))
  4. test on forward and inverse kinematics on actual arm, make sure angles in real life match angles in rviz.
  5. fix dockerfile humble_pi on pi (image on dockerhub works fine (jazzy_pi))
  6. add camera to docker and rviz

Phase 2

  1. get stereo camera
  2. make a better physical build, make your own arm, design pcb board no cables
  3. using pytorch course make an unsupervised grasping model, use jetson orin(check out study material on nvidia(test with olama))
  4. add flutter app

CODE LINK

Credits

The robotic arm shown in the video above, is 3D printed using a model created by FABRI_CREATOR.
STL file available here: Mini Robotic Arm on Cults3D
Licensed under Cults PU (Personal Use) – No commercial use or AI applications.

Parts

13
QtyValueFootprintReferences
4Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J5, J6, J9
3Conn_01x02TerminalBlock_Altech:Altech_AK100_1x02_P5.00mmJ1, J3, J4
2Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7, J8

The 9 most common of 13 parts.

Similar boards

  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0
  • 2 layers47 × 35.6 mmMX7-C-35PL C11, the printed circuit board in 3D

    MX7-C-35PL C11

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    13 parts1.2k
  • 2 layers95 × 95 mmCube batteryboard, the printed circuit board in 3D

    Cube batteryboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    13 parts1.1kGPL-3.0
  • 2 layers15.2 × 20.3 mmPt100stick, the printed circuit board in 3D

    Pt100stick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    13 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 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

    13 parts1kGPL-3.0

Questions

How big is the Power distribution circuit PCB?

It measures 76.2 × 50.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Power distribution circuit use?

13 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 Power distribution circuit KiCad files?

From the canizalesjaime/homebot repository on GitHub, at the commit this page was made from: the board is kicad_electronic_circuits/power_distribution_circuit/power_distribution_circuit.kicad_pcb and its schematic kicad_electronic_circuits/homebot_overview/homebot_overview.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Power distribution circuit design in my own project?

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