Cloning the Trinket for a USB Volume Knob


A while back, [Rupert] wrote a blog post on using V-USB with the very small, 8-pin ATtiny85. Since then, the space of dev boards for 8-pin micros with USB has exploded, the most recent being Adafruit’s Trinket. [Rupert] liked what he saw with the Trinket bootloader and decided to clone the circuit into a useful package. Thus was born an awesome looking USB volume knob complete with a heavy aluminum knob, rotary encoder, and RGB LED strip.

[Rupert] got his V-USB/ATtiny85/rotary encoder circuit working, and at the expense of a ‘mute’ control, also added an awesome looking RGB LED ring powered by Adafruit’s Neopixels. The PCB [Rupert] fabbed is pretty well suited for being manufactured one-sided. If you’ve ever wanted an awesome volume knob for your computer, all the files are available form [Rupert]‘s blog.

Just as an aside, [Rupert] has been working on getting the Trinket bootloader working on the ATtiny84, a very similar microcontroller to the ’85, but with eight analog pins. It’s a neat device that I’ve made a small V-USB breakout board for, but like [Rupert], I’m stuck on porting the bootloader. If anyone has the Trinket/Gemma firmware running on an ATtiny84, send that in. We’ll put it up.

Pseudo-Random Flickering Jack-O-Lantern LED using ATtiny13


It’s time to get those jack-o-lanterns twinkling for Halloween. If you don’t want to use candles or buy a jack-o-lantern light this Halloween you can do like [Johannes Bauer] and code your own pseudo-random flickering super bright LED. His wife wanted their pumpkin to be illuminated this year and he knew it would be easy to do with an Arduino, but that would be overkill for such a simple project. Plus, he doesn’t have an arduino. [Johannes] used very few components; 4 slightly depleted AA batteries, a super bright LED, 680 ohm resistor and a little custom code on an 8 pin ATtiny13. The circuit does work great for a pumpkin lantern but his video is more of a tutorial on coding linear congruential generator (LCG) for the 8 bit pseudo-random LED flickering.

The code is short and can be gleaned from the YouTube video. [Johannes] used avr-gcc to compile and has packaged his code and build scripts for download. The hex file can be flashed over to the chip using avrdude or AVR Studio. If you have any ATtiny13s lying around you should cobble this hack together just in time to emulate that real look of a pumpkin candle without the hassles and hazards of real flames.

If you want something with a lot more light that still has that candle like flicker then checkout “Flickering Pumpkin Lanterns” that used the signal from LED tea lights to power some 12 V lamps.

Follow along after the break to watch [Johannes Bauer’s] video.

[Read more...]

An Improvised ATtiny2313 Logic Analyzer


After banging his head against a wall trying to get a PS/2 interface to work, [Joonas] decided he needed a dedicated logic analyzer. He didn’t need anything fancy; writing bits to a serial port would do. He came up with a very, very simple ATtiny2313-based logic analyzer that can capture at 50+ kHz, more than enough for a PS/2 port.

The hardware for [Joonas'] build is a simple ATtiny2313 breadboard adapter, an FTDI Friend, and not much else. The 2313 has eight input ports on one side of the chip, making attaching the right logic line to the right port a cinch.

The highs and lows on each logic line are sent to a computer over the FTDI chip, converted into OLS format, and piped into Open Sniffer to make some fancy graphs.

[Joonas] was able to capture PS/2 signals with his logic sniffer, so we’ll call this project a success. However, there were a few problems that made this project a little more trouble than it was worth: there is no easy way to turn a serial dump into a binary file, Putty didn’t allow suppressing output to the terminal, and Mac serial ports twinkling above 115.2 kbps don’t work natively. Still, the project did its job, and we couldn’t ask for anything more.

[via Dangerous Prototypes]

Adding Automatic Power-On to a Linksys NAS


We feel [Jim's] pain in having to physically press the power button to boot his Network Attached Storage device after a power outage. If you live in an area with frequent brief but annoying power blinks it wouldn’t take long to brew up your own solution. Here you can see the ATtiny45 that he added for the auto-boot.

Aside from having to go upstairs in order to reboot the machine there is also a compulsory disk check that his Linksys NAS200 performs before files are available on the network. You can see that he used an 8-pin socket which lets him remove the chip for programming. The socket gets a ground connection from the shielding of the USB port, it pulls 5V off of the linear regulator right next to it, and the green wire connects to the power button’s conductor.

The sketch compiled for the chip starts a ten second timer are power up. When the timer goes off it pulls the pin low and then high, simulating a button press. In hobby electronics it’s a common problem that we have to invent issues to use as the next project. So it’s nice to see a real life application like this one.

Haunted Dollhouse Microcontroller Networking for World Maker Faire


It’s pretty awesome to get see the number of projects presented at World Maker Faire. But we still love digging into the gritty details that only an in-depth build post can deliver. Here we get both. You can see the circuits pictured above in the Circuit Castle exhibit at WMF this weekend, and you can read about how the microcontroller network was built in [Jim's] article.

As the title states, this is a network built for a dollhouse. Each slave device performs a different task; adding color, sound, motion, and interactivity using some sensors.  The post discusses the i2c (or TWI to get around licensing issues as [Jim] mentions) communications used to talk to the ATtiny85 chips on the slave boards. Because the eight-pin package leaves few I/O pins to work with an ATtiny84 was also added. It brings 14-pins to the party, including multiple ADC inputs for reading sensors.

If this ends up being too much of a read for you jog to the “Update 9/17/13″ to get the general overview of progress. Like any project on a timeline, not everything works quite as well as they would have liked it to. But it’s the journey that makes something like this so fun — a fully working project would signal an end to the enjoyment, right?

[via Workshop 88]

A really, really tiny microcontroller board


Here’s something very cool from the wonderful world of Adafruit: The Trinket, an Arduino compatible microcontroller platform that’s not only small enough to fit in your pocket, it’s small enough to lose in your pocket.

Like the similarly specced Digispark, the Trinket features an ATTiny85 microcontroller with 5 IO pins. Unlike the Digispark, the Trinket is a bit more substantial, featuring 3.3 and 5 Volt regulators along with a real USB port and mounting holes. As this is based on the ‘tiny85, it’s possible to connect this up to I2C and SPI sensors and peripherals

One thing to note about the Trinket is the fact that it’s so cheap. Either version of the Trinket goes for about $8, inexpensive enough to simply leave in a project when you’re done with it. Given the cool stuff we’ve already seen created with the Digispark, including a homebrew stepper motor and an Internet meme and lame pun assessment tool, we can’t wait to see what’s made with the Trinket,

Couch to 5K with 1K to spare

In a market full of Fitbits, Misfits, and Fuelbands, it’s easy to get carried away with sophisticated personal fitness tracking technology.  That’s why [André] took a totally different approach with his super simple run tracking device, the C25K machine.

C25K stands for “Couch to 5k” which is a slimmed down exercise schedule designed to gradually bring people who have otherwise no exercise routine up to a level of fitness where they can run a 5k in just 9 weeks.  To keep participants from wearing themselves out too early, the routine specifies a sequence of running and walking periods to be completed in series on specific days.  Though simpler than most fitness plans, it’s still a lot to keep track of especially when you’re sweating so hard you can barely see your stopwatch.

André found a solution using a bare-bones circuit based on the ATTiny2313.  After loading the C25k calendar into its firmware (which takes up less than half of its 2K of flash), he needs only to toggle the dipswitch to select the appropriate day of the program, and the little device (scarcely larger than a key fob) will beep to let him know to switch from running to walking or back again.

Definitely a great project for any hobbyist looking for a geeky way to get in shape.


Get every new post delivered to your Inbox.

Join 96,380 other followers