Hello Everyone;
I'm new to just about everything, but, I've been able to get the Official Arduino Robot running (
https://github.com/jasonnolan/SonicRobot) with lots of help from someone (
http://fabcirablog.weebly.com/blog/archives/12-2013) who unpacked all the insane pins on the robot that don't correspond to anything in any other arduino. I've had no problem getting a couple of Mozzi circuits running. My LONG TERM goal is to take the sensor data from the SonicRobot and us Mozzi to generate interesting sounds as it moves around the space it is in.
This means I have to figure out what pins I can use and then get the code to agree. Input pin's pretty easy. I can use TK2 (aka M1) on the robot and define it.
Mozzi: #define INPUT_PIN 0 // analog control input
Robot: #define INPUT_PIN TK2 // analog control input
Audio out SHOULD be PWM~9, and I'm trying to figure out where that might be on the board, but I doubt anyone can help me in that regard, but if you can, GREAT!
Here's where I'm stuck. In Mozzi we have a "NUM_ANALOG_INPUTS" element:
Arduino/libraries/Mozzi/mozzi_analog.cpp: In function 'void adcDisconnectAllDigitalIns()':
/Users/jason/Documents/Arduino/libraries/Mozzi/mozzi_analog.cpp:85:24: error: 'NUM_ANALOG_INPUTS' was not declared in this scope
for (uint8_t i = 0; i<NUM_ANALOG_INPUTS; i++){
And I can't figure out, being the noob that I am, how I might poke at that so it might be more compliant to the Robot board vs the Uno. I will also have to look backwards from the Robot end, but if anyone could help me at the Mozzi end, perhaps we can meet in the middle?
I know I should give up on the robot and build one from scratch based on the Uno, but I got the robots in the lab and would love to make them work.
Thanks, in advance, for any thoughts, condolences, etc.
Jason