Has anyone been able to get the VL53L1X to work on an ESP device? I tried an esp12 (Wemos D1 mini) and an esp32 dev board but the sensor just fails to initialize. It works fine on a Due arduino board with the test code, but can’t seem to get it to work on an esp device. Any suggestions?
I get this when trying to continuous sample code provided:
Someone else on our forum might have some experience with that, but we do not have any specific advice for using a VL53L1X with an ESP-8266-based board like the one you are using. You might consider reviewing our VL53L1X library and creating a version that works for your microcontroller.
Making my own version is a little above me I think. Maybe one day I’ll have the time for something like that. I may just have to shelf these for a while and wait and see if something comes out. Thanks for checking though.
Just as a followup, I was able to get this working. So for anyone looking to do similar, you need to specify the Wire pins to use.
With my D1 mini, I just changed the line in the example code from Wire.begin();
to Wire.begin(D6, D5);
and used the pins actually labeled D6 and D5 (not the Arduino pinout for esp8266 devices). And it works.