I am trying to solve a what I'm sure is a very basic Arduino2Max problem. I have a force sensitive resistor connected, via a breadboard, to an Arduino BT w/AT Mega 328. I had spent a lot of time just getting the program loaded onto the Arduino, but seem to have finally managed that now. I have uploaded the arduino2max.pde file to the arduino . All I would like to do is read data from Analog port 0, and have this displayed on the standard max patch.
Can anybody see where I am going wrong? I believe that the set up of the breadboard is correct, but if you would be so kind to double check then that would be fantastic - this really isn't my area of expertise. I am not sure at what stage of the project the problem is occuring - it could be that the breadboard is fine, but interfacing with max via bluetooth is the issue.
I am using a 10k ohm resistor. I also changed the last line of the programming code to Serial.write(32); as it Arduino could not understand 'BYTE', although I am not sure what the best value to put in here would be. The max patch has the serial reader linked to ARDUINOBT-Bluetoothseri and the correct port has been selected. I am at my wits end as I'm sure it's a small issue that I am overlooking!
Also worth a look - this is the circuit that I am trying to follow: http://www.ladyada.net/learn/sensors/fsr.html
(the part titled analog voltage reading method).
I have tried attaching an image of the breadboard but it wont upload for some reason - perhaps if someone could tell me how to do this (i've looked on the forum but not figured it out), then it can shed light on the breadboard set up I have going on.
Again, any help would be massively appreciated.
Thanks for your time