arduino as distance sensor for a MaxMSP Patch

mmichaelson's icon

Hi- I took a class and made a patch in it that uses a distance sensor that goes into a makeboard and read on the patch. the object is mb.usb which i think means Make board, usb. So now i am trying to change it so the distance sensor is read on an arduino instead. my friend helped me program the arduino, so it reads a list of numbers. is there an object that picks those numbers up? I think that I seem to remember that the first time, I needed to add something to the object library (or something) for it to work, do i need to do that again for the arduino?

Luke Hall's icon

You might want to look at the [serial] object and the second max communication tutorial which should get you up and running. This page on the arduino website might be helpful too.

lh