Giter Site home page Giter Site logo

dfrobot_vl53l0x's Introduction

VL53L0 Distance Ranging Sensor

World smallest Time-of-Flight ranging and gesture detection sensor

SVG1

DFRobot_VL53L0X Library for Arduino

This library provides the VL53L0X laser rangefinder API function

Ready to start

    //i2c_addr:Set I2C sub-device address
    void begin(uint8_t i2c_addr);

Set operational mode to VL53L0X

    /*!
     *  @brief Set operational mode to VL53L0X
     *
     *  @param  mode:  Work mode settings
     *      Single : Single mode
     *      Continuous : Back-to-back mode
     *  @param  precision: Set measurement precision
     *      High:High precision(0.25mm)
     *      Low: Low precision(1mm)
     */
    void setMode(uint8_t mode, uint8_t precision);

Start measuring distance

    void start();

Stop measurement

    void stop();

get distance data

    uint16_t getDistance();

get ambient count

    uint16_t getAmbientCount();

get signal count

    uint16_t getSignalCount();

get Status flag

    uint8_t getStatus();

Compatibility

MCU Work Well Work Wrong Untested Remarks
FireBeetle-ESP32
FireBeetle-ESP8266
FireBeetle-BLE4.1

Credits

Written by lixin([email protected]), 2017. (Welcome to our website)

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.