Some questions by using the sensor MLP3115A2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Some questions by using the sensor MLP3115A2

546 Views
luisito99m
Contributor I

Hello everyone!, i'm try to use the sensor MPL3115A2 for read the temperature in th FRDM KL25, but the troubles starts when i compilate each program just appear a 255. By analying the code i don't know if i'm doing something wrong or the wrongly initializing the sensor , the program that i'm using is the next one. If anyone could help me to find my mistake on the code, i'll thank him so much!

Labels (1)
0 Kudos
1 Reply

353 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Luis,

The first thing I would recommend to do is to read the WHO_AM_I register (0x0C) to be sure your I2C communication is running properly. If you are not able to read a correct value (0xC4) from this register, then please post here screenshots illustrating both I2C write and read transactions (as shown in my example code) as well as your complete schematic.

Best regards,

Tomas

0 Kudos