MPL3115A2 can not be found

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
p_link
 
Posts: 8
Joined: Tue Oct 09, 2018 7:12 am

MPL3115A2 can not be found

Post by p_link »

Hi all,

I am trying to get the "MPL3115A2 - I2C Barometric Pressure/Altitude/Temperature Sensor" running on my Arduino due. I connected the sensor to pins 20 and 21 (SDA and SCL) of the Due board and tried to run the example from the "Adafruit_MPL3115A2_Library" on GitHub.

However I can not get the connection to the sensor. When searcheing for the sensor with the I2C scanner, I get the information that there is a I2C device found at port 0x60 (which seems to be correct).

Has anyone made the same experinece with this product or have an idea how to solve this?

Thanks a lot!

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: MPL3115A2 can not be found

Post by adafruit_support_carter »

Post a photo of your setup showing how you have everything connected.

User avatar
p_link
 
Posts: 8
Joined: Tue Oct 09, 2018 7:12 am

Re: MPL3115A2 can not be found

Post by p_link »

Hi,

Attached is the foto of the setup that I have. It is very simple and wired as described in the GitHub example:

Vin to 5V, GND to GND
SCL to the SCL pin (21), SDA to SDA pin (20) of the Due

I already searched through the different threads here and found out that the Due obviously has some problems with the I2C wiring. Therefore I already tried the fixes, which are suggested here: viewtopic.php?f=19&t=73118&hilit=MPL3115A2&start=15

But for me this fix is unfortuantely not working.

Thanks in advance!
Attachments
IMG_20181015_103846.jpg
IMG_20181015_103846.jpg (475.4 KiB) Viewed 150 times

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: MPL3115A2 can not be found

Post by adafruit_support_carter »

Do you have another Arduino board you can try? From that thread you linked:
Due is not recommended for anything, and especially not i2c :)

User avatar
p_link
 
Posts: 8
Joined: Tue Oct 09, 2018 7:12 am

Re: MPL3115A2 can not be found

Post by p_link »

No, I only have the Due and I didn't read the post beofre I bought the MPL3115A2.

User avatar
p_link
 
Posts: 8
Joined: Tue Oct 09, 2018 7:12 am

Re: MPL3115A2 can not be found

Post by p_link »

I have got it fixed so far, that the Example code at least can find the sensor and read the pressure values.

But now I have the problem, that I always get the same reading from the sensor. The pressure stays constant all the time. Do you know what could be the problem here?
Attachments
Pressure.PNG
Pressure.PNG (40.98 KiB) Viewed 133 times

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: MPL3115A2 can not be found

Post by adafruit_support_carter »

Do you get the same thing running the unmodified example sketch?
https://github.com/adafruit/Adafruit_MP ... 3115a2.ino

User avatar
p_link
 
Posts: 8
Joined: Tue Oct 09, 2018 7:12 am

Re: MPL3115A2 can not be found

Post by p_link »

Yes, I get the same behavior. Also the Temperature measurement is constant at a value of -0.06°C, which can not be right, of course.
Attachments
Serial_Monitor.PNG
Serial_Monitor.PNG (33.88 KiB) Viewed 123 times

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: MPL3115A2 can not be found

Post by adafruit_support_carter »

I think you're still having the basic issue of dealing with unreliable I2C comms on the Due.

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

Return to “Other Products from Adafruit”