Cov txheej txheem:
- Kauj ruam 1: Teeb tsa Firebase
- Kauj Ruam 2: Txoj Haujlwm ESP-01 Nrog OTA Yooj Yim rau Kev Hloov Kho Yav Tom Ntej
- Kauj Ruam 3: Txoj Haujlwm ESP01 Nrog Moodlight Hla OTA
- Kauj Ruam 4: Txhim Kho Txhua Yam
- Kauj Ruam 5: !! Qhov tseem ceeb hloov tshiab
- Kauj Ruam 6: Txuas rau Github thiab Shematic
- Kauj Ruam 7: Cov Khoom Kawg
Video: ESP01 Moodlight Nrog Firebase hauv Realtime + OTA: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Nws txhawb hom R-G-B thiab Fade effect. Kuj tseem muaj kev txhawb nqa rau kev tswj kom ci. Txhawb rau OTA hloov tshiab
Kauj ruam 1: Teeb tsa Firebase
Ua ntej peb txuas ntxiv peb yuav tsum teeb tsa lub firebase. Mus rau qhov txuas hauv qab no https://firebase.google.com/ thiab nkag mus nrog koj tus lej Gmail.
Thaum koj ua tiav cov theem no peb yuav tsum ua qhov haujlwm tshiab hauv firebase yog li npaj mus rau koj lub firebase console.
Hauv qab koj lub sijhawm tiag tiag database muaj tab "cov cai" uas koj xav tau los pab nyeem thiab sau zoo li no. Duab 2
koj tuaj yeem pom koj qhov txuas hluav taws xob thiab zais cia ntawm no. Daim duab 3
Qhov no tau siv hauv arduino IDE txhawm rau txuas nrog firebase.
Kauj Ruam 2: Txoj Haujlwm ESP-01 Nrog OTA Yooj Yim rau Kev Hloov Kho Yav Tom Ntej
Los ntawm qhov chaws koj tuaj yeem rub tawm tsawg kawg OTA thiab nyem nws nrog arduino IDE rau koj li ESP01. Daim duab 1
Tam sim no tom qab koj flashed nws, nws yuav tsum popup hauv arduino IDE chaw nres nkoj zoo li no. Duab 2
Yog tias nws tsis pom tshwm ntawm no yog qhov txuas rau kev daws teeb meem, lossis koj tuaj yeem nug hauv cov lus.
Kauj Ruam 3: Txoj Haujlwm ESP01 Nrog Moodlight Hla OTA
Cias rub tawm cov cai los ntawm hauv qab no thiab nyem nws ntawm arduino IDE hla OTA zoo li nws tau pom yav dhau los nrog xaiv chaw nres nkoj ntawm coresponding ESP.
Kauj Ruam 4: Txhim Kho Txhua Yam
Cias thov siv cov laug me me tom qab shematic hauv qab no.
Rau lub zog hluav taws xob kuv siv 5V 1A lub xov tooj qub them nrog lub ntsuas hluav taws xob.
Kev Sib Txuas:
Vcc rau 3V (Tus tswj hwm qhov ntsuas hluav taws xob) GND rau GND GPIO0 rau Liab GPIO2 rau Ntsuab GPIO3 = RX rau Xiav CH_PD rau Vcc (lossis ua kom lub zog rub tawm ntawm ESP-01 module) xaiv tau: thawb khawm los ntawm GND rau RST kom rov pib dua module
Txij li thaum kuv yuav muab qhov no tso rau hauv kuv lub pob dawb kuv muab qee cov kua nplaum kub kom nws tsis txav los yog tawg. Nws ua haujlwm tam sim no rau 3 lub lis piam yam tsis muaj teeb meem.
Kauj Ruam 5: !! Qhov tseem ceeb hloov tshiab
Kuv paub ib qho teeb meem nrog kev tsim tam sim no thiab yuav tsum tso rau/tawm cov hloov ntawm tag nrho 3 xim (RGB) ntawm LED thiab ESP01 vim tias yog koj hloov nws tawm thiab tom qab ntawd dua nws nws yuav nyam hauv hom flash es tsis txhob siv daim duab kos.
Tsuas yog kaw cov xov hluav taws xob thaum koj ntsaws nws thiab tom qab ntawd qhib lub qhov rooj thiab txhua yam yuav ua haujlwm zoo.
Kauj Ruam 6: Txuas rau Github thiab Shematic
ESP01 moodlight GITHUB
Kauj Ruam 7: Cov Khoom Kawg
Pom zoo:
Programming Arduino Over the Air (OTA) - Ameba Arduino: 4 Kauj Ruam
Programming Arduino Over the Air (OTA)-Ameba Arduino: Muaj ntau lub Wi-nkaus microcontroller tawm muaj nyob rau hauv kev ua lag luam, ntau tus neeg tsim khoom txaus siab rau kev teeb tsa lawv Wi-nkaus microcontroller siv Arduino IDE. Txawm li cas los xij, ib qho ntawm qhov zoo tshaj plaws uas Wi-nkaus microcontroller yuav tsum tau muab yuav raug saib tsis taus, uas yog