Page 1 of 1

[SOLVED] VL53L0X "home made" Z-ranger

Posted: Fri Apr 28, 2017 11:06 am
by grifo7
Hi!

So I noticed 2 days ago there's a new deck, the Z-ranger deck. Before it was released I was trying to do something similar. To do so, I ordered a bunch of these boards with the same distance sensor: https://www.pololu.com/product/2490. But I never got to actually do something with them.

Now I was wondering if it was possible to use those boards with the Z-ranger drivers, since I already bought them. The layout (https://www.pololu.com/product/2490#lig ... ture0J7229) is a little bit different from the Z-ranger deck but I believe that's because of the built-in Voltage Regulator, no? Do you think it would be possible and if yes, do I need to change much the already made drivers?

Thank you :)
Grifo

Re: VL53L0X "home made" Z-ranger

Posted: Sat Apr 29, 2017 1:12 pm
by tobias
Sure it will work just fine. Just hook it up the same way the Z-ranger deck is wired and force the deck driver with

Code: Select all

CFLAGS += -DDECK_FORCE=bcZRanger
in your config.mk file and rebuild the FW.

As you have many of them maybe you can use some for obstacle avoidance as well ;-). That requires some coding though and hooking up each vl53 XSHUT signal so you can configure the i2c address one after the other.

Re: VL53L0X "home made" Z-ranger

Posted: Sun Apr 30, 2017 1:29 pm
by grifo7
Hello tobias!

Thank you for your answer :)

I did what you said and it worked :D I now get the height data on the BitCraze client!

That was exactly my plan when I bought them. I bought 6, 2 for each axis except the z axis (only facing down) and a spare one. I'll try to keep you posted with my results!