Skip to content
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

VL53l0X multiple interface with atmega 2560 using c libraray #38

Open
Aashutosh3804 opened this issue Dec 19, 2019 · 1 comment
Open

Comments

@Aashutosh3804
Copy link

How can I interface multiple 3 VL53L0X at same time with atmega 2560 using avr-gcc and not Arduino I seen a library based on this one but don't know how to use that for multiple sensors please help
Library used:
https://github.com/yetifrisstlama/vl53l0x-non-arduino

@kevin-pololu
Copy link
Member

Hi,

If you're still looking for help with this, you might want to start by reading ST's application note AN4846, "Using multiple VL53L0X in a single design". The general approach is to start with all sensors disabled using their XSHUT pins, then enable one sensor at a time and change its address to something unique before continuing with the next sensor.

We don't have an example program showing how to do this, but this seems to be a common enough question that I think we should consider adding a library example, and I'll keep this issue open to remind us of this. In the meantime, you can find some discussion and other users' code on our forum (this looks like it should work with our library). The forum is also a better place to ask if you need any help troubleshooting any code that uses our library, although we probably cannot offer much specific advice about using the modified library that you linked to (where it differs from ours).

Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants