Air Velocity Sensor Breakout - FS3000 Hookup Guide
Software Setup and Programming
If this is your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not previously installed an Arduino library, please check out our installation guide.
SparkFun has written a library to work with the Qwiic Air Velocity Sensor. You can obtain this library through the Arduino Library Manager by searching for "SparkFun FS3000". Find the one written by SparkFun Electronics and install the latest version. If you prefer downloading libraries manually, you can grab them from the GitHub Repository or by clicking on the button below.
Readings
The FS3000 has a response time of 125ms. In the provided example, we are only taking readings from the sensor once per second, so this is well above the response time. If you wish to take a higher frequency of readings, make sure to add in at least a 125ms delay in between each read.
To calculate or understand airflow and how it relates to diameter, you can use this tool.
Functions
Below is a list of the functions that can be used with the Air Velocity Sensor, along with a description of what each function does and how to use it.
- FS3000() - Base constructor
- begin() -- Initialize the sensor. Returns false if sensor is not detected.
- isConnected() -- Returns true if I2C device ack's
- fs.setRange() -- Sets the range for the IC that is connected to the Arduino microcontroller. You can input
AIRFLOW_RANGE_7_MPS
for the FS3000-1005 orAIRFLOW_RANGE_15_MPS
for the FS3000-1015. - readRaw() -- Read from sensor, checksum, return raw data (409-3686)
- readMetersPerSecond() -- Read from sensor, checksum, return m/s (0-7.23)
- readMilesPerHour() -- Read from sensor, checksum, return mph (0-33ish)