posted Jan 23rd 2012 4:24pm by
Mike Szczys
filed under:
classic hacks

You probably know that if you spin a motor (mechanically) it generates electricity on what would normally be the inputs. This can be a problem when you shut off a spinning motor and is the reason that protection diodes are built into motor driver circuits. But [Dino] isn’t interested in driving a motor, he wanted to see what he could do with the electricity generated by spinning a stepper motor.
He built the test rig that you see above for this purpose. In the foreground a 12V DC motor is held in place with an electrical conduit clamp. This connects to the stepper motor being tested using a segment of rubber tube. The DC motor provides a reliable input for his experiments, but could be replaced in the future by a propeller to make it wind powered, or by a water wheel. Check out the video after the break to see what kind of juice [Dino] gets out of it, and how it can be used for powering LEDs, recharging batteries, or driving a motor.
Read the rest of this entry »
posted Dec 14th 2011 3:01pm by
Mike Szczys
filed under:
Microcontrollers

Stepper motors are pretty easy to control with a microcontroller. But if you’re looking to run then at a high number of revolutions per second things get tricky pretty quickly. [Uwe's] been learning about and building stepper drivers for years, and recently he decided to build a high-performance driver based on a MicroChip reference design.
As with the reference design, his board uses a dsPIC33. But instead of using a series of discrete MOSFETS to switch the signals to the motor, he sourced an L298N motor driver. That’s it sticking up next to the large capacitor. When driven hard it needs its own heat sink, which [Uwe] cut from a larger CPU heat sink. During development, he decided to use interrupt-based PWM rather than the hardware PWM offered by the dsPIC. It works, but he would go the other route if doing it again.
For the pedestrian, the video after the break has all the details you need. For those that really want to dive in, [Uwe's] multi-paged write-up is worth bookmarking.
Read the rest of this entry »
posted Sep 27th 2011 10:01am by
Mike Szczys
filed under:
arduino hacks,
clock hacks

Here’s a couple of clocks that use Arduino boards to control inexpensive clockworks. The concept is quite simple, and perhaps best outlined by [Matt Mets'] article on the subject. As it turns out, these clockworks are driven by a coil, forming a device that is quite similar to a stepper motor. If you solder a wire onto each end of the electromagnetic coil and hook those to a microcontroller, you can alter the speed at which the clock ticks. Just drive one pin high and the other low, then reverse the polarity for the next tick.
The clock you see on the right (translated) is a store-bought cheapy. The Arduino barely visible at the bottom of the image is sending pulses once every second. But as you can see in the video after the break, holding down a button will fast-forward through time. [Sodanam] posted his code as well as pictures of the hardware hack itself.
To the left is a horse of a different color. It’s a clock modeled after the Weasley household clock from the Harry Potter books. The clockwork trick is the same, but the Arduino uses GPS data and NOAA weather information to set the status.
Read the rest of this entry »
posted Sep 27th 2011 6:00am by
Mike Szczys
filed under:
green hacks


Hit your parts bin and set aside an afternoon to build a wind turbine that recharges batteries. You can see two AA batteries hanging off the side of this small generator. You only need a few parts to make this happen, and chances are you have them sitting in your junk bin already.
The generator itself is a small stepper motor which can be pulled from a floppy disk drive or a scanner. The blade is cut from a single piece of 3.5″ (90mm) PVC pipe, with another piece of smaller-diameter pipe serving as the body of the turbine. The tail-fin makes sure it’s always pointing into the wind and was made from some plywood. As the blade spins, a current is induced on the control pins of the stepper motor. By building a pair of bridge rectifiers and using an RC filter you’ll get the most out of the generated current.
This turbine can charge a pair of NiCad batteries in about 10 hours, but it might be worth developing some smart circuitry to manage charging. If it were able to choose between a dedicated storage battery and the on-board battery holder you could put all of the wind energy to good use.
[Thanks Michael]
posted Jul 11th 2011 11:01am by
Mike Szczys
filed under:
cnc hacks

[TBJ] is building what he calls a junkbox 3D printer. You can probably guess that he’s trying to salvage most of the parts for the device, and after pulling a stepper motor from an old printer he was in need of a way to control it. What he came up with is a stepper driver that uses discrete components that are easy to acquire and inexpensive. The design calls for two inputs, one that toggles the direction in which the motor will spin, and the other that triggers one step of the motor. A CD4013 dual flip-flop takes care of both of these inputs in one chip package.
The motor is driven by a pair of H-bridges that he built using six transistors each. The trick with a stepper motor is that you need to drive the four poles of the motor to a specific logic level at a specific time. For this [TBJ] uses a CD4017 decade counter. A network of diodes grounds half of the output lines based on the flip-flop that controls direction. Our friend the 555 timer provides a clock for the circuit, keeping everything moving at a predefined rate. Check out the video after the break for an explanation and demonstration.
Read the rest of this entry »
posted May 23rd 2011 5:11am by
Mike Szczys
filed under:
cnc hacks,
robots hacks

[Patrick McCabe] enjoys the challenge of playing chess against the computer but he wasn’t satisfied with the flat experience of on-screen gaming. No problem, he just built his own gantry-style chess robot that he can play against. Don’t be confused, he still doesn’t have to touch the pieces, but instead uses the dedicated control board seen on the left of the image above. The robotic arm that is mounted on a gantry takes care of moves for both players.
It’s a pretty normal CNC build, using four stepper motors to slide the moving bits along precision rod. An Arduino Mega drives the system, with a PC doing the heavy lifting using a program called My Robot Lab.
We certainly like it that [Patrick] spent a little bit of time making the cabinet and visible parts look nice. Chess is a civilized game and unfinished parts would be out-of-place. We didn’t see it in his writeup, but the one feature we’re really hoping he has implemented is the ability to have the robot automatically reset the board at the beginning of a game.
As you might have guess, you’ll find embedded video after the break.
Read the rest of this entry »
posted Feb 17th 2011 5:05am by
Mike Szczys
filed under:
classic hacks,
musical hacks

We get a lot of tips about old hardware playing recognizable tunes. But once in a while one of these projects goes above and beyond the others and this is a shining example of great hardware music. [FunToTheHead] put together a music video (embedded after the break) that shows his custom MIDI device playing Bach’s Toccata in d minor. He left some comments that clue us into the way he did it. Most obviously, he’s using the stepper motors from four floppy drives to create precisely pitched sounds. Internally, a PIC 18F14K50 acts as a MIDI-over-USB device, taking commands for all 128 MIDI notes as well as the pitch bends associated with them. The first four channels are played directly on each drive and the other twelve are triaged among the hardware by the microprocessor. But for the results heard in the video you’ll need to code your MIDI files by hand.
Bonus points to the video editor for the Phantom’s floppy-laden appearance in the video… it’s good to laugh!
Read the rest of this entry »
posted Jan 7th 2010 1:00pm by
Jakob Griffith
filed under:
arduino hacks,
security hacks

[Garagedeveloper] sent us his custom surveillance system, part 1, part 2, and part 3 after needing a way to find out why some cables at work were becoming unplugged (spoiler, the cleaners were messing up the wiring). At the base of the system is a web cam glued to a stepper motor. However, it gets much more in depth with a web front-end that allows the user to stream the feed and control the position of the stepper. We’re not particularly fond of how many different parts the project takes, while it all could be accomplished under C# with ASP.NET and parallel port library instead of including Arduino and excess code, but to each their own and the project turned out a success anyway.