Skip to content

Commit 7e0dd74

Browse files
committed
docs: update with dht20 pics
1 parent 107d0bb commit 7e0dd74

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ After outputting a low signal for 50 microseconds, the DHT11/DHT22 completes sen
125125

126126
### DHT20
127127

128+
![steps](/docs/dht20_steps.png)
129+
128130
- SDA = Serial Data Line
129131
- SCL = Serial Clock Line
130132

@@ -141,12 +143,16 @@ After powering on, wait at least 100ms. Before reading the temperature and humid
141143
#### Step 2
142144
Wait for 10ms before sending the 0xAC command to trigger the measurement. The command consists of two bytes: the first byte is 0x33 and the second byte is 0x00.
143145

146+
![step4](/docs/dht20_step2.png)
147+
144148
#### Step 3
145149
Wait for 80ms for the measurement to complete. If Bit [7] of the status word is 0, the measurement is done, and you can proceed to read six bytes continuously; if not, continue waiting.
146150

147151
#### Step 4
148152
After receiving the six bytes, the following byte is the CRC check data, which can be read if needed. If the receiver requires CRC validation, an ACK is sent after the sixth byte is received; otherwise, send a NACK to terminate. The initial CRC value is 0xFF, and the CRC8 check uses the polynomial: CRC [7:0] = 1 + X^4 + X^5 + X^8.
149153

154+
![step4](/docs/dht20_step4.png)
155+
150156
#### Step 5
151157
Compute the temperature and humidity values.
152158

docs/dht20_step2.png

92.6 KB
Loading

docs/dht20_step4.png

259 KB
Loading

docs/dht20_steps.png

84.9 KB
Loading

0 commit comments

Comments
 (0)