Self-balancing Robot Keeps Things On The Straight And Narrow

self_balancing_robot

[James] designed a digital controller in MatLab, but he really wanted to see if it would work in a real-world application. To test out his linear quadratic regulator design, he decided to build a self-balancing robot. His goal was to built a robot that can keep its balance even when external forces are applied, all while staying in the same place.

Balancing on a pair of wheels is not all that simple, so his LQR controller allows him to weight the bot’s priorities towards keeping balance, focusing on returning to its starting position once equilibrium has been achieved. The results are pretty impressive as you can see in the videos below.  The robot is easily able to attain its balance once powered on, and it has no problem remaining stable even when pushed or when objects are placed on top of it.

[James] has plans for several enhancements in the near future, including remote control via Xbee modules as well as autonomous navigation utilizing sonar or possibly a camera. We’d totally love to see it sporting a Kinect sensor in a future revision, but that’s just us!

Keep reading for a couple of demo videos he put together.

[Thanks, Nicholas]

Continue reading “Self-balancing Robot Keeps Things On The Straight And Narrow” →

What Development Board To Use? (Part Two)

We asked for responses to our last Development Board post, and you all followed through. We got comments, forum posts, and emails filled with your opinions. Like last time, there is no way we could cover every board, so here are a few more that seemed to be popular crowd choices. Feel free to keep sending us your favorite boards, we may end up featuring them at a later date!

Continue reading “What Development Board To Use? (Part Two)” →

Getting Started With The Parallax Propeller

The folks at [gadget gangster] have been working on an excellent set of tutorials for getting started with the Propeller chip itself, the open-source Propeller Platform Modules and the Spin programming language that’s used to control things. All of the basics and a growing selection of more advanced topics are covered in gorgeous detail, with most of the tutorials containing helpful photographs and screen shots, source code listings and video walk-throughs to help you understand what the authors are talking about.

Parallax is not new to the microcontroller game. Almost two decades ago, their BASIC Stamp embedded microcontroller was the springboard for many tinkerers. The Parallax Propeller is an easy-to-use microcontroller that’s been gaining popularity for a while now. Several Propeller support modules have hit the market recently, providing power supply and interface functions to the Propeller similar to how the popular Arduino platform interfaces with AVR microcontrollers.

Propeller And Machine Gun Timing

[Matt] was looking for a challenge. Inspired by the machine gun setups on World War I planes he wanted to make a gun that can shoot between the blades of a spinning propeller. The original guns used an interrupter gear that synchronized machine gun firing with the engine mechanically. [Matt] set out to do this using a microcontroller.

To make this work there are two important pieces of information; how fast is the propeller spinning right now, and how long does it take for the pellet to pass the blade? [Matt] used an oscilloscope and some infrared sensors to establish the firing delay at about 20-22ms. Another sensor shows the propeller is spinning at 500 RPMs, with some simple calculations showing that there is indeed a big enough window of time to fire between the blades. After testing with a visible LED and then building out the rest of the circuitry he accomplished his goal. He even added a test function that purposely hits the blades just to see how accurate the system was. We hope this shows up in a Red Baron RC replica, or other flying arsenal.

[via Hacked Gadgets]

Multiple Core Propeller Speeds Up Display Addressing

Th

If you ever wondered what an eight-core Propeller processor can do for you, [Tom] found one answer. He’s using the multiple cores to individually address serial displays. He has six display modules, and each of them incorporate six 8×8 LED modules. This makes for a total of 2304 LEDs, and since they’re addressed by cascading serial data, that means 2304 bytes pushed to the display. You’re going to suffer from quite a bit of slow-down if you choose that communication method.

This is where multiple-cores come in handy. Instead of cascading data between the six modules, he assigned a different core to each. Now he can concurrently address the six displays, reducing his serial data from 2304 bits per frame down to 384 bits per frame. As you can see in the video after the break, updating the display six times as fast as before yields fantastic results.

Now what if you’re using a processor that has forty of these multi-core Propeller chips?

This does make us wonder, can’t the same thing be done on a single-core processor? An eight-bit device takes one cycle to set all eight bits on a single port. So why not just connect the six serial connections on six bits of the same port? Weigh in with your thoughts in the comments.

Continue reading “Multiple Core Propeller Speeds Up Display Addressing” →

Propeller Platform Prototyping Board Gets An Upgrade

[Nick] over at Gadget Gangster has a new version of his prototyping hardware for Propeller microcontrollers, called the Propeller Platform USB. A little more than a year ago we looked at the last version which was larger, used a DIP processor, and came unassembled. The new version does come assembled because of the migration to surface mount components (which may take some of the fun out of it if you just love soldering kits). This not only reduces the board footprint, but makes room for more goodies. As the name implies, there’s now a mini-USB socket with a USB to UART bridge, a microSD card slot as been added, and the onboard EEPROM has been doubled. This is a nice hardware upgrade but the price has been upgraded by $25 as well. No worries, it’s open source so you can roll your own if you have the parts on hand.

Homemade Music Player

Sadly, this pocket mp3 wav player doesn’t come close to the capabilities of even an iPod generation 1 yet, but you have to give [Owen] props for making it in less than 24 hours. The system consists of a Propeller MCU (cleverly wired to be swappable with “shields” similar to Arduino systems), SD card for song storage, and an LM386 for audio. While the setup is a little dull, and only plays through songs non stop with no controls whatsoever, it certainly is a good start in the right direction for a cheap and simple portable music player. Of course some planned changes are in the works, include an accelerometer (gesture based controls?), etched PCB, docking station, and a case. We’re surprised there is no form of screen planned, considering Owen appears to have a rather good handle on touch interfaces; perhaps he’s waiting for revision 3.