AVR ISP programming via Arduino

posted Jul 15th 2009 9:25am by Steve Watkins
filed under: arduino hacks, misc hacks, pcs hacks

ardunio avr isp programming

We found this Arduino AVR ISP programmer particularly interesting. AVR microcontrollers can utilize an interface called In-System-Programming. ISP allows the chip to be programmed or reprogrammed while in an actual circuit via a pin header. Atmel’s solution is the AVR ISP MKII programing tool. The MKII can also be reprogrammed just as an AVR. The difference here is that most people are not likely to modify the MKII to be used as anything but a programmer. On the other hand if you already have the Arduino, fetch the avr.isp.03 firmware and AVRdude. Then program a device, for example an ATtiny13 using the Ardunio as the programmer. All the project information is provided under the CC BY-NC-SA 3.0 license. On a related note we covered a Microcontroller cheat sheet which covers AVR devices and ISP pinouts.

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]




64 Synchronizing Fireflies

posted Jun 25th 2009 2:00pm by Zach Banks
filed under: led hacks, news

screenshot_007

[Alex] of tinkerlog created a set of 64 RGB fireflies that synchronize to blink all at once. We covered the kit earlier, but he has assembled a set of 64. Each firefly is independently controlled by an ATtiny13 that reads a phototransistor and lights up an RGB LED. The fireflies are programmed to blink a certain rate, but blink faster if they detect other blinks. After a few cycles, the fireflies begin to blink in unison. When the fireflies are arranged in different configurations, different patterns emerge. He is selling kits and has instructions for building your own. Videos of the fireflies after the jump.

Read the rest of this entry »

Controllable bristlebot

posted Jun 16th 2009 3:00pm by Zach Banks
filed under: misc hacks, robots hacks

img_1626

[sprite_tm], whose projects we have covered in the past, took the popular bristlebot to an extreme and created a controllable version. A bristlebot consists of a small vibrating motor mounted with a battery on the head of a toothbrush. These micro-robots buzz around randomly, and he attempted to tame them. He used a platform of twin bristlebots and added an optical sensor from a laser mouse and an ATtiny13. The optical sensor is used to determine the relative motion of the robot, so that the motors can be adjusted accordingly. He also has a video of the bot using the sensor to find a mark on the floor and stay within bounds. Although it isn’t as accurate, it acts like a traditional line-following robot.

Read the rest of this entry »

Rocket acceleration logger

posted Apr 8th 2009 9:04am by Nick Caiello
filed under: tool hacks, transportation hacks, wii hacks

rocketdatalogger

Have you ever wondered how high or how fast a model rocket goes when you launch it? [sprite_tm] did, so he decided to build a low cost, lightweight data logger that he could fit into the nose cone of his rocket. To keep the circuit small, he built it around the popular ATtiny13 microcontroller. The microcontroller collects data from a Freescale MMA7260, a 3-axis accelerometer that he extracted from a third-party Wii nunchuck controller. After the microcontroller collects the data, it’s stored in 32K of EEPROM on a 24C256. All of this is powered by a small 3.6v Li-ion battery, which is the largest part of the circuit. If this sounds like something you’d like to make, he has detailed instructions along with the software used available on his site. While we don’t launch a lot of model rockets here, we may soon start just so that we have an excuse to build this.




ATtiny breadboard headers

posted Jan 18th 2009 10:54am by Eliot Phillips
filed under: misc hacks, tool hacks

attiny

[Alex] was frustrated by the amount of time it took to start prototyping with an AVR ATtiny. To make things easier, he built headers that carry the 8 and 20 pin chips and plug directly into breadboards. The boards include a 6pin ISP header, resonator, pull-up resistor, reset, and blocking caps. The ATtiny2313 version also has a serial connection header. This is a prototype though, and he forgot to route one of the connections. He plans on having a large batch of boards ready for next month.

Minimalist LED light detecting candle

posted Nov 5th 2008 6:47pm by Eliot Phillips
filed under: classic hacks, led hacks, misc hacks

Our flickering LED circuit combined two known circuit, and certainly wasn’t graceful because of it. [sprite_tm] saw quite a few areas where the circuit could be reduced. He ended up taking it down to just two LEDs, a battery, and an ATtiny13. The first step was getting rid of the current limiting resistors. The datasheet shows that with a 3V supply the AVR will limit the current well below the maximum current. The light sensor was removed next. [sprite_tm] referenced an earlier post on sensing with LEDs. He measures the voltage across one of the LEDs while it is off to see how much light is hitting it. The current draw while on is 10mA and 50uA while off.

Flickering LED Circuit

posted Oct 30th 2008 3:08pm by Nick Caiello
filed under: classic hacks, misc hacks

Here’s a simple project for your Halloween celebration. The other day while looking through our box of Halloween decorations, we noticed that the incandescent lamp in one of the jack-o’-lanterns was burnt out. Instead of simply replacing the outdated bulb, we decided to build a small dark detecting circuit with 2 yellow LEDs based on this Evil Mad Scientist Laboratories design. After successfully building the circuit, we took the project one step further by incorporating an Atmel ATtiny13 microcontroller. The code switches the LEDs on and off randomly for a flickering effect and is based on this instructable. Below is the schematic we created in EAGLE and a parts list.

Read the rest of this entry »




Control Media Center with programmable IR receiver

posted Sep 28th 2008 4:30pm by Jason Rollette
filed under: home entertainment hacks, misc hacks

This IR receiver based on ATtiny13 microcontroller is used to control a Media Center box via a remote. The circuit is powered by 20 pin ATX connector pin 9 “+5VSB” because it is the only pin that is powered when the computer is off, or in standby. The receiver is programmed to accept the codes from the remote by holding down the switch while pressing the remote button. The circuit can use “Girder” or “PC remote control” as controlling software on the Media Center.

Synchronizing Fireflies NG

posted Jul 28th 2008 1:05am by Eliot Phillips
filed under: led hacks, misc hacks


[Alex] from Tinkerlog has revisited an old project with Synchronizing Fireflies NG. Fascinated by how fireflies blink at same rate and synchronize with each other, he built a digital version. Each board has an RGB LED and a phototransistor or photoresistor. A ping-pong ball is used as a diffuser. The blink rate is controlled by an ATtiny13v. The board power can be daisy chained, but each firefly mote operates independently of the others. The microcontroller has a fixed flash rate and monitors for other flashes. It attempts to sync by flashing earlier. The color of the LED expresses how satisfied the firefly is with its current sync. You can see a video of eight fireflies attempting to self organize embedded below.

Read the rest of this entry »

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