Skip to the content
2 layers183 × 63.7 mmRat mk1, the printed circuit board in 3D

This repo serves as a record of my attempt to build a self-balancing robot (affectionately called rat :D ).

Size
183 × 63.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
29
Pads
83
Tracks, vias
109, 0
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
29 Jul 2023
Updated
18 Sep 2023

Overview

Rat mk1 is an open-source printed circuit board by tauzn-clock, from the tauzn-clock/self-balancing-robot repository on GitHub. It is a 2-layer board of 183 × 63.7 mm with 8 parts on 29 nets, routed with 109 tracks and 0 vias.

It belongs with the NXP (LPC, Kinetis, i.MX RT) boards of this library.

README

README.md

Self Balance Robot

This repo serves as a record of my attempt to build a self-balancing robot (affectionately called rat :D ).

https://github.com/tauzn-clock/self-balancing-robot/assets/72295649/7475527e-0695-4e05-951b-1d8318b3db41

Bill of Materials:

Installation

[!WARNING]
Turn off 9V power when connected to Node MCU

  1. Download Visual Studio Code
  2. Install the Platform IO Extension
  3. Build /src/main.cpp and flash to Node MCU

Tips on Tuning

  • Tuning Parameters found under /include/control/balance.cpp are specific to my robot. These may defer if different components are used.
  • Typically, the IMU comes with a slight offset specific to each component.

Future Improvements:

  • Mounting holes in PCB board are too small for M3 threads, and require some filing
  • Shift wheel motor mounting points closer to the edge
  • After prolonged usage, wheels do not rotate at magnitudes lower than 0.5 (Due to friction within the motor?)
  • Include directional control based on Node MCU's Wifi Module?

Parts

8
QtyValueFootprintReferences
2~DX_rat:DX_motor_posMotor1, Motor2
1~DX_rat:DX_batteryBattery1
1~DX_rat:DX_nodemcuMCU1
1~DX_rat:DX_imuIMU1
1~DX_rat:DX_HBridgeHBridge1
1~DX_rat:DX_SwitchSwitch1
1~DX_rat:DX_10connectorConnector1

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

How big is the Rat mk1 PCB?

It measures 183 × 63.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rat mk1 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 Rat mk1 KiCad files?

From the tauzn-clock/self-balancing-robot repository on GitHub, at the commit this page was made from: the board is PCB_files/rat/rat_mk1.kicad_pcb and its schematic PCB_files/rat/rat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rat mk1 design in my own project?

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