Tuesday, March 18, 2008

SRF02 arduino address confusion

Well, I've been looking over the code from Tom Igoe for the Devantech SRF02 sonar based on arduino

http://www.tigoe.net/pcomp/code/category/code/arduinowiring/39

Well even though it worked right off the bat, I was terribly confused why the address for the SRF02 sensor was 0x70 instead of 0xE0 as it was in the Basic Stamp example I used.

Well aparently the I2C address standard only works from 0 to 127 the LSB is used for read / write so the 0xE0 becomes 0x70 for the address of the chip. I found the answer here

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1205634009/3

1 comment:

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!