This repo serves as a record of my attempt to build a self-balancing robot (affectionately called rat :D ).
demo.mp4.mp4
- Node MCU
- MPU6050 IMU
- L298N H-Bridge Controller + Motors
- 9V Battery
- Ribbon Cables
- Custom PCB Board (See
PCB_files
)
Warning
Turn off 9V power when connected to Node MCU
- Download Visual Studio Code
- Install the Platform IO Extension
- Build
/src/main.cpp
and flash to Node MCU
- 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.
- 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?