Cov txheej txheem:
- Kauj Ruam 1: Peb Xav Tau Dab Tsi?
- Kauj Ruam 2: Cia Peb Tso Txhua Yam Rau ntawm Breadboard
- Kauj Ruam 3: Tsiv lub LED
- Kauj ruam 4: Teeb Sinric
- Kauj Ruam 5: Teeb IFTTT
- Kauj ruam 6: Troubleshooting
Video: Tswj LEDs Nrog Alexa lossis IFTTT (SINRIC PRO TUTORIAL): 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Yog li koj xav yog tus neeg ntawd uas qhia tawm thaum hmo noj hmo los ntawm kev hais tias "Alexa tig lub teeb?" Qhov project no yog rau koj!
Qhov kawg ntawm cov lus qhia no koj yuav tuaj yeem tswj tau RGB kab txaij nrog Alexa cov cuab yeej thiab IFTTT los tsim qee qhov kev siv tshuab. Piv txwv li, thaum ISS "ya" saum kuv chav tsev LEDs ntsais?
Zoo, wb mus?
Kauj Ruam 1: Peb Xav Tau Dab Tsi?
Daim ntawv teev npe yuav yog qhov yooj yim heev tab sis kuv yuav faib nws ua ob ntu, cov cuab yeej pib uas koj xav tau yog tias koj xav ua txoj haujlwm thiab koj pib nrog tsis muaj dab tsi, thiab qhov tshwj xeeb ntxiv.
Tsis tas li ntawm qhov kev txhawj xeeb rau kev ncaj ncees, txhua qhov txuas yog koom nrog uas txhais tau tias kuv tau txais nyiaj me me yog tias koj yuav cov khoom lag luam los ntawm kuv qhov txuas. Qhov no TSIS YOG TSIS yog lub luag haujlwm los siv qhov txuas no, nws tsuas yog pab kuv tsim thiab tsim lwm txoj haujlwm thiab nws tsis kim dua rau koj. ?
TSHUAJ XYUAS:
- Cov hlau txuas: txuas
- Tin: link
- Circuit Board: txuas
- Shrinking tubes: txuas
- Cov xov: txuas
- Breadboard: txuas
- Breadboard xov hlau: txuas
? QHOV CHAW TSHUAJ:
- ESP8266: txuas
- Capacitors: txuas
- RGB sawb: txuas
- qib kev hloov pauv logic: txuas
- 12V fais fab mov: txuas
Stepdown converter 12V -> 5V: txuas nrog ceev faj nrog cov khoom siv hluav taws xob uas koj siv raws li qhov ntev ntawm koj cov hlua LED, nws tuaj yeem rhuav tshem koj cov khoom siv hluav taws xob. tsim los ntawm peb lub LEDs (Liab, Ntsuab thiab Xiav) thiab txhua LED coj txog 0.02A
Amps = 3 * 0.02 * NUMBER_OF_LEDs Yog li hauv peb cov ntaub ntawv nrog 60 pixels/meter thiab 3 meter strip peb tau txais: 3 * 0.02 * 3 * 60 = 10.8 Amps Yog tias koj muaj lub zog siv hluav taws xob qis dua thiab koj tsis xav yuav ib qho tshiab, koj tseem tuaj yeem txo qhov ci ci tshaj plaws hauv cov cai tab sis peb yuav pom tom qab.
Kauj Ruam 2: Cia Peb Tso Txhua Yam Rau ntawm Breadboard
Raws li rau txhua qhov haujlwm hluav taws xob, koj yuav tsum sim txhua yam ntawm kev ntsuas lub khob cij ua ntej yuav siv tas, nws yuav siv sijhawm ntau dua tab sis tsawg kawg koj tsis xaus rau hauv koj lub txaj quaj vim nws tsis ua haujlwm. Ntseeg kuv, kuv tau sim nws ob peb zaug. ?
Yog li tsis txhob sib sau ua ke txhua yam ntawm daim ntawv qhia zaub mov:
- Muab ESP8266 tso rau ntawm koj daim ntawv tais. Txuas VIN ntawm ESP mus rau txoj kev tsheb nqaj hlau ntawm lub khob cij, ua tib yam rau GND ntawm ESP. Txuas 3V3 mus rau lwm sab thiab khiav xaim ntawm txoj kab GND. Please saib daim duab 1
- Muab lub logic qib hloov pauv ntawm koj lub khob cij. Peb xav tau tus lej hloov pauv qib vim tias ESP8266 xa 3V3 qib kev xav thiab LEDs xav tau qib 5V cov laj thawj, yog li peb yuav tsum hloov pauv cov txheej txheem ntawd tshwj tsis yog peb yuav muaj teeb meem tsis tuaj yeem kwv yees tau. Txuas 5V, 3V3 thiab GND rau lawv txoj kab. Txuas ib lub xaim ntawm 5V sab ntawm qib hloov pauv thiab DATA kab ntawm cov kab hluav taws xob LED. Txuas tus xaim ntawm 3V3 sab ntawm qib hloov pauv thiab D6 tus pin ntawm ESP8266 Thov xa mus rau daim duab 2
- Txuas 5V thiab GND ntawm cov kab hluav taws xob LED mus rau lawv cov kab sib dhos ntawm lub khob cij. Txuas DIN PIN ntawm kab txaij mus rau 5V sab ntawm lub logic qib hloov pauv. nws yuav pab tiv thaiv qhov pib ua ntej ntawm tam sim no los ntawm kev ua kom puas LEDs. Thov saib daim duab 3
- Txuas 12 V thiab GND ntawm lub hwj chim rau lub tswv yim ntawm cov kauj ruam hloov pauv. Thov saib daim duab 4
- Txuas 5V cov zis thiab GND ntawm kev hloov pauv hloov mus rau kab sib xws ntawm koj daim ntawv qhia zaub mov. Please xa mus rau daim duab 5
Zoo, txhua yam yuav tsum tau txuas tam sim no? Nrog koj zoo siab! Tam sim no peb yuav ua qee qhov kev ntsuas ntsuas kom pom tias peb cov khoom siv hluav taws xob ua haujlwm tau zoo!
Kauj Ruam 3: Tsiv lub LED
WOOOW suab zoo txaus? tsis yog kuv paub qhov no tsis yog yam koj xav tau tab sis nws yuav lees paub tias peb cov kab ke ua haujlwm uas txias heev!
Peb yuav tau teeb tsa lub rooj tsavxwm thiab lub tsev qiv ntawv kom ua rau LED ntsais.
- Tua tawm koj li Arduino IDE, mus rau qhov nyiam, muab qhov txuas txuas no https://arduino.esp8266.com/stable/package_esp8266com_index.json thiab ntxiv Tus Thawj Saib Xyuas Haujlwm URL thiab nyem OK. Thov xa mus rau screenshot 1. Mus rau Cov Cuab Yeej> Pawg Thawj Coj> Tus Thawj Saib Xyuas Haujlwm thiab saib rau esp8266. Nruab nws. Please xa mus rau screenshot 2. Mus rau Cov Cuab Yeej> Pawg Thawj Coj thiab xaiv NODEMCU 1.0 (ESP 12E Module) Thov xa mus rau daim duab 3.
- Mus rau Cov Cuab Yeej> Tswj Cov Tsev Qiv Ntawv thiab saib FASTLED. Nruab nws. Please xa mus rau screenshot 4.
- Tam sim no rub cov ntawv ntsais muag ntawm kuv cov ntaub ntawv GitHub ntsais muag thiab muab tso rau ntawm ESP.
Yog tias koj muaj kev hloov xim, nws tuaj yeem yog vim yog GRB qhov ntsuas hauv sab hauv FastLED.addLeds ua haujlwm, hloov GRB los ntawm RGB.
Yog tias nws tseem tsis ua haujlwm, txheeb xyuas koj cov thaiv ob zaug thiab rov sim dua!
Kauj ruam 4: Teeb Sinric
Tam sim no peb muaj cov txheej txheem ua haujlwm, peb tuaj yeem teeb tsa Sinric uas tsim tus choj ntawm peb cov hlua LED thiab Alexa lossis IFTTT.
- Sau npe rau Sinric
- Pairing Alexa:- Qhib koj li Amazon Alexa App- Mus rau cov txuj ci & Kev Ua Si- Tshawb rau Sinric Pro- Nyem ENABLE TO USE- Sau cov ntaub ntawv pov thawj uas koj tau tsim thaum koj sau npe ntawm Sinric.
- Tsim ib lub cuab yeej tshiab:- Nkag mus rau koj tus lej Sinric Pro ntawm lub vev xaib- Mus rau cov cuab yeej ntawv qhia zaub mov ntawm koj sab laug- Nyem Ntxiv Cov Khoom Ntaus khawm- Nkag mus rau lub npe ntaus ntawv uas koj xav tau rau koj kab LED, piav qhia yog tias koj xav tau ib qho thiab xaiv hom li Ntse Lub Teeb- Xaiv Cov Khoom Ntaus Nkag Nkag raws li lub hauv paus thiab Chav Nyob. Koj tuaj yeem ntxiv chav yog tias koj xav tau hauv ntu "Chav" ntawm sab laug.- Ntaus Txuag. Koj yuav tsum tau txais kev ceeb toom ntawm koj li Alexa App thov kom koj ntxiv cov cuab yeej uas koj tau tsim.
- Rub tus lej ntawm ESP8266:- Hauv Arduino IDE, mus rau Cov Cuab Yeej> Tswj cov tsev qiv ntawv> saib rau Sinric Pro thiab teeb tsa nws. koj KEY_SECRET. Mus rau Sinric Pro> Cov Ntawv Pov Thawj (cov ntawv qhia zaub mov ntawm sab laug) thiab luam lawv.- Sau koj tus lej ntaus ntawv. Mus rau Sinric Pro> Devices (cov ntawv qhia zaub mov ntawm sab laug) thiab theej koj lub cuab yeej ID.- Hloov kho NUM_LEDS uas tus lej ntawm LEDs ntawm koj kab txaij thiab LED_PIN uas yog tus pin ntawm koj ESP (yuav tsum yog 6).- Hauv Arduino IDE, xaiv Cov Cuab Yeej> Pawg Thawj Coj> NODEMCU 1.0 (ESP 12E Module) thiab ntaus Upload.
Ok, Tam sim no hais kuv lub npe. Tsis hais ib yam dab tsi rau Alexa, zoo li "Alexa, qhib lub teeb" lossis "Alexa, hloov lub teeb xiav" thiab nws yuav tsum ci! Yog tias tsis tau mus rau nplooj ntawv daws teeb meem ntawm qhov kawg ntawm cov lus qhia no koj tseem tuaj yeem tswj cov hlua ncaj qha hauv Alexa App lossis ntawm Sinric Pro (muaj Android thiab iOS apps ib yam nkaus). Zoo siab RGB ❤️ ??
Kauj Ruam 5: Teeb IFTTT
Tam sim no peb tuaj yeem txuas IFTTT rau Sinric!
- Mus rau Sinric Pro> Cov Ntawv Pov Thawj (cov ntawv qhia zaub mov ntawm sab laug) thiab nyem rau ntawm API tshiab.
- Mus rau IFTTT.com thiab tsim ib qho tshiab applet. Xaiv tus txhais uas koj xav tau rau IF thiab THEN, tshawb hauv Webhook. muab tshuaj txhuam:
"b": 255, "g": 0, "r": 0}}} Thov xa mus rau lub screenshot 1. Webhook yuav xa JSON cov ntaub ntawv mus rau SINRIC nrog cov kev hloov pauv hauv qab no. Enter API KEY koj nyuam qhuav tsim, Ntxiv rau device_id ntawm koj coj strip Koj tuaj yeem xaiv ntawm cov haujlwm sib txawv xws li SetColor lossis SePowerState rau kev qhib thiab tawm ntawm kab txaij
Kauj ruam 6: Troubleshooting
Kuv vam tias ntu no yuav nyob twj ywm? tab sis yog xav tau kuv yuav ntxiv qee cov ntsiab lus.
Pom zoo:
Tswj koj cov LEDs nrog Koj Lub TV Chaw Taws Teeb?! -- Arduino IR Tutorial: 5 Kauj Ruam (nrog Duab)
Tswj koj cov LEDs nrog Koj Lub TV Chaw Taws Teeb?! || Arduino IR Tutorial: Hauv qhov haujlwm no kuv yuav qhia koj li cas kuv rov txhim kho cov nyees khawm tsis muaj txiaj ntsig ntawm kuv lub TV chaw taws teeb kom tswj cov LEDs tom qab kuv lub TV. Koj kuj tseem tuaj yeem siv cov txheej txheem no los tswj hwm txhua yam nrog kev kho me ntsis. Kuv tseem yuav tham me ntsis txog qhov kev xav
Tswj Cov Khoom Siv Hauv Tsev Los Ntawm Alexa Nrog ESP8266 lossis ESP32: 8 Cov Kauj Ruam
Tswj Cov Khoom Siv Hauv Tsev Los Ntawm Alexa Nrog ESP8266 lossis ESP32: Hav, ua li cas, Cov Menyuam! Akarsh ntawm no los ntawm CETech Qhov phiaj xwm 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
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
Siv Cortana thiab Arduino los tswj RGB Leds lossis Ledstrips Nrog Koj Lub Suab!: 4 Cov Kauj Ruam (nrog Duab)
Siv Cortana thiab Arduino los tswj RGB Leds lossis Ledstrips Nrog Koj Lub Suab!: Hauv cov lus qhia no kuv yuav qhia koj li cas koj tuaj yeem tswj koj li RGB coj lossis coj sawb nrog koj lub suab. Qhov no yog ua tiav los ntawm CoRGB app uas tuaj yeem siv tau dawb hauv lub qhov rais app khw. Cov app no yog ib feem ntawm kuv qhov haujlwm CortanaRoom. Thaum koj ua tiav wit
RBG 3D Luam Lub Hli Tswj Nrog Blynk (iPhone lossis Android): 4 Cov Kauj Ruam (nrog Duab)
RBG 3D Luam Lub Hli Tswj Nrog Blynk (iPhone lossis Android): Nov yog 3D luam lub hli nrog sawv ntsug. Ua nrog RGB LED sawb ntawm 20 leds txuas nrog rau arduino uno thiab programmed kom tswj tau nrog blynk. Arduino yog qhov ua tau los tswj ntawm lub app los ntawm blynk ntawm iPhone lossis Android