Skip to content

Reprogramming the module

TomWhitwell edited this page Aug 29, 2017 · 5 revisions

Modifying the firmware

  • The firmware is a tabbed standard Arduino file including RadioMusic, Helpers, Interface
  • To compile it, you will need modified versions of
    • SD.cpp (found in the main Arduino package)
    • play_sd_raw.cpp - In Teensy Audio Library
    • play_sd_raw.h - In Teensy Audio Library
  • The modified versions are here

Rewriting the firmware

It's quite possible to rewrite the module firmware using the Teensy Audio Library, which is very powerful - it's easy to synthesise dozens of sines or do various audio effects.

  • The Audio out is the on-board DAC (pin A14) and is AC Coupled
  • The pots are analog inputs A9 and A7
  • The CV inputs are analog inputs A8 and A6
  • The reset input is digital pin 9
  • The reset button is digital pin 8
  • The bank LEDs on the top are digital pins 3,4,5,6
  • The reset LED is pin 11

If you're using the SD library, add these line to your setup() block to connect the pins correctly.

SPI.setMOSI(7);
SPI.setSCK(14);

The Module Test sketch is probably a good place to get started with writing new firmware.