1.1 brian in ohio
1.2 out from under my rock
2.1 ken fallon bootloader episode
2.2 still use arduino
2.3 need to run an arduino board at lower frequency
3.1 arduino ide
3.2 avrdude
3.3 arduino nano clone - un assembled
3.4 3 leds 3mm or smaller
3.5 3 resistors 200 ohm - small
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
4.1 upload arduino isp sketch to nano
File→Examples→11.ArduinoISP→ArduinoISP
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
4.3 modify sketch and test leds
4.4 clip jumper wire and attach
4.5 add capacitor
4.6 2x3 header
MISO -|o o|-+Vcc
SCK -|o o|-MOSI
Do not attach-Reset-|o o|-Gnd
-----
5.1 plug usb cable into programmer and your computer
5.2 start the arduino ide
5.3 plug programmer onto target board remember to plug the wire into the reset pin of the target
5.4 in the tools folder of the ide make sure your usb port is selected
Tools→Port"/dev/ttyUSBx"
→/dev/ttyUSBx
5.5 and that in the programmer section you select arduino as isp not arduinoisp
Tools→Programmer→Arduino as ISP
5.6 at this point you can burn a bootloader as Ken described
5.7 upload a program
5.7.1 bring up the blink example sketch
5.7.2 under tools make sure your target board type is selected
Tools→Boards
5.7.3 under the sketch menu you’ll see upload using a programmer
Sketch→Upload Using Programer
5.7.4 when you select that the blink sketch will be compiled and uploaded
6.1 check functionallity
bash-4.3$ avrdude -p m328p -c arduino -P /dev/ttyUSB0 -b 19200
6.2 output
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100%
0.01s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF)
avrdude done. Thank you.
7.1 permissions issues - arch wiki gentoo
7.2 when you upload this way you overwrite bootloader
7.3 arduino ide boards.txt has some fuse errors
7.4 avrdude version 6.2 will not work
7.5 baud rate using avrdude command line
7.6 capacitor is non-optional, but makes uploading to that board non-trivial
8.1 upload via icsp vs usb serial
8.2 do you need a bootloader?
8.3 challenge to max out any 8bit microcontroller
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.