Cov txheej txheem:
- Kauj ruam 1: Tsim Tsob Ntoo
- Kauj Ruam 2: Txuas Lub Teeb
- Kauj ruam 3: Txuas rau Is Taws Nem
- Kauj ruam 4: Siv Force
- Kauj Ruam 5: Xeem Kawg
Video: Siv Lub Hwj Chim Los Tshaj Tawm Hnub So Cheer!: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov Lus Qhia no yuav qhia koj yuav tsim lub desktop Christmas tsob ntoo tawm ntawm cov khoom siv hauv chaw ua haujlwm, ntxiv tus tswj micro thiab tus kheej tuaj yeem hais qhia LEDs, thiab tom qab ntawd siv Sphero Force Band (Tshaj tawm nrog lub cim thib ob Sphero BB-8 droid) kom tig lub teeb rau thiab tawm. Thaum kuv yuav piav qhia lub hauv paus thev naus laus zis ntawm no, feem ntau ntawm cov ntaub ntawv keeb kwm yav dhau tuaj yeem nrhiav tau hauv kuv Cov Lus Qhia yav dhau los, ESP8266 Lub Suab Tswj nrog Google Assistant.
Cov ntaub ntawv:
Cov ntaub ntawv xav tau yog:
- Sphero Force Band (Feem ntau $ 80, tab sis saib rau hnub so muag!)
- Txoj hlua ntawm WS2812B LEDs (Neopixels ua haujlwm, tab sis zoo ib yam thiab kim dua li lwm tus)
- ESP8266 breakout board.
- 3x Txiv neej-rau-Poj niam jumper xov hlau.
- Soldering Hlau
- USB-A rau USB-micro cable
- Ntau daim ntawm 8.5 "los ntawm 11" ntawv (TSIS YOG Cardstock)
- Scotch Daim Kab Xev
- Txiab
- Android lossis iOS ntaus ntawv nrog Bluetooth
- Lub khoos phis tawj nrog lub vev xaib browser thiab Arduino IDE
Yog tias koj tseem tsis tau, siv sijhawm ib pliag los tshuaj xyuas kuv Cov Lus Qhia yav dhau los, thiab tom qab ntawd peb mam li pib!
Kauj ruam 1: Tsim Tsob Ntoo
Koj tsis tas yuav tsum ua cov kauj ruam no ua ntej, tab sis nws yog qhov zoo kom muaj cov qauv tsim los tsim tom qab. Koj tseem tuaj yeem hloov tsob ntoo nrog lwm yam ntxiv uas koj xav tau - lub paj ntoo, tswm ciab, lossis lub kaus mom. Kuv nyiam tsob ntoo ntawv vim nws yooj yim los tsim, thiab daim ntawv ua haujlwm zoo rau kev nthuav tawm lub teeb los ntawm LEDs.
Hauv qhov tseem ceeb ntawm peb tsob ntoo, peb yuav muaj daim ntawv khov khov. Qhov no tuaj yeem ua tiav los ntawm kev siv 4-5 daim ntawv, ua rau lawv mus rau hauv lub raj ntev, tom qab ntawd maj mam ntswj qhov kawg ntawm qhov tsis sib thooj. Kuv pom tias lub khob hliav qab nrog lub hauv paus taub txog li peb ntiv tes ua haujlwm tau zoo tshaj plaws. Thaum koj tau txais nws mus rau hauv cov duab uas koj xav tau, kaw lub khob hliav qab rau nws tus kheej rau saum thiab hauv qab. Tam sim no siv koj cov txiab los ua qhov dav txawm tias, lub khob hliav qab tuaj yeem sawv ntawm nws tus kheej.
Rau sab nrauv ntawm tsob ntoo, koj yuav xav tau 4 daim ntawm 8.5 "los ntawm 11" ntawv. Quav lawv tag nrho hauv ib nrab qhov ntev, tom qab ntawd quav ob lub kaum uas nyob ib sab mus rau hauv nruab nrab. Siv ob daim ntawv no sib dhos, muab lawv tso rau saum ib sab kom lub ntsej muag peb sab sib chwv, thiab kaw daim kab xev ua ke. Tom qab ntawd, kaw ib daim flap rau txhua daim tseem ceeb ntawm daim ntawv. Tam sim no, yog tias koj maj mam rub lub tiaj qhov kawg ntawm txhua daim sib nrug los ntawm ib leeg thiab rov ua dua raws li qhov xub thawj, koj yuav tau txais daim V zoo li daim ntawm cov ntawv sib tshooj. Maj mam thawb qhov ntev ntawm V no ua ke, tso cai rau lub hauv paus kom tawm mus. Daim kawg yuav tsum muaj ntu ntu zoo li tus ntoo khaub lig, nrog ob txhais ceg ntev dua li ob lwm. Rov ua cov txheej txheem no nrog lwm daim ntawv.
Tam sim no koj yuav tsum muaj ob daim ntawv uas muaj cov kite zoo ib yam thaum saib los ntawm sab, thiab ntxiv rau cov duab thaum saib los ntawm sab saud. Muab lawv tso rau saum ib leeg kom tag nrho plaub ceg yog tib qhov ntev, thiab kaw lawv ua ke rau sab hauv. Tam sim no koj muaj qhov me me, txawm hais tias me ntsis paub daws teeb, Christmas ntoo ua los ntawm cov ntawv luam ntawv thiab daim kab xev!
Zoo li kuv tau hais ua ntej, qhov no tsuas yog kev xaiv. Txhua yam koj tuaj yeem tso cov LEDs rau kuj tseem ua haujlwm!
Kauj Ruam 2: Txuas Lub Teeb
Tam sim no peb muaj tsob ntoo, nws yog lub sijhawm ntxiv qee qhov teeb pom kev zoo. Kuv siv 40 RGB LEDs los ntawm cov hlua vim nws zoo li ntev zoo rau tsob ntoo me me. Koj tuaj yeem siv ntau lossis tsawg dua, tab sis nco ntsoov tias yog tias koj siv ntau dhau, koj yuav tsis tuaj yeem muab lub zog txaus rau txhua tus ntawm lawv.
Peb yuav pib nrog txoj haujlwm yooj yim uas hloov feem ntau ntawm lub teeb ntsuab (kom ua rau tsob ntoo ntsuab tag nrho), tab sis hloov lwm lub teeb kom muaj xim tshiab txhua 3 vib nas this. Koj tuaj yeem pom cov cai rau qhov txuas rau qhov haujlwm no.
ESP8266 tsis muaj kev txhawb nqa Timer0/Timer3 lub tsev qiv ntawv uas ib txwm siv rau qee yam zoo li no, tab sis nws muaj nws lub tsev qiv ntawv, hu ua Ticker, uas tso cai ua haujlwm kom rov ua ntu zus. Peb siv qhov no thiab cov lus hloov pauv los xaiv ntawm plaub xim txhua 5 vib nas this.
Txawm hais tias kuv tsis tau siv NeoPixel cov npe teeb pom kev zoo, kuv tseem tuaj yeem siv Adafruit NeoPixel lub tsev qiv ntawv, uas twb tau txhawb nqa rau ESP8266 thiab hloov kho lub teeb. Qhov no tuaj yeem teeb tsa los ntawm tus thawj tswj tsev qiv ntawv hauv Arduino IDE.
Txhawm rau txuas lub teeb rau kuv ESP8266 kev tawg, kuv siv peb tus txiv neej-rau-poj niam jumper xov hlau, txuas tus txiv neej kawg ncaj qha rau ntawm cov hlua ntawm LEDs, thiab ntsaws lwm qhov kawg rau ntawm tus pin ntawm kuv pawg thawj coj. GND ntawm txoj hlua txuas rau hauv av, DI (cov ntaub ntawv hauv) txuas rau D4 (txawm hais tias muaj tus lej tso tawm ntawm ESP8266 yuav tsum ua haujlwm), thiab 5V txuas rau VIN, uas tso cai rau txoj hlua rub lub zog los ntawm USB chaw nres nkoj yam tsis tas yuav mus dhau ntawm MCU ua ntej.
Txhawm rau txuas lub teeb pom kev mus rau tsob ntoo, Kuv muab lub teeb nyob ib ncig ntawm lub khob hliav qab thiab kaw nws hauv qhov chaw. Kuv kuj tau teeb lub khob rau hauv qab ntawm lub tais ntawv kom ntxiv kev txhawb nqa me ntsis thiab qhov chaw tuav lub microcontroller. Tam sim no txhua yam uas tshuav yog txuas peb tsob ntoo mus rau Force!
Kauj ruam 3: Txuas rau Is Taws Nem
Tam sim no peb yuav tsum txuas tsob ntoo mus rau Is Taws Nem. Ib feem no yuav luag zoo ib yam rau cov kauj ruam 1 thiab 2 ntawm kuv Cov Lus Qhia yav dhau los, pom ntawm no. Yog tias koj tsis tau ua dua, ua raws cov lus qhia no txhawm rau teeb tsa Adafruit IO account thiab tsim "onoff" pub los tswj koj tsob ntoo.
Kev hloov kho tshiab rau cov cai yog qhov tsawg kawg nkaus. Feem ntau ntawm cov cai rau txuas rau WiFi thiab rau Adafruit IO servers los ntawm cov piv txwv suav nrog lawv cov tsev qiv ntawv. Txoj cai tswj hwm Adafruit IO kev hloov pauv tau ntxiv rau lub voj tseem ceeb, thiab kev hloov pauv thoob ntiaj teb txhawm rau taug qab lub xeev ntawm lub teeb tau ntxiv. Qhov chaws rau ntu no tuaj yeem pom txuas nrog txoj haujlwm no.
Txhawm rau sim ib feem ntawm txoj haujlwm no, ntsaws qhov program thiab tshawb xyuas tus lej saib. Thaum nws hais tias MQTT txuas nrog, sim txav qhov hloov ntawm koj li Adafruit IO dashboard kom qhib lub teeb thiab tua. Thaum qhov ntawd ua haujlwm, txhua yam uas tshuav yog txuas koj lub zog quab yuam rau Adafruit IO!
Koj yuav tsum paub tseeb tias koj siv ESP software version 2.0.0. Qee tus neeg tau muaj teeb meem nrog kuv cov lus qhia yav dhau los, tab sis cov neeg siv PabloA52 pom tias qhov no tau pab kho nws.
Kauj ruam 4: Siv Force
Ntawm $ 80, Sphero hom Force Band yog tus nqi me ntsis, tab sis yog tias koj tuaj yeem pom nws ntawm kev muag rau hnub so, nws yog qhov lom zem me me khoom siv. Ib qho ntawm qhov txias tshaj plaws ntawm pab pawg yog tias Sphero ntxiv qhov kev xaiv txuas nws mus rau Is Taws Nem ntawm Yam Los ntawm IFTTT. Cov kauj ruam no xav tau Force Band thiab dawb Star Wars Force Band app los ntawm Sphero. Yog tias koj tsis muaj cov ntawd, tsis txhob txhawj xeeb! Muaj ntau ntau lwm qhov ua rau IFTTT uas tseem tuaj yeem siv tau, los ntawm Google Assistant lossis Alexa lub suab tswj, kom ntse hauv tsev sib koom ua ke, lossis txawm tias ua rau qhov xwm txheej ntawm koj xaj pizza!
Yog tias koj tsis muaj IFTTT tus account, tsim ib qho siv tib tus email uas koj siv rau koj Adafruit IO account. Tom qab ntawd, mus rau platform.ifttt.com kom pib tsim koj li applet kev cai.
Force Band muaj peb qhov tshwm sim: Force Push, Force Pull, thiab Force Stop. Kuv txiav txim siab siv Force Push kom qhib lub teeb thiab Force Rub kom tua lawv, tab sis koj tuaj yeem siv cov kev sib xyaw uas koj xav tau. Txhawm rau ua daim ntawv thov tshiab, mus rau koj lub dashboard, thiab nyem rau "New Applet" khawm. Hauv qab "Yog Qhov No", pib ntaus "Sphero", thiab xaiv "Star Wars Force Band by Sphero" los ntawm cov ntawv qhia zaub mov nco. Tom qab ntawd, xaiv qhov ua kom raug rau qhov kev ua uas koj tab tom sim ua.
Hauv qab "Tom qab" ntu, xaiv Adafruit, tom qab ntawd xaiv "Xa Cov Ntaub Ntawv rau Adafruit IO." Los ntawm qhov ntawd koj tuaj yeem xaiv lub npe ntawm cov khoom noj uas koj xav hloov kho thiab tus nqi koj xav hloov kho lawv nrog (xws li "ON" lossis "OFF"). Ntxiv lub npe thiab cov lus piav qhia, tom qab ntawd txuag lub applet. Daim ntawv thov no tsuas muaj rau koj tshwj tsis yog koj tshaj tawm nws, yog li xav hloov nws lossis sim nrog nws me ntsis.
Thaum koj txuag lub applet, rov qab mus rau koj lub dashboard kom pab tau nws. Yog tias koj tseem tsis tau muaj, IFTTT yuav hais kom koj txuas koj li Adafruit IO thiab Force Band cov nyiaj.
Kauj ruam kawg yog txuas koj Force Band rau IFTTT los ntawm Force Band app. Qhib koj lub Force Band thiab qhib lub app. Ua raws cov kauj ruam ntawm lub vijtsam txhawm rau txuas cov pab pawg thiab paub koj tus kheej nrog kev tswj hwm. Hauv qab cov ntawv qhia zaub mov tseem ceeb, xaiv teeb tsa, tom qab ntawd Qhib Kev Tswj Lub Zog nrog IFTTT. Qhov no yuav ntxiv cov khoom tshiab rau hauv cov ntawv qhia zaub mov tseem ceeb, hu ua Force Control. Hauv cov ntawv qhia zaub mov tshiab no, xyuas kom tseeb tias koj tus lej nyiaj tau txuas nrog, tom qab ntawd xaiv "Siv Lub Zog". Qhov no yuav pib taug qab taw tes thiab tom qab ntawd qhia qhov sib tham ntawm txhua qhov kev nqis tes xa mus rau IFTTT.
Txhua yam yuav tsum txuas nrog ntawm qhov no. Txhua yam uas yuav tsum tau sab laug yog ntsuas qhov system tag nrho!
Kauj Ruam 5: Xeem Kawg
Tam sim no tag nrho cov kab ke yuav tsum ua haujlwm. Cov qhab yuav ua rau me ntsis thiab ua suab nrov thaum nws lees paub lub ntsej muag, thiab muaj kev ncaj ncees me ntsis ntawm qhov nruab nrab ntawm qhov kev co thiab cov tshuaj tiv thaiv ntawm lub teeb. Txawm li cas los xij, qhov no tsis phem heev txiav txim siab tias lub teeb liab yuav tsum hla Bluetooth los ntawm cov qhab mus rau koj lub cuab yeej ntse, los ntawm qhov ntawd dhau WiFi lossis cov ntaub ntawv mus rau IFTTT servers, los ntawm IFTTT servers mus rau Adafruit IO servers, thiab thaum kawg los ntawm qhov ntawd mus rau ESP8266 hla WiFi. Lwm qhov teeb meem tseem ceeb yog tias Force Band app yuav tsum tau ua haujlwm nyob rau hauv pem hauv ntej ntawm yam khoom siv twg koj siv. Qhov ntawd yog qhov laj thawj tseem ceeb uas kuv tsis muaj daim vis dis aus ntawm qhov haujlwm kawg, tab sis cia siab tias yuav raug kho sai.
Thaum Star Wars Christmas Tshwj Xeeb tej zaum yuav tau qhia peb tias SciFi thiab Hnub So tsis ua mus ib txhis, vam tias koj tseem tuaj yeem muaj kev lom zem nthuav tawm Yuletide kev txhawb siab thiab qhia tawm rau koj cov phooj ywg nrog Force! Ua tsaug rau kev nyeem ntawv, thiab txaus siab rau!
Pom zoo:
Yooj Yim Lub Hwj Huam LED Tawm Tawm Tam Sim No Tus Kheej, Hloov Kho & Tshaj Tawm: 3 Cov Kauj Ruam
Yooj Yim Lub Hwj Huam LED Tawm Tawm Tus Kheej Tam Sim No, Hloov Kho & Tshaj Tawm: Cov lus qhia no yog qhov tseem ceeb rov ua dua ntawm Dan txoj kab hluav taws xob tam sim no. Nws cov ntawv yog qhov zoo heev, tau kawg, tab sis tsis muaj qee yam hauv txoj kev kom meej. Nov yog kuv qhov kev sim daws qhov ntawd. Yog tias koj nkag siab thiab tuaj yeem tsim Dan's version
Txo Kev Siv Lub Hwj Hwj Hwj Hwj Hwj Huv - Tuav Tawm Ntawm Qhov Txais Tam Sim No: 3 Kauj Ruam
Txo Kev Siv Hluav Taws Xob Siv Hluav Taws Xob - Tuav Tawm Ntawm Qhov Txais Tam Sim No: Feem ntau cov xa khoom xav tau tam sim no ntau dua los ua qhov pib dua li qhov xav tau los tuav cov xa tawm thaum cov neeg tau kaw lawm. Tam sim no yuav tsum tau tuav lub relay ntawm (Tuav tam sim no) tuaj yeem muaj tsawg dua li qhov pib tam sim no yuav tsum tau ua
Kev Saib Xyuas Lub Hwj Chim Nyob Nrawm thiab Kev Tshaj Tawm ntawm Lub Hnub Ci Raws Lub Hwj Huam Fais Fab: 10 Kauj Ruam
Kev Saib Xyuas Lub Hwj Chim Nyob Nrawm thiab Kev Tshaj Tawm ntawm Lub Hnub Ci Raws Lub Hwj Huam Fais Fab: Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau saib xyuas thiab faib cov khoom siv hluav taws xob hauv lub tshuab hluav taws xob (hnub ci zog). Kev tsim qauv ntawm cov txheej txheem no tau piav qhia hauv cov ntsiab lus raws li hauv qab no. Lub kaw lus muaj ntau daim phiaj nrog kwv yees li 2 lub hnub ci ci nyob hauv
Zaj Lus Qhia 2: Siv Arduino Raws Li Lub Hwj Chim Rau Lub Hwj Chim: 6 Kauj Ruam
Zaj Lus Qhia 2: Siv Arduino Ua Lub Hwj Chim Rau Lub Hwj Chim: Nyob zoo dua, cov tub ntxhais kawm, rau kuv tshooj lus thib ob ntawm kuv chav kawm los qhia cov khoom siv hluav taws xob yooj yim. Rau cov uas tsis tau pom kuv thawj zaj lus qhia, uas piav qhia txog qhov tseem ceeb heev, kev pib ua haujlwm hauv Circuitry, thov saib tam sim no. Rau cov uas twb tau pom kuv yav dhau los le
Hloov Belkin FM Transmitter Los Ntawm Lub Hwj Huam Lub Hwj Chim rau Lub Hwj Chim Tsheb: 8 Kauj Ruam
Hloov Belkin FM Transmitter Los Ntawm Roj Teeb Hluav Taws Xob rau Lub Tsheb Fais Fab: Kuv muaj ib tus thawj Belkin Tunecast FM transmitters rau kuv iPod. Tom qab kuv pub nws ib khub AA roj teeb kuv txiav txim siab kuv xav tau txoj hauv kev zoo dua. Yog li, ntawm no yog yuav ua li cas kuv hloov lub tsheb luam yeeb lub teeb txawb lub xov tooj ntawm tes rau hauv ib txoj hauv kev los txhawb kuv lub tsheb