Skip to content

tuxmountain/XGZP_Pressure_Sensor_Digital

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XGZP6847D Pressure Sensor Library

Overview

The XGZP6847D is a digital pressure sensor that offers quick and precise pressure readings in air circuits. Unlike the commonly available analog versions in maker applications, this digital variant provides more accurate and temperature-calibrated readings. With a range of 0-10 bar, the XGZP6847D is versatile for a wide array of projects.

For more information, visit the manufacturer's website: CFSensor XGZP6847D

This library was created for easy and efficient use in your projects. Should work with any Arduino / ESP32 / STM32 project

Key Features

  • Digital Precision: Offers more precise readings compared to analog sensors, especially useful in temperature-variable environments.
  • Calibration: Self-calibration with integrated temperature sensor
  • Wide Range: Capable of measuring pressures from 0 to 10 bar, suitable for diverse applications.
  • I2C Communication: Utilizes I2C for data transfer. The sensor has a fixed address of 0x6D.
  • Multiplexer Compatibility: Designed to work with a TCA9548A multiplexer, this library simplifies connecting multiple sensors to a project. It can manage up to 8 sensors with ease.

Usage

  1. Initialization: Create an object, for example, XGZP6847D pressure1(3); where 3 is the communication channel on the multiplexer.
  2. Reading Pressure: pressure1.readPressure() returns the pressure converted into bar.
  3. Reading Temperature: pressure1.readTemperature() provides the temperature in Celsius, which is useful for applications without the need for a separate temperature sensor.

Development & Fixes

  • Temperature Calibration: fixed
  • Read Negative Value: fixed
  • Add int readPressurePa(): received data in Pascal

Important Note

This library requires a TCA9548 multiplexer for proper operation. Each sensor must be initialized with its I2C address corresponding to the correct port on the multiplexer using the Wire.h library.

image

About

Arduino / ESP32 library to use XGZP digital pressure sensors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages