11-08-2015 04:57 PM
Hi Friends!
I would like to calculte distance using ultrasonic sensor SRF08 ( http://coecsl.ece.illinois.edu/ge423/DevantechSRF08UltraSonicRanger.pdf ) by using I2C bus in labview. Can some one help me in this regard?
*Please remember for addressing srf08 (help from data sheet of srf08) e.g if the address is "xE6" (1 long flash and 3 short flashes of on board LED) which is = b1110 0110== >> shift to right one bit and the actual address will be== b 0111 0011 or x73.
11-09-2015
04:46 PM
- last edited on
10-20-2025
04:09 PM
by
Content Cleaner
The following White Paper explains how to communicate with a I2C bus in labview.
I haven't found any specifics for this particular sensor being used in labview, or calculating distance in a similar way. At the moment this is a bit of a broad question, we might be able to give you better answers if you have more specific questions about this , or if you have doubts how to do something in specific.
Regards
11-10-2015 04:07 PM
First thanks for quick reply, i beg perdon to do not explain my aim/task correctly.
well i am using embedded system MyRIO 1900.
I want to get distance calculation using ultrasonic sensor (srf08) by using Bus (MXP port A or B of MyRIO,Pin DIO14 and DIO15).
U r right there is no such example on internet using LabView + MyRIO and Ultrasonic srf08.
There r some bilten examples on SRF08 in FRC (First robotics Competition) by National instrument but not on Labview +MyRIo+SRF08.
11-11-2015 03:16 PM
Which part exactly do you need help understanding. Is it the communicating the SRF08, or how to get the distance using the ultrasonic sensor?
11-13-2015 06:49 PM
I need help regarding distance CALCULATION using srf08 sensor only. Can u tell me how to read specific number of bytes for example i set a value to i2c-Vi to read only 4 bytes. After that i had to compare 3rd and 4th byte and their difference and devision by 2 will be my actual distance (d). 😞
11-14-2015 05:07 PM
Hi again!
I successfully get my distance calculation using Srf08, but need some calibration as im facing problem between certain amount of range. My sensor give some random and wrong readings for example less than 40cm its start distortion. Hope i will get some solution. If some one have an idea, can help me in this regard?