From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-28-2012 11:53 PM
I have a new robot comming soon it has an Arduino UNO on it, I would like to incorporate a Ping sensor and i dont know where to get started as far as returning a distance from the sensor goes using LIFA.
Thanks,
Miles
08-29-2012 05:24 PM
Does this robot already come with Arduino code?
08-29-2012 05:40 PM
Hi Miles...
I am working on the same thing...
There is a discussion regarding "
"
in this same community group that is using a sonar sensor.
If doing this in regular code, there would be a 5uS pulse sent to the trigger pin of the PARALLAX PING sensor, then the pulseIn() would be configured for the input pin which would return the duration of the pulse which correlates to the distance.
My own attempts have failed so far with error code 5003, but labview likes the way it is wired (somewhat like some example vi that the above mentioned topic exhibits.
a Send Recieve.vi has as an input an array (presumably with parameters) of trigger pin, echo pin and what appears to be a numeric code for PulseIn() function... I am not sure, but I'll get there. It almost looks like they are confusing the type of sensor with one that returns text strings. When I know more and have some success and figure out what that code (x34) means... I'll post back... but in the mean time... take a peek and see if it gives you any clues.
It is a July 5th posting...
Tim
11-11-2013 08:03 AM
Tim,
I am working on getting the Parallax distance sensor to work with my Arduino Uno but am still getting the 5003 error. Did you ever figure out how to get the Labview LIFA block diagram to work correctly with the Arduino?
Logen
11-11-2013 12:03 PM
Here is code that I created for another LIFA user.