The Inner Workings Of Servo Motors

Servos seem to be the go-to option when adding motors to hobby projects. They’re easy to hack for continuous rotation for use in a robot, but with the control board intact they are fairly accurate for position-based applications. But do you know how the hardware actually works? [Rue Mohr] recently published an article that looks at the inner world of the servo motor.

As you know, these motors use a voltage, ground, and signal connection for control. The position of the horn (the wheel seen on the servos above) is dependent on that control signal. The duty cycle of a 20 ms pulse decides this. Inside the housing is a control board capable of measuring this signal. It’s got a chip that monitors the incoming PWM pulses, but that’s only half of the equation. That controller also needs feedback from the horn to know if its position is correct or needs to be changed. Integrated with the gear box that connects the motor to the horn is a potentiometer. It’s resistance changes as the horn turns. Knowing this, it is possible to fine tune a servo by altering that resistance measurement.

Turning A Plush Dalek Into A WiFi Enabled Robot

You can now “EX-TER-MIN-ATE!” with one finger since this plush Dalek from Doctor Who has been turned into a wireless robot. The build started out with the toy whose only trick was to spout quotes from the popular science fiction television series. [Madox] took it apart to see how it worked, then added some of his own goodies to make it better.

We just looked in on a project from this guy on Tuesday. It was a light painting wand that used the TP-Link TL-WR703N wireless router. This uses the same tiny hardware as the controller. Since it’s a WiFi router it’s quite simple to serve up a control interface on any browser. To make it all work [Madox] designed and printed a new base plate. This provides brackets on which the two servo motors can  be mounted. It also gives him a place to anchor the driver board and the router itself. The original voice hardware is still there, driven by a connection to the router hardware. See the final product in the clip after the jump.

Continue reading “Turning A Plush Dalek Into A WiFi Enabled Robot”

Hand Cranked Electric Toy Has No Batteries Or Power Supply

We think this hand cranked robot design is nothing short of absolute brilliance. The toy is remote-controlled through a short section of wire. It can drive forward and turn, but not at the same time. Still that’s impressive considering it uses no battery or power supply and, of the two servo motors, only one is actually in the robot itself.

The second servo, which is visible to the right, acts as a dynamo. When you crank it electricity is generated. The inputs of that servo are connected to the inputs of the one in the robot to power it. If you crank in one direction the colorful toy will drive forward. But there is a one-way catch on one of the side wheels so when the servo is cranked backward the little guy actually executes a reverse turn. The magic of building a project like this is perfect for a weekend activity with the kids. Don’t miss the demo embedded after the jump.

Continue reading “Hand Cranked Electric Toy Has No Batteries Or Power Supply”

Crystal Doorbell Helps Class Up The Joint

Even if you live in a dump this quick build will make your doorbell sound high-class. The new rig uses a crystal goblet to alert you of guests at the door. We suppose the room-silencing sound of flatware on a wine glass does make a great attention getter.

For [Tobias] the hardest part of the build was getting his wife to sign off on it. But he says the 1970’s era original was looking pretty shabby, which kind of made his argument for him. It took just two hours to develop and install the replacement. It uses a servo motor with an articulated striker to ping the glass which is hanging inverted between two pegs. The original AC transformer (which are most often 16V) was used to power the Arduino. He built a simple rectifier along with a big smoothing capacitor to make sure the Arduino doesn’t reset when voltage dips. Although it’s not mentioned in his comments, we’d bet the doorbell wire has been rerouted to connect directly to the Arduino, rather than remain patched into the power loop.

Don’t miss the clip after the break to hear how great this thing really does sound.

Continue reading “Crystal Doorbell Helps Class Up The Joint”

Making Your Anime Papercraft Move To The Music

This anime character is dancing to the music thanks to some animatronic tricks which [Scott Harden] put together. She dances perfectly, exhibiting different arm and head movements at just the right time. The secret to the synchronization is actually in the right channel of the audio being played.

The character in question is from an Internet meme called the Leekspin song. [Scott] reproduced it on some foam board, adding a servo to one arm to do the leek spinning, and another to move the head. These are both driven by an ATtiny44. All of the movements have been preprogrammed to go along with the audio track. But he needed a way to synchronize the beginning of each action set. The solution was to re-encode the audio with one track devoted to a set of sine wave pulses. The right audio channel feeds to the AVR chip via an LM741 opamp. Each sine wave triggers the AVR to execute the next dance move in the sequence. You can see the demo video for the project after the break.

Continue reading “Making Your Anime Papercraft Move To The Music”

An Adafruit Raspberry Pi Extravaganza

The folks at Adafruit are busy as a bee working on bringing some of their really cool boards to the Raspberry Pi platform. Here’s a few that came in over the last few days:

16 servos is almost too many

Servos require a PWM output but the Raspi only has hardware support for PWM on a single GPIO pin; certainly not enough to build a gigantic, city-leveling robot. [Kevin] over at Adafruit put together a tutorial for using this 16 channel servo driver with the Raspi.

12 bit DAC

With only one PWM pin and no analog out, it was only a matter of time before someone hooked up the Adafruit 12 bit DAC to the Raspberry Pi.

16×2 LCD displays

Both the servo and DAC builds use the Adafruit I2C library and a bit of Python. Of course it’s possible to treat the GPIO pins on the Raspberry Pi as digital outs, just as [Mikey] did with his Raspi LCD display tutorial.

So, what distro are you using?

Of course all these builds use Adafruit’s Occidentalis distro, a maker-friendly Linux distro we’ve posted about before. It’s too useful to languish as a single Hackaday post, so here it is again.

Robot Servo Control Using Smartphone Audio Jack

[Jim] has an old Android phone he’d like to use as a Robot brain. It’s got a lot of the things you’d want in a robot platform; WiFi, Bluetooth, a camera, an accelerometer, etc. But he needed some way to make the mobile, mobile. What he came up with is a chassis with servos that can be controlled by the phone’s audio port.

To start his adventure he crafted a square wave audio file in Audacity and then played it back on the Android music player. By monitoring the output on an oscilloscope he found the wave was well produced, with peaks of about 1V. With that in mind he designed a circuit using two transistors to amplify the signal, thereby creating a usable input for the servo motors. Each motor has one of these circuits connected to it, with the left and right channels from the audio jack driving them separately. In the clip after the break you can see he even wrote a simple Android app to extend the idea to a more usable level.

This is a similar technique as used by the recon robot we saw about a year ago.

Continue reading “Robot Servo Control Using Smartphone Audio Jack”