Giter VIP home page Giter VIP logo

vl53l0x_tm4c123g's Introduction

VL53L0X ToF Ranging Sensor Library for TM4C123G

Introduction

Driver Library for STMicroelectronics VL53L0X Time-of-Flight Ranging Sensor on TI TM4C123G MCU. Example Projects using this dirver is available in project folder. Keil uVision project files are included, which means you can just simply double click on them to open the example files and load to your TM4C123, if using Keil. Otherwise, you have to manage all source files by yourself. Source code used and provided by STMicroelectronics is in core and platform folders. Other files used in this repository are also in lib folder.

Documents

Protocols

VL53L0X only runs on I2C protocol. To use different I2C ports, adjust the preprocessor setting in I2C.h.

Multiple VL53L0Xs

To use multiple VL53L0Xs at the same time using the same I2C bus, we need to first change the device I2C address. To avoid the address conflict during the address modification, the XSHUT pin is used. Pulling XSHUT down pin low puts VL53L0X into shutdown mode. By keeping only one sensor awake at a time, you can modify the device address for the awake VL53L0X, using the VL53L0X_setAddress API. To wire multiple devices, you can use a few GPIO vins from TM4C123, a shift register with separated input and output clock like the 74HC595 or a decoder IC, if saving pins is needed for your project. Of course, you should try any other circuit configuration, if you think it's needed.

You can view my current set up for multiple sensor in xshut.c. A few GPIO pins on Port E are used to control the xshut pins on multiple sensors.

Projects

Single Ranging Default Mode

VL53L0X_SingleRanging_1

Interfacing 1 sensor and output the result to serial output.

VL53L0X_SingleRanging_1_ST7735

Interfacing 1 sensor and output the result to a ST7735 display.

VL53L0X_SingleRanging_2

Interfacing 2 sensor and output the result to serial output.

VL53L0X_SingleRanging_2_ST7735

Interfacing 2 sensor and output the result to a ST7735 display.

VL53L0X_SingleRanging_3

Interfacing 3 sensor and output the result to serial output.

VL53L0X_SingleRanging_3_ST7735

Interfacing 3 sensor and output the result to a ST7735 display.

VL53L0X_SingleRanging_4

Interfacing 4 sensor and output the result to serial output.

VL53L0X_SingleRanging_4_ST7735

Interfacing 4 sensor and output the result to a ST7735 display.

Continuous Ranging Mode

In Dev

Problems and Bugs

If you find any bug or problem, please create new issue or a pull request with a fix in the repository. Or you can simply email me about the problem or bug at [email protected] . Much Appreciated!

Copyright Note

This repository adpated and modified some source code from Adafruit's VL53L0X Arduino driver to make it run on TI TM4C123G MCU.

vl53l0x_tm4c123g's People

Contributors

tariqmuhanna avatar zeelivermorium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.