Cov txheej txheem:

Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: 6 Kauj Ruam
Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: 6 Kauj Ruam

Video: Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: 6 Kauj Ruam

Video: Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: 6 Kauj Ruam
Video: Arduino Controlled Robotic Biped - Test and Demo 2024, Hlis ntuj nqeg
Anonim
Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Tswj
Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Tswj

Qhov no yog qhov ua tau zoo heev DIY Wireless Wall Outlet maub los rau tus nqi qis LED strips.

Nws hloov pauv qhov pheej yig tus tswj hwm wifi muag ntawm EBay. Lawv ua haujlwm tau zoo nrog RGB Led strips. EBay Wifi tus tswj hwm tsis tau tsim kom zoo, thiab tawg yooj yim. Tsis tas li, kuv zoo li tsis tuaj yeem pom nws thaum twg kuv xav siv nws, thiab lawv tsis zoo li ntawd. Muaj lwm qhov kev xaiv los ntawm kev siv App Dawb nrog Android lossis IOS. Qhov tsis zoo ntawm qhov ntawd yog kuv tsis tas nqa lub xov tooj nyob ib ncig ntawm lub tsev. Txawm hais tias kuv ua, Kuv yuav tsum pib App ua ntej siv nws. Tsis ncaj ncaj rau kuv lwm tus neeg hauv tsev neeg, laus thiab hluas. Lub tswv yim hloov phab ntsa tau nkag siab ntau dua thiab tau txais kev pom zoo hauv zej zog. Qhov tseem ceeb tshaj plaws, yog tias kuv siv xov tooj los tswj ntau lub teeb nyob hauv tsev, kuv yuav tsum sau npe nrog lub app nrog rau tag nrho kuv lub tsev Wifi cov ntaub ntawv (SSID, password, thiab lwm yam). nrog tus neeg rau zaub mov zaum hauv Asia, uas kuv tsis xis nyob nrog.

Qee qhov lwm tus neeg zoo li tuaj yeem tawg thiab rov tsim kho qhov kev tswj hwm pheej yig thiab khiav IFTTT, uas tuaj yeem nyuaj rau qee qhov. Nrog txoj haujlwm no, Kuv tuaj yeem siv kuv lub teeb pom kev zoo ib yam, yooj yim dua, thiab tib neeg feem ntau paub siv nws li cas. Txij li tsis muaj kev hloov kho rau tus tswj hwm, koj tseem tuaj yeem siv nws nrog AWS echo lossis Google Tsev. Tom qab ntawd kuv tau teeb tsa lub rooj tsav xwm PC rau nws txhawm rau txhim kho kev ntseeg tau thiab tshem tawm cov xov hlau txuas. Tsis muaj xov hlau los rub, thiab thaj tsam npog zoo heev, Kuv tau sim tawm mus txog 50 '. Feem ntau cov hloov pauv yuav raug teeb tsa ze rau ntawm lub teeb ib qho twg. Kuv tuaj yeem tsim ntau li kuv xav tau txog $ 20 txhua, yooj yim. Auj, ntxiv rau $ 5 lub cib fais fab los txhawb nws.

Nqi

Tsawg dua $ 20 qhov haujlwm, + $ 5 rau lub zog cib.

Cov cuab yeej

Soldering hlau

ntsia hlau tsav tsheb

PC rau software txhim kho Arduino IDE

Khoom siv

1 x Arduino ESP32 maub los ntawm EBay

1 x 2.4 TFT xim LCD zaub nrog kov ncoo nkag

1 x 0.1 "daim phiaj 2" x 3 "pawg thawj coj

Hluav taws xob xaim-qhwv hlau

Cov hlau lead

2 x 2 "x 1" Flex yas

2 x hluav taws xob phab ntsa qhov hluav taws xob ntsia hlau

4 x #4, lossis #6 tshuab ntsia hlau thiab txiv ntoo

Ib pawg ntawm ib leeg-kab-kab IC lub taub hau, los ntawm peb cov khoom siv hluav taws xob hauv ib cheeb tsam

Kauj Ruam 1: Cov Cuab Yeej Headers rau ntawm Pawg Thawj Coj

Solder Headers Onto Prototype Board
Solder Headers Onto Prototype Board
Solder Headers Onto Prototype Board
Solder Headers Onto Prototype Board

Kuv siv ESP-32 module los ntawm EBay rau qis dua $ 6, thiab 2.4 TFT LCD nrog touchpad rau $ 7

Cov kab laug sab ib leeg hauv kab kab taub hau txiav kom haum rau ESP-32 mus rau pawg thawj coj. Nws nyob ntawm koj daim ntawv thov hloov pauv kom haum rau pawg thawj coj saib loj. Kuv yooj yim ua raws li pawg thawj coj saib zoo ib yam li LCD module. Qhov kawg kuv tsis muaj kev tswj hwm nws, tab sis nws yog qhov nrov ntawm EBay lossis AliExpress.

Qhov loj me me ntawm LCD tsuas yog haum rau tom qab lub foob pob hluav taws hloov mus rau pem hauv ntej. Yog tias koj ua kab kom raug, thiab txuas ob kab ib leeg-hauv-kab lub taub hau ntawm sab hauv qab ntawm pawg thawj coj saib, koj tuaj yeem siv lub taub hau los sib koom ua ke ob lub laug cam ua ke yam tsis siv ntsia hlau. Lawv tuav tau zoo nkauj, thiab tuaj yeem yooj yim cais rau debugging.

Kauj Ruam 2: Cov Hluav Taws Xob Hluav Taws Xob los Txuas Lub Taub Hau Rau ESP32 thiab LCD Module

Cov Cuab Yeej Siv Hluav Taws Xob los Txuas Lub Taub Hau Rau Ob Qhov ESP32 thiab LCD Module
Cov Cuab Yeej Siv Hluav Taws Xob los Txuas Lub Taub Hau Rau Ob Qhov ESP32 thiab LCD Module

Ua raws li cov txheej txheem, cov xaim hluav taws xob qhwv cov xov hlau los ntawm ESP32 tus qauv lub taub hau mus rau hauv qab lub taub hau taub hau. Nws zoo li nyuaj rau thaum pib, tab sis qhov tseeb muaj 14 xov hlau nkaus xwb, ntxiv rau 3 dhia hla. Nws siv kuv li ib teev los ua nws.

Tsis muaj qhov xav tau ntawm lub LCD module. Rau pawg thawj coj ua phooj ywg rau pawg thawj coj saib, koj yuav tsum muab lub taub hau 4-tus pin rau nws ntawm lwm qhov kawg txawm hais tias. Feem ntau cov qauv LCD tsis tuaj nrog nws.

Kauj Ruam 3: Ua Mounting Bracket

Ua ib qho Mounting Bracket
Ua ib qho Mounting Bracket

Txiav ob daim yas rau hauv qhov dav ib yam li LCD module, thiab siv lub foob pob hluav taws hloov mus raws li tus qauv txhawm rau txhawm rau lub qhov yas kom ua rau qhov txuas txuas. Qhov no yuav siv qee qhov kev ua siab ntev los kho lawv. Siv qee qhov #4, lossis #6 tshuab ntsia hlau thiab txiv ntseej, thiab lub qhov taub, txhawm rau ua kom lub phaj yas ruaj khov rau lub LCD module zoo li hauv daim duab saum toj no. Kuv tau sim ib qho nrog yas thiab ib qho nrog phaj hlau zinc. Cov yas yog yooj yim dua los tuav thiab cuab yeej, thiab muaj zog txaus los txhawb nqa tag nrho cov hloov. Kuv tau txais nrog cov spacers nrog cov yas ib yam, zoo li kuv tsuas tuaj yeem coj mus rhaub cov ntsia hlau rau hauv nws.

Tag nrho txhua yam yuav tsum haum rau hauv lub thawv hluav taws xob tsis tu ncua. Nyob ntawm lub thawv yog yas lossis hlau, thiab hom, koj yuav tsum tau txiav qhov ntawd me ntsis. Lub thawv yas lub qhov hluav taws xob xiav ib txwm muaj cov ntsia hlau tuav uas yuav xav tau rov qab me ntsis. Kuv siv Oscillating Multi-Tool los txiav qhov ntawd hauv qhov nrawm.

Kauj Ruam 4: Tsim Tus Tswj Xyuas Software

Tsim Tus Tswj Xyuas Software
Tsim Tus Tswj Xyuas Software

Nov yog qhov kev xav tias koj yuav tsum paub nrog Arduino Sketch IDE ib puag ncig. Kuv tuaj yeem muab cov ntawv binary uas yuav tsum ua haujlwm yog tias koj ua raws cov txheej txheem los tsim cov pawg thawj coj. Txij li muaj ntau lub vev xaib sib tham txog Arduino Sketch IDE kev qhia, thiab zoo li no, nws yuav tsis npog ntawm no.

Kauj Ruam 5: Rub lub Control Firmware

Zoo ib yam li ntu yav dhau los, muaj ntau lub vev xaib qhia txog yuav ua li cas rau program Arduino module. xws li pytool. Kuv tuaj yeem muab cov ntaub ntawv binary rau koj sim. Lub software tseem tab tom hloov pauv, thiab tau muab raws li yog, tsis muaj kev lees paub lossis kev xav ntawm kev lav phib xaub. Tus neeg siv tuaj yeem siv nws dawb yam tsis muaj kev hloov kho, ntawm lawv tus kheej txoj kev pheej hmoo.

Kauj Ruam 6: Xeem Kev Xeem

Image
Image
Kev Xeem
Kev Xeem

Tus tswj tau pib hauv lub teeb hloov UI nplooj ntawv, vim qhov no yog lub teeb tswj. Nws ua haujlwm nrog nrov WiFi RGB Led sawb tswj. Cov ntawv qhia zaub mov tseem ceeb muaj 6 Icons, thiab kuv vam tias txhua yam yog qhov kev piav qhia tus kheej.

Ib yam yuav tsum tau taw qhia yog tias koj yuav tsum tau mus rau nplooj ntawv tseem ceeb los ntawm nias Google zoo li 9 lub xwmfab khawm, tom qab ntawd sab saud teeb tsa Icon los xaiv khawm WiFi. Tom qab ntawd nws yuav siv lub tshuab luam ntawv tsis siv neeg tag nrho wifi AP, thiab koj yuav tsum xaiv tus tswj hwm WiFi raws li lawv qhov chaw nyob MAC. Cov ntaub ntawv yuav raug khaws tseg rau ntu tom ntej.

Daim vis dis aus qhia pom:

1. Ib daim ntawv tuav tes uas siv lub roj teeb tswj lub teeb ci RGB nyob hauv qab nthab molding. Qhov no tso cai rau kuv tua cov vis dis aus rau ob qho tib lub sijhawm.

2. Ib qho kev hloov kho sab hauv lub thawv hloov phab ntsa ib txwm muaj.

Pom zoo: