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
Copy file name to clipboardExpand all lines: libraries/SHT85/README.md
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ not be used for more than 10% of the time.
27
27
```
28
28
29
29
The SHT85 sensors should work up to 1000 KHz, however during tests
30
-
with an Arduino UNO it stopped at ~500 KHz so to be safe I recommend
31
-
not to use it above 400 KHz. Also the differences in readtime becomes
30
+
with an Arduino UNO it stopped between 500 - 550 KHz so to be safe I recommend
31
+
not to use it above 400 KHz. Also the differences in read time becomes
32
32
quite small. (max 15% gain). See output example sketch.
33
33
34
34
| I2C speed | read ms | notes |
@@ -51,11 +51,11 @@ This library should also work for SHT30, SHT31 and SHT35 but
51
51
this is not verified yet.
52
52
53
53
| SENSOR | Temperature accuracy | Humidity accuracy |
54
-
|:----:|:----:|:----:|
55
-
| SHT30 |~0.3 |2.0 |
56
-
| SHT31 |~0.3 |1.5 |
57
-
| SHT35 |~0.2 |1.5 |
58
-
| SHT85 |~0.2 |1.5 |
54
+
|:------:|:------:|:-----:|
55
+
| SHT30 |~0.3 |2.0|
56
+
| SHT31 |~0.3 |1.5|
57
+
| SHT35 |~0.2 |1.5|
58
+
| SHT85 |~0.2 |1.5|
59
59
60
60
Need to investigate if the interface is identical?
61
61
If so the libraries might be merged.
@@ -75,15 +75,18 @@ Does read both the temperature and humidity.
75
75
-**uint16_t readStatus()** details see datasheet and **Status fields** below
76
76
-**uint32_t lastRead()** in milliSeconds since start of program.
77
77
-**reset(bool hard = false)** resets the sensor, soft reset by default. Returns false if fails.
78
-
-**getHumidity()** returns relative humidity in %. Needs a **read()** to update.
79
-
-**getTemperature()** returns temperature in °C. Needs a **read()** to update.
78
+
-**getHumidity()** computes the relative humidity in % based off the latest raw reading, and returns it
79
+
-**getTemperature()** computes the temperature in °C based off the latest raw reading, and returns it
80
+
-**getRawHumidity()** returns the raw two-byte representation of humidity directly from the sensor
81
+
-**getRawTemperature()** returns the raw two-byte representation of temperature directly from the sensor
82
+
83
+
Note that the temperature and humidity values are recalculated on every call to getHumidity() and getTemperature(). If you're worried about the extra cycles, you should make sure to cache these values or only request them after you've performed a new reading.
80
84
81
85
82
86
#### Error interface
83
87
84
88
-**getError()** returns last set error flag and clear it.
85
-
Be sure to clear the error flag by calling **getError()** before calling
86
-
any command as the error flag could be from a previous command.
89
+
Be sure to clear the error flag by calling **getError()** before calling any command as the error flag could be from a previous command.
87
90
88
91
| Error | Symbolic | Description |
89
92
|:----:|:----|:----|
@@ -97,7 +100,6 @@ any command as the error flag could be from a previous command.
97
100
| 0x87 | SHT_ERR_CRC_STATUS | CRC error in statusfield |
98
101
99
102
100
-
101
103
#### Heater interface
102
104
103
105
Use the heater for max **180** seconds, and let it cool down an equal period of time.
@@ -121,16 +123,16 @@ Will switch heat off if max heating time has passed.
121
123
See async example for usage
122
124
123
125
-**requestData()** requests a new measurement. Returns false if this fails.
124
-
-**dataReady()** checks if enough time has passed to read the data. (typical 15 millis)
126
+
-**dataReady()** checks if enough time has passed to read the data. (15 milliseconds)
125
127
-**readData(bool fast = true)** fast skips CRC check. Returns false if reading fails or in case of a CRC fail.
126
128
127
129
128
130
## Status fields
129
131
130
132
| BIT | Description | values |
131
133
|:----:|:----|:----|
132
-
| 15 | Alert pending status | '0': no pending alerts|
133
-
||| '1': at least one pending alert - default |
134
+
| 15 | Alert pending status | '0': no pending alerts|
135
+
||| '1': at least one pending alert - default |
134
136
| 14 | Reserved | '0' |
135
137
| 13 | Heater status | '0’ : Heater OFF - default |
136
138
||| '1’ : Heater ON |
@@ -140,22 +142,22 @@ See async example for usage
140
142
| 10 | Temperature tracking alert | '0’ : no alert - default |
141
143
||| '1’ : alert |
142
144
| 9-5 | Reserved | '00000' |
143
-
| 4 | System reset detected | '0': no reset since last ‘clear status register’ command |
144
-
||| '1': reset detected (hard or soft reset command or supply fail) - default |
145
+
| 4 | System reset detected | '0': no reset since last ‘clear status register’ command |
146
+
||| '1': reset detected (hard or soft reset command or supply fail) - default |
145
147
| 3-2 | Reserved | '00' |
146
-
| 1 | Command status | '0': last cmd executed successfully |
147
-
||| '1': last cmd not processed. Invalid or failed checksum |
148
-
| 0 | Write data checksum status | '0': checksum of last write correct |
149
-
||| '1': checksum of last write transfer failed |
148
+
| 1 | Command status | '0': last command executed successfully |
149
+
||| '1': last command not processed. Invalid or failed checksum |
150
+
| 0 | Write data checksum status | '0': checksum of last write correct |
0 commit comments