Well, shit,
would you look at this.
GitHub user ‘brianmarkpeters’ has already created a Teensy/dual POKEY synth. The comments that head the .ino even contain a BOM. A couple of notes:
- This project was done using a Teensy 2.0, and it won’t run as written, but after looking at the source, it will be extremely easy to rewrite—and of course, unless you wait until the other POKEY arrives you’ll need to adapt it for one chip… though if you don’t have the logic level converters, shift registers, and other components on-hand, you might as well wait.
- I know this is a little redundant, but just to ensure you don’t fry your MCU: Keep in mind the Teensy 2.0’s pins are 5V tolerant, but the 4.1’s are not, so the logic level converters are absolutely necessary.
- If you *do* have everything you need to get started, you don’t need to use more than one analog pin for stereo; using the Teensy Audio Tool, you can wire the input from one pin to each USB audio channel, and do some DSP for stereo effects beforehand if you’d like. Note that the graphical tool just produces the minimum code necessary to get started, but it’s still helpful if you’re not familiar with the audio library.
Once you get some audio out of the chip, share a clip with us!