-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase I2C clock frequency ? #9
Comments
How did you manage to connect multiple sensors? |
Just reset the module to different addresses in init() (it's in the library 😄 ) |
Have you managed to increase or decrease the frequency at which the sensor operates? I've tried Wire.begin (21, 22, 100000); change the frequency, in Setup, but this only changes the frequency of the microcontroller and does not affect the sensor in any way. |
To understand how long the VL6180X sensor takes to get a distance reading, I recommend reading the "Range timing" section of the VL6180X datasheet. This is independent of the I2C frequency, which is just the speed that the microcontroller uses to talk to the sensor. This library sets This library sets If you are using continuous mode, you will also need to set the |
Hi, Great and in-depth Library for this sensor. I loved it!
However, I am so busted as I am setting up a series of them and reading all of them currently takes a quite long time. I measured the I2C protocol used for the library has defaulted at a clock frequency of 100000.
I have tried many attempts to improve the sample rate, such as changing the wire library clock frequency in my code, as well as in the library code (VL6180X.cpp) or even in macro library code but none worked. I also tried the method mentioned here, but it does not help as well.
Is there any way to improve the time takes to read multiple VL6180Xs? I'd appreciate any help
The text was updated successfully, but these errors were encountered: