3/9/2023 0 Comments Lidar lite v3 datasheetWrite(0x1a, dataBytes, lidarliteAddress) Write the new I2C device address to registers Write(0x19, dataBytes, lidarliteAddress) Write(0x18, dataBytes, lidarliteAddress) Read ((0x16 | 0x80), 2, dataBytes, false, lidarliteAddress) Read UNIT_ID serial number bytes and write them into I2C_ID byte locations SetI2Caddr function from library void LIDARLite::setI2Caddr(char newAddress, char disableDefault, char lidarliteAddress) Serial.begin(115200) // Initialize serial connection to display distance readings However it doesn't seem to work, after I uploaded a code the serial monitor display > nackĪnd when I'm using i2c scanner it still show a default address (0圆2). I'm trying to change my Lidar Lite v3's i2c address on arduino mega2560 using a function from LidarLite library from 0圆2 to 0圆3. I have 2 Lidars which are Lidar Lite v3 and Lidar Lite v4, both of these sensor having the same i2c address.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |