NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Devantech SRF04 Rangefinder VI     [LabVIEW for the ARM microcontroller LM3S8962]

VERSION 4

Created on: Aug 21, 2009 1:19 PM by UWvd - Last Modified:  Sep 1, 2009 12:04 PM by muya

The following code use a Devantech SRF04 Ultrasonic Rangefinder on the [LabVIEW for the ARM microcontroller LM3S8962] to display distance data.

Note: sampling is limited to 1ms subunits, so precision is thus limited to increments of 17cm due to speed of sound.

1 Get a LM3S8962

how to buy a [LabVIEW for the ARM microcontroller LM3S8962]

 

2 Install software and create a project for the [LabVIEW for ARM microntroller LM3S8962].

http://decibel.ni.com/content/docs/DOC-6233

 

3 Wire pins 14, 16, 33 and 34 as shown.

Ultrasonic wiring.JPG

 

4 Add GPIO_OUT_C7 and GPIO_IN_C5 as new elemental IO.

One can do this by right clicking on the EK-LM3S8962 in the project explorer and selectin new elemental IO.

GPIO_OUT_C7 can be found under digital output. GPIO_IN_C5 can be found under digital input.

pic0.JPG

4a if you are using LV 2009 simply copy and paste the picture of the code below into your block diagram.

 

SRF04_driver.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4b if you are using an older version of LV i have attached the project below.

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...

More by UWvd