If you’re looking to improve the stability of your self balancing robot you might use a
simple horrifying equation like this one. It’s part of the journey [Lauszus] took when developing a sensor filtering algorithm for his balancing robot. He’s not breaking ground on new mathematical ideas, but trying to make it a bit easier for the next guy to use a Kalman filter. It’s one method of suppressing noise and averaging data from the sensors commonly used in robotic applications.
His robot uses a gyroscope and accelerometer to keep itself upright on just two wheels. The combination of these sensors presents an interesting problem in that accelerometer input is most accurate when sampled over longer periods, and a gyroscope is the opposite. This filter takes those quirks into account, while also factoring out sensor noise. Despite the daunting diagram above, [Lauszus] did a pretty go job of breaking down the larger function and showing us where to get the data and how to use it in microcontroller code.
At this point we’re beginning to think that building a self-balancing robot is one of the rights of passage alongside blinking some LEDs and writing Hello World on an LCD screen. We’re not saying it’s easy to pull off a build like this one. But the project makes you learn a lot about a wide range of topics, and really pushes your skills to the next level. This latest offering comes from [Sebastian Nilsson]. He used three different microcontrollers to get the two-wheeler to stand on its own.
He used our favorite quick-fabrication materials of threaded rod and acrylic. The body is much taller than what we’re used to seeing and to help guard against the inevitable fall he used some foam packing material to protect the top level. Three different Arduino boards are working together. One monitors the speed and direction of each wheel. Another monitors the IMU board for position and motion feedback, and the final board combines data from the others and takes care of the balancing. Two PID algorithms provide predictive correction, first by analyzing the wheel motion, then feeding that data into the second which uses the IMU feedback. It balances very well, and can even be jostled without falling. See for yourself in the clip after the break.
Continue reading “Self balancing robot uses cascading PID algorithms”
This artificial horizon might as well have come from an alien ship. [Mike] somehow manages to get his hands on most interesting equipment, this time its a very old piece of avionics equipment. The mechanical gyroscope functioned as the artificial horizon, and he’s going to take us inside for a look. He doesn’t spend quite as much time on it as he did that thermal imaging camera, but this electro-mechanical odyssey is just as interesting.
To get the accuracy needed to help keep a plane in the air (well to keep the pilot well-informed anyway) the device needed to be very well manufactured. [Mike] comments several times along the way on how the different rotating parts are so well-balanced and machined that they seem nearly frictionless. It appears that a lot of the positional feedback depends on wirewound resistor rings which connect to a rotating piece via a series of very fine spring wires. As the parts rotate the resistance changes and that’s what gives the feedback. There are also mercury switches to help along the way.
He does his best to explain, but to us the inner workings are still a big mystery. See if you can get a clearer picture from the video after the break.
Continue reading “Cracking open an ancient avionics gyroscope”
The Hackaday staff isn’t in agreement on 3d printers. Some of us are very enthusiastic, some are indifferent, and some wonder what if they’re as widely useful as the hype makes them sound. But we think [Jason Dorweiler’s] self balancing robot is as strong a case as any that 3d printing should be for everyone!
Don’t get us wrong. We love the robot project just for being a cool self-balancer. Seeing the thing stand on its own (video after the break) using an Arduino with accelerometer and gyroscope sensors is pure win. But whenever we see these we always think of all the mechanical fabrication that goes into it. But look at the thing. It’s just printed parts and some wooden dowels! How easy is that?
Sure, sure, you’ve got to have access to the printer, it needs to be well calibrated, and then you’ve got to make the designs to be printed out. But these hurdles are getting easier to overcome every day. After all, there’s no shortage of people to befriend who want nothing more than to show off their Makerbot/RepRap/etc.
Continue reading “Printing and programming a self-balancer”
So yeah, this thing exists. Well, at least some pretty interesting looking prototypes of it do. It’s the C-1 from Lit Motors (anyone else think that’s a reference which belongs in /r/trees?). The idea here is that the small form-factor of a motorcycle is very efficient and easily maneuverable. But the cage protecting the passenger from harm, and the canopy keeping the elements out give it some of the desirable traits of a car.
Design aside, check out the video after the break. The prototype uses two horizontally positioned gyroscopes placed beneath the passenger seat, just in front of the rear wheel. The builders take it out on a hockey rink and give it a few kicks and slide a few tires into it. Sure, it reacts to the impact but it doesn’t fall over.
Want to see some fast-motion welding of the C-1? Right now there’s a one-minute clip up on the company’s main page.
Continue reading “Gyroscopically stabilized car/motorcycle thing”
[Joseph Malloch] sent in a really cool video of him modeling a piece of foam twisting and turning in 3D space.
To translate the twists, bends, and turns of his piece of foam, [Joseph] used several inertial measurement units (IMUs) to track the shape of a deformable object. These IMUs consist of a 3-axis accelerometer, 3-axis gyroscope, and a 3-axis magnetometer to track their movement in 3D space. When these IMUs are placed along a deformable object, the data can be downloaded from a computer and the object can be reconstructed in virtual space.
This project comes from the fruitful minds at the Input Devices and Music Interaction Lab at McGill University in Montreal. While we’re not quite sure how modeled deformable objects could be used in a user interface, what use is a newborn baby? If you’ve got an idea of what this could be used for, drop a note in the comments. Maybe the Power Glove needs an update – an IMU-enabled jumpsuit that would put the Kinect to shame.
Continue reading “Modeling an object with internal IMUs”
[Matt Turner] tipped us off back in January about his homemade Segway project. Unfortunately that message slipped through the cracks but we’re glad he sent in a reminder after reading Friday’s feature an a different 2-wheeled balancer.
We like it that he refers to this project as being on the budget of a graduate student with a young family. We certainly understand where he’s coming from, and we hope he can ride this to job interviews to show them he truly lives engineering. The control circuitry is a bit higher-end than we’re used to seeing. He chose a Cypress CY8C29466 SoC to control the device. But the sensors are a common choice, using the Wii Motion Plus and Wii Nunchuk for the gyroscope and accelerometer they contain. This is a no-brainer since the sensors are high-quality, cheap and available locally, and communicate of the standard I2C protocol.
When looking for motors [Matt] was happy to find an old electric wheelchair on Craig’s List. This also gave him a gear box, wheels, and tires. He added a pair of motor drivers, with his own alterations to suppress feedback. Sounds like they run a little hot because he plans to add cooling fans to them in the future. But this first iteration is up and running quite well as you can see in the clip after the break.
Continue reading “Another homebrew Segway clone comes in at under $300″