Hi, I just use SEN-24805, the latest model of UltraSonic sensor. I tried to change address from default to 0x7F, but it couldn’t. So I just want to know the real range of the I2C address.
Below is the code from github where from sparkfun darcuments
// These addresses are the min and max (respectively) of valid I2C addresses that can
// be used for the newest revision of the Qwiic Ultrasonic sensor.
const uint8_t kQwiicUltrasonicI2CAddressMin = 0x08;
const uint8_t kQwiicUltrasonicI2CAddressMax = 0x7F;
And I really curious about the latest firmware version which sparkfun gave us. You said that the latest one is 0x10 but the end of sourcode said ox00. So I want to know the latest version.
Are you using this example? It has some notes/comments about maybe needing to use example 2 first if the address is 0x00. You should be able to tell which sensor version you have like it said; is there an R on the board? If not, 0x00…if so, it should be 0x2F, as Ali said
Yes, default address is 0x2F, and it works but I need to use multiples sensors, so I need to set the address. but I can’t use 0x7F address, that’s the problem.
Unfortunately 0x7F is indeed a reserved address and simply will not work on most micro-controllers unless they use 10-bit I2C addressing. That 0x7F is actually a typo and needs to be changed so that it’s not allowed. Sorry for the confusion, I’ll get to correcting that shortly.