Skip to content

XGMP3V3 Differential Pressure Sensor Codes for Arduino and Raspberry Pi

License

Notifications You must be signed in to change notification settings

makerportal/xgmp3v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XGMP3v3 Differential Pressure Sensor

XGMP3V3 Differential Pressure Sensor for Arduino and Raspberry Pi. This repository houses codes for approximating differential pressure from the XGMP3v3 sensor on an Arduino board or analog-to-digital converter (ADC) connected to a Raspberry Pi. Calibration codes are also given, which prints raw values from an Arduino board and reads the raw values into a Python program via the serial port. There is also a script given that allows users to approximate airspeed or velocity using a pitot tube attached to the XGMP3v3 sensor.

Get your XGMP3v3 Sensor: XGMP3v3 Differential Pressure Sensor for Arduino and Raspberry Pi
XGMP3v3 Sensor Datasheet: https://makersportal.com/s/XGMP3v3_Datasheet.pdf

JUMP TO:

- Wiring Diagram
- XGMP3v3 Example with an Arduino Uno Board
- Calibration with Arduino and Python3
- Arduino Pitot Tube Airspeed Sensor

The XGMP3v3 library can be downloaded using git:

git clone https://github.com/makerportal/xgmp3v3

- Wiring Diagram -

The wiring between the XGMP3v3 and an Arduino Uno board is given below: XGMP3v3 Arduino Wiring

Arduino Uno XGMP3v3
3V3 VCC
GND GND
A0 OUT

- XGMP3v3 Example with an Arduino Uno Board -

The example code used to approximate differential pressure in [kPa] can be found at the code:

  • xgmp3v3_main.ino

The resulting output can be viewed from the serial port:

XGMP3v3 Serial Output

- Calibration with Arduino and Python3 -

The XGMP3v3 can be calibrated using the two scripts contained within the 'calibration' folder. The first file (ending in .ino) needs to be uploaded to an Arduino board. The second file (.py) needs to be run on a computer with the Arduino board connected via USB. The following should be outputted as an example calibration plot:

XGMP3v3 Calibration Curve

- Arduino Pitot Tube Airspeed Sensor -

The following script allows users to attach a pitot tube to the XGMP3v3 differential pressure sensor to approximate airspeed or velocity of a drone, aircraft, or other rotorcraft:

  • xgmp3v3_pitot_tube.ino

About

XGMP3V3 Differential Pressure Sensor Codes for Arduino and Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published