[SOLVED] VL53L0X "home made" Z-ranger

Firmware/software/electronics/mechanics
Post Reply
grifo7
Beginner
Posts: 5
Joined: Wed Apr 05, 2017 1:28 pm

[SOLVED] VL53L0X "home made" Z-ranger

Post 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
Last edited by grifo7 on Wed Sep 13, 2017 11:30 am, edited 1 time in total.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: VL53L0X "home made" Z-ranger

Post 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.
grifo7
Beginner
Posts: 5
Joined: Wed Apr 05, 2017 1:28 pm

Re: VL53L0X "home made" Z-ranger

Post 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!
Post Reply