Maxuino - Connecting Arduino Nano - DIY headtracker

bassik's icon

Hello All,
I am trying to use the maxuino abstractions and patches to get communication from an Arudino nano.
The purpose is to get signal from an inexpensive DIY headtracker (http://www.rcgroups.com/forums/showthread.php?t=1677559) in order to process data for spatial audio.

Now, I can get the arduino to connect, the serial port is recognised but I am struggling to receive any signal through the "serial" object.
I am not considering still meaningful data but just any data for the moment...then I would need to filter the data to get what is useful for me.

Also it is important to say that I have tried this patch in PD (to be found here: http://www.matthiaskronlachner.com/?p=2091) and everything works.

Unfortunately I would like to bypass OSC data control and having a native MAX connection with the headtracker.

Does anyone have experience with Maxuino and Arduino Nano?
It is not in the list of devices but I reckon there is not much difference when you just want to receive serial data.

Thank you

bassik's icon

Really no one had experience with something similar?
O_o

n871's icon

Are you using OSX El Capitan...?

bassik's icon

Absolutely not...still with Maverick

n871's icon

By the way...make sure to check arduivis!

n871's icon

Then I can't help you I'm afraid. El Capitan is causing many new arduino problems. I experience none on Yosemite.

bassik's icon

no problem.
I will check arduivis tonight.

Thanks

cskonopka's icon

Bassik, let me know if you have any questions about arduivis, I'm here to help in any way I can. Thanks for suggesting arduivis N871!! :)

bassik's icon

Hello,

Haven't looked at it in more than a month but I remember that the problem is that I cannot get the serial object to read any data from the arduino nano
I would really appreciate any comments or help.
the first post contain link to the one I am using and arduino code.

cskonopka's icon

Odd. I have one as well but never experienced this myself. Do you happen to have the patch handy? I'm out of town right now but later this evening/tomorrow I have time to double check, I am pretty definite I have a nano kicking around my slop kingdom. So from looking at the link you sent you are trying to do I2C stuff, do you have the library off-hand for this board? Sorry if I'm redundant but to clarify you want to take the IMU data and stream it to Max correct?

bassik's icon

Hello,
Sorry for the long silence but I have been busy doing other stuff.
I have now started to put some effort again back onto this project and I am stuck to the same point.
The serial object do not read my arduino.

If I connect a message in the right outlet it says "read 0".
this is based on a very simple connection patch using the serial object (the one in the arduino tutorial) just to check if i can receive anyting.
The most annoying thing is that Pd can receive the data without any issue using a comport object.

I have a macbook pro mid 2010 with maverick so no arduino issues as far as I know.

I hope you can shed some light.
the arduino program is at the top of the topic.
Thank you