Comments (7)
The i2cdetect
output seems very weird indeed, it should display --
at all or almost all addresses.
After quick search I've found this very related SE post: https://raspberrypi.stackexchange.com/questions/32719/i2cdetect-shows-every-possible-address - make sure that i2c1
is properly enabled (e.g. via raspi-config
) and wired.
I can try verifying this behaviour on my RPi4, but AFAIR the last time I've checked I had --
on all addresses but the used ones.
from vl53l0x-linux.
thank you for the reply
for some reason some gpio pins works (no weird behaviour on i2cdetect) and other do not
I tried both on 4gb and 8gb version of raspi4/b and I could not make it work properly
again one sensor works just fine, but with more than one the set of the address fails
from vl53l0x-linux.
Can you share your wiring diagram?
Also, what type of a carrier board for the sensors are you using? Pololu, DFRobot, Adafruit, some custom one?
from vl53l0x-linux.
I tried different gpio pins so they might be different from previous posted code
the sensor used is this one
also with another python library I am able to stream both sensors at 30hz no problem
from vl53l0x-linux.
On all the pictures of the board I've found the SDA
and the SCL
pins are the other way around compared to your sketch - could you check it?
Also, verify the resistance between I2C lines and ground, it should be very high or even open line - maybe something is shorting where it shouldn't and it pulls one of the lines down (in particular, the SDA
data line).
Edit: are the GPIO files used by this library (https://github.com/mjbogusz/vl53l0x-linux/blob/master/VL53L0X.cpp#L496) valid on RPi4? AFAIR this was developed for BeagleBone, so the paths can be different.
from vl53l0x-linux.
Oh this is really helpful thank you!
I will check asap and come back to you
from vl53l0x-linux.
@mjbogusz
thank you so much for your help
I just needed to change the file reference to access the gpio
I tried both on Raspberry pi4 and Khadas VIM3L, I confirm everything works perfectly
thank you again!
from vl53l0x-linux.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vl53l0x-linux.