Hi guys,
I am fairly new to this programming thing. I`m just a humble chemical engineer that did some C++ programming during undergrad.
I am currently trying to program a sketch to read a pressure from one of Honeywells MPR series sesnors. The specific sensor ID is in the title and I have also attached the data sheet from Honeywell.
Before I go crazy searching for a problem that is none existent with my physical wiring of the sensor; I just want to confirm that the sketch I am using is coded correct to read the pressure.
The output I get in the serial monitor is the main reason I am thinking I am doing something wrong. The serial output reads as follows:
127 ; 255 ; 255
126
(Repeated over and over)
Problem is the pressure value bytes (127, 255, 255) coverts to quite a big pressure number even though the sensor is at atmospheric conditions. Now, I understand that stressing the sensor during mounting can result in some drift, but surely not as much as those values suggest.
My code is also attached.
What am I doing wrong?? Due to my inexperience I must be reading the sensor incorrectly...
Thanks guys
P.S. This is my first post on the forum
MPRSensor_SimpleRead_v1.ino (1.11 KB)
honeywell-sensing-micropressure-board-mount-pressure-mpr-series-datasheet-32332628-f-en.pdf (1.11 MB)