File Type Mode Size
Makefile file 644 377
README.md file 644 1046
convert.sh file 644 137
fuses file 644 179
rombuild.pl file 644 1505
sqwak_box.c file 644 4746
README.md

This is the software for the Sqwak Box sound board.

Building

The firmware needs avr-gcc and avr-libc to compile. Just type make, and you should have a sqwak_box.bin you can flash to an ATtiny84.

Fuses

Included is a minipro format fuse definition in the fuses file. If you're using a different tool, set the fuses to:

low fuse byte: 0xE2 (this is the default except CKDIV8 is disabled)
high fuse byte: 0xDF (default value)
extended fuse byte: 0xFF (default value)

Generating the sample ROM

The samples are 31250Hz mono, and the script convert.sh uses ffmpeg to convert any sound file to a raw file in that format.

$ ./convert.sh sound.mp3 sound.raw

Once you have a set of RAW files, you can build that into a ROM image with rombuild.pl.

$ ./rombuild.pl -o sound.bin sound1.raw sound2.raw ...

Then flash sound.bin to your flash chip.

The firmware will randomly select a sample on playback.

Clone: https://git.bytex64.net/sqwak-box.git