Help needed to build library for VL53L1X, can pay if we can get it to work

314 views
Skip to first unread message

Juan Pablo Alcayaga

unread,
Mar 22, 2018, 8:23:32 PM3/22/18
to London Hackspace
Hi guys, 

I've got some of these new VL53L1X Time Of Flight chips and they work with the X-NUCLEO-53L1A1 dev board but i want to get it working with a Pro Micro for a project I am working on but there isn't currently a library available. 

There is a library for the VL53L0X but i have been trying to understand how the library is built but I'm not too familiar with C. 

I'm hoping to pair program with someone as I have the hardware and can test as we go, I can also pay the lucky someone should we get it running. So who's in?

Adrian Godwin

unread,
Mar 22, 2018, 8:27:54 PM3/22/18
to london-hack-space
I'm interested in doing something with those, if I can find the time.


--
You received this message because you are subscribed to the Google Groups "London Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to london-hack-space+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Juan Pablo Alcayaga

unread,
Mar 22, 2018, 8:36:55 PM3/22/18
to London Hackspace
Cool, can you help out with the arduino library? 
To unsubscribe from this group and stop receiving emails from it, send an email to london-hack-sp...@googlegroups.com.

Adrian Godwin

unread,
Mar 22, 2018, 8:41:38 PM3/22/18
to london-hack-space
Probably. Lots of background in C though not a big fan of C++.

There seem to be several arduino libraries around for the vl53l0x that might be modified. The adafruit one seems a bit overengineered. There's a polulu one that's not so huge but is probably a bit less complete. Need to compare the datasheets to see how similar they are.

 

To unsubscribe from this group and stop receiving emails from it, send an email to london-hack-space+unsubscribe@googlegroups.com.

Juan Pablo Alcayaga

unread,
Mar 22, 2018, 9:01:35 PM3/22/18
to London Hackspace
Thats great. I think i found the same libraries. I had a bit of trouble wading through the adafruit code but maybe together we can get something working. When are you free to chat about it over a beer? (Beers are on me)

mash...@gmail.com

unread,
Apr 11, 2018, 5:40:06 PM4/11/18
to London Hackspace
I'm also interested. 
Recently about bare units from farnell and a breakout board, but I desperately need arduino compatible code. 
I'll share any info I find.

Jack Chidley

unread,
Apr 11, 2018, 5:54:51 PM4/11/18
to London Hackspace
This shouldn’t be too hard. Arduino is basically a library for C++ and C is basically a superset for C. Look up using C libraries within C++ - that’s how you do it. i.e. treat the library for the Nucleo as an external C library for the Arduino (C++).

The Arduino pins are aliases from the underlying pins for the specific board.

Jack Chidley

unread,
Apr 11, 2018, 6:01:23 PM4/11/18
to London Hackspace
Edit: C++ is, broadly, as superset of C. C++ was originally just a pre-processor for C. These days people would call that it a transpiler for C but I’d just call it a compiler.

Jack Chidley

unread,
Apr 11, 2018, 6:05:54 PM4/11/18
to London Hackspace
When you are programming for the Arduino you are programming is a dumbed down version of C++ with an extremely limited toolset.

Adrian Godwin

unread,
Apr 15, 2018, 11:09:18 AM4/15/18
to london-hack-space
There is now a Sparkfun library for this sensor. It's much smaller and simpler that ST's one, but it doesn't allow for tuning (which was necessary for Juan's project).

https://github.com/sparkfun/SparkFun_VL53L1X_Arduino_Library/blob/master/src/SparkFun_VL53L1X_Arduino_Library.cpp

On Wed, Apr 11, 2018 at 11:05 PM, Jack Chidley <ja...@chidley.org> wrote:
When you are programming for the Arduino you are programming is a dumbed down version of C++ with an extremely limited toolset.
--
You received this message because you are subscribed to the Google Groups "London Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to london-hack-space+unsubscribe@googlegroups.com.

antonvino

unread,
Apr 26, 2018, 8:04:41 PM4/26/18
to London Hackspace
FYI tuning can be done in the GUI provided by ST or using their C sample code and then you have the configuration settings that you can save in the code.

I have found this sensor to be rather disappointing and inaccurate, but it might work for close range things. I'm curious as to what are you trying to build with it?


On Monday, April 16, 2018 at 1:09:18 AM UTC+10, Adrian Godwin wrote:
There is now a Sparkfun library for this sensor. It's much smaller and simpler that ST's one, but it doesn't allow for tuning (which was necessary for Juan's project).

https://github.com/sparkfun/SparkFun_VL53L1X_Arduino_Library/blob/master/src/SparkFun_VL53L1X_Arduino_Library.cpp
On Wed, Apr 11, 2018 at 11:05 PM, Jack Chidley <ja...@chidley.org> wrote:
When you are programming for the Arduino you are programming is a dumbed down version of C++ with an extremely limited toolset.

--
You received this message because you are subscribed to the Google Groups "London Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to london-hack-sp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages