The Swiss AVR Knife bundles a number of AVR programming projects together in a single convenient Altoids Gum Tin. Because of the flexibility afforded by microcontroller programming, it also provides a starting point for any number of projects based on LEDs and sound output. The SAK can contain as many programs as the 8K of memory permits and maintains eight states for each program. The blue pushbutton causes the SAK to cycle through programs and states -- a quick press causes it to stay in the program but change to the next state (however that is defined) and a long press causes it to advance to the next program. The current program and states for all programs are preserved in EEPROM between uses.

The projects currently implemented in the SAK include the following. These, along with all of the other code and constants (there is a full font table), take up about 4K of the available space. Lots more room!

MiniMenorah -- Evil Mad Scientists
Brain Machine -- Mitch Altman
MiniPOV -- Adafruit Industries
Noise Toy -- Loud Objects
LED Running lights
LED Candle
LED Flashlight

This project would not exist without the considerable generosity of everyone who contributed in one way or another. In addition to the abovementioned, I would like to thank the developers of the software tools used (see in other steps) and anyone that put up a useful website that furthered my understanding of these topics. I can take direct credit for very little of the code used in this project. If you feel that the code is yours, it may well be. Let me know and I will happily give you credit. In any case, thank you for your contribution :-)

Step 1: Parts

Parts can be obtained from any of a number of electronic suppliers. Because of the space constraint, most of the components are required as indicated. Everything just barely fits; make sure that any substitute parts don't take up additional space. Do not substitute for the ATtiny84 unless you are absolutely certain that the pins correspond. The links following the parts are to DigiKey and All Electronics.

Electronic components
1 x U1 -- ATtiny84 -- ATTINY84-20PU-ND
1 x Ux -- IC socket 14-pin DIP -- A32879-ND
9 x LED -- your choice of color
9 x resistors -- matched to your LEDs

2 x R1, R2 -- 100 ohm 1/4W �1% metal film -- 100XBK-ND
2 x C7, C8 -- 47uF -- P5151-ND

Battery Holder 1-AA 6" wire leads (1) 2461K-ND
Phone jack stereo 3.5mm (1) MJW-22
Toggle switch SPDT 1/4" on-on (1) MTS-4
Push button switch (1) 450-1654-ND

Minty Boost
The SAK is powered by a single AA battery boosted by a Maxim MAX756 chip (the essential component of the MintyBoost!). The components below are those needed for this part of the circuit.

1 x U1 -- MAX756CPA DC/DC 3.3/5V DIP -- MAX756CPA+-ND
1 x Ux -- IC socket 8-pin DIP -- A32878-ND
2 x C7, C8 -- 0.1uF -- 399-4151-ND
2 x C3, C5 -- 100uF -- P5152-ND
1 x L1 -- 22uH radial -- M9985-ND
1 x D1 -- 1N5818 Schottky 1A 30V -- 1N5818-E3/1GI-ND
What does AVR stand for?
From Wikipedia -- The AVR is a modified Harvard architecture 8-bit RISC single chip microcontroller which was developed by Atmel in 1996. ... Atmel says that the name AVR is not an acronym and does not stand for anything in particular. The creators of the AVR give no definitive answer as to what the term "AVR" stands for. I used the ATtiny84 chip (in the AVR family) and called the project Swiss AVR Knife because, like the Swiss Army Knife, I added as many small programs as I cound.
i am a bit of a geek myself but i didnt get most of that and what does it actually do?
hello,<br /> <br /> i need the ready compiled hex-file please!<br /> anyone can help me?<br />
Hey, Awesome project! This may sound stupid, but how do you take such nice pictures? Did you make one of those white box setups? and are you using a high quality SLR or just a normal digital camera? Also, I suck at using EagleCAD. Do you have any tips because it takes forever! Did you use PnP Blue transfer paper, or just normal paper? Oh and one more random question. What major are you? I'm just curious because your work is very nice and you are very knowledgable! Thanks, Eric
Thank you for your interest in this project. It took me a long time and I like how it turned out. I am looking forward to using the board design and code in other ways. I use a Canon PowerShot S300 2.1 megapixels (it's about eight years old) to take my pictures. I shoot in macro mode in strong indirect light (by a north facing window) on a piece of poster board. I take A LOT of pictures and throw most of them away. I would like to upgrade my camera to one that can use older Canon lenses. And a tripod. The boards are masked with PnP Blue transfer paper. I heat the board with a very hot iron (almost highest heat; much hotter that suggested) and then position the paper on it. Because the board is hot, the paper sticks. Then I iron for a few minute and rinse thoroughly with cold water. Eagle CAD takes forever because designing boards takes a lot of care. I start with the container and then do revision after revision and keep tweaking my designs. You only see the ones I like! I majored in mathematics.
hey, nice project there, I'm going to look through the code tomorrow and see if it needs any cleaning up(I'm no wiz at C, but I getting close :) ). Do you have any video that you could upload of this thing in action, showing the various modes, etc. It would be greatly appreciated. I can't wait to get started on my own, just gotta wait for that digikey order to come in :).
so likewise i don't wan't to sound dumb either but what does it do? does it just light up some LED's in different patterns?
this project combines a few other DIY kits sold online into one small pocket-sized kit. The kits it combines are the: mini menorah, brain machine, minipov, noise toy, and it also works as an LED flashlight and candle, etc. If you want more specifics on what each thing does, click the links in the intro.
So I'm going to show my stupidity and ask what does this do and why would you need it.
dont feel bad. even after that explanation i still dont quiet get what it does....yet after the thneed analogy...i must have one.
i think it lights up the leds as the sound get louder,like some sort of graph or something
One needs this in the same sense that everyone needs a thneed. You could probably live without one :-( You'll get more mileage from a cheap pair of sneakers. There are several popular AVR projects that use other chips with less memory. The ATtiny84 chips has a relatively large 8K of flash memory. This allows all of those projects to be incorporated on a single chip with room to spare. Other programs that incorporated LED or audio output can be added easily. The blue button triggers an interrupt that switch between programs and between states of a program.
Looks awesome, and well documented. It is nice to see someone else pick the ATiny84 for a project.
you could adapt a arduino breadbord style and intergrate it with a pcb
Eagle files plz?
Eagle files for the schematic and board are now included in Designing and Making the PCB (step 7). I modified a number of elements and these are included in the library file map.lbr.
great :) wouldnt mind an arduino type version :P

About This Instructable




More by matthewpoage:High-speed Photography with Arduino and CHDK Double-Ended Pencil Case Gorilla Pod 
Add instructable to: