The Flux Decoder
The Future Is In Your Hands!
Doc Brown needs your help!!! He has been hard at work building the Flux Decoder. However, he needs your help! Doc Brown wasn’t able to finish the prototype and left it up to you to finish building. Complete the solder job to power up the Flux Decoder to 1.21 gigawatts. Then, use the integrated decoder to solve other challenges!
Looking for soldering instructions?
Check out Kyle’s YouTube video!
Looking for badge source code?
Check out the GitHub Repository!
Programming the board
The board comes preprogrammed. However, if you want to program it with your own code. Here is some helpful notes. Also, we have two programmers in the village we can loan you!
- This badge is built on the ATTINY1614 MCU.
- It is compatible with the Arduino IDE when you use MegaTinyCore. Arduino 1.8.13 is strongly recommended: https://github.com/SpenceKonde/megaTinyCore
Programming With Arduino - Steps
- Add board manager (file > prefs) http://drazzy.com/package_drazzy.com_index.json
- Download MegaTinyCore through the board manager. Use the following settings:
- (tools > board): Third option lists ATTINY1614.
- DO NOT use the option with Optiboot
- (tools > chip): ATTINY1614
- (tools > clock): 8MHz Internal
- (tools > port): Comm port of your UPDI programmer
- (tools > programmer): jtag2updi
- (tools > board): Third option lists ATTINY1614.
- Connect a USB-C cable to your computer to the port on the badge.
- This will provide POWER and GROUND to the badge. this way, you’ll only need to use the red line from the programmer.
- Upload using (sketch > upload using programmer).
- Use a UPDI programmer. You can build one using an Arduino Nano. Or borrow one from us at the SEC Village!
- This is called ‘jtag2updi’ and more information can be found at the following link: https://github.com/ElTangas/jtag2updi
- Connect the red wire of the programmer to the UPDI pad above the microcontroller.
- Upload the program from Arduino!
Pins available to control are:
- LED Set 1-1 = Digital Pin 3
- LED Set 1-2 = Digital Pin 5
- LED Set 1-3 = Digital Pin 4
- LED Set 2-1 = Digital Pin 1
- LED Set 2-2 = Digital Pin 2
- LED Set 2-3 = Digital Pin 10
- LED Set 3-1 = Digital Pin 9
- LED Set 3-2 = Digital Pin 7
- LED Set 3-3 = Digital Pin 8
- Center LED = Digital Pin 0
- Mode Button = Digital Pin 6
Flux Decoder Pins
Pins available to control are:
You can interface with the following pins on the badge if you want to customize how it works!
- LED Set 1-1 = Digital Pin 3
- LED Set 1-2 = Digital Pin 5
- LED Set 1-3 = Digital Pin 4
- LED Set 2-1 = Digital Pin 1
- LED Set 2-2 = Digital Pin 2
- LED Set 2-3 = Digital Pin 10
- LED Set 3-1 = Digital Pin 9
- LED Set 3-2 = Digital Pin 7
- LED Set 3-3 = Digital Pin 8
- Center LED = Digital Pin 0
- Mode Button = Digital Pin 6