Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Tau PCBs rau Koj Txoj Haujlwm Tsim
- Kauj Ruam 2: Saib ntawm Relay Module
- Kauj Ruam 3: Txuas ESP8266 Nrog Lub Rooj Sib Tham Sib Txuas
- Kauj Ruam 4: Rub tawm thiab teeb tsa Arduino IDE
- Kauj Ruam 5: Ntxiv Tsev Qiv Ntxiv rau Arduino IDE
- Kauj Ruam 6: Coding Module
- Kauj Ruam 7: Lub Relay Hloov ntawm Kev Hais kom Alexa
Video: Tswj Cov Khoom Siv Hauv Tsev Los Ntawm Alexa Nrog ESP8266 lossis ESP32: 8 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hav, ua li cas, Cov Menyuam! Akarsh nov los ntawm CETech.
Qhov haujlwm no ntawm kuv yuav pab koj lub neej dhau los yooj yim thiab koj yuav zoo li huab tais tom qab tswj cov cuab yeej hauv koj lub tsev los ntawm kev muab lus txib rau Alexa.
Qhov tseem ceeb tom qab qhov haujlwm no tsis muaj dab tsi tab sis ua haujlwm ntawm ob lub qauv ESP8266 thiab Relay Module. Yeej peb yuav tswj hwm peb ESP8266 siv Alexa.
Txog rau qhov kawg ntawm tsab xov xwm, peb yuav ua qhov sib txuas yooj yim ntawm ESP8266 thiab kev xa xov txuas ntxiv ua raws cov cai rau txuas thiab tswj ESP8266 nrog Alexa.
Cia peb pib nrog kev lom zem tam sim no.
Khoom siv
Txuas mus rau cov khoom:
ESP8266 NodeMcu:
Dual-channel relay board:
Kauj Ruam 1: Tau PCBs rau Koj Txoj Haujlwm Tsim
Koj yuav tsum txheeb xyuas PCBGOGO rau xaj PCBs online kom pheej yig!
Koj tau txais 10 qhov zoo PCBs tsim thiab xa mus rau koj lub qhov rooj rau 5 $ thiab qee qhov xa khoom. Koj tseem yuav tau txais luv nqi ntawm kev xa khoom ntawm koj thawj daim ntawv xaj.
PCBGOGO muaj peev xwm ntawm PCB los ua ke thiab tsim khoom stencil nrog rau ua kom tau cov qauv zoo.
Txheeb xyuas lawv Yog tias koj xav tau PCBs tsim lossis sib sau ua ke.
Kauj Ruam 2: Saib ntawm Relay Module
Relay Module yog lub rooj tsav xwm yooj yim uas tuaj yeem siv los tswj cov hluav taws xob muaj zog, lub siab tam sim no xws li cov teeb thiab AC load. Nws tau tsim los cuam tshuam nrog microcontroller xws li Arduino, ESP8266 thiab lwm yam. Nws los nrog LED los qhia qhov xwm txheej ntawm kev xa xov. Cov qauv kev sib txuas feem ntau muaj cov hauv qab no:
1. NC (Feem ntau kaw) = Qhov ib txwm kaw kev teeb tsa tau siv thaum koj xav kom lub kaw lus xa tawm raug kaw los ntawm lub neej ntawd, txhais tau tias cov dej ntws tam sim no tshwj tsis yog tias koj xa lub teeb liab los ntawm Arduino mus rau qhov txuas txuas mus qhib lub Circuit Court thiab nres tam sim no.
2. TSIS YOG (Ib txwm Qhib) = Qhov ib txwm qhib kev teeb tsa ua haujlwm rau lwm txoj hauv kev: qhov txuas txuas ib txwm qhib, yog li cov kab hluav taws xob tawg tshwj tsis yog koj xa lub teeb liab los ntawm Arduino kom kaw lub Circuit Court.
3. Tus pin sib xws = Feem ntau nws nyob nruab nrab
4 Cov tswv yim pins = Nws yog tus pin los ntawm qhov uas txuas tau txuas nrog lub cuab yeej tswj.
Yog tias tsis tau hais txog ntawm tus qauv peb tuaj yeem paub NC tus pin siv lub ntsuas qhov ntsuas nyob hauv qhov txuas txuas los ntawm kev sib txuas ib qho nrog lwm lub davhlau ya nyob twg los ntawm kev ntsuas qhov ntsuas yog tias nws tsim lub suab nrov nrov ces tus pin yog NC.
Kauj Ruam 3: Txuas ESP8266 Nrog Lub Rooj Sib Tham Sib Txuas
Cov qauv tuaj yeem yuav los ntawm no (Txuas ntxiv rau). Koj yuav tau txais qee qhov kev pom zoo ntawm no.
Kev sib txuas yog nyob hauv ob ntu:
Nruab nrab ntawm ESP8266 thiab Relay Module:
1. Txuas D5 (GPIO14) tus pin nrog cov tswv yim ntawm tus xa xov. Koj tuaj yeem txuas ntau qhov txuas nkag mus ib yam los ntawm kev txuas lawv mus rau lwm tus GPIO pins muaj.
2. Txuas Vcc ntawm tus qauv xa mus rau 5V/12V fais fab mov raws li koj tus qauv xa tawm.
3. Txuas GND ntawm ESP8266 nrog GND ntawm cov qauv xa tawm thiab tom qab ntawd txuas lawv rau GND ntawm lub zog xa khoom.
Nruab nrab ntawm Relay module thiab Appliance:
1. Xyuas kom tseeb tias lub qhov (socket) fais fab tuag ua ntej sib txuas.
2. Txuas qhov qub nrog ib lub davhlau ya nyob twg ntawm lub qhov (socket).
3. Txuas lwm lub davhlau ya nyob twg ntawm lub qhov (socket) mus rau lub davhlau ya nyob twg ntawm cov khoom siv.
4. Txuas lwm lub davhlau ya nyob twg ntawm cov khoom siv mus rau NO lub davhlau ya nyob twg ntawm kev xa xov.
Thaum cov kauj ruam no ua tiav koj tuaj yeem txav mus rau qhov software.
Kauj Ruam 4: Rub tawm thiab teeb tsa Arduino IDE
Rub tawm Arduino IDE los ntawm no
1. Nruab Arduino IDE thiab qhib nws.
2. Mus rau File> Preferences
3. Ntxiv https://arduino.esp8266.com/stable/package_esp8266c… rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs.
4. Mus rau Cov Cuab Yeej> Pawg Thawj Coj> Tus Thawj Saib Xyuas Haujlwm
5. Tshawb nrhiav esp8266 thiab tom qab ntawd teeb tsa lub rooj tsavxwm.
6. Rov pib dua IDE.
Kauj Ruam 5: Ntxiv Tsev Qiv Ntxiv rau Arduino IDE
Peb yuav siv fauxmoESP lub tsev qiv ntawv los tswj peb ESP8266 siv Alexa.
Lub tsev qiv ntawv no xav tau lwm lub tsev qiv ntawv los ua haujlwm uas yog ESPAsyncTCP.
Kawm paub txog fauxmoESP lub tsev qiv ntawv los ntawm no. Txog ESPAsyncTCP lub taub hau rau nplooj ntawv no.
FauxmoESP lub tsev qiv ntawv tuaj yeem rub tawm los ntawm no.
ESPAsyncTCP lub tsev qiv ntawv tuaj yeem rub tawm los ntawm no.
Tom qab rub tawm cov tsev qiv ntawv no peb yuav tsum tau rho tawm lawv thiab muab tso rau hauv cov tsev qiv ntawv nplaub tshev ntawm Arduino IDE uas tuaj yeem pom hauv qab cov ntawv tais ceev tseg.
Kauj Ruam 6: Coding Module
1. Rub tawm cov cai rau txuas thiab tswj ESP8266 nrog Alexa los ntawm no.
2. Qhib tus lej hauv Arduino IDE thiab hloov qhov yuav tsum tau hloov mus rau SSID/Password nyob rau sab saum toj ntawm txoj cai.
3. Mus rau Cov Cuab Yeej> Pawg Thawj Coj. Xaiv lub rooj tsav xwm uas tsim nyog uas koj siv NodeMCU (12E) ua haujlwm feem ntau.
4. Xaiv qhov kom raug. chaw nres nkoj los ntawm kev mus rau Cov Cuab Yeej> Chaw Nres Nkoj.
5. Ntaus lub pob upload.
6. Thaum lub tab hais tias Done Uploading koj tau npaj siv lub cuab yeej.
Kauj Ruam 7: Lub Relay Hloov ntawm Kev Hais kom Alexa
Tom qab cov cai tau muab tso tawm:
1. Peb tuaj yeem nqa lub cuab yeej Alexa thiab nug nws "Alexa, tshawb pom cov cuab yeej". Raws li peb lub cuab yeej pib ua hauv kev ua khub nws yuav tuaj yeem tshawb pom rau Alexa.
2. Thaum lub cuab yeej tshawb pom lub vijtsam tawm, nws qhia tau tias lub cuab yeej raug tshawb pom thiab ntxiv.
3. Sim nws nrog hais "Alexa, Qhib" hauv kuv qhov xwm txheej kuv tau muab cov npe "Device1" thiab "Device 2"
Koj yuav tuaj yeem pom tias qhov kev xa xov hluav taws xob qhib thiab tawm thaum peb muab lus txib rau Alexa.
Txoj hauv kev no, koj tuaj yeem tswj tau ntau yam khoom siv hauv tsev zoo li koj xav tau siv tus qauv txuas uas tsim nyog thiab ua qhov hloov pauv hauv cov cai.
Qhov ntawd yog nws los ntawm qhov ua qauv qhia no!
Pom zoo:
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev -- Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: 4 Cov Kauj Ruam
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev || Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: Nov Yog Qhov Tuchless Hloov Rau Cov Khoom Siv Hauv Tsev. Koj Siv Tau Qhov No Mus Rau Txhua Qhov Chaw Hauv Pej Xeem Kom Pab Tau Tawm Tsam Ib Yam Kab Mob. Lub Circuit Court Raws Li Tsaus Sensor Circuit Ua Los Ntawm Op-Amp Thiab LDR. Qhov Tseem Ceeb Thib Ob Ntawm Qhov Circuit Court SR Flip-Flop Nrog Sequencell
Kev Tswj Lub Suab Hauv Tsev Automation (zoo li Alexa lossis Google Tsev, tsis xav tau Wifi lossis Ethernet): 4 Cov Kauj Ruam
Kev Tswj Lub Suab Hauv Tsev Automation (zoo li Alexa lossis Google Tsev, tsis xav tau Wifi lossis Ethernet Xav Tau): Nws yog qhov yooj yim SMS raws li arduino tswj kev xa xov nrog google tus pabcuam teeb tsa xa cov lus ntawm kev qhia lub suab. Nws yooj yim heev thiab pheej yig thiab ua haujlwm zoo li Alexa tshaj tawm nrog koj cov khoom siv hluav taws xob uas twb muaj lawm (yog tias koj muaj Moto -X ntse
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa - LoRa hauv Tsev Automation - LoRa Chaw Taws Teeb: 8 Kauj Ruam
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa | LoRa hauv Tsev Automation | LoRa Kev Tswj Chaw Taws Teeb: Tswj thiab siv koj lub cuab yeej siv hluav taws xob los ntawm qhov deb (Kilometers) yam tsis muaj internet. Qhov no ua tau los ntawm LoRa! Hav, ua li cas, cov menyuam? Akarsh ntawm no los ntawm CETechQhov PCB no tseem muaj cov zaub OLED thiab 3 qhov txuas uas
Tswj Cov Khoom Siv Hauv Tsev Los Ntawm Koj Lub Smarthphone Nrog Blynk App thiab Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Tswj Cov Khoom Siv Hauv Tsev Los Ntawm Koj Lub Ntsej Muag Nrog Blynk App thiab Raspberry Pi: Hauv qhov haujlwm no, peb yuav kawm paub siv Blynk app thiab Raspberry Pi 3 txhawm rau txhawm rau tswj cov khoom siv hauv tsev (Kas fes, Teeb, Qhov rai kab hlau rhuav thiab ntau ntxiv … ) .Hardware Cheebtsam: Raspberry Pi 3 Relay Teeb Breadboard WiresSoftware apps: Blynk A
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw