Cov txheej txheem:

WiFi Ua Haujlwm Los Ntawm Tsev Qhia: 5 Kauj Ruam (nrog Duab)
WiFi Ua Haujlwm Los Ntawm Tsev Qhia: 5 Kauj Ruam (nrog Duab)

Video: WiFi Ua Haujlwm Los Ntawm Tsev Qhia: 5 Kauj Ruam (nrog Duab)

Video: WiFi Ua Haujlwm Los Ntawm Tsev Qhia: 5 Kauj Ruam (nrog Duab)
Video: Yuav ua li cas kom tau nyiaj ntau zuj zus los ntawm kev ua hauj lwm? 2024, Kaum ib hlis
Anonim
WiFi Ua Haujlwm Los Ntawm Tsev Qhia
WiFi Ua Haujlwm Los Ntawm Tsev Qhia
WiFi Ua Haujlwm Los Ntawm Tsev Qhia
WiFi Ua Haujlwm Los Ntawm Tsev Qhia

Rau cov uas siv muaj hmoo txaus los ua haujlwm hauv tsev, tej zaum peb yuav pom tias muaj qee qhov kev cov nyom loj thaum nws los txog rau ciam teb nrog lwm tus hauv tsev. tswj cov xim LEDs siv lub vev xaib sib tham kom qhia rau lwm tus hauv tsev paub tias koj tab tom hu lossis lwm yam tsis txhob cuam tshuam.

Lub teeb tseem muaj cov hlau nplaum yog li nws tuaj yeem txuas tau yooj yim thiab tshem tawm ntawm lub qhov rooj kov kom yooj yim siv thiab them nyiaj.

Yog li yog tias koj tab tom nrhiav kev thaj yeeb me ntsis hauv tsev, tej zaum qhov no yog phau ntawv qhia rau koj!

Khoom siv

  • Adafruit Feather Huzzah ESP8266 (Txhua ESP8266 tuaj yeem muaj peev xwm ua haujlwm, tab sis Huzzah muaj lipo them hluav taws xob txuas thiab tseem zoo heev 3.3v tus tswj hwm) -
  • 8 daim Neopixel strip* -
  • Lipo roj teeb - Txhua qhov tsim nyog yuav tsum ua (600mAH +) Kuv tsis muaj qhov zoo rau cov no
  • Qhov Project Case -
  • Laus Hard drive - Cov peev txheej zoo ntawm cov hlau nplaum muaj zog tiag!

Kauj ruam 1: Txheeb Tawm Cov Video

Image
Image

Kuv kuj tau ua yeeb yaj kiab ntawm qhov haujlwm no yog tias koj xav tshuaj xyuas nws.

Kuv yuav muaj kev ntxub ntxaug, tab sis kuv xav tias nws tsim nyog txheeb xyuas qhov ntxim nyiam ntxim nyiam ntawm kuv tus ntxhais hnub nyoog 3 xyoos hais lus qee tus neeg Irish!

Kauj ruam 2: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Nov yog lub hom phiaj yooj yim tsim los ntawm kho vajtse pom, ua qhov haujlwm yooj yim yog qhov tseem ceeb rau kuv dua li ua kom zoo dua rau roj teeb, tab sis nws yuav tsum siv sijhawm ib hnub ua haujlwm ntawm kev them ib zaug yog li kuv xav tias yog qhov zoo txaus.

Micrcontroller: ESP8266

Rau cov tswj hwm micro peb siv ESP8266 programmed nrog Arduino IDEYog tias koj tsis paub nrog ESP8266, Nws yog qhov zoo tshaj plaws Arduino sib xws ntaus ntawv uas tau tsim hauv WiFi, Kuv pom zoo txheeb xyuas Becky Stern's IoT chav kawm kom paub ntau ntxiv.

Kuv tshwj xeeb xaiv Adafruit Feather Huzzah ESP8266 vim tias nws los nrog cov khoom siv hluav taws xob rau siv Lipo roj teeb ua ke. Nws kuj muaj 500mA 3.3V tus tswj hwm, uas yog qhov zoo me ntsis zoo dua li yuav muaj nyob rau feem ntau ntawm cov pheej yig Suav ESP8266. Qhov no tso cai rau peb ua kom lub zog Neopixels siv 3.3V, uas tuaj yeem pab peb zam qhov teeb meem uas qee zaum tshwm sim thaum siv Neopixles siv nrog 5v los ntawm 3.3v logic qib ntaus ntawv zoo li ESP8266.

Teeb: Neopixels

Kuv xaiv neopxiels vim tias lawv yog txoj hauv kev yooj yim ntawm kev ntxiv RGB leds rau koj qhov project. Lawv tsuas xav tau lub zog thiab ib cov ntaub ntawv xaim txuas, thiab lawv tso cai rau koj teeb lawv rau ib qho xim twg, txawm tias teeb xim ntawm LEDs ib tus zuj zus.

Cov neopixels tau xaim raws li ua raws.

VCC -> 3V

GND -> GND

Cov ntaub ntawv -hauv -> gpio 0

Roj teeb: Txhua Lipo

Kev siv lub roj teeb hluav taws xob ntawm cov plaub huzzah ua rau siv lipo yooj yim heev. Koj tuaj yeem txuas nws ncaj qha mus rau JST txuas ntawm plaub huzzah (NCO TSEG: thov txheeb xyuas qhov sib txawv ntawm koj lub roj teeb, tsis muaj tus qauv rau qhov no yog li nws yuav xav tau hloov pauv ib puag ncig) lossis koj tuaj yeem txuas rau GND thiab BAT pins ntawm kom hu lub roj teeb koj tuaj yeem ntsaws lub micro USB cable rau hauv huzzah.

Koj yuav tsum kuaj xyuas kev noj qab haus huv ntawm lub roj teeb. Nws tau lees paub feem ntau tias lipo yuav tsum tsis pub tso hauv qab 3V, yog li koj yuav tsum ua kom ntseeg tau tias nws tau siab dua qhov ntawd ua ntej siv nws hauv koj qhov project.

Kauj ruam 3: Code

Code
Code
Code
Code

Txoj cai rau txoj haujlwm no hnyav heev raws li tus piv txwv nyob zoo nyob rau ESP8266 hauv Arudino IDE.

Muaj ib qho thiab taw tes rau kev hloov LEDs rau Liab, Ntsuab thiab tom qab ntawd tua lawv, tab sis yuav tsum muaj cov yam ntxwv ntxiv yog tias xav tau.

Koj tuaj yeem rub tawm thiab teeb tsa cov cai los ntawm kuv Github

Muaj ib lub tsev qiv ntawv sab nraud koj yuav xav tau ntxiv los ntawm tus thawj tswj tsev qiv ntawv, thiab qhov ntawd yog Neopixel lub tsev qiv ntawv los ntawm Adafruit.

Kauj Ruam 4: Cov Hlau Hlau

Cov hlau nplaum
Cov hlau nplaum
Cov hlau nplaum
Cov hlau nplaum
Cov hlau nplaum
Cov hlau nplaum

Txhawm rau txuas nws mus rau lub qhov rooj Kuv tau siv lub zog sib nqus tiag tiag los ntawm lub zog tsav qub. Tsuas yog tshem tag nrho cov ntsia hlau los ntawm sab nraud ntawm lub zog tsav thiab koj yuav tsum muaj peev xwm ncaj ncees yooj yim tuaj yeem rub tawm cov hlau nplaum. Kuv xav tias nws mus yam tsis tau hais tias qhov no tsuas yog ua tiav ntawm lub zog tsav koj tsis xav tau ntxiv! Qhov no yuav rhuav tshem txoj kev tsav!

Cov no muaj zog heev yog li kuv xav kom ceev faj nrog lawv, tshwj xeeb tshaj yog thaum tshem lawv li koj tuaj yeem yooj yim ntiv tes.

Raws li qhov no tsuas yog tsim qauv sai, thiab lub zog ntawm cov hlau nplaum yuav rub mus rau rooj plaub txawm li cas los xij, Kuv txiav txim siab tsuas yog siv blu-tack los txuas nws rau rooj plaub.

Kauj ruam 5: Siv

Pab
Pab
Pab
Pab
Pab
Pab

Txhawm rau siv lub cuab yeej, koj tuaj yeem mus ntsib "wfh.local" ntawm koj lub vev xaib. Thov nco ntsoov tias yog ua raws Bonjour cov kev pabcuam, xav paub ntau ntxiv txheeb xyuas qhov txuas no.

Tom qab ntawd koj tsuas tuaj yeem siv lub vev xaib sib txuas los hloov kho cov xim LED thaum twg koj xav tau!

Vam tias koj pom Cov Lus Qhia no muaj txiaj ntsig.

Kuv yuav nyiam hnov txog qhov koj yuav ua nrog hom teeb tsa no. Thov qhia rau kuv paub hauv cov lus hauv qab no, lossis koom nrog kuv thiab ib pawg ntawm lwm tus tsim ntawm kuv li Discord server, qhov uas peb tuaj yeem tham txog cov ncauj lus no lossis lwm tus tsim muaj feem cuam tshuam nrog koj muaj, tib neeg yeej muaj txiaj ntsig zoo yog li nws yog qhov chaw zoo rau dai tawm.

Kuv kuj tseem xav ua tsaug ntau rau kuv Github Sponsors uas pab txhawb qhov kuv ua, Kuv yeej txaus siab rau nws. Yog tias koj tsis paub, Github sib piv cov kev txhawb nqa rau thawj xyoo, yog li yog koj ua tus txhawb nqa lawv yuav phim nws 100% rau ob peb hlis tom ntej. Ua tsaug rau kev nyeem ntawv!

Pom zoo: