Tag Archives: ATmega88

megaAVR powers this Steampunk VFD wristwatch

Maker John De Cristofaro recently devised a Steampunk-inspired wristwatch powered by an ATMega88 microcontroller (MCU).


Dubbed the ChronodeVFD, the wearable device is built around a IVL2-7/5 VFD display tube. “I originally purchased a few of these tubes to build a standard desk clock, but after playing around with them, I realized I could probably build a wristwatch too,” the Maker writes.

De Cristofaro notes some of the features which made the tube well-suited for this purpose, including its size (only 1.25″ x 2.25″), its flatness making for a sleeker watch design, its low-grid voltage (12-13V), as well as its nominal 60mA filament current at 2.4V.


“One other feature that I like about this device is that unlike nearly every other VFD tube, the IVL2-7/5 has no opaque or diffuse backing behind the digits. It’s completely transparent front to back, which means that if you put it on top of a circuit board, you can (with a bit of backlighting) see the PCB below.”

Since the device was merely a costume piece, the Maker elected to find use a battery that lasted between 6-10 hours. However, despite its novelty, he wanted to ensure that it would be comfortable enough to wear and not too bulky.

“Coin cells were out because the internal resistance was too high to meet the current requirements, so I was left with AA and AAA single cells. I decided to go with alkaline cells, since the lower nominal voltage of NiMH re-chargables would mean an even lower efficiency for the boost converters, and less current for the filament. The finished project can be used with either 1xAA or 1xAAA alkalines (with the appropriate clips), however AAAs only last about 2 hours, so I’m sticking with AAs for now,” De Cristofaro explains.


At the core of the wearable device lies an ATMega88 microcontroller, while the real-time clock is a Maxim DS3231. The VFD display is driven by a Maxim MAX6920 — a 12-bit shift register with high-voltage (up to 76V) outputs. In addition, the circuit itself is powered from three voltage rails, and there a few onboard sensors — one analog and two digital.

There are also a number of mechanical innovations featured in this build, most notably the brass tubing that frames the display.


Interested in reading more about this slick Steampunk build? Hurry on over to the ChronodeVFD’s official project page here.

Phasor: An Atmel-flavored nostalgic demo

The demoscene is a computer art subculture specializing in producing demos, or audio-visual presentations. For the uninitiated, the demoscene first appeared during the 8-bit era, running on systems such as the Commodore 64, ZX Spectrum, Atari 800 and Amstrad CPC. In later years, increasingly sophisticated demos were coded for the Amiga, Atari ST and, yes, even DOS/Windows PCs.

Perhaps one of the most famous demos ever written was Second Reality by Future Crew. Coded for the Assembly ’93 demoparty, Slashdot voted Second Reality one of the “Top 10 Hacks of All Time” in 1999.


Although it is now 2013, some of us can’t help but get nostalgic for the demoscene days of yore. Fortunately, a talented coder named Linus Akesson (aka LFT) was kind enough to pen an old-style demo dubbed “Phasor” which runs off an Atmel ATmega88.

In the demo above, the microcontroller is clocked at 17.73447 MHz, exactly four times the frequency of the color carrier wave.

“In other words, four clock cycles per ‘color pixel,’ and in those four cycles one has to generate a sine wave with controlled amplitude, phase and constant offset,” writes Akesson.

“There is no chance of generating a smooth sine wave, because the CPU is limited to a maximum output resolution of one sample per clock cycle. Even this is not really feasible to do entirely in software, except for very basic visuals, such as a bunch of static color bars. But the effort can be cut in half thanks to a loophole in the PAL encoding scheme.”

Impressive, eh? Oh, and yes, here is Second Reality by Future Crew!