[PD] Pduino&Ping ultrasonic sensor&arduino
marius.schebella at gmail.com
Mon Dec 24 03:52:02 CET 2007
hmm, I think arduino can handle the ping range finder. but you need to
write your specific code.
use a code that you find online (the routine is something like: turn pin
to outlet, set pin high, wait some milliseconds, set pin low, turn pin
to inlet, measure the time until you receive the echo...)
and then send the value to pd via serial port (115200).
then measure next value.
I think, you should be able to send at least 20 values per second, but
that is a guess.
do you need more info for the arduino code? how many sensors do you have?
Marko Timlin wrote:
> does anybody know, if it is possible to control the Ping(ultrasonic range finder)sensor using only Pduino (first uploading Pd-firmware to the arduino, and then using the "arduino" pure data patch?). It doesn't work for me at the moment.
> If I write my own ping-sensor-patch for arduino and then use the PD_inputs_to_PD patch it works fine.
> But I'd like to use several different sensors and it would therefore be much easier to just control all of them with Pduino and not writing new code for arduino all the time. Well, guess this was the original idea of Pduino anyways :-)
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list