cancel
Showing results for 
Search instead for 
Did you mean: 

LPS25HB not working with X-NUCLEO-IKS01A1 and Arduino uno

nagaradhika93
Associate II
Posted on June 29, 2017 at 16:53

Hi,

I'm using X-NUCLEO-IKS01A1 with arduino uno,I'm getting the output for HTS221 with the code

https://github.com/ControlEverythingCommunity/HTS221/blob/master/C/HTS221.c

  ,the connections seem to be correct but when I'm trying to get the output for LPS25HB from the code 

https://github.com/ControlEverythingCommunity/LPS25HB/blob/master/Arduino/LPS25HB.ino

 I'm always getting the output as 0 hpa only.Even when I'm applying the pressure at the sensor.In the datasheet it is there that CS should be connected to VddIO ,I think it is internally connected as all the sensors in  

X-NUCLEO-IKS01A1 are in I2C line.Please do needful.I need LPS25HB working with arduino UNO.

Thanks and Regards,

Radhika

1 ACCEPTED SOLUTION

Accepted Solutions
Legacy member
Not applicable
Posted on June 30, 2017 at 09:18

OK, let's suppose the board is properly connected and the sensor is powered on - its jumper is plugged in.

A few checks to make:

Can you read the WHO-AM-I register of the sensor?

Can you tell us what configuration is sent and to what registers? (Do you use one shot or automated measurement and how often do you read the data?)

Are you able to debug your host MCU? To verify the data, what output does the sensor give you?

Note: If you read the output register values before completing the first measurement, it can give you some non-valid output.

David

View solution in original post

7 REPLIES 7
Legacy member
Not applicable
Posted on June 29, 2017 at 19:53

Hello,

I think it is the same issue as in your previous thread:

https://community.st.com/0D50X00009XkdtdSAB

All the sensors on this board use an I2C busand all the necessary connections to communicate with them over I2C have already been made by ST.

Please, get back to your previous thread and verify that your sensor works first. Then focus on the firmware / drivers you use. One step at a time will get you much further.

David

Posted on June 30, 2017 at 03:58

Ok David,thanks for the reply.From temperature sensor I'm getting the output but not from the pressure sensor..!!! Please do needful.

Thanks and Regards,

Radhika

Legacy member
Not applicable
Posted on June 30, 2017 at 08:52

Hello,

Do you mean that you are able to get the temperature from the pressure sensor (LPS25HB) or the temperature / relative humidity sensor (

HTS221)? I am asking, because there is a temperature sensor in all of the sensors on X-NUCLEO-IKS01A1 board.

Posted on June 30, 2017 at 09:01

Hi,

I'm getting the data from HTS221 but not from LPS25HB..I'm using the code

/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FControlEverythingCommunity%2FLPS25HB%2Fblob%2Fmaster%2FArduino%2FLPS25HB.ino

The connections what I used for HTS221 is same as LPS25HB.

Thanks and Regards,

Radhika

Legacy member
Not applicable
Posted on June 30, 2017 at 09:18

OK, let's suppose the board is properly connected and the sensor is powered on - its jumper is plugged in.

A few checks to make:

Can you read the WHO-AM-I register of the sensor?

Can you tell us what configuration is sent and to what registers? (Do you use one shot or automated measurement and how often do you read the data?)

Are you able to debug your host MCU? To verify the data, what output does the sensor give you?

Note: If you read the output register values before completing the first measurement, it can give you some non-valid output.

David

Posted on July 04, 2017 at 15:27

Thanks David,I have got the output in arduino uno

Legacy member
Not applicable
Posted on July 04, 2017 at 18:26

Hello,

good to hear that. What was the problem?

David