![]() |
|
|
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.
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.
4a if you are using LV 2009 simply copy and paste the picture of the code below into your block diagram.
4b if you are using an older version of LV i have attached the project below.
There are no comments on this document