Skip to content

then3rd/rad-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radiation Minibadge 2022

Fake light-reactive Geiger counter & MIDI player

Version 1.0

PCB, code, and readme were all cobbled together at the last minute. This project was a product prototype experiment for learning and fun.

PCB

Schematic

IDE & Settings

First, install VSCode and install the platform.io extension.

Debugging over serial and other configurable values can enabled and adjusted in settings.h

Fuses & Firmware

To allow the Attiny85 to run at 16MHz instead of the factory 8MHz we need to set some custom "fuses" on the chip. This is only neccesary one time as the fuses are set until modified, regardless of new firmware.

The current platformio.ini is confiugred for the USBasp programmer but you can configure your own too.

  1. Open this project with VSCode, Click the PlatformIO (alien) button.
  2. Expand attiny85-usbasp -> Platform and click Set Fuses.

If your programmer is correctly connected, the fuses will have been set and you'll see no errors in the conosle.

Alternatively pio run --target fuses --environment attiny85-usbasp may work

Next we can build and write the code:

  1. Click attiny85-usbasp -> General then click Build. If there are no errors in the code, it will build.
  2. Click upload. If the attiny is corrrectly connected the firmware will be written and validated.

MIDI setup

Midi songs can be converted to bytecode and flashed to the device.

To convert your song use the linux xxd utility:

xxd -i yoursong.midi > midi/yoursong.h

Next, modify the include line in midiplay.h to include your song:

#include "midi/yoursong.h"

Re-flash your chip and enjoy.

Useful Resources & References

TODO:

About

Saintcon 2022 Minibadge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors