Cov txheej txheem:

ESP32 thiab OLED Zaub: Internet Clock - DHT22: 10 Cov Kauj Ruam (nrog Duab)
ESP32 thiab OLED Zaub: Internet Clock - DHT22: 10 Cov Kauj Ruam (nrog Duab)

Video: ESP32 thiab OLED Zaub: Internet Clock - DHT22: 10 Cov Kauj Ruam (nrog Duab)

Video: ESP32 thiab OLED Zaub: Internet Clock - DHT22: 10 Cov Kauj Ruam (nrog Duab)
Video: Уроки Ардуино. Управление нагрузкой в сети переменного тока 2024, Hlis ntuj nqeg
Anonim
ESP32 thiab OLED Zaub: Internet Clock - DHT22
ESP32 thiab OLED Zaub: Internet Clock - DHT22

Cov Lus Qhia no yog kev sib tw o kev sib tw: "GIFs Challenge 2017", Yog tias koj nyiam, thov muab koj qhov pov npav los ntawm txhaj rau ntawm daim chij saum toj no. Ua tsaug ntau!;-)

Cov ntawv qhia no yog txuas ntxiv ntawm txoj kev taug kom paub ntau ntxiv txog qhov cuab yeej IoT zoo, ESP32.

Ntawm kuv qhov kev qhia zaum kawg: IOT Ua Yooj Yim: Ua Si Nrog ESP32 ntawm Arduino IDE, peb tshawb nrhiav:

  • Cov Zis Tshaj Tawm: Tsiv ib qho LED
  • Cov Digital Input: Nyeem Ntawv Kov Sensor
  • Analog Input: Nyeem qhov sib txawv ntawm qhov hluav taws xob los ntawm lub hwj chim
  • Analog Output: Tswj lub teeb ci LED
  • Analog Output: Tswj Txoj Haujlwm Servo
  • Nyeem Cov Ntaub Ntawv Kub/Vaum nrog Digital sensor
  • Txuas rau Is Taws Nem thiab tau txais lub sijhawm hauv zos
  • Tau txais cov ntaub ntawv los ntawm nplooj ntawv web yooj yim hauv zos, qhib/tua LED
  • Kev xa cov ntaub ntawv mus rau lub vev xaib yooj yim hauv zos

Tam sim no cia suav nrog OLED los nthuav qhia cov ntaub ntawv hauv cheeb tsam uas ntes los ntawm DHT sensor (Kub & Vaum) ib yam li lub sijhawm hauv zos.

Duab
Duab

Kauj Ruam 1: BoM - Cov Nqi Khoom

  • ESP32 Pawg Neeg Saib Xyuas Kev Txhim Kho (US $ 8.52)
  • 0.91 nti 128x32 I2C IIC Serial Blue OLED LCD Display (US $ 2.98)
  • DHT22/AM2302 Digital Kub thiab Vaum Sensor (US $ 9.99)
  • 1 x LED (yeem)
  • 2 x Resistors: 330 ohm thiab 10K ohm
  • Potentiometer: 10K ohm
  • Protoboards

Kauj Ruam 2: ESP32 Driver thiab Library Installation

ESP32 Tsav Tsheb thiab Kev Txhim Kho Tsev Qiv Ntawv
ESP32 Tsav Tsheb thiab Kev Txhim Kho Tsev Qiv Ntawv
ESP32 Tsav Tsheb thiab Kev Txhim Kho Tsev Qiv
ESP32 Tsav Tsheb thiab Kev Txhim Kho Tsev Qiv

Peb yuav siv Arduino IDE los ua haujlwm rau peb ESP32, tib yam peb ua nrog ESP8266 tsev neeg.

Nruab Tsav:

Nws yog ib qho tseem ceeb uas koj tau teeb tsa hauv koj lub khoos phis tawj, hloov kho CP210x USB rau UART Driver. Nkag mus rau qhov txuas no: usb-rau-uart-choj-vcp-tsav tsheb thiab teeb tsa tus tsav tsheb kom raug rau koj OS.

Nruab Tsev Qiv Ntawv:

Qhov tshiab ntawm no yog Expressif nws tus kheej hauv nws GitHub, yuav muab cov lus qhia zoo rau peb rau kev teeb tsa lub tsev qiv ntawv: arduino-esp32. Ua raws cov lus qhia rau koj OS.

Tom qab ntawd, rov pib dua Arduino IDE thiab nws ua tiav! Koj yuav tsum pom ntau lub laug cam ntawm "TOOLS" Ntawv qhia zaub mov. Xaiv qhov tsim nyog rau koj. Feem ntau, "generic" ESP32 DEV MODULE ua haujlwm tau zoo.

Thaum koj qhib Arduino IDE thawj zaug, koj yuav nco ntsoov tias lub hauv paus upload nrawm yog 921, 600 bauds. Qhov no tuaj yeem ua rau muaj kev tsis txaus ntseeg. Hloov nws mus rau 115, 200 bauds!

Pom zoo: