MPL115A2 started providing incorrect pressure readings

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

MPL115A2 started providing incorrect pressure readings

Postby hilldnh » Sun Nov 18, 2012 9:00 pm

Hi,
Starting a new post because search did not turn up any refs to this unit here.

I bought the MPL115A2 breakout board and connected it to my UNO. Downloaded the software and put the necessary files in the Arduino libraries area. Powered up and it was working great. Then worked on a separate sketch to log data. Reran the getpressure sketch and got readings that were way off: pressure (kPa) ~ -2850kPa and Temp (*C) =-12037 !

disconected, reconnected, reloaded, deleted and removed libraries, tried a second UNO. Still the same. Modified the .cpp file to turn on the printing and see:

Hello!
Getting barometric pressure ...
coefficients:
A0 = 3591
B1 = FFFFC0A2
B2 = FFFFC625
C12 = B06
a0 = 1714.13
b1 = -1.98
b2 = -0.90
10,000*c12 = 6.73

(theses seem about right)

raw press=272
raw temp=65033
Pressure (kPa): -2854.4987 kPa
Temp (*C): -12037.2 *C

raw temp seems way off

SDWN and RST pins on breakout board are floating.
Other I2C devices on the same breadboard are working fine.

Any ideas? It only ran well about 5min and has not worked since. could it be a bad unit?
hilldnh
 
Posts: 2
Joined: Sat Nov 17, 2012 10:17 pm

Re: MPL115A2 started providing incorrect pressure readings

Postby adafruit_support_bill » Mon Nov 19, 2012 6:44 am

What other I2C devices are on the bus? Make sure you have no address conflicts.
User avatar
adafruit_support_bill
 
Posts: 16019
Joined: Sat Feb 07, 2009 9:11 am


Return to General Project help

Who is online

Users browsing this forum: mibignistinly and 9 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]