You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if you might have insights on this issue with Sense Hat. It relies on RTIMULib and it seems many are unable to get the pressure, humidity or temperature sensors to output anything but zeros.
I'm unable to initialize either pressure or humidity, despite manually setting the chips/addresses. The README suggests that these should work (LPS25H, HTS221), so I'm a bit confused. Any tips on where I might troubleshoot?
# Raspberry Pi 3
# python 3.8
Using settings file RTIMULib.ini
IMU Name: LSM9DS1
Pressure Name: LPS25H
Humidity Name: HTS221
IMU Init Succeeded
Pressure sensor Init Failed
Humidity sensor Init Failed
$ cat RTIMULib.ini
# IMU type -
# 6 = STM LSM9DS1
IMUType=6
# Fusion type type -
# 2 - RTQF
FusionType=2
# Is bus I2C: 'true' for I2C, 'false' for SPI
BusIsI2C=true
# I2C Bus (between 0 and 7)
I2CBus=1
# SPI Bus (between 0 and 7)
SPIBus=0
# SPI select (between 0 and 1)
SPISelect=0
# SPI Speed in Hz
SPISpeed=500000
# I2C slave address (filled in automatically by auto discover)
I2CSlaveAddress=106
# IMU axis rotation - see RTIMU.h for details
AxisRotation=0
# Pressure sensor type -
# 3 = LPS25H
PressureType=3
# I2C pressure sensor address (filled in automatically by auto discover)
I2CPressureAddress=92
# Humidity sensor type -
# 2 = HTS221
HumidityType=2
# I2C humidity sensor address (filled in automatically by auto discover)
I2CHumidityAddress=95
$ ls -l /dev/i2c-*
crw-rw-rw- 1 root root 89, 1 Mar 20 2020 /dev/i2c-1
My test was:
>>> import RTIMU
### I manually set the type and address when running tests, as the generated file was auto for all
### these match the settings that come with sense_hat, and also the linked chips/addresses above for the Sense Hat
>>> settings = RTIMU.Settings('/home/jwhendy/build/RTIMULib2/Linux/python/tests/RTIMULib.ini')
>>> p = RTIMU.RTPressure(settings)
>>> p.pressureInit()
False
>>> p = RTIMU.RTHumidity(settings)
>>> p.humidityInit()
False
Accelerometer does work, just none of the other sensors. I'd post at RTIMULib, but they don't have an issues tab and the last push was 7yrs ago. I see you responded to an issue a week ago... so the activity caught my eye! I'm happy to post other info it would be helpful.
The text was updated successfully, but these errors were encountered:
Greetings,
I'm wondering if you might have insights on this issue with Sense Hat. It relies on RTIMULib and it seems many are unable to get the pressure, humidity or temperature sensors to output anything but zeros.
I'm unable to initialize either pressure or humidity, despite manually setting the chips/addresses. The README suggests that these should work (LPS25H, HTS221), so I'm a bit confused. Any tips on where I might troubleshoot?
My test was:
Accelerometer does work, just none of the other sensors. I'd post at RTIMULib, but they don't have an issues tab and the last push was 7yrs ago. I see you responded to an issue a week ago... so the activity caught my eye! I'm happy to post other info it would be helpful.
The text was updated successfully, but these errors were encountered: