# DFRobot_LWLP **Repository Path**: dfrobot/DFRobot_LWLP ## Basic Information - **Project Name**: DFRobot_LWLP - **Description**: No description available - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-06-02 - **Last Updated**: 2024-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DFRobot_LWLP - [中文版](./README_CN.md) This high-resolution differential pressure sensor with I2C communication is used to measure the difference in pressure across two points on a device. A high-performance MEMS pressure chip and a special conditioning chip are encapsulated inside the sensor. It will give you a comparative measurement between two points. Besides, the sensor IC adopts a unique multi-stage temperature-compensation algorithm to reduce the effect of environment on the output.
**NOTE**: In order to ensure the measurement resolution and the sensor life, please use the sensor in the clean air. Do not let water enter the nozzle of the sensor, or it will cause damage to the sensor. ![产品效果图](./resources/images/SEN0343.png) ## Product Link (https://www.dfrobot.com/product-2096.html) SEN0343: Fermion: LWLP5000 Differential Pressure Sensor - ±500pa (Breakout) ## Table of Contents * [Summary](#summary) * [Installation](#installation) * [Methods](#methods) * [Compatibility](#compatibility) * [History](#history) * [Credits](#credits) ## Summary 1.Read the pressure difference and temperature value of the differential pressure sensor
## Installation To use this library, please download the library file first, and paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder. ## Methods ```C++ /** * @fn begin * @brief Initialize the function * @return Return 0 indicates a successful initialization, while other values indicates failure and return to error code. */ int begin(); /** * @fn getData * @brief Get sensor data of sigle measurement * @return Data of struct type */ sLwlp_t getData(void); /** * @fn getfilterData * @brief Filter processing funcition, get sensor data processed by this function * @return Data of struct type */ sLwlp_t getfilterData(void); ``` ## Compatibility MCU | Work Well | Work Wrong | Untested | Remarks --------------| :----------: | :----------: | :---------: | ----- Arduino Uno | √ | | | Mega2560 | √ | | | Leonardo | √ | | | ESP32 | √ | | | micro:bit | √ | | | ## History - 2019/8/25 - Version 1.0.0 released. ## Credits Written by fengli(li.feng@dfrobot.com), 2019.8.25 (Welcome to our [website](https://www.dfrobot.com/))