The SENSIRION SDP3X family sensors comes with deferential pressure range of (500Pa, 125Pa) on i2c and analog in a small package. suitable for high-volume applications where size is required on a design project. The SDP3X family ideal for measuring of mass flow in a bypass configuration. This sensor is a reflow solderable, can implement a multiple sensor in a series at multiple i2c addresses and interrupt functions in a fast sampling time and offer a calibrating and temperature compensated analog voltage output and configurable different measurement speed, output curves and temperature compensation can be selected dynamically during at run-time mode. The SDP3X family sensors has integrated excellent accuracy at long-term stability and no zero-point drift suitable for medical instruments, portable medical devices, home and health care applications, environmental devices, and drones. For more technical details refer to the datasheet below.
Required Components
- Arduino IDE | Atmel Studio | Energia | Processing
- Arduino PRO, FIO, NANO, UNO, MINI, MEGA, PRO MINI, LEO, BT, DUE, ETHERNET,LILYPAD, NodeMCU, Teensy Board, TeensyDuino, ESP8266 12, 12E, ESP32, LinkItOne, ESP8266 NodeMCU, ESPDuino, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266, MSP430 ,ATMEGA250 16 MHz, ATSAM3x8E, STM32.
- Note: For AVR (please see the flash size of the MCU and respective pin-outs & bus configuration )
- Note: The Diagram below is using NANO. (please refer to each MCU’s respective pin-outs & bus configuration)
- SDP31, SDP32, SDP36, SDP37 Differential Pressure Sensor
- Capacitors (See below required value)
- Resistors (See below required value)
- TTL USB UART (Optional if your using s MCU USB/UART integrated)
- PCB Designer (Circuit simulation to PCB Layout / Circuitmaker / Fritzing )
Wiring Guide
Source Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
#include <Wire.h> #include <sdpsensor.h> //This library can downloaded below SDP3XSensor sdp; //0x21 defualt i2C addres void setup() { Wire.begin(); //Set i2c communication to start Serial.begin(9600); Serial.println("14CORE | SDP31, SDP32, SDP36, SDP37 Test Code") Serial.println("----------------------------------------------") delay(2000); int ret = sdp.init(); if (ret == 0) { Serial.print("init(): success\n"); } else { Serial.print("init(): failed, ret = "); Serial.println(ret); while (true) { delay(1000); } } } void loop() { int ret = sdp.readSample(); if (ret == 0) { Serial.print("Differential pressure: "); Serial.print(sdp.getDifferentialPressure()); Serial.print("Pa | "); Serial.print("Temp: "); Serial.print(sdp.getTemperature()); Serial.print("C\n"); } else { Serial.print("Error in readSample(), ret = "); Serial.println(ret); } delay(500); } |
Downloads
- Download SDP31, SDP32, SDP36, SDP37 Datasheet Digital | PDF
- Download SDP31, SDP32, SDP36, SDP37 Datasheet Analog | PDF
- Download SDP31, SDP32, SDP36, SDP37 Code Library | Zip