Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Siv
- Kauj Ruam 2: Teeb Raspberry Pi & Arduino IDE
- Kauj ruam 3: Upload Program
- Kauj Ruam 4: Ua Tus Python Script
- Kauj ruam 5: Download Ngrok
- Kauj Ruam 6: Teeb Alexa
- Kauj Ruam 7: Mus rau Alexa ==> Alexa Skill Kit ==> Ntxiv Kev Txawj Ntse Tshiab
- Kauj ruam 8:
- Kauj ruam 9:
- Kauj Ruam 10: Ntawm Nplooj Ntawv Tom Ntej Nws Yuav Nug Ob Qhov Kev Xaiv rau Qhov Kawg Nkaus Ib Yog AWS thiab
- Kauj Ruam 11: Rau SSL Daim Ntawv Pov Thawj Xaiv Qhov Xaiv thib ob. Txuag Nws thiab txav mus rau nplooj ntawv tom ntej
- Kauj Ruam 12: Txheeb Xyuas Kev Pabcuam "ntawm"
- Kauj Ruam 13: Cov Neeg Tau Txais Kev Thov
- Kauj Ruam 14: Thov Muab Tshaj Tawm
- Kauj Ruam 15: Schematics Arduino
- Kauj Ruam 16: Teeb duab LED
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Kuv tau piav qhia yuav ua li cas tswj lub teeb uas txuas nrog UNO thiab tswj los ntawm Alexa.
Kauj Ruam 1: Cov Khoom Siv
HARDWARE SIV
- Arduino UNO & Genuino UNO
- Resistor 221 hli
- LED (generic)
- Raspberry Pi 3 Qauv B.
SOFTWARE YUAV TSUM TAU
- Arduino IDE Cov
- Amazon Alexa Alexa Skills Kit
Kauj Ruam 2: Teeb Raspberry Pi & Arduino IDE
1. First install binaries
sudo apt-tau nruab nruab sej-pip
pip nruab flask
pip nruab flask-nug
sudo apt-tau nruab pyserial
sudo apt-tau nruab intl libpython2.7-dev
2. Txhim Kho Arduino IDE ntawm RPi
Txhawm rau nruab Arduino hauv RPi
1. Mus rau qhov chaw raug cai thiab rub tawm cov ntawv tso tawm dhau los.
Tom qab ntawd unzip nws thiab mus rau phau ntawv teev npe ntawm arduino thiab pib nws nrog./arduino
Kauj ruam 3: Upload Program
Tom qab rub tawm qhov program, qhib lub davhlau ya nyob twg.
Thaum koj sau N coj yuav qhib.
Thaum koj sau F coj yuav tua.
Kauj Ruam 4: Ua Tus Python Script
Khiav nws siv nab hab sej lighcontrol.py
Kauj ruam 5: Download Ngrok
Ngrok yog qhov chaw nyab xeeb rau kev ua kom koj lub cuab yeej online. Nrog lub platform no koj tuaj yeem ua rau koj daim ntawv thov web lossis ib daim ntawv thov mus online nrog txoj hauv kev yooj yim heev. Txhawm rau rub mus rau qhov chaw raug cai thiab rub tawm rau ARM.
ngrok.com/
Unzip nws thiab mus rau cov npe uas koj rho tawm nws. Khiav nws siv cov lus txib
./ngrok http 5000
Kauj Ruam 6: Teeb Alexa
1. Nkag mus rau Amazon tus lej. Yog tias koj muaj ib tus account ces nkag mus, yog tias tsis kos npe rau ntawd thiab nkag mus.
developer.amazon.com/
2. Mus rau Developer Console nyob rau sab saum toj sab xis.
Kauj Ruam 7: Mus rau Alexa ==> Alexa Skill Kit ==> Ntxiv Kev Txawj Ntse Tshiab
Alexa Skill Kit ==> Ntxiv Kev Txawj Ntse tshiab "src =" https://content.instructables.com/ORIG/FJ2/4LKE/JBE12M7I/FJ24LKEJBE12M7I-j.webp
Alexa Skill Kit ==> Ntxiv Kev Txawj Ntse tshiab "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">
Koj yuav pom nplooj ntawv zoo li no. Ntawm nplooj ntawv no nws yuav nug yam txuj ci, lub npe, hom lus thiab lub npe hu xov tooj. Koj tuaj yeem muab lub npe twg, hauv lub npe hu xov tooj koj yuav tsum muab lub npe uas koj hais thaum muab lus txib rau Alexa.
Thov nco ntsoov xaiv cov lus tsim nyog uas siv hauv koj lub tebchaws yog tias koj xaiv cov lus sib txawv thaum tsim cov txuj ci. Nws yuav tsis ua haujlwm.
Thaum kawg hloov kho nws, txuag nws thiab nias tom ntej.
Kauj ruam 8:
Kauj ruam 9:
Nyob rau nplooj ntawv tom ntej, nws yuav nug txog kev nkag siab. Ntawm lub hom phiaj sawv cev rau qhov kev ua uas ua tiav tus neeg siv cov lus thov. Yog xav paub ntxiv
developer.amazon.com/docs/custom-skills/de…
Yog tias muaj qhov yuam kev koj yuav pom xim liab.
Sau cov cai hauv qab no hauv lub thawv
"txhob txwm": "LightOn"
}, {
"txhob txwm": "LightOff"
}]
}
txuag nws thiab txav mus rau nplooj ntawv tom ntej.
Kauj Ruam 10: Ntawm Nplooj Ntawv Tom Ntej Nws Yuav Nug Ob Qhov Kev Xaiv rau Qhov Kawg Nkaus Ib Yog AWS thiab
Xaiv HTTPS & txuag nws thiab txav mus rau nplooj ntawv tom ntej.
Kauj Ruam 11: Rau SSL Daim Ntawv Pov Thawj Xaiv Qhov Xaiv thib ob. Txuag Nws thiab txav mus rau nplooj ntawv tom ntej
Kauj Ruam 12: Txheeb Xyuas Kev Pabcuam "ntawm"
Txhawm rau sim seb qhov kev pabcuam ua haujlwm lossis tsis ua. Nco ntsoov tias koj Ngrok server ua haujlwm thiab Python tsab ntawv tseem ua haujlwm tsis li nws yuav tsis ua haujlwm.
Koj tuaj yeem pom cov servers tau txais kev thov thiab tshaj tawm nws.
Kauj Ruam 13: Cov Neeg Tau Txais Kev Thov
Kauj Ruam 14: Thov Muab Tshaj Tawm
Kauj Ruam 15: Schematics Arduino
Kauj Ruam 16: Teeb duab LED
Vam tias nej txhua tus nyiam.
Pom zoo:
Yuav Tswj Li Cas Cov Teeb Meem LEDs nrog Fadecandy thiab Ua: 15 Cov Kauj Ruam (nrog Duab)
Yuav Tswj Li Cas Cov Teeb Meem LEDs nrog Fadecandy thiab Ua Haujlwm: Dab tsi Qhov no yog cov lus qhia ib qib zuj zus yuav siv Fadecandy li cas thiab Ua Li Cas thiaj tswj tau qhov chaw nyob LEDs. (Koj tuaj yeem txuas ntau Fadecandys rau ib lub khoos phis tawj kom nce ntxiv
Yuav Ua Li Cas Tswj Cov Khoom Siv Hauv Tsev Nrog TV Chaw Taws Teeb Nrog Timer Ua Haujlwm: 7 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tswj Cov Khoom Siv Hauv Tsev Nrog TV Chaw Taws Teeb Nrog Lub Sijhawm Ua Haujlwm: Txawm tias tom qab 25 xyoo ntawm nws qhov kev qhia rau cov neeg siv khoom lag luam, kev sib txuas lus infrared tseem muaj feem cuam tshuam nyob rau hnub tsis ntev los no. Txawm hais tias nws yog koj li 55 nti 4K TV lossis koj lub suab lub tsheb, txhua yam xav tau IR chaw taws teeb tswj los teb rau peb
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: Hav !! Tom qab so ntev kuv nyob ntawm no vim peb txhua tus yuav tsum tau ua ib yam dab tsi tho txawv (txoj haujlwm) kom khwv tau. yooj yim tab sis ua tau zoo tshaj plaws
Cov Roj Teeb Lemon Me, thiab Lwm Cov Qauv rau Xoom Tus Nqi Hluav Taws Xob thiab Coj Lub Teeb Tsis Muaj Roj Teeb: 18 Kauj Ruam (nrog Duab)
Cov Roj Teeb Lemon Me, thiab Lwm Cov Qauv rau Xoom Tus Nqi Hluav Taws Xob thiab Coj Lub Teeb Tsis Muaj Roj Teeb: Nyob zoo, tej zaum koj twb paub txog txiv qaub roj teeb lossis roj teeb roj teeb. Lawv tau siv ib txwm siv rau lub hom phiaj kev kawm thiab lawv siv cov tshuaj tiv thaiv hluav taws xob uas tsim hluav taws xob qis, feem ntau pom nyob rau hauv daim ntawv ntawm cov coj lossis lub teeb ci ci. Cov no
Ib qho $ 20 / 20min Kev Lag Luam Zoo Folding Lub Teeb Lub Teeb / Lub Tsev Teeb: 7 Cov Kauj Ruam (nrog Duab)
A $ 20 / 20min Kev Lag Luam Zoo Folding Lub Teeb Lub Teeb / Lub Tsev Teeb: Yog tias koj tau tab tom nrhiav DIY lub thawv rau lub teeb rau cov khoom lag luam lossis kaw cov duab koj twb paub tias koj muaj ntau txoj kev xaiv. Los ntawm cov thawv ntawv thawv rau khaub ncaws hampers koj yuav xav tias txoj haujlwm tau ua tiav kom tuag. Tab sis Tos! Rau $ 20