[SOLVED] distance sensor VL6180

Please do not post requests
User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: distance sensor VL6180 [SOLVED]

Post by RogerClark » Thu Jul 13, 2017 6:34 am

Thanks for letting us know.

User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: distance sensor VL6180 [SOLVED]

Post by RogerClark » Sat Jul 15, 2017 11:17 am

Umm

My sensor is a VL53L0XV2 and doesnt seem to work with that lib :-(

I will try this lib

https://github.com/pololu/vl53l0x-arduino

Edit.
That lib didnt compile, I probably need to add some functions to Wire as the compiler didnt know how to handle a Wire.write being passed a 32 bit int

I did quick hack in the library but it only seems to work for values < 1024

Also I don't get any value below 45.

And I don't think the number the lib is outputting is mm

User avatar
zoomx
Posts: 498
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: distance sensor VL6180 [SOLVED]

Post by zoomx » Fri Aug 04, 2017 7:51 pm

I checked the Adafruit library
https://github.com/adafruit/Adafruit_VL53L0X
and loaded the only one example: it compiles.

I used a core that has some months, 8 April 2017.

Since there is a thread about VL53L0X I posted there too.

Post Reply