I need to run 4 LiDAR sensors on my raspberry pi 4B but bit banging won't seem to work.
Currently I'm using the Garmin LiDAR Lite V3 sensor, and I got one to work fine on the hardware i2c bus. I am using the latest version of 64 bit raspberry pi lite os. I had to set a dtoverlay of bcm2708 to get the first one to work because the latest driver doesn't work well with those kinds of devices I was told.
I tried to set up a bit-banged bus and the overlay seems to set fine, and I can even see the bus and even detect the device on the bus. However, no matter what I try the sensor returns only zeroes.
I've tried adding pull-up resistors between the bit-banged i2c bus and the sensor but that doesn't seem to change anything. I tried 4.7kohm and 2.2kohm resistors. I've also tried to slow down the speed of the software i2c but that didn't work either. I've also tried unplugging the other working sensor and just trying the bit banged bus and that still did not work.
Please let me know if there's something I'm missing or if I need to change my set up e.g different sbc, different sensor.
Here are the stats of the LiDAR unit for reference:
Update rate: up to 500 Hz
Interface: I2C or PWM
Power (operating voltage): 4.75-5 VDC; 6 V Max
Current consumption: 105ma, idle; 130ma, continuous
Laser wave length/Peak power: 905 nm/1.3 watts
Currently I'm using the Garmin LiDAR Lite V3 sensor, and I got one to work fine on the hardware i2c bus. I am using the latest version of 64 bit raspberry pi lite os. I had to set a dtoverlay of bcm2708 to get the first one to work because the latest driver doesn't work well with those kinds of devices I was told.
I tried to set up a bit-banged bus and the overlay seems to set fine, and I can even see the bus and even detect the device on the bus. However, no matter what I try the sensor returns only zeroes.
I've tried adding pull-up resistors between the bit-banged i2c bus and the sensor but that doesn't seem to change anything. I tried 4.7kohm and 2.2kohm resistors. I've also tried to slow down the speed of the software i2c but that didn't work either. I've also tried unplugging the other working sensor and just trying the bit banged bus and that still did not work.
Please let me know if there's something I'm missing or if I need to change my set up e.g different sbc, different sensor.
Here are the stats of the LiDAR unit for reference:
Update rate: up to 500 Hz
Interface: I2C or PWM
Power (operating voltage): 4.75-5 VDC; 6 V Max
Current consumption: 105ma, idle; 130ma, continuous
Laser wave length/Peak power: 905 nm/1.3 watts
Statistics: Posted by dmolnar2005 — Thu Feb 27, 2025 6:41 pm — Replies 2 — Views 48