THESE ARE OLD INSTRUCTIONS FOR AN
ARDUINO / NOVATION LanchControl midi knob controller that I found useful earlier on in the development of this mixer. I could control the ADC and DAC chips via midi / usb with the arduino and it helped me learn about I2C SPI UART bus etc
Instructions to hook up an arduino to Novation LaunchControl and get midi messages into your arduino.
you will need
1 x LaunchControl
1 x Arduino UNO R3
1 x USBhost shield v2
1 x USB hub with enough power to power the LaunchControl
relevant usb cables
1/ connect the USBhost shield to the Arduino UNO R3
I found these 2 but there are others to
2/ download each zip folder from the 2 librarys linked below on GitHub
uncompress each zip file and put each individual folder with contents
into the Arduino IDE Library folder.
the required USBhost version 2.0 library
the required USBH_midi library by Yuuichi
3/ Download my Arduino project file below.
4/ compile / upload to Arduino UNO with Arduino IDE.
5/ connect all usb leads making sure you have the usb hub between the arduino and the LaunchControl
6 /open serial console in arduino IDE and set the baudrate to 115200
press keys and turn knobs on the LaunchControl and you should see the relevent midi values 0-127 for faders
EDIT THE CODE AND GET THE NUMBERS TO DO THINGS FROM THE ARDUINO :) !!!!
comment below if you got this working or NOT ?
I'll make a video of this working soon and post it here..
I'm sure most types of Arduino will work as long as it supports the host shield but I have only tested arduino UNO as of yet..
As of now the codec is noisey since I should have seperate ground planes from analouge / digital .. I'm not bothered with noise for now since I'm upgrading to an 8 channel DAC so I can mix 8 channels. the AIC3101 codec wa just a test to see how well the USBhost - midi cointroler would work..
I remaped the numbers from the other way around since the codec volume was in reverse!
mute was 127 and 0 was full volume 0db in the I2C register programming of the codec. so this arduino instruction helped me out..
= map(volume1, 0, 127, 127, 0);
not sure remaped is the correct description for map function in arduino code.. anway , it might be useful if you want to reverse the values of the faders etc.
I used a midi dump example to find the values of each midi knob etc.. its in the examples that come with the midi usb library.
here is the arduino code for controling the TI AIC3101 audio codec. Its setup to output incoming audio from I2S to Left and Right Line output.
knob 1 & 2 contol L&R volume level output of codec
I now have the 8 channel DAC CS4385 hooked and working , code available on github.