SRFO8 & labview or O-scope
tehmoordar
Posts: 52
Hi All
I am working on this range sensor from Devantech--earlier I was using it on BS2 (successfully) and now I am trying to get the range from this sensor in to my labview code (labview 7.1) using DAQ card 6024.
I have the understanding that the SDA and SCL are working in synchronization. As SCL goes high every 65msec and data is transfered through SDA every 65 msec ( default).
Now as SCL goes high ping is emitted which strikes and comes back and the time that elapse between is registered in the SRF08 in binar code which is the transferred through SDA.
Now my problem is how to caculate the range and can I calculate time when the ping is emitted and when it is returned. Can I see or calculate in my labview code using daq card. Or can I calculate the time on O-scope.
Thankyou
I am working on this range sensor from Devantech--earlier I was using it on BS2 (successfully) and now I am trying to get the range from this sensor in to my labview code (labview 7.1) using DAQ card 6024.
I have the understanding that the SDA and SCL are working in synchronization. As SCL goes high every 65msec and data is transfered through SDA every 65 msec ( default).
Now as SCL goes high ping is emitted which strikes and comes back and the time that elapse between is registered in the SRF08 in binar code which is the transferred through SDA.
Now my problem is how to caculate the range and can I calculate time when the ping is emitted and when it is returned. Can I see or calculate in my labview code using daq card. Or can I calculate the time on O-scope.
Thankyou
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
yes we just have to read the right register--- but is there any way else beside using basic stamp editor environment to read the register. any other method of seeing what distance has been calculated by this sensor.
CAn we set it some how that it read only the farthest obstacle.
As far as reading the SRF-08 without a BASIC Stamp, I suppose it could be done if your software supports some sort of physical interface to an I2C bus and can send and receive data on that bus. To be candid, using the BASIC Stamp as the interface between your SRF-08 and LabView is probably the least complicated way to handle things.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
as you said it is least complicated way of handling the data --- question is how lab view interact with sensor through I2c bus
Thankyou