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: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ We’ve tested it with the ESP32-WROOM, and you can find a detailed example belo
14
14
15
15
## Getting Started
16
16
17
+
### Tutorials
18
+
19
+
Here are some general tutorials that provide brief introductions to embedded programming:
20
+
21
+
-**Part 1 (Introduction)** - [Introduction to Embedded Systems with Rust: A Beginner's Guide Using ESP32](https://rust-dd.com/post/introduction-to-embedded-systems-with-rust-a-beginner-s-guide-using-esp32)
22
+
-**Part 2 (LED + Button)** - [Building a Simple LED and Button Interface with Rust on ESP32](https://rust-dd.com/post/building-a-simple-led-and-button-interface-with-rust-on-esp32)
23
+
24
+
17
25
### Example - ESP32
18
26
19
27
```rust
@@ -131,6 +139,16 @@ After powering on, wait at least 100ms. Before reading the temperature and humid
131
139
132
140
133
141
#### Step 2
142
+
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.
143
+
144
+
#### Step 3
145
+
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.
146
+
147
+
#### Step 4
148
+
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.
149
+
150
+
#### Step 5
151
+
Compute the temperature and humidity values.
134
152
135
153
136
154
## Comparison of DHT11, DHT20, and DHT22 40-Bit Data Formats
0 commit comments