This firmware offers a CAN interface for the VL53L5CX Time-of-Flight (ToF) sensor, controlled via I2C by a STM32L432KC microcontroller. The project is built on top of the NuttX embedded operating system.
Make sure the following packages are installed: # TODO
Retrieve all git submodules:
git submodule update --init --depth=1Run make ID=<sensor-id> to compile the firmware. On success, the file
submodules/nuttx/nuttx.bin is generated. Flash this file into the
microcontroller by running make program ID=<sensor-id> (which uses
OpenOCD) or using another flashing software.
TODO
The demo directory contains examples of how to use the interface.
If the computer is able to connect to the sensor via CAN bus, run the following commands to configure the CAN interface:
cd demo
sudo ./can-config.shThen, choose which demo to run by moving into its directory. Run these commands to execute a demo:
make
make runThe source code of the application, contained in the tof-app
directory, is licensed under the GNU General Public License, either
version 3 of the License or any later version.
This project depends on the following, each licensed under their respective terms:
- the VL53L5CX driver in the
tof-app/lib/vl53l5cxdirectory - the NuttX operating system, included as a git submodule
- files in the
configdirectory