I have successfully used 6 Parallax ultrasonic sensors with Arduino and Pd to generate audio and video material twice.
There is a very nice Wiring project for an ultrasonic sensor that can be hacked to add additional sensors. It is located here (http://www.arduino.cc/en/Tutorial/UltrasoundSensor).
The code works over comport as discussed, and there is a handy bit of trickery in the Pduino that Hans crafted that sorts out the raw hex values into something useful for manipulation.
You just need to make sure that there is a brief delay as the microcontroller communicates between each sensor. This causes a slight delay as the Arduino loops through the code, but for my purposes the delay was negligible.
If you would like to see any of my (messy) patches or my modified wiring code, please ask and I can shoot them to you.
~Kyle
On Thu, Feb 28, 2008 at 10:36 AM, marius schebella marius.schebella@gmail.com wrote:
the arduino object in pd only works with pduino, but it is based on the comport object, and you can use the comport object to send whatever format or information you want. you can also use wireless or midi. this is a paper from last year with a general overview: http://artengine.ca/~catalogue-pd/44-Schebella.pdf saludos! marius.
raul diaz wrote:
Hi list!
I'm working on a project with ultrasonic sensors SRF05 (http://www.robot-electronics.co.uk/htm/srf05tech.htm) and Pd to process audio. Because of the very short time the sensor needs to work (tens of microseconds), I have discarded to use Pduino (and programing the sensor with Pd) and I have programed the sensor with Arduino and sended data to Pd with MIDI protocol. Anyway I'm curious about the different solutions that could be for this implementation. Would be possible to use the arduino object in Pd to receive value from Arduino (with USB and without using Pduino) instead of use MIDI protocol? Or even with comport object? Any suggestion would be welcome!
Saludos!
-- Raul Diaz Poblete
raul.lete@gmail.com mailto:raul.lete@gmail.com Barcelona [Spain]
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list