- Download the latest version of the Arduino IDE
cd ~/Documents/Arduino && mkdir hardware
- cd into
hardware
clone this repository into it - Restart the Arduino IDE, you should see
Tools > Board > ATMega328
and some other things show up
- Plug in the Gizmo so that it is powered externally - the AVRISP MKII will not work if it is not powered externally
- Plug in the AVRISP, select
Tools > Programmer > AVRISP mkII
- Plug in ICSP header from AVRISP to ICSP header on Gizmo (ICSP labels on Gizmo are on back of board)
- Select
Tools > Board > ATmega328/328p
- Select
Tools > Processor > ATmega328p
- Select
Tools > Clock > Internal 8 MHz
- If everything is good, you should see a green light at the bottom of the programmer.
- Select
Tools > Burn Bootloader
- If the programmer is working, you should see a second green light flash as it is programming.
- Open
MicroWordClock2-Arduino.ino
in Arduino IDE - Select
Sketch > Upload Using Programmer
- Plug in the Arduino, select
Tools > Programmer > Arduino as ISP
andTools > Board > Arduino/Genuino Uno
- Select
File > Examples > ArduinoISP
and see a new script open - Make sure that the correct port is selected in
Tools > Port
- On the top left corner of the window, select upload
- Wire up the Arduino to Gizmo's ICSP header, but make sure to wire up power last (Gizmo has the standard ICSP header configuration). Use the following wiring:
Arduino pin | ICSP header pin |
---|---|
10 | RESET |
11 | MOSI |
12 | MISO |
13 | SCK |
5 V | VCC |
GND | GND |
- Connect a 10uF capacitor between Arduino's RESET pin and GND
- Select
Tools > Board > ATmega328/328p
- Select
Tools > Processor > ATmega328p
- Select
Tools > Clock > Internal 8 MHz
- Select
Tools > Burn Bootloader
- Open
MicroWordClock2-Arduino.ino
in Arduino IDE - With cap still plugged in and same
Tools
settings as before, selectSketch > Upload Using Programmer
- The TX and RX LEDs on the Arduino should start blinking, all LEDs on the Gizmo board should light up initially, then the board should be good to go
- Make sure the correct option is selected under
Tools > Board
- should be Arduino Uno only when uploading ISP sketch - Make sure the connections to the 10uF cap are good - I plugged it into a breadboard and used jumper wires to connect
- If nothing's working, try power cycling
- Once the sketch is uploaded, unplug the Arduino/programmer and plug in Gizmo's independent power supply
- Hold down SW1 until words start blinking. To cycle through "quarter past", "half past", etc., press SW1 the number of minutes you want to increment past the time designator
- To set the hour, hold down SW1 again until the current hour starts blinking and cycle through. Once you're done, hold down SW1 until only one LED blinks again