The GRAINS is one of the easiest modules to make and it is fun!
You can upload different codes on the GRAINS. They all result in having a complete different module in just a few minutes. To upload a new code you need to install the Arduino ide.
To upload from the Arduino ide to your GRAINS you need to install the CH340 driver (see below) and make sure to select Arduino Nano (old bootloader) and the right COM port in the software.
Here is a .zip file with most of the codes you would probably want to try.
(also check the firmware page: GRAINS codes)
Creating your own codes is not that hard if you have some experience in coding. The easiest way is to open a few codes from the .zip file and play around with them.
To make a code from scratch you need to know the following basic information about the hardware:
- input 1 is routed via P1 to pin A2
- input 2 is routed via P2 to pin A1
- input 3 is routed directly to pin A3
- P3 is routed to pin A0
- the output is a filtered PWM from pin D11
All analog pins can be fed with 0-5V CV signal. The inputs on the GRAINS are protected by clamping diodes.
Most codes are using real synthesis techniques but one of the fun things to do with the GRAINS is to make your own samples/samplebank
I am creating a simple to follow step by step manual on how to do this. Keep an eye on this part of the website.
* The audio data needs to be unsigned, 8-bit, 8000 Hz, and small enough * to fit in flash.
The arduino NANO in the kit is provided with a CH340 ic and to communicate with your computer you need to install a driver. In this link you can find the drivers: https://sparks.gogo.co.nz/ch340.html
If you come across any issue during the building process uploading a code, please sent me an email at email@example.com. I am happy to help you.