SRF02 Negative Readings

General & specific discussions on our Ultrasonic Rangers

Moderator: chris

SRF02 Negative Readings

Postby alshukrimi » Fri Dec 14, 2007 10:10 pm

Hello,

I frequently get negative readings from the SRF02 but it seems that the readings are approximately correct if I ignore the negative sign. for example, I was measuring a distance of 140cm and the SRF02 reading was -122cm. Can anybody explain that. Can I ignore the negative sign and consider the value every time?

Thanks,
alshukrimi
 
Posts: 4
Joined: Sun Nov 25, 2007 5:00 pm

Postby chris » Mon Dec 17, 2007 10:08 am

Hiya,

Sounds like the I2C is not working correctly to me, are you using a hardware I2C port or software implemented? Try posting your source code, it may be that the clock hold part of the I2C spec is not being used correctly.
User avatar
chris
 
Posts: 172
Joined: Wed Nov 08, 2006 3:13 pm
Location: Norfolk, England


Return to Ultrasonic Sensors

Who is online

Users browsing this forum: No registered users and 0 guests

cron