3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Ghetto Programming: Getting started with AVR microprocessors on the cheap.

Step 1Go Order Parts!

Go Order Parts!
Necessary Parts List (stuff to buy or scrounge):
Atmel ATtiny2313 chip:       $2.50 - $3Socket for chip:             $1Parallel port connector (DB25):       $3 at Radio Shack or $0.95 at SparkfunHeader Pins:                 $1-$2                (at least one strip each male & female, maybe 2 female)Some LEDs and resistors:     $1

= Around $10, even if you go deluxe. Half that if you can find an old parallel port cable.

Add-ons

A pushbutton switch or two: $1.
A piezo speaker: $1-$5
Light sensitive photocells: $2-$6
Breadboard for making complex circuits: $8-$10(?)

Other Stuff You Oughta Have

Computer: The older the better because it needs a parallel port.
Hookup wire, solder, soldering iron
Super-duper glue
Source of ~5v DC: Batteries will work, and old computer power supplies are perfect.

I get a lot of stuff from Sparkfun because they're
fast, reliable, and fairly priced. They carry AVR chips (but seem to be out
of ATtiny13's at the moment). They've got everything on the "Necessary"
list in one place, nice website.

If you're gonna be ordering a lot of chips, you can get a deal from Digi-key or similar. For instance: ATtiny 2313 for $2.36 each. They've only got 27,853 more in stock, so order quick. (Make sure you get the DIP form-factor.)

Go order stuff now, and we can set up the software side while you wait.

The waiting is the hardest part.

« Previous StepDownload PDFView All StepsNext Step »
18 comments
Feb 18, 2010. 10:13 PMbrooklynlord says:
Btw, you can use a resistor to shrink the batter voltage from anything thats higher than 5vs to 5v.

Just a reminder, as i was looking everywhere for 2v batteries :)
Dec 7, 2009. 4:34 PMcrzy engineer says:
You can get the parallel port connector from The Shack :

http://www.radioshack.com/product/index.jsp?productId=2103239

You can clearly see the pin numbers on the connector.

Will be trying this out and ill report back with some pictures =)
Dec 10, 2009. 10:43 AMmatstermind says:
or from an old printer cable (who doesn't have 20 of them lying around)
Jan 14, 2010. 5:59 PMcrzy engineer says:
Just in case that one person is running USB and never got a taste for a parallel connector.
Mar 26, 2009. 7:30 AMsailerboy says:
could anyone find links for all the components? I found most, but can't find a lot of them. Thanks in advance.
Dec 25, 2008. 1:58 AMdannytemmerman says:
Can i also use a ATMega8 instead of the ATtiny2313?
Apr 26, 2008. 11:31 PMsanluwee says:
awesome instructable. can't wait to try it out after my exams.
so i'm searching for the chip that you mentioned in digikey. problem though is, there has been more than 1 result. so i was wondering whether you could like give the detailed spec of the atmel chip or maybe verify whether the chip given by the url below is the right one. thanks in advance. http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=ATTINY2313-20PU-ND
Mar 15, 2008. 3:15 PMxenomorph says:
um would a db9 parrel port work?
Dec 27, 2007. 4:21 PM619rey says:
i could not find a parallel port adapter on sparkfun.com. where shuld i go?
Dec 27, 2007. 4:16 PM619rey says:
what do mean by socket for chip
Aug 6, 2007. 1:23 PMseraphus says:
This design can be used with any AVR chip that supports Universal Serial USART, right? For instance, the ATTiny24L doesn't support USART and doesn't have any miso or mosi pins in the overview so they won't work, however the ATMega8's do. Is that right?
Jun 21, 2007. 11:44 AMTheMadScientist says:
ok, just so everyone will stop asking, sparkfun IS out of the only socket that the 20 pin will use. either solder the microcontroller to your proto-board or move up to an atmega 8 or down to an attiny 13, the attiny takes the 8 pin socket, the atmega, the 28 pin socket, they have wire wrap and solder tail form sockets for those under the category (prototyping > sockets)
Jun 21, 2007. 11:53 AMTheMadScientist says:
also, just in case you cant find something, i'm gonna help you out. the microcontrollers(components > avr microcontrollers) sockets(prototyping > sockets) - wirewrap AND Solder parallel port adapter, dont bother buying this here, just find an old paralell port cord, and coax the socket out of the connector head with needlenose pliars, I also used some other thin stuff, I wouldn't reccommmend knives. header pins(prototyping > connectors) breadboards-perfboards-wiring-standoffs-screws-ect. (prototyping > general) also, the sensors are obviously under the sensor category, and the leds are under (components > LEDS. personally, I dont buy resistors or capacitors and such, occasionally a switch or two, but things like those are esier to find while scrounging, or you can pick up at radioshack if your really desperate.
Mar 8, 2007. 2:51 PMRaistillian says:
Do you know if you can still buy the socket for the chip from spark Fun? I found it elsewhere, but sparkfun seems to only sell it in the form of development boards now. Thanks.
Jun 13, 2007. 9:24 PMTheMadScientist says:
look under prototyping > sockets
Mar 18, 2007. 8:52 AMjrgcool35 says:
Anyone here know if this would work as the 20 pin socket???: 20-Pin Retention Contact and is that the socket for the chip??? X ( im so confused Elliot next time tell us what kinds of LEDs annd resistors and parts we ned to get. X (
Jan 14, 2007. 3:33 PMsysadmn says:
DIgikey's a mixed bag. Great service, no minimum order, but... there is a $5 surcharge for orders under $25, and shipping and handling adds up. Sadly, I always manage to find something to bring me up to $25.
Nov 20, 2006. 12:07 PMstevecooley says:
I always hate this part.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
95
Followers
7
Author:The Real Elliot