31
miniAtmegatron / Re: Is Miniatmegatron open source?
« on: December 07, 2017, 06:20:39 PM »
Yes, that's work in-progress. Still trying to find a way to publish it properly. Also, I think there's possibly too many diagrams, it makes it look more complex than it is!
Start with the Min class. That contains a hardware class and engine class. The hardware class handles the electronics, the engine is the processing for the generating audio. Both of those classes generate events. The job of the Min class is to pass events between the hardware and engine class. The idea is that the hardware and engine can be totally independent, so you can port different audio engines to different hardware interfaces really easily.
R.e. your customisations.
a) Yes totally possible. Even can use a Sparkfun MIDI shield (don't connect the buttons or pots though)
b) You'll need to remove pots on A4 & A5 as they use the I2C bus. Then add an external I2C ADC chip. If you look at the code for the Oscitron Hardware, you'll see how to do this with a Microchip MCP3208 ADC. So 8 of the pots will come off the MCP3208 and 4 off the Atmega328. That frees up A4 & A5 to use for the I2C to drive the ADC.
c) See above. Just free up A4 & A5 and use the I2C bus. Then adding an I2C screen at a later date is easy too!
Hope this helps as a starting point!
Start with the Min class. That contains a hardware class and engine class. The hardware class handles the electronics, the engine is the processing for the generating audio. Both of those classes generate events. The job of the Min class is to pass events between the hardware and engine class. The idea is that the hardware and engine can be totally independent, so you can port different audio engines to different hardware interfaces really easily.
R.e. your customisations.
a) Yes totally possible. Even can use a Sparkfun MIDI shield (don't connect the buttons or pots though)
b) You'll need to remove pots on A4 & A5 as they use the I2C bus. Then add an external I2C ADC chip. If you look at the code for the Oscitron Hardware, you'll see how to do this with a Microchip MCP3208 ADC. So 8 of the pots will come off the MCP3208 and 4 off the Atmega328. That frees up A4 & A5 to use for the I2C to drive the ADC.
c) See above. Just free up A4 & A5 and use the I2C bus. Then adding an I2C screen at a later date is easy too!
Hope this helps as a starting point!