How to build your own lathe

posted Oct 2nd 2009 12:00pm by Mike Szczys
filed under: tool hacks

diy_lathe

[bongodrummer] wanted to use a lathe to make some gifts for his family. Instead of buying one, he decided to make one and recycle some parts in the process. More info after the break. Read the rest of this entry »

Software pulse width modulation

posted Sep 17th 2009 2:00pm by Mike Szczys
filed under: led hacks

daqq_pwm_schematic

Pulse Width Modulation is a topic that tends to give a lot of beginners trouble. [Daqq], whose nixie plasma ball we covered a few days ago, has a simple but effective PWM project that you should take a look at. The circuit used 9 LEDs clustered together into 3 sets of RGB modules and connected them to an AVR ATtiny2313 through some current limiting resistors. Most of the time the PWM function of the AVR’s timers would be used to generate the signal but this application calls for 9 signals which is more than can be produced by this chip. The workaround is to generate the signals using software PWM. Read the rest of this entry »




AVR boost converter

posted Jul 7th 2009 1:50pm by Zach Banks
filed under: misc hacks, tool hacks

avrboost

Over at SpriteMods, [sprite_tm] realized that a microcontroller could be used as a boost converter to power itself. A boost converter steps up voltage from a battery by switching the output of a coil. First, it is tied to ground so a magnetic field can build up in the coil. It is then released as a higher voltage than the input. Normally dedicated chips do this at an incredibly high frequency, but the PWM signal from an AVR works well enough. This can be used in low-power situations where space is an issue.

[via EMSL]

Motors and Microcontrollers 101

posted Jun 29th 2009 12:58pm by Gerrit Coetzee
filed under: misc hacks

[Humberto] from NerdKits sends in the newest addition to their excellent collection of videos. This video goes over the basics of DC motor control with microcontrollers. They begin by showing nine experiments and observations that can be done by the average hacker with a multimeter, motor, LED, and jumperwire. Using the results from these they show how to model and calculate the properties of a motor. Lastly, it shows how to control a motor using PWM. They have supplemental text and demonstration code for an ATmega168 on their website.

RGBike POV

posted Jun 15th 2009 1:30pm by Eliot Phillips
filed under: android hacks, led hacks, transportation hacks

rgbike_pov

[Hazard] wanted a full color POV display for his bike wheel. Adafruit’s SpokePOV is single color and Monkeylectric’s original version didn’t display images. He also balked at the cost and decided to manufacture his own version. It uses 16 RGB LEDs on a single layer board he manufactured himself. It’s an entirely through-hole design to make assembly easy. It uses a hall effect sensor to synchronize the image display. The two main components are an ATmega328p microcontroller, which should make it Arduino compatible, and a TLC5940 PWM LED driver. It’s a very well documented build and certainly a good looking effect.

[via adafruit]




USB servo squirter

posted Dec 26th 2008 7:47am by Caleb Kraft
filed under: classic hacks, peripherals hacks

squirt

Here is a great project for learning how to control servos. They’ve made a USB controlled squirt gun using the USB NerdKit, a pump and a servo. This is a great tutorial to learn about PWM and controlling servos. The tutorial is very thorough, with great pictures and a video of it all , which you can see after the break.

Read the rest of this entry »

Simple servo bot plans

posted Nov 22nd 2008 2:44pm by Eliot Phillips
filed under: arduino hacks, robots hacks, tool hacks

had_arduino_servo

oomlout has posted some interesting plans for a simple robot. It’s based around an Arduino and is a platform similar to the Parallax Boe-Bot. The Arduino sends PWM signals to continuos rotation servos that drive the two main wheels. All of the structural components are laser cut from acrylic with slots to hold standard hex nuts. It’s an interesting technique, but the design has a lot of potential for improvement. Right now it uses two different power supplies and a breadboard for simple connections. From the video below, you can see that the balance could be improved as well. Read the rest of this entry »

Simple PWM

posted Nov 16th 2008 6:30pm by Eliot Phillips
filed under: misc hacks, tool hacks

pwm

We mentioned Pulse Width Modulation (PWM) when talking about [sprite_tm]’s marquee control. It’s a method of power control. While [sprite_tm] did it in software, [Afroman] sent along a very straight forward introduction to PWM using just a 555. Check out his video for coverage of this fundamental electrical design technique.




Overhauling LED marquees

posted Nov 14th 2008 6:08pm by Eliot Phillips
filed under: led hacks, misc hacks, peripherals hacks

led-sign

In a previous job, [sprite_tm] was responsible for wrangling many different LED text ad marquees. The hardware was fairly simple and he always figured they could be pushed much further with a little work. He recently acquired ten 32×16 LED displays a decided to see what he could do with them. By the end of the project, he had full motion video running on the display. This is a great project to read up on if you’ve ever wondered about LED matrix displays. He starts by reverse engineering the electronics on the board. He then attached an ATmega88 to drive the display module. Multiple display modules were daisy chained together over serial. The article covers PWM control and refresh timing as well. Check out one of a few demo videos below. Read the rest of this entry »

Weasure, a scale that weighs and measures

posted Nov 9th 2008 5:30pm by Eliot Phillips
filed under: led hacks, misc hacks, peripherals hacks

weasure

[John Peterson] created this postal scale device for a Renesas design contest. The Weasure not only calculates the package’s total weight but the dimensions as well. He built it using a SKP16C62P evaluation board that had an LCD, pushbuttons, and indicator LEDs. The original DigiWeigh parcel scale was modified to provide PWM output and tare control. He embedded photoresistors every inch along each axis. They were angle slightly upward and the surroundings were painted black to minimize reflection. The Weasure outputs everything via a serial connection so it can be used with shipping software to generate postage.

Hack a Day serves up fresh hacks each day, every day from around the web and a special How-To hack each week.

Send us your hacks