GithubHelp home page GithubHelp logo

isabella232 / vl6180 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stm32duino/vl6180

0.0 0.0 0.0 44 KB

Arduino library to support the VL6180 Time-of-Flight ranging sensor

License: BSD 3-Clause "New" or "Revised" License

C++ 76.20% C 23.80%

vl6180's Introduction

VL6180

Arduino library to support the VL6180 proximity sensor

API

This sensor uses I2C to communicate. And I2C instance is required to access to the sensor. The API provides simple distance measure.

Examples

There are 3 examples with the VL6180 library.

In order to use these examples you need to connect the VL6180 satellite sensor directly to the Nucleo board with wires as explained below:

  • pin 1 (INT) of the VL6180 satellite connected to pin A2 of the Nucleo board
  • pin 2 (SCL) of the VL6180 satellite connected to pin D15 (SCL) of the Nucleo board with a Pull-Up resistor of 4.7 KOhm
  • pin 3 (GPIO) of the VL6180 satellite connected to pin A1 of the Nucleo board
  • pin 4 (SDA) of the VL6180 satellite connected to pin D14 (SDA) of the Nucleo board with a Pull-Up resistor of 4.7 KOhm
  • pin 5 (AVDD) of the VL6180 satellite connected to 3V3 pin of the Nucleo board
  • pin 6 (GND) of the VL6180 satellite connected to GND of the Nucleo board
  • VL6180_Sat_HelloWorld: This example code is to show how to get the proximity values of the VL6180 satellite sensor in polling mode.
  • VL6180_Sat_Asynchronous: This example code is to show how to get the proximity values of the VL6180 satellite sensor using the asynchronous mode.
  • VL6180_Sat_Interrupt: This example code is to show how to setup the VL6180 satellite sensor using the interrupt mode with continuous measurements. At the beginning the sensor is configured to generate the interrupt on the new sample ready event; pushing the user button, the sensor is configured to generate the interrupt when the measurement is lower than 100 mm; pushing the user button again, the sensor is configured to generate the interrupt when the measurement is higher than 200 mm; pushing the user button again, the sensor is configured to generate the interrupt when the measurement is out of the window range between 100 mm and 200 mm; pushing the user button again the sensor is configured in the initial state and so on.

Documentation

You can find the source files at
https://github.com/stm32duino/VL6180

The VL6180X datasheet is available at
https://www.st.com/content/st_com/en/products/imaging-and-photonics-solutions/proximity-sensors/vl6180.html

vl6180's People

Contributors

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