AVR Simple-to-build Programmer – HARDWARE

This is my first tutorial on electronics in English (I have wrote some more in the past but in Romanian) so I hope it will be ok ;)
What is a programmer? .. a device that can be connected to a computer (through parallel, serial or usb port) and be used to program chips using a software.So this should be the first project to be made by any beginner unless you already have a programmer because you can’t make anything without one.
I searched about 6h on the Internet to find the best simple programmer for ATTiny2313 and I found it on Serasidis Vasilis’s website. It was designed for AT90S1200 and AT90S2313 but as I studied a little it is also compatible with the newer version of 90S2313 which is Tiny2313. The only problem was the software as I didn’t find at first any software (I tried with BASCOM, IC-Prog …. ) compatible with the hardware but this is another story, in the next article ;)


Enough for introduction, let’s start ….
The easiest way to program a microcontroller is by doing In-System Programming (ISP), you can find more details on it if you look at the bibliography at the end of the article.
What components do you need?

  • a simple or prototype board (about 4x5cm or even less, depends on you)
  • 3 x 330 Ohms resistors
  • a 20 pins IC socket
  • a parallel (25 pins) port connector (male or female, depends on what you have on the mainboard or what cables you have)

Because some mainboards can’t provide enough voltage at the parallel port you may need an external power source. In this case you’ll need a +5V supply which you can build very simple with a 78L05 (click to see schematics) and connect it to pin 10 (GND – ) and pin 20 (GCC + ).For this way you need to strip the 3 resistors + the GND wire.
For the common schematic (which takes the voltage from the computer’s parallel port) use :

Below are some photos I took while I build it.




If you have any questions feel free to send a comment using the bottom form.

Bibliography :






26 comments on “AVR Simple-to-build Programmer – HARDWARE

  1. Pingback: POV(Persistence of vision) kit using AVR » Dedication to DIY and programming

  2. it didn’t work at all
    i saw what you wrote in that greek site

    plz help

    i did exactly the schematic and icprog didn’t recognize it

  3. hi, i test this program on at90s1200, attiny2313 and atmega8515, work fine

    thanks, but

    I need more speed for that reason i need program the fuse bits

    do you kown how program the fuse bits ?

  4. ok,
    but i don’t kwon if this can be done because in the datasheets of atmel it mentions that to program the fuse bits is necessary to program micro parallelly, so i don’t kwon if i must to change interface of the programmer like stk200 ,stk300 or use the same

    let me try whit the same

  5. hi everybody

    i program the fuse bits whit this program and work fine, i test on attiny2313

    thanks

  6. Hello Sir,
    I saw your project AVRsimple-to-build programmer hardware which is useful to me.I used your Attiny programmer circuit diagram.I work on one project in which i control stepper motor through PC parallel port.I done programming in turbo C.Now i want to control stepper motor through USB port insted of parallel port.
    In your project circuit diagram controller ic ATtiny 2313 is used.So,this ic is controller ic so programmer is also required.In which language you done programming? After programmer i used this ic in USb to LPT circuit diagram & i want to take input from USB port. Give me the proper idea.

    Thank you.

    With Regards,
    Ankur

  7. Which resistors do I need? 3x 330 Ohm (like in text) or 3x 220 Ohm (like in graphic)?

  8. Hi,
    very good advice. I’m beginer and I think I finally programmed the microcontroller (but no LEDs blink)- I made the Ladyada’s POV project:
    I used that DB25 porgramming board and AVReal software for DOS (just for programming the microcontroller)
    command:
    avreal32.exe +TINY2313 -p1 -ap -o0 -e -w -v -c minipov.hex
    and appeared:

    … Power ON
    Device connected, TINY3213 detected
    Lock state unknown
    Device erased
    Device connected, TINY2313 detected
    Fuses
    OSCCAL =65, 68
    CKDIV =1
    CKOUT =1
    SUT =2
    CKSEL =4
    DWEN =1
    EESAVE =1
    WDTON = 1
    BODLEVEL =7
    RSTDISBL = 1
    SELFPRGEN = 0
    Programming CODE memory
    done
    Verifying CODE memory
    passed
    done
    Reset pin released
    Power OFF

    it looks fine to me, but i can’t make the LEDs blink

    What do you think?
    PS I’m romanian too.:P

  9. Hey,

    Thanks, it works for me fine! I used the 380 ohm resistors, their value does not matter much, only used as a safety measure as i understand..

  10. hi,
    i need USB Avr programmer to connect Avr to notebook.
    please help me.
    can i build it?
    thanks.

  11. hi
    THIS IS SANJEET,
    SIR I WANT TO KNOW THAT HOW TO COPY A 64PIN BLNK MICROPROCESSOR ICS WITH A 64PIN PROGRAMME ICS (how i can read and write the programmer ics)
    PLEASE REPLY

  12. Hey,

    This thing worked like a charm for me using Windows XP once I installed the proper driver and .dll file for the AVReal software. I used it ot program a tiny2313 chip for a project of mine.

    To the OP, thanks for sharing this information you’ve saved me the cost of purchasing an expensive programmer!

  13. Trimbitas Sorin

    Your project is really useful for beginners.

    I am from India and working on a project ‘Light Following Robot’.

    The circuit uses AT90S4433 microcontroller.

    I need your help.

    How to build a programmer for this microcontroller?

    Waiting for your reply

    Regards

    A. S. Bhasker Raj

  14. hello,

    is it possible to programme ATTINY12 with this programmer? can you please answer on my email?

    TNX PAL

  15. For the attiny2313-20pi from sparkfun electronics. i tried this but my modern computer doesnt have a parallel port so i used a usb counter and neither of the programs work. avreal or lcprog on windows vista. they both just close after they open. even in admininstrator privelages.

  16. IM LOOKING FOR AN INDIVIDUAL THAT WILL BE WILLING TO MAKE SOME CASH! I HAVE AN “AT-TINY45″ 8PIN CHIP, AND I NEED SOMEONE TO MAKE DUPLICATES. THE CHIP I HAVE IS USED FOR MAKING RAPID FIRE XBOX CONTROLLERS. IF YOU ARE QUALIFIED, PLEASE SEND AN EMAIL TO: ATILLAZBADBOY@GMAIL.COM IF LOCK BITS ARE PRESENT, I WILL NEED A NEW CODE DEVELOPED, SO “C” CODING EXPERIENCE IS A MUST!

  17. Hi there, some time ago i made a programmer for nearly every AVR that has 8, 20 or 40 pins, complete with lpt isp connector. And as far as i remember it took me 4 resistors (instead of 3 in Your project ;) ) – 3x 330ohm, 1x 100ohm and 1 capacitor for power smoothing (powered via USB). I used it many times with WinAvr and AVRdude so its working correctly.

  18. hello…
    i need to program attiny2313…
    i didnt find avreal software and win32 driver ..
    please send me the download links…
    thanx in advance…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>