Converting the VL53L01X Arduino Library

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Converting the VL53L01X Arduino Library

Post by deshipu » Sat May 13, 2017 11:04 pm

That's great! It means that I just need to add that missing bit, and it should work. I have to admit I didn't expect you to finish this so fast, congratulations!

mjs513
Posts: 11
Joined: Wed May 10, 2017 12:01 am

Re: Converting the VL53L01X Arduino Library

Post by mjs513 » Sun May 14, 2017 12:19 am

Thanks. Spent a couple late nights, plus I am stubborn. But like I said you all helped me with my questions otherwise it would have taken longer. Your version is a lot more polished, hopefully, it will take less space on the openmv which kept giving me a memory error (allocation of xxx bytes) message so I had to get creative.

mjs513
Posts: 11
Joined: Wed May 10, 2017 12:01 am

Re: Converting the VL53L01X Arduino Library

Post by mjs513 » Sun May 14, 2017 1:36 pm

I just ran your code and see what your mean. Up to about 200 mm it reads fairly accurately and then starts loosing accuracy. After about 300 it starts decreasing in values (only tried to about 600 mm). Sounds like just putting the timing budgets in it will work. One suggestion, recommend changing the functions names for start, stop and read to match the Pololu library functions. Think its more descriptive of the functions.

By the way, your code is a lot more efficient than mine and I am learning a few things from it on programming in python.

Thanks
Mike

hybotics
Posts: 33
Joined: Tue Apr 03, 2018 2:58 am
Contact:

Re: Converting the VL53L01X Arduino Library

Post by hybotics » Thu Apr 05, 2018 7:22 pm

[quote=deshipu post_id=19682 time=1494710080 user_id=653]
I'm publishing it, because I managed to get some readings from the sensor with it. However, the readings I got are wrong.[/quote]
Did you remove the protective film from the sensor? I just went through this myself.

8-Dale

nalexopo
Posts: 1
Joined: Wed Apr 18, 2018 9:00 am

Re: Converting the VL53L01X Arduino Library

Post by nalexopo » Wed Apr 18, 2018 9:05 am

Hello and thanks for the driver

I am running this library on fipy and even though it works fine for a few minutes. It seems to get an I2c bus error that halts the program. Has anyone else ran into this problem before? I am trying to figure out if there is something wrong with fipy or the library.

Post Reply