Skip to content

cdjq/DFRobot_FS3000

Repository files navigation

DFRobot_FS3000

This is a driver library for an air velocity sensor.

Product Effect Image Product Effect Image

SKU: NULL

Table of Contents

Summary

This is a driver library for an air velocity sensor.

Installation

To use this library, first download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder.

Methods

    /**
     * @fn setRange
     * @brief Set the airflow detection range.
     * @param range AIRFLOW_RANGE_7_MPS: FS3000_1005, AIRFLOW_RANGE_15MPS: FS3000_1015
     * @return 1: Setting successful, 0: Setting failed.
     */
    uint8_t setRange(uint8_t range);

    /**
     * @fn readRaw
     * @brief Get the raw data from the sensor.
     * @return Raw data from the FS3000 register.
     */
    uint16_t readRaw(void);

    /**
     * @fn readMeterPerSec
     * @brief Get the airflow velocity in meters per second (m/s).
     * @return Airflow velocity data.
     */
    float readMeterPerSec(void);

    /**
     * @fn readMilePerHour
     * @brief Get the airflow velocity in miles per hour (mph).
     * @return Airflow velocity data.
     */
    float readMilePerHour(void);

Compatibility

MCU SoftwareSerial HardwareSerial IIC
Arduino Uno X X
Mega2560 X X
Leonardo X X
ESP32 X X
ESP8266 X X
micro:bit X X
FireBeetle M0 X X
Raspberry Pi X X

History

  • 2024-12-02 - Version 1.0.0 released.

Credits

Written by TangJie([email protected]), 2021. (Welcome to our website)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published