Linh kiện | ESP32 Pins |
Pushbutton | GPIO 33 |
Trimpot | GPIO 32 |
Photoresistor (LDR) | GPIO 4 |
DHT22 data pin | GPIO 15 |
LED1 | GPIO 27 |
LED2 | GPIO 26 |
BMP180 | SDA(GPIO 21); SCL(GPIO 22) |
SD card module | MOSI(GPIO 23); MISO(GPIO 19): CLK(GPIO 18); CS(GPIO 5) |
Free GPIOs (terminal blocks) | GPIO14, GPIO13, GPIO12 |
Linh kiện:
- ESP32 DOIT DEVKIT V1 Board – 30 GPIOs (read ESP32 development boards comparison)
- 2x 5mm LED
- 2x 330 Ohm resistor
- 1x Pushbutton
- 1x 10k Ohm resistor
- 1x 10k Ohm potentiometer
- 1x DHT22 temperature and humidity sensor
- 1x BMP180
- 1x MicroSD card module
- Breadboard
- Jumper wires
Thư viện Arduino:
Code chương trình:
File PCB: Here
Nhớ thay thông tin Wifi của bạn tại đây:
// Replace with your network credentials const char* ssid = "REPLACE_WITH_YOUR_SSID"; const char* password = "REPLACE_WITH_YOUR_PASSWORD";Tài liệu: Here Tham khảo: https://gndtovcc.home.blog/