Dead MPL3115A2

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Dead MPL3115A2

Post by mmoderwell »

I recently purchased a few thing from the site and I found that my MPL3115A2 Sensor was dead. I tried everything and I am quite sure my code is correct. After testing with a multimeter I an not getting a connection from VIN to Ground. Any help would be appreciated.

Thanks,

-Matt M.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

Could you post clear pictures of both sides of your board showing any soldering you have done and the connections to it?
Could you post your code and a description or drawing of your connections between it all?
Please use the code button "</>" or

Code: Select all

 tags when posting code to the forums.

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

Image I have tried this.
Image And this.

Code: Select all

#include "Adafruit_MPL3115A2/Adafruit_MPL3115A2.h"

// Power by connecting Vin to 3-5V, GND to GND
// Uses I2C - connect SCL to the SCL pin, SDA to SDA pin
// See the Wire tutorial for pinouts for each Arduino
// http://arduino.cc/en/reference/wire
Adafruit_MPL3115A2 baro = Adafruit_MPL3115A2();

void setup() {
  Serial.begin(115200);
  delay(5000);
  
  Serial.println("Adafruit_MPL3115A2 test!");
  
  while(! baro.begin()) {
    Serial.println("Could not find sensor.");
    delay(1000);
  }
}

void loop() {
  float pascals = baro.getPressure();
  // Our weather page presents pressure in Inches (Hg)
  // Use http://www.onlineconversion.com/pressure.htm for other units
  Serial.print(pascals/3377); Serial.println(" Inches (Hg)");

  float altm = baro.getAltitude();
  Serial.print(altm); Serial.println(" meters");

  float tempC = baro.getTemperature();
  Serial.print(tempC); Serial.println("*C");

  
  delay(250);
}

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

And what output do you get when you run the program?

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

Looks like this, and repeats every 250ms.

19872.33 Inches (Hg)
16777216.00 meters
492.69 F

These numbers show up every time.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

Could you try the example code in the library?

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

Yep tried it but to no avail.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

Yep tried it but to no avail.
What output do you get when you run that?

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

While it took a little modification to get it running, when I was able to get it running the serial output would be the same numbers as posted before.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

While it took a little modification to get it running,
What did you modify?

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

Well because I'm using a Spark Core, I had to edit some of the libraries included in the .cpp and .h files. In Adafruit_MPL3115A2.cpp I commented out the initial inclusions and just had it link to the header file. In Adafruit_MPL3115A2.h, I did the same thing but also included the "application.h" library. The example code is still the same. This is the library just to be sure. https://github.com/adafruit/Adafruit_MPL3115A2_Library

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

Do you have an Arduino you could test the code on? The library may not be compatable with the Spark.

User avatar
mmoderwell
 
Posts: 7
Joined: Sun Oct 05, 2014 5:28 pm

Re: Dead MPL3115A2

Post by mmoderwell »

I also have an Adafruit Trinket 5V but have been unsuccessful with getting it to work either.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Dead MPL3115A2

Post by Franklin97355 »

OK, I can't think of anything else to tell you. Please email [email protected] with a link to this thread for a replacement

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”