Skip navigation


1 2 3 ... 5 Previous Next 71109 Views 60 Replies Latest reply: Dec 9, 2014 7:31 AM by Denni RSS
RobWal Calculating status...
Currently Being Moderated

May 3, 2012 6:05 PM

!! Arduino Uno + HC-SR04 Ultrasonic sensor + labview Help!!

Hi Everyone


I would like to make a simple distance/range finding program using Labview, the Arduino and the very popular HC-sr04 ultrasonic sensor.

The sensor has a built in control circuit that sends out 8 pulses at 40khz when a trig pin is momentarily high(Ideally there should be a 10us trigger

pulse followed by a 100ms(low) delay); the time taken for the pulse to return to the echo pin of the sensor is linearly proportional to the distance.

The value of time in (us) can then be converted to cm or inch using the following conversions uS / 58 = centimeters ; uS / 148 =inch.


I'm having some trouble programming the Arduino with Labview, I know the Arduino has 3 counter/timers however I'm not sure how to access them using Labview I would like to send out a TTL pulse as described above using one counter, and then use a second counter to count the TTL pulses back to the sensor.


also as I have the Arduino C program and library's for the ultra sensor, is it possible to use that code with Labview.



Any help with this would be great.








sensor datasheet:

1 2 3 ... 5 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (0)


  • Correct Answers - 2 points
  • Helpful Answers - 1 points