FM Synthesizer and VGM player for the Arduino Due
The OP-FM Shield is an FM synthesizer and VGM player for the Arduino Due development board, it’s powered by the YMF262 (OPL3) sound chip from Yamaha. Is compatible with any keyboard with a 5 pin MIDI OUT port.
In Synth mode, the YMF262 can work in OPL2 or OPL3 mode depending on the selected voice, a maximum of 12 keys can be pressed simultaneously in OPL2 and 6 keys for OPL3. New OPL2 and OPL3 voices can be created from scratch, also the Included voices in the firmware can be modified, the user has access to almost all the parameters of the YMF262, why almost all? The five native rhythms are not available.
Synth mode has two options on how the keyboard can be used, in the first option (first screen) the synth uses all the keyboards for the selected voice, in the second option, the keyboard is divided into two, one-half keyboard for red voice and the other half for the green voice, an OPL3 voice can only be selected in the red voice half and the maximum number of simultaneous keys are downgraded to five.
In VGM player mode the keyboard is disabled, all the VGM songs are readed from the SD card. This mode also has the option to extract the voices of the VGM, they’re stored in a temporary folder that can be accessed from synth mode, those extracted voices must be saved manually or they’re deleted when other voices are extracted from a VGM.
VGM files for the OPL, OPL2 and OPL3 are compatible with the OP-FM, songs can be found on the internet, but before the .vgm file is transferred to the “vgm” folder in the SD card, the file must be extracted using the 7-zip app (https://www.7-zip.org).
And the best part above all is that software and hardware parts of the OP-FM Shield are open source, enjoy!
Front | Back |
---|---|
Before the firmware is uploaded, these libraries must be installed:
- MIDI Library by Francois Best (https://github.com/FortySevenEffects/arduino_midi_library)
- Adafruit GFX Library by Adafruit (https://github.com/adafruit/Adafruit-GFX-Library)
- Adafruit BusIO (https://github.com/adafruit/Adafruit_BusIO)
- Adafruit ST7735 and ST7789 Library by Adafruit (https://github.com/adafruit/Adafruit-ST7735-Library)
- Adafruit seesaw Library by Adafruit (https://github.com/adafruit/Adafruit_Seesaw)
- SD by Arduino, SparkFun (https://github.com/arduino-libraries/SD)
- Encoder by Paul Stoffregen (https://github.com/PaulStoffregen/Encoder)
- ArduinoThread by Ivan Seidel (https://github.com/ivanseidel/ArduinoThread)
- DueTimer by Ivan Seidel (https://github.com/ivanseidel/DueTimer)
The code for the firmware is available in the 'Software" folder but can also be downloaded from the Arduino Cloud (https://create.arduino.cc/editor/casdata/655ca870-2cc1-4bf0-9da4-6e03262c0709/preview)
The shield works either with the original or the Chinese clones Arduino Due boards, but it’s recommended to use the original due to some clone boards (almost all) comes with an issue in the power supply circuit that induces noise into the MIDI port when powering it over the power jack, also in the clone boards the shield doesn't boot until the reset button in the Arduino board is pressed after its connected to a power source.
Sergio Daniel Castañeda N. - @twitter_handle - casdata@gmail.com
Website: http://casnisoft.weebly.com