PDA

View Full Version : Raspberry Pi as an AVR programmer



wraggster
August 21st, 2012, 22:41
http://hackadaycom.files.wordpress.com/2012/08/avr.jpg
AVR programmers can be bought for just a few dollars on the Internet, but if you’re building an expansion board with an AVR for your Raspi, this is the build for you (http://old.nabble.com/support-for-bitbanging-GPIO-lines-through--sys-class-gpio-td28211817.html). It’s a safe way of programming an AVR via the Raspi’s GPIO pins that uses an extremely minimal circuit.
The AVR ISP interface looks a lot like an SPI interface, and the easiest way to program an AVR with a Raspi would be to bitbang all the commands from the GPIO pins. Sometimes, though, the logic of the AVR and Raspi would be at different levels, so while bitbanging may work in a pinch it’s not something anyone should use regularly.
To get the Raspi and AVR talking to each other safely, [Steve] built a small circuit from a 74244 buffer and a FET. With the added support for Linux GPIO avrdude programming (http://old.nabble.com/support-for-bitbanging-GPIO-lines-through--sys-class-gpio-td28211817.html), it’s a snap to program an AVR with a Raspi.
A few days ago we ran across a hugely overwrought PIC programmer for the Raspi (http://hackaday.com/2012/08/17/raspberry-pi-as-a-pic-programmer/), so we’re glad to see another round in the PIC/AVR holy war go to the AVR camp.
Thanks [Mateusz] for sending this one in.

http://hackaday.com/2012/08/20/raspberry-pi-as-an-avr-programmer/