Skip to content

About

Quick drop-in rev of vl53l5cx Lidar Code in Micrpython for PICO Pi Board.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vl53l5cx_for_PICO_Pi_in_Micropython_Code

This is meant as a Quick-Drop-in Code rev of VL53L5CX Lidar Code in Micrpython for PICO Pi Board.

This is a group of files for running the Lidar VL53L5CX on PICO , by copying onto PICO Pi Directiory with Thonny.

I spent a large chunk of time trying to figure out how to use the vl53l5cx Lidar on PICO or arduino. Arduino Uno/Nano can't do this because a chunk of RAM is needed to process the readings.

But, code for the PICO kept refeing back to Pimoroni code / Breakout_vl53l5cx : https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/examples/breakout_vl53l5cx/vl53l5cx_demo.py . Which is not correct , because this code is built to run on Linux on raspberry Pi, and the PICO can not support this code (no Linux and too many files for the flash).

The Code is actually from : https://github.com/mp-extras/vl53l5cx

The support code (which needs to be dropped into PICO as dir /vl53l5cx) : https://github.com/mp-extras/vl53l5cx/tree/main/vl53l5cx

And, best working code for the Lidar : https://github.com/mp-extras/vl53l5cx/blob/main/examples/basic.py

This code rev is simple :

  1. Copy the dir /vl53l5cx onto the PICO - with Thonny.

  2. Copy vl53l5cx_firmware.bin onto PICO Root Dir (/).

  3. And, add basic.py onto the PICO Root dir (/) to execute. This file can be modified - to return readings to other calling code files.

The Revisions Dir is just versions of this code. Full_Code - just includes other support files for Linux work.

Hope this helps people to use the Lidar vl53l5cx easily on PICO now !


About

Quick drop-in rev of vl53l5cx Lidar Code in Micrpython for PICO Pi Board.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages