LPS25HB not working with X-NUCLEO-IKS01A1 and Arduino uno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-29 07:53 AM
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 codehttps://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 inX-NUCLEO-IKS01A1 are in I2C line.Please do needful.I need LPS25HB working with arduino UNO.
Thanks and Regards,
Radhika
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-30 02:18 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-29 10:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-29 08:58 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-30 01:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-30 02:01 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-30 02:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-07-04 08:27 AM
Thanks David,I have got the output in arduino uno

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-07-04 11:26 AM
Hello,
good to hear that. What was the problem?
David
