

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.mdSelf Balance Robot
This repo serves as a record of my attempt to build a self-balancing robot (affectionately called rat :D ).
Bill of Materials:
- Node MCU
- MPU6050 IMU
- L298N H-Bridge Controller + Motors
- 9V Battery
- Ribbon Cables
- Custom PCB Board (See
PCB_files)
Installation
[!WARNING]
Turn off 9V power when connected to Node MCU
- Download Visual Studio Code
- Install the Platform IO Extension
- Build
/src/main.cppand flash to Node MCU
Tips on Tuning
- Tuning Parameters found under
/include/control/balance.cppare 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | ~ | DX_rat:DX_motor_pos | Motor1, Motor2 |
| 1 | ~ | DX_rat:DX_battery | Battery1 |
| 1 | ~ | DX_rat:DX_nodemcu | MCU1 |
| 1 | ~ | DX_rat:DX_imu | IMU1 |
| 1 | ~ | DX_rat:DX_HBridge | HBridge1 |
| 1 | ~ | DX_rat:DX_Switch | Switch1 |
| 1 | ~ | DX_rat:DX_10connector | Connector1 |
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
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.