AVR Programming 04: Writing Code, Etc.

Welcome back to this fourth and final installment of the series. The first three parts should have been enough to get you off the ground, but a few more learning examples wouldn’t hurt. It’s also a good time to discuss some of the other things these little chips can do. Join me after the break to:

  • Expand the sample code, adding features to our simple program while I challenge you to write the code yourself.
  • Discuss AVR fuse bits, how to use them, and what to watch out for
  • Touch on some of the peripherals you’ll come across in these chips

As a grand flourish to the series, I’ve used the example hardware from this final part to build a bicycle tail light. Hopefully this will inspire you to create something much more clever.

Series roadmap:

Continue reading “AVR Programming 04: Writing Code, Etc.”

Under-desk RGB Keyboard Lighting

[Jay Collett] was having trouble seeing his keyboard when the room was dim. But throwing a light under the desk just didn’t seem cool enough. Instead he built an RGB light board that is controlled by his desktop. The board is based around an ATmega328 with the Arduino booloader. He etched a single-sided PCB to connect it to a group of five RGB LEDs, with a programming header for an FTDI cable. The board communicates with a PC via serial connection, with a C# control application that [Jay] coded to control the color. We’ve embedded a couple of videos after the break but check his page for a package of code and hi-res pictures.

If you want something cool that’s a little bit less work to build check out the EL-wire keyboard from this links post.

Continue reading “Under-desk RGB Keyboard Lighting”

Machine Your Own Ring Light

[Alan] acquired a stereo microscope from eBay, and decided to save some more money by designing, machining, and assembling his own arc reactor ring light to go along. After finding an LED driver board sitting around as well as ordering some surface mount LEDs, he set about using a lathe to cut away a block of lexan, making sure to include slots for the lights as well as the microscope mount point. Follow the link to see the detailed build photos, as well as some comparison shots with and without the ring light.

A month or two earlier though, and [Alan] would have had a fantastic start to an Iron Man costume.

Crutch-mounted Light

[Malikaii] is exercising the hacker spirit inside by building light stands out of junk. He’s using them as an alternative to purchasing off-camera flash units. He made this one using a lot of salvaged parts; two crutches make up the frame, a discarded reflector for one of those highway-work floodlights will house the flash, and an old pillow case diffuses the light. The version above can easily be moved around by an assistant, or if you’re shooting solo [Malikaii] also found that the base from an oscillating fan was easy to adapt for use with the crutch frame.

If you’re not able to scavenge these parts perhaps a folding light tripod is what you need.

All That’s Needed Is A Retro Paintjob, MiniMAME

[Tim’s] miniMAME‘s construction follows the “light and cheap” approach, using foam core board and hot glue. Sure it won’t last a nuclear attack, but at least it’s light enough to carry to a friend’s house.

With a removable netbook at the core, CCFLs, speakers, trackball, and mini arcade fighting stick, the project completely surpassed our expectations. For those looking to build a miniMAME, [Tim] includes lots of pictures, details, and plans allowing anyone to make their own in about an afternoon.

3D Printing With Chemicals

From the horse’s mouth,

“In this lithography experiment light creates free radicals from phenylbis(2,4,6-trimethylbenzoyl)phosphine oxide which induce polymerization of 1,6-hexanediol diacrylate.”

Or for those without a Chemical Engineering degree, light from a (high resolution) projector interacts with a special liquid, producing a hard polymer on the surface. A platform within the liquid is lowered, taking the layer of polymer with it. Shine the projector again to produce another layer: lather, rinse, repeat. Long story short, an atypical 3D printer using light on a very small scale.

You get the chemicals and lab equipment, we’ll get the laptop and projector, and for goodness sake [Jimmie] stop bumping the table.

[Thanks Tomas]

No Touch LED Lamp

[youtube=http://www.youtube.com/watch?v=8wV2UIOV1Fk]

This elegant looking lamp uses capacitance sensing to turn on and off. [Mikey77] takes us through the process of making the curved circuits and putting it all together. The circuit is built to be modular, so he could use it elsewhere. That’s a pretty good idea for someone who is always tossing projects together. As usual, schematics are available in the instructable. We love this design and would proudly use this at our office desk.