Multivibrator In Theory And Practice

We must admit that we’ve been guilty of using a microcontroller to make two LEDs blink alternately in the past. It’s not the worst transgression, but it stems from our discomfort with analog circuits. Luckily, [Ray] published an illustrated guide on building multivibrator circuits. This is a simple method of assembling a two-output oscillator. All it takes is a pair of NPN transistors, which are then switched by on and off based on a resistor-capacitor (RC) timer.

[Ray] does a good job of walking us through how the circuit works at each stage of one complete cycle. You’ll need to read carefully, but the supplementary schematics he uses to water down snap shots of the various electrical states really helped us understand.

Of course, blinking LEDs isn’t the sole purpose of a multivibrator. It is a method of producing a clean square wave which can be used as a clock signal for TTL logic chips. Oh, who are we kidding, see the blinky goodness for yourself in the video after the break.

Continue reading “Multivibrator In Theory And Practice” →

Milling Interlocking Wooden Rings

[Johan von Konow] wanted to make something special as a wedding gift to his wife. He decided a pair of interlocking miniature rings would be the perfect keepsake. He started his search for a way to mill the wooden rings from a solid piece of wood, and documented his journey for our enjoyment.

This project poses an interesting challenge. Most CNC mills offer three axes of freedom, but he only had a 2D mill meant for routing PCBs. This means the cuts can only be made from the top down at one depth. In order to fabricate the rings he needed to cut from more than one side. With more study, [Johan] discovered that it would be necessary to cut the wood stock from eight different angles before the rings would be complete.

The solution to the problem was to first mill a jig to hold the wood stock. It has positions to hold the stock at each different angle. The final step before starting the cut was to mill the stock itself to perfectly fit his custom jig. We think it turned out great, thanks in part to hand filing, sanding, and polishing to smooth the marks left from milling.

Make Your Own Spray Paint Cans

[Mikeasaurus] found a way to build his own refillable spraypaint canister. The donor vessel used here is a plastic soda bottle. It’s a great choice since it is engineered to house a pressurized liquid and you can find them for free by intercepting a satisfied soda consumer before they reach the recycling bin.

He repurposed the spray nozzle from a commercial spray paint can. By first releasing all of the pressure from the empty paint he could then use a hack saw to remove the top disk. He used Sugru to attach it to the bottle cap which has a hole drilled in the center to accept the feed straw. We wonder if there wouldn’t be a better way to attach this from the inside of the cap for better resistance to bottle pressure?

The final piece of hardware is a Shrader valve from a bicycle inner tube. This lets you pump up the pressure in the bottle. You’ll need to dilute the paint you use to make it sprayer-friendly. [Mikeasaurus] diluted his six to one which might have been a bit too much judging from the drips seen in the video after the break.

Continue reading “Make Your Own Spray Paint Cans” →

Binary Division When Your Processor Lacks Hardware Division

[Hamster] wanted to take a look at division operations when the chip you’re using doesn’t have a divide instruction. He makes the point that the divide instruction takes a lot of space on the die, and that’s why it’s sometimes excluded from a chip’s instruction set. For instance, he tells us the ARM processor used on the Raspberry Pi doesn’t have a divide instruction.

Without hardware division you’re left to implement a binary division algorithm. Eventually [Hamster] plans to do this in an FPGA, but started researching the project by comparing division algorithms in C on an AMD processor.

His test uses all 16-bit possibilities for dividend and divisor. He was shocked to find that binary division doesn’t take much longer than using the hardware instruction for the same tests. A bit of poking around in his code and he manages to beat the AMD hardware divide instruciton by 175%. When testing with an Intel chip the hardware beats his code by about 62%.

He’s got some theories on why he’s seeing these performance differences which we’ll let you check out on your own.

An Introduction To Stepper Motors

If you’ve been reading Hack a Day for long enough, you know about our infatuation with stepper motors. These precious little devices put the oomph into our CNC routers, 3D printers, robots, and other miscellaneous projects. Steppers aren’t your run-of-the-mill motors, though. [Steaky] posted a great introduction to stepper motors that lets you hit the ground running building any moving project you could imagine.

Apart from identifying a stepper and figuring out if it works, [Steaky] goes over how to make these motors turn. The theory behind an H-bridge is easy enough, but theory isn’t something often presented in schematics or stepper driver datasheets.

We’ve pulled more than our fair share of steppers from flatbed scanners and old printers. There’s nothing wrong with scavenging old parts, and whether you’re making a robot band to play your kid’s birthday party, robochess, or one of the many 3D printers or CNC machines, there’s going to be a stepper motor in your future.

Making Sweet Floppy Drive Music With A Calculator

floppy-music-ti83-style

[Chris] says that he’s been pretty busy lately, leaving little opportunity for hacking. However he did manage to find a little time to put together a small project that has occupied his to-do list for a while – a floppy drive music controller.

We have seen hacks that use microcontrollers to actuate floppy drive motors before, but we can’t remember anything that used a calculator to do the job instead. While a microcontroller gives you plenty of I/O pins to play with, [Chris’] Ti-83+ only has two.

Even with the calculator’s I/O limitations, he didn’t find the task too overly difficult as he merely needed to hold a pair of the drive’s pins low, while pulsing two others. He modified a media player written for Ti calculators to output the necessary control signals, then he cranked out some tunes.

As you can see in the video below, his simple setup works quite well – not bad for just a few hours’ work.

Continue reading “Making Sweet Floppy Drive Music With A Calculator” →

From The Readers: Low Battery Cutoff Solutions

We got a lot of really great feedback about low battery cutoff options in the comments section of Monday’s replacement battery post. To refresh your memory, some power tool batteries were replaced by Lithium Polymer units which can be damaged if drained too low before recharging. We had thought that many Lithium cells had cutoff circuitry these days. The consensus is that these batteries didn’t because they’re for RC applications where weight is an issue. But we did get a ton of people sending in commercially available drop-in solutions, mostly from RC hobby outlets, so search around for those if you’re interested.

[Christopher] sent us a link to the cutoff circuit he built for his bike light. You can see the schematic for it above (direct link). He sourced an ATtiny45 to drive a MOSFET which disconnects the battery when it gets too low. This would be easy to adapt to other uses, but note that there’s a voltage regulator involved as well as a few other passives… not a difficult solution but also not all that simple.

This same concept can be adapted. A few commentors mentioned using a transistor (or MOSFET) with the base driven by a voltage divider including a zener diode. This way the voltage rating of the diode would effectively shut off the gate when that threshold was reached.

We also enjoyed reading about [Bill’s] human-controlled cutoff circuit. It also uses a zener diode, but this time in series with a resistor and and LED patched into the trigger of the tool. The LED will shine brightly when the battery is in good shape. It will dim near the end, and fail to light when the critical limit has been reached. Just make sure you’re paying attention and you’re in good shape.