Skip to content

Instantly share code, notes, and snippets.

@simondotm
Last active June 2, 2019 23:59
Show Gist options
  • Save simondotm/90763ba1ccd03024aa9e3978e5fee8db to your computer and use it in GitHub Desktop.
Save simondotm/90763ba1ccd03024aa9e3978e5fee8db to your computer and use it in GitHub Desktop.
Chiptune Jukebox

Audio Amplifier

LED Strip

Experimenting with an Arduino and a SN76489

Driving YM2149F sound chip with an Arduino

SD Card with Arduino

Only one file can be opened at once. So we'll need to have a file format that is a combined data system. [Packet Size][11 x SN bytes, then 13 x YM bytes] = 24 bytes per 50Hz.

For bass boost we will need some tricks. Maybe arduino timers can be created that simulate the bass?

Arduino Timers Arduino Timers & Interrupts

There are 3 timers (timer0, timer1, timer2) - only timer1 is 16-bit the others are 8-bit The lowest frequency we can get with an 8-bit timer is 65Hz. Need 16-bit timer for 30Hz.

SD Card read speed Estimated at 250Kb/sec

For fully unrolled software bass we'd need to sample audio / write at 250Hz (5x 50Hz, 2 x 122Hz) That would be 11 bytes x 250 per sec =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment