Skip to content

Latest commit

 

History

249 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToF-to-CAN

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.

Building

Installing dependencies

Make sure the following packages are installed: # TODO

Retrieve all git submodules:

git submodule update --init --depth=1

Generating the binary

Run 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.

Usage

TODO

Examples

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.sh

Then, choose which demo to run by moving into its directory. Run these commands to execute a demo:

make
make run

License

The 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.

Dependencies

This project depends on the following, each licensed under their respective terms:

  • the VL53L5CX driver in the tof-app/lib/vl53l5cx directory
  • the NuttX operating system, included as a git submodule
  • files in the config directory

About

CAN interface for the VL53L5CX Time-of-Flight sensor

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages