Forums > MaxMSP

XBee/Arduino into Max via SimpleMessageSystem? Other way to get serial data?

April 3, 2012 | 8:52 pm

I have several sensors attached to an arduino and I’ve had great luck using SimpleMessageSystem to read data into Max. SMS reads and writes directly to pins on the arduino with the help of metro. Is there a good way to do this wirelessly? I’d have thought XBee would be great but I don’t get how that would work, Is there a better method for sending sensor data wirelessly to Max?

Below is the example code for SMS

– Pasted Max Patch, click to expand. –

April 3, 2012 | 10:14 pm

It’s actually easy to work with XBee once you get the hang of it. Be sure to check this tutorial on XBee:

http://tronixstuff.wordpress.com/2010/08/06/moving-forward-with-arduino-chapter-14-xbee-introduction/

There is also the possibility to send data wirelessly via Bluetooth, WiFi with additional shields or modules.
I’d say that sending info via XBee is the easiest solution.

Cheers,
ygreq


April 5, 2012 | 2:01 am

xbees is perhaps the most reliable way to do wireless data, you can do wirels data within a good range. to setup xbees the firstime is abit complex if you do not have a support group ( aka doit yourself ) to stablish a peer to peer network is actually fun to setup.
once you have the xbees setup properly you can connect the xbee receiver to your machine and run your patch and just choose the port that xbee is connected and viola,

if you are in a mac this patch will give you a good start.
if you are windows it may give you ideas on how to make a windows version.

to set up xbees I have a simple tutorial on my web

http://balam.us/projects/xbee-tutorial.html

– Pasted Max Patch, click to expand. –

April 5, 2012 | 2:06 am

sorry
I notice that the previous patch had a small problem

this should work

– Pasted Max Patch, click to expand. –

April 9, 2012 | 2:47 pm

@balam,

Thanks! This is really helpful. I now have XBee figured out! One trick was that I had the UART/DLINE switch in the wrong position. Really XBee is remarkably simple. I’m excited to do more with it. Cheers!


April 9, 2012 | 3:40 pm

glad to hear that you figure it out.

If you have a feedback I will really happy to hear it.
specially from the xbee tutorial.

best


Viewing 6 posts - 1 through 6 (of 6 total)