Skip to content
A shield for Raspberry Pi 2, used for programming AVR ICs. Includes capsense pad to engage, 3x2 ISP header for connectivity and status LEDs.
C C++ Python Other
Branch: master
Clone or download
Pull request Compare This branch is 58 commits ahead of lewispg228:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation_ example_&_pics picture of ISOLATE add-on solder wire Mar 26, 2018
ESP32_PROGRAM_EXAMPLE
HARDWARE fixed hatch ground pour under capsense pad May 29, 2018
Production panel v22 created May 30, 2018
SERIAL_UPLOAD
Setup_Instructions re-naming a lot to correct product name "SparkFun_Pi_AVR_Programmer_HAT" May 21, 2018
Utilities re-naming a lot to correct product name "SparkFun_Pi_AVR_Programmer_HAT" May 21, 2018
linuxpsi_versions Variable CHIP changed to DEVICE Dec 18, 2017
.gitignore added in avrdude_gpio.conf as necessary step in setup Mar 16, 2018
README.md Update README.md Jul 26, 2018
avrdude_gpio.conf ATTiny84s need a longer chip erase delay Apr 12, 2019
disable_switch.py moved isolation switch control into pi_program.sh Jul 13, 2018
enable_switch.py moved isolation switch control into pi_program.sh Jul 13, 2018
optiboot_atmega328_2012_with_1s_watchdog.hex bringing in optiboot and blink hexes - for easier access in the hooku… Jul 13, 2018
pi_program.sh moved isolation switch control into pi_program.sh Jul 13, 2018
rc.local removed sudo from rc.local Aug 5, 2016
relaunch_python.sh need this sh file for the actual relaunch Dec 22, 2017
test.py reverting to default "SH" in serial upload shell call May 22, 2018

README.md

SparkFun Pi AVR Programmer HAT

SparkFun Raspberry Pi Stand-Alone Programmer w/ the Pi-Grammer Hat

SparkFun Pi AVR Programmer HAT (DEV-14747)

A shield for Raspberry Pi 2, used for programming AVR ICs. Includes capsense pad to engage, 2x3 ISP header for connectivity and status LEDs.

Documentation

Additional Notes

This project originated from Adafruits tutorial here:

https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/overview

This shield makes it a bit easier to program AVRs with a headless Raspberry Pi.

This repo also contains some other useful files:

  • RCLOCAL - calls /home/pi/test.py and ensure that this python module will run automatically at boot up (useful when running headless)

  • AVRDUDE config file - sets the GPIO used for programming (in avrdude) to work with the shield design. It's located at the very end of this file.

  • test.py - the python module that is auto called during bootup. This also listens to the capsense IC and engages programming when p ressed.

Note: test.py called pi_program.sh to actually begin programming.

Note: test.py also checks for MEDIA drives plugged into the USB ports of the Raspi. If there is a HEX file on the MEDIA drive (any name, it just has to have the ".hex" extension) it will copy it in and use that for programming.

KEYWORDS: RASPI PROGRAMMER

Troubleshooting Tips

  1. USB port issues. If you are having trouble with com port enumeration. That is, you are plugging in something like an FTDI serial basic, and the Raspi will not recognize it. This may be fixed by using one of SparkFun Cerberus USB hub cables. We found that after plugging in 20+ FTDI basics into a pi, then it stops recognizing the devices. But if you use a hub (like the cerberus) inbetween the pi USB and the serial bridge IC, then it always pops up as "/dev/ttyUSB0" for 1000s of boards in a row. Wahoo!

SparkFun Cerberus USB Cable

SparkFun Cerberus USB Cable

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact techsupport@sparkfun.com.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.
You can’t perform that action at this time.