Cov txheej txheem:
Video: ESP32 thiab OLED Zaub: Internet Clock - DHT22: 10 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
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.
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
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:
Loj hlob Zaub Zaub Ntxiv Hauv Qhov Chaw Tsawg Los Yog Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg): 10 Kauj Ruam
Loj Hlob Ntau Cov Zaub Zaub Hauv Tsawg Chaw lossis … Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg).: Qhov no yog kev tshaj lij tshaj lij rau Kev Loj Hlob Tshaj Ntiaj Teb, Kev Tsim Khoom Sib Tw, xa los ntawm Cov Lus Qhia. Kuv tsis tuaj yeem muaj kev zoo siab dua los tsim rau thaj chaw cog qoob loo thiab tshaj tawm kuv thawj Cov Lus Qhia. Yuav pib, kev sib tw nug peb kom
Cov duab ntawm SSD1306 I2C OLED 128x64 Zaub Nrog CircuitPython Siv Itsybitsy M4 Express: 13 Kauj Ruam (nrog Duab)
Cov duab ntawm SSD1306 I2C OLED 128x64 Zaub Nrog CircuitPython Siv Itsybitsy M4 Express: SSD1306 OLED zaub yog qhov me me (0.96 "), pheej yig, muaj dav, I2C, duab ib leeg nrog 128x64 pixels, uas yooj yim cuam tshuam (tsuas yog 4 xov hlau) rau microprocessor kev txhim kho cov laug cam xws li Raspberry Pi, Arduino lossis
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau