Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHT25 sensor temperature resolution #1

Closed
kaklik opened this issue Nov 26, 2013 · 1 comment
Closed

SHT25 sensor temperature resolution #1

kaklik opened this issue Nov 26, 2013 · 1 comment
Assignees

Comments

@kaklik
Copy link
Member

kaklik commented Nov 26, 2013

SHT25 temperature sensor output seem to have improper granularity around 0.75 deg.

@ghost ghost assigned kaklik Nov 26, 2013
@kakl kakl mentioned this issue Nov 27, 2015
kaklik added a commit that referenced this issue Mar 13, 2016
@kaklik kaklik closed this as completed Mar 13, 2016
@kaklik
Copy link
Member Author

kaklik commented Nov 23, 2016

This issue was correctly solved by adding SMBus_read_i2c_block and SMBus_write_i2c_block method to python-smbus module.
https://github.com/MLAB-project/i2c-tools/blob/master/py-smbus/smbusmodule.c#L560-L607

This code improvement was verified on ODROID-C1+ with SHT31 sensor which has the same problem with data readout.

geozor@odroid:~/repos/pymlab/examples$ sudo ./sht31_example.py 1
SHT31 sensor readout example 

Sensor status: {'Heater': False, 'System_reset': False, 'Invalid_command': False, 'Checksum': 225, 'Alert_pending': False, 'T_alert': False, 'RH_alert': False, 'Invalid_checksum': False} Temperature and Humidity: (22.679484245059896, 55.95941100175479)
Sensor status: {'Heater': False, 'System_reset': False, 'Invalid_command': False, 'Checksum': 225, 'Alert_pending': False, 'T_alert': False, 'RH_alert': False, 'Invalid_checksum': False} Temperature and Humidity: (22.679484245059896, 55.99298084992752)
Sensor status: {'Heater': False, 'System_reset': False, 'Invalid_command': False, 'Checksum': 225, 'Alert_pending': False, 'T_alert': False, 'RH_alert': False, 'Invalid_checksum': False} Temperature and Humidity: (22.69283588921951, 55.93804837109941)
Sensor status: {'Heater': False, 'System_reset': False, 'Invalid_command': False, 'Checksum': 225, 'Alert_pending': False, 'T_alert': False, 'RH_alert': False, 'Invalid_checksum': False} Temperature and Humidity: (22.69283588921951, 55.95941100175479)
Sensor status: {'Heater': False, 'System_reset': False, 'Invalid_command': False, 'Checksum': 225, 'Alert_pending': False, 'T_alert': False, 'RH_alert': False, 'Invalid_checksum': False} Temperature and Humidity: (22.666132600900283, 55.91058213168536)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant