Cov txheej txheem:

ESP01 Moodlight Nrog Firebase hauv Realtime + OTA: 7 Kauj Ruam
ESP01 Moodlight Nrog Firebase hauv Realtime + OTA: 7 Kauj Ruam

Video: ESP01 Moodlight Nrog Firebase hauv Realtime + OTA: 7 Kauj Ruam

Video: ESP01 Moodlight Nrog Firebase hauv Realtime + OTA: 7 Kauj Ruam
Video: DIY WiFi RGB светильник (ночник) на базе ESP8266 ESP-01 2024, Kaum ib hlis
Anonim
Image
Image

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

Teeb tsa Firebase
Teeb tsa Firebase
Teeb tsa Firebase
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

Txoj Haujlwm ESP-01 Nrog Yooj Yim OTA rau Kev Hloov Kho Yav Tom Ntej
Txoj Haujlwm ESP-01 Nrog Yooj Yim OTA rau Kev Hloov Kho Yav Tom Ntej
Txoj Haujlwm ESP-01 Nrog Yooj Yim OTA rau Kev Hloov Kho Yav Tom Ntej
Txoj Haujlwm ESP-01 Nrog Yooj Yim OTA 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

Txuas rau Github thiab Shematic
Txuas rau Github thiab Shematic

ESP01 moodlight GITHUB

Kauj Ruam 7: Cov Khoom Kawg

Pom zoo: