Skip to content

Commit 9464776

Browse files
gcormierjesserockz
andauthored
Documentation for XGZP68xx series (esphome#3285)
Co-authored-by: Jesse Hills <[email protected]>
1 parent 31165f4 commit 9464776

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

components/sensor/images/6897d.jpg

26.9 KB
Loading

components/sensor/xgzp68xx.rst

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
CFSensor XGZP68xx Series Differential Pressure Sensor
2+
=====================================================
3+
4+
.. seo::
5+
:description: Instructions for setting up the CFSensor XGZP68xx Series Differential Pressure sensor.
6+
:image: 6897d.jpg
7+
:keywords: XGZP68xx, XGZP6897, XGZP6899, XGZP6899D, XGZP6897D
8+
9+
The XGZP68xx Differential Pressure sensor allows you to use digital differential pressure sensors such as the 6899D
10+
(`datasheet <https://cfsensor.com/wp-content/uploads/2022/11/XGZP6899D-Pressure-Sensor-V2.8.pdf>`__) or
11+
6897D Series (`datasheet <https://cfsensor.com/wp-content/uploads/2022/11/XGZP6897D-Pressure-Sensor-V2.7.pdf>`__)
12+
sensors with ESPHome. The sensors pressure ranges are specified in the datasheets.
13+
14+
Calibrating the sensor can be done by checking the value that is returned when
15+
the ports are open to the air. This value should be 0. If it is not, you can use the offset option to correct the
16+
reading. For example, if your sensor is reading -40Pa when the ports are disconnected, you can set the offset to 40.
17+
18+
.. figure:: images/6897d.jpg
19+
:align: center
20+
:width: 30.0%
21+
22+
XGZP6897D Differential Pressure Sensor.
23+
(Credit: `CFSensor <https://cfsensor.net/i2c-differential-pressure-sensor-xgzp6897d/>`__, image cropped and compressed)
24+
25+
.. _Sparkfun: https://www.sparkfun.com/products/17874
26+
27+
To use the sensor, set up an :ref:`I²C Bus <i2c>` and connect the sensor to the specified pins.
28+
29+
.. code-block:: yaml
30+
31+
# Example configuration entry
32+
# It uses a filter offset to calibrate the sensor
33+
sensor:
34+
- platform: xgzp68xx
35+
temperature:
36+
name: "Temperature"
37+
pressure:
38+
name: "Differential Pressure"
39+
filters:
40+
- offset: 40.5
41+
42+
Configuration variables:
43+
------------------------
44+
45+
- **temperature** (*Optional*): All options from :ref:`Sensor <config-sensor>`.
46+
- **pressure** (*Optional*): All options from :ref:`Sensor <config-sensor>`.
47+
- **k_value** (*Optional*, int): The K value comes from the datasheet. It will default to 4096 if not specified, which is appropriate for a sensor with a range of +/- 0.5kPa.
48+
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.
49+
50+
51+
See Also
52+
--------
53+
- `esphome-pressure device <https://github.com/gcormier/esphome-pressure/>`__
54+
- :ref:`sensor-filters`
55+
- :apiref:`sdp3x/sdp3x.h`
56+
- :ghedit:`Edit`

images/6897d.jpg

5.84 KB
Loading

index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ Environmental
342342
TMP117, components/sensor/tmp117, tmp117.jpg, Temperature
343343
TMP1075, components/sensor/tmp1075, tmp1075.jpg, Temperature
344344
HYT271, components/sensor/hyt271, hyt271.jpg, Temperature & Humidity
345+
XGZP68xx Series, components/sensor/xgzp68xx, 6897d.jpg, Differential Pressure
345346

346347

347348
Light

0 commit comments

Comments
 (0)