- Internet of Things Projects with ESP32
- Agus Kurniawan
- 136字
- 2021-06-24 16:02:54
Wiring
Let's begin by exploring the DHT22 sensor module. This module can sense temperature and humidity. In general, the DHT22 has four pins. You can see the sensor pinout in Figure 2-3:

Figure 2-3: A general pinout for a DHT22 sensor module
For our demo, we need to wire the hardware as follows:
- Connect DHT22 pin 1 to the ESP32 board 3.3V.
- Connect DHT22 pin 2 to the ESP32 board GPIO 26 (IO26). You can add a pull resistor 4K7 (optional).
- Connect DHT22 pin 4 to the ESP32 board GND. You can add a pull resistor 4K7 (optional).
You can see my hardware wiring with the ESP-WROVER-KIT board and DHT22 in Figure 2-4:

Figure 2-4: A wiring sample from my hardware
Now that we have covered hardware wiring, let's move on to writing the program.
推薦閱讀
- Learning SQL Server Reporting Services 2012
- 圖解西門子S7-200系列PLC入門
- FPGA從入門到精通(實戰(zhàn)篇)
- 計算機組裝與系統(tǒng)配置
- 電腦常見故障現(xiàn)場處理
- 硬件產(chǎn)品經(jīng)理手冊:手把手構(gòu)建智能硬件產(chǎn)品
- 數(shù)字邏輯(第3版)
- 電腦軟硬件維修從入門到精通
- RISC-V處理器與片上系統(tǒng)設(shè)計:基于FPGA與云平臺的實驗教程
- Istio服務(wù)網(wǎng)格技術(shù)解析與實踐
- Wireframing Essentials
- Deep Learning with Keras
- Zabbix 4 Network Monitoring
- 計算機應(yīng)用基礎(chǔ)案例教程(Windows 7+Office 2010)
- Machine Learning Projects for Mobile Applications