Hacker Public Radio

HPR2799: building an arduino programmer


Listen Later

intro
1.1 brian in ohio
1.2 out from under my rock
motivation
2.1 ken fallon bootloader episode
hpr 2660
burned many bootloaders
used usbtiny programmer
putting together a programmer would be a good learning experience
2.2 still use arduino
easy to check out a new piece of hardware
boards are cheap and easy to find
boards are robust
2.3 need to run an arduino board at lower frequency
developing a data logger
write code in c using the avr open source tool chain
prototype on arduino board
needed supplies
3.1 arduino ide
get from your distro’s repository
slackbuilds i used the version that repackages the binaries, the little a arduino
read this good information
https://www.arduino.cc/en/Tutorial/ArduinoISP
3.2 avrdude
use it to test the programmer outside of the arduino environment
part of the gnu avr toolchain
3.3 arduino nano clone - un assembled
look for the boards that have the unpoplated icsp header
make sure its a nano and not a pro-mini
3.4 3 leds 3mm or smaller
optional but are useful, especially the heartbeat led
3.5 3 resistors 200 ohm - small
if you install the led’s
3.6 1 5-10 uF electrolytic capacitor
3.7 3-4 inch long jumper wire
3.8 2x3 female header
3.9 some way to cut wire
3.10 soldering supplies
howto
4.1 upload arduino isp sketch to nano
File→Examples→11.ArduinoISP→ArduinoISP
i modified the sketch changing where the led’s are placed
i put the led’s at digital 9, 7, and 5 for spacing
#define RESET 10 // Use pin 10 to reset the target rather than SS
#define LED_HB 9 // No change define LED_ERR 7 // changed define
#LED_PMODE 5 // changed
upload the sketch
4.2 solder on led’s
solder the anode leg to the apropriate digital pin on the board
add a resistor to the cathode leg of the led (usually the shorter leg)
solder the resistor attached to the cathode to ground pin of the board
i started with pin 9
you can test each led before moving on to the next led
my soldering ended up messy but it gets the job done
4.3 modify sketch and test leds
you can modify the sketch
change the heartbeat pin to whatever led you just soldered
upload the modified sketch
the led you just soldered should pulse
4.4 clip jumper wire and attach
pin 10
used the hole on the end of the board as strain relief
4.5 add capacitor
watch polarity
no more auto reset
if you want to program with arduino ide, you need to push the reset button
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Infinite Monkey Cage by BBC Radio 4

The Infinite Monkey Cage

1,952 Listeners

Click Here by Recorded Future News

Click Here

418 Listeners

Hacker And The Fed by Chris Tarbell & Hector Monsegur

Hacker And The Fed

168 Listeners