Testing SHT75 humidity sensor on STM F303K8 board.

Dependencies:   SHT75 mbed

Fork of Nucleo-F303K8-SSD1306_OLED by Joseph Ellsworth

Sample code to test SHT75 humidity sensor using STM F303K8 board. Uses a 3.3V from board to power sensor. 10K resistor Pull-up on data. Must not be on same pins as I2C. Uses D0 for Clk and D1 for Data.

I had to modify sample code supplied by https://developer.mbed.org/users/nimbusgb/code/SHT75/ because the sensor failed to read without the softReset() and readStatus() at beginning of measurement loop. I think this is caused by the 72Mhtz speed of the F303K8 but did not attempt to fully diagnose.

The readStatus() method from library seems to malfunction and always return a -1 which never changes even when sensor is unplugged.

See https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/Humidity_Sensors/Sensirion_Humidity_Sensors_SHT7x_Datasheet_V5.pdf section 2.1 for wiring.

History

updated comments default tip

2016-07-27, by joeata2wh [Wed, 27 Jul 2016 19:54:51 +0000] rev 5

updated comments


working version

2016-07-27, by joeata2wh [Wed, 27 Jul 2016 19:42:41 +0000] rev 4

working version


update to use MIT license

2016-03-30, by joeata2wh [Wed, 30 Mar 2016 14:49:21 +0000] rev 3

update to use MIT license


got it working with the adafruit library

2016-03-21, by joeata2wh [Mon, 21 Mar 2016 03:42:56 +0000] rev 2

got it working with the adafruit library


initial version request comment

2016-03-21, by joeata2wh [Mon, 21 Mar 2016 00:11:05 +0000] rev 1

initial version request comment


working version

2016-03-19, by joeata2wh [Sat, 19 Mar 2016 02:18:42 +0000] rev 0

working version