S2 Making the cloud rain shells coin / SAO
From Stage 2 Security
The following components are required to make the badge, in total they cost around $1
Solder each of the components onto the back of the coin as shown. Note the pin 1 location of the ATTiny is in the bottom right. The LED Cathode marking is on the underside of the LED, see the images below for proper placement. Orientation of the resistor is not important.
The coin is programmed using the UPDI interface. The can be done using an Arduino as the programer. To do this you need to complete the following steps:
-
Follow the directions here to setup the Arduino https://github.com/SpenceKonde/AVR-Guidance/blob/master/UPDI/jtag2updi.md
-
Install the ATTiny boardmanager by following the instruction at https://github.com/SpenceKonde/megaTinyCore/blob/master/Installation.md#boards-manager-installation (Just the Boards Manager Installation section)
-
Open the s2_coulds.ino included in this repo, and use these settings for the project:
- Board: 8-pin ATtiny412/402/212/202
- Chip: ATtiny212
- Programmer: "jtag2updi"
-
Wire the Arduino to the coin in the following configuration:
Arduino S2 coin 5V Vcc (top right) GND GND (bottom right) PIN 6 UPDI (top left) -
Set the bootloader on the coin ("Tools" -> "Burn bootloader")
-
Upload the sketch to the coin. NOTE: If you get the following errors the process still worked and they can be ignored.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description
I'm sure I've missed some important detail so feel free to ping me and let me know, enjoy!