This is a driver library for an air velocity sensor.
Product Link (https://www.dfrobot.com)
SKU: NULL
This is a driver library for an air velocity sensor.
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.
/**
* @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);
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 | √ |
- 2024-12-02 - Version 1.0.0 released.
Written by TangJie([email protected]), 2021. (Welcome to our website)