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.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallax Ping Sensor and LIFA?

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

0 Kudos
Message 1 of 5
(4,756 Views)

Does this robot already come with Arduino code?

0 Kudos
Message 2 of 5
(2,995 Views)

Hi Miles...

I am working on the same thing...

There is a discussion regarding "

pulseIN() using Labview+arduino?

"

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

0 Kudos
Message 3 of 5
(2,995 Views)

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

0 Kudos
Message 4 of 5
(2,995 Views)

Here is code that I created for another LIFA user.

https://decibel.ni.com/content/docs/DOC-31869

0 Kudos
Message 5 of 5
(2,995 Views)