Skip to main content
Visitor II
June 29, 2017
Solved

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

  • June 29, 2017
  • 1 reply
  • 1812 views
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

    This topic has been closed for replies.
    Best answer by
    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

    1 reply

    June 29, 2017
    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

    Visitor II
    June 30, 2017
    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

    June 30, 2017
    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.