Self balancing wheeled robot with auto-righting arms lofted high

A Self Righting Balancing Robot Configured The Easy Way

Norwegian electronics hacker [Hans Jørgen] aka [time expander] on YouTube, has a clear interest in robotics, and for his latest effort, decided that it was time to build a custom controller platform. Since [Hans] had a pile of Dynamixel servo motors lying around to test it with, a good first project for the platform was a simple self-balancing wheeled robot. (Video, embedded below)

We say ‘simple’ but that isn’t really the case, as there is a fair bit going on to get this to work. The first problem, is sensing, which was quickly solved with the excellent BMO055 IMU chip. Next, what to do when it falls over? Simply adding some servo-controlled arms, allowed the robot to flip itself back upright. Control is covered with a ESP32-WROOM-32D module from our friends at Espressif, which enables remote firmware uploading over the air (OTA update) as well as parameter tuning. In order to implement the latter, [Hans] chose to use bonjour/mDNS which is an implementation of zero-configuration networking. This gets the ESP32 onto the WiFi, but it isn’t immediately obvious how to connect to it, without a little digging around. To simply connection, [Hans] implemented a dynamic QR code via the connected OLED. This is just one of the those tiny 0.96″ displays that you see touted all over our corners of the internet.

Simply by scanning the QR code with any compatible device to hand brings up a simple configuration web page, allowing one to tweak the PID controller parameters, and get that balancing robot into check. Great stuff!

The PCB was designed in Eagle, firmware for the ESP32 is available, 3D models for the plastic are designed with fusion 360, and [Hans] is even currently working on some preliminary Alexa integration. What a fun project!

All the above, albeit an early cut (look out for bugs!) is available on the project GitHub for your viewing pleasure.

We’re no stranger to self-balancing 3D-printed bots, whilst you’re here, why not checkout A problematic Self-Balancing Sonic the Hedgehog? If wheeled bots aren’t your cup-of-tea, there’s a not-at-all freaky one-legged bouncing bot that may be of interest.

Continue reading “A Self Righting Balancing Robot Configured The Easy Way”

Two Wheeler Is Gyroscope Stabilized

[Jim] loves gyros – not those newfangled MEMS devices, but old-fashioned mechanical gyroscopes. His obsession has pushed him to build this gyro stabilized two wheeler. We love watching hacks come together from simple basic materials and hand tools, with liberal amounts of hot glue to hold everything in place.  That seems to be [Jim’s] philosophy as well.

This is actually the fifth incarnation of [Jim’s] design. Along the way he’s learned a few important secrets about mechanical gyro design, such as balancing the motor and gyro assembly to be just a bit top-heavy. [Jim’s] gyro is a stack of CDs directly mounted to the shaft of a brushed speed400 R/C airplane motor. The motor spins the CDs up at breakneck speed – literally. [Jim] mentions that they’ve exploded during some of his early experiments.

The gyroscope is free to move in the fore-aft direction. Side to side balance tilting is on the wheels themselves. The wheels are model airplane wheels, which have a curved tread. No cheating by using flat LEGO wheels in [Jim’s] lab! A potentiometer measures the tilt angle of the gyro. The voltage from the pot is fed into an Arduino Uno which closes the loop by moving a servo mounted counterweight.

The vehicle is controlled with a regular R/C plane radio. A servo steers the front wheel while another DC motor drives the rear wheel. Not only is [Jim’s] creation able to balance on its own, it can even make a U-Turn within a hallway.

Continue reading “Two Wheeler Is Gyroscope Stabilized”