Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.71 KB

README.md

File metadata and controls

29 lines (16 loc) · 1.71 KB
Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C6 ESP32-H2 ESP32-S2 ESP32-S3

Component: XGZF4000

Component Registry

I2C driver and definition for XGZF4000 air flow sensor.

See XGZF4000 online datasheet.

In addition to the online version of the XGZF4000 Air Flow Sensor datasheet, an archived copy is also available within the repository. This archived version can be found at the location ./docs/XGZF4000-Air-Flow-Sensor-V2.2.pdf. This ensures that users have access to the datasheet even in offline scenarios or if the online version becomes unavailable.

Using the driver

Operation modes

New data from XGZF4000 can be obtained in Polling modes.

Note: The user is responsible for initialization and configuration of I2C bus.

After calling xgzf4000_new_sensor(), the user is responsible for periodically reading the air flow data from XGZF4000.

Simulator

To simulate this project, install Wokwi for VS Code. Open the project (at ./simulation) directory in Visual Studio Code, press F1 and select "Wokwi: Start Simulator".

Please note that Wokwi for VS Code is a commercial product and requires a license after a free trial period.

You may also use the online Wokwi simulator with this sample project.