- Sat Feb 21, 2015 11:33 am
#179950
Hi all - since this is my first post on this forum I'll introduce myself first, then pose my question. I'm a mechanical engineer and electronics hobbyist from Ontario, Canada. I've used many different dev. platforms over the years but have spent the most time using Atmel microcontrollers and Arduino. I've recently taken up Python programming on the Raspberry Pi.
I've been trying to get the ST VL6180X ToF distance sensor working on Raspberry Pi for a robotics project I've been building with my kids. I started this before the Sparkfun board was available so I'm actually using the ST Explorer board (http://www.st.com/web/catalog/tools/FM1 ... 7/PF260896). This board uses the same ST part and similar 2.8V power supply and level shifter setup as the Sparkfun part so I would expect behaviour to be the same.
I ported the Sparkfun Arduino library to Python and it seems to be functioning for the most part. I can connect to the sensor and read the part number and revision, etc. but when I try to setup for ranging and ALS readings it always returns zero mm distance and zero lux. I can't figure out what's going wrong.
I've posted the code here (https://bitbucket.org/310weber/st_vl6180x). If anyone is interested in getting this sensor going on Raspberry Pi, this should be a good starting point. I'd appreciate any feedback anyone can offer.
Thanks.
I've been trying to get the ST VL6180X ToF distance sensor working on Raspberry Pi for a robotics project I've been building with my kids. I started this before the Sparkfun board was available so I'm actually using the ST Explorer board (http://www.st.com/web/catalog/tools/FM1 ... 7/PF260896). This board uses the same ST part and similar 2.8V power supply and level shifter setup as the Sparkfun part so I would expect behaviour to be the same.
I ported the Sparkfun Arduino library to Python and it seems to be functioning for the most part. I can connect to the sensor and read the part number and revision, etc. but when I try to setup for ranging and ALS readings it always returns zero mm distance and zero lux. I can't figure out what's going wrong.
I've posted the code here (https://bitbucket.org/310weber/st_vl6180x). If anyone is interested in getting this sensor going on Raspberry Pi, this should be a good starting point. I'd appreciate any feedback anyone can offer.
Thanks.