Kevin Walters writes on Instructables about connecting an Adafruit Gemma M0 microcontroller to a ST VL53L0X LiDAR ranging module.
The Adafruit microcontroller boards are easily connected to this sensor as they can speak the i2c protocol over their data pins.
The M0/M4 series have the advantage over other boards because they support a subset of Python which makes programming more accessible to a wider audience than C on an Arduino. This is a simple example using CircuitPython on a Gemma M0 board to read the distance values from a tinyLiDAR and indicate the distance by varying the brightness of the on-board RGB LED. The board must be the M0 version for Python support.
Note: Adafruit also make various distance sensing boards including one based on the VL53L0X.
A full writeup on the wiring is available as well as code in CircuitPython, the easy to code and use version of Python on microcontrollers. The code is available on GitHub here.
See the full story on Instructables.
from Adafruit Industries – Makers, hackers, artists, designers and engineers! http://bit.ly/2CKLTYE
via IFTTT
Комментариев нет:
Отправить комментарий