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

Apr 3, 2012 at 8:52pm

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

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. –
#62759
Apr 3, 2012 at 10:14pm

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

#226585
Apr 5, 2012 at 2:01am

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. –
#226586
Apr 5, 2012 at 2:06am

sorry
I notice that the previous patch had a small problem

this should work

– Pasted Max Patch, click to expand. –
#226587
Apr 9, 2012 at 2:47pm

@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!

#226588
Apr 9, 2012 at 3:40pm

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

#226589

You must be logged in to reply to this topic.