Thanks Melanie for the reply.
I should have been more descriptive.
This SRF08 device is a 'new and improved' version of the familiar rangefinder and it is accessed thru the I2C bus.
For some reason, I haven't been able to find the right values to use with the I2CWRITE command to match up with what my Stamp program produces, using a more bit banging approach.
I have translated this into picbasic, basic, and it works fine. And it looks the same on the scope, or is close to what the stamp does.
The thing works now, so it's no big emergency. But I would like to reduce my program to two lines using the handy features of I2CWRITE AND READ.
I was first using an 18F452 and have now switched to a 16F877 which works much better. The 18F452 was very noisy for some reason. I was using 1K pull up resistors. Which worked fine for the Stamp and the 16F877
http://www.acroname.com/robotics/parts/R145-SRF08.html
http://www.nutsvolts.com/toc_Pages/jul03toc.htm
(Stamp Application)
Bookmarks