Interfacing pressure sensor to arduino
This article is about interfacing pressure sensor to arduino. The pressure sensor used here is SPD005G from Smartec . SPD (Smart Pressure Device) is a series of silicon based pressure sensors suitable for industrial as well as house hold applications. These sensors are generally available in plastic inline or dual inline packaging. SPD sensors are generally available in two operation modes namely gauge type and absolute type. In gauge type the pressure is measured with respect to the atmospheric pressure. There is a small vent on the package for getting contact with the atmosphere. In absolute type, the pressure is measured with respect to vacuum. A small vacuum chamber is incorporated into the package during fabrication. Typical applications of SPD005G are medical systems, BP monitoring, air conditioning systems, process control, hand held pressure sensors etc.
The sensor used here ie; SPD005G is a gauge type sensor. There are actually four sensing elements inside the SPD005G and they are arranged like a Wheatstone bridge. The sensing range of SPD005G is 0 – 0.350 x 105 Pa ( ie; 0 – 14.50 psi). The internal schematic and pin out of an SPD005G pressure sensor is shown below.
The bridge excitation voltage is given between pins 5 and 2. The excitation voltage can be AC or DC and the maximum DC voltage is 5V. The bridge output is available across pins 4 and 2. Pin 6 has no connection and it is not used. The full circuit diagram for interfacing pressure sensor to arduino is given below.
An instrumentation amplifier based on quad opamp LM324 is used for conditioning the output voltage from the pressure sensor.The instrumentation amplifier amplifier the differential voltage between output pin 4 and 1 of the pressure sensor. IC1A and IC1B serves as the high impedance input buffer of the instrumentation amplifier and IC1C sets the gain of the instrumentation. The equation for gain of the instrumentation amplifier is G=(1+(2R1/Rg))*(R3/R2). With the used components the gain here is around 137. The output of the instrumentation amplifier is connected to the analog input pin A0 of the arduino. The arduino digitizes this input voltage, converts it into milli volts and displays it on the LCD display. LED D2 is just a power ON indicator. Potentiometer R4 can be used to adjust the contrast of the display. Resistor R5 limits the current through the back light LED. The program for interfacing pressure sensor to arduino is given below.
Read More: Interfacing pressure sensor to arduino
JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw