Heightsensor VL6180

Firmware/software/electronics/mechanics
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Heightsensor VL6180

Post by tobias »

Porting the ST driver was a bit more work the anticipated. I've got everything compiling now but getting something working will take a bit longer...
mwall002
Beginner
Posts: 20
Joined: Wed Jul 01, 2015 4:48 am

Re: Heightsensor VL6180

Post by mwall002 »

Yeah, I have been working on it too and it seems to be way beyond my programming ability...
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Heightsensor VL6180

Post by tobias »

I got some ranging results. Doesn't seem to work as it should yet though as it only seems to range between 150- 200 mm. Anyway it should be good enough for you to start experimenting. I'm not using any interrupt functionality so the only thing you should need to wire is power and the i2c bus.

I pushed the driver on the vl6180x branch.

if you define VL6180X_LOG_ENABLE you should get a lot of prints to the cfclient console from the ST driver which might help when debugging.

Also I added some logging variables so one can plot the ranging in the cfclient.

Tell me how it works!
mwall002
Beginner
Posts: 20
Joined: Wed Jul 01, 2015 4:48 am

Re: Heightsensor VL6180

Post by mwall002 »

Thanks Tobias!! Check out the attached image. Looks like the sensor is reading! :)

Like you said, it looks like it needs a bit of fine tuning but at least I know it works now. The goal is to use the sensor to have a very controlled hover, so it needs to be working optimally.
Attachments
Screenshot - 2015-09-07 - 10^%41^%28.png
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Heightsensor VL6180

Post by tobias »

Great! Looks like you have similar behavior as I have. It does not read anything close. I guess it is a configuration thing, however I don't have any time to look into that right now so I'll leave it to you ;) .
Fr4nky
Beginner
Posts: 13
Joined: Tue May 13, 2014 7:00 pm
Location: Vienna

Re: Heightsensor VL6180

Post by Fr4nky »

ST released a new version of the sensor with a range of over 2m:
http://www2.st.com/content/st_com/en/pr ... 53l0x.html
This one looks very interesting for use with the CFN.
Post Reply