Cov txheej txheem:
- Kauj Ruam 1: Ntxiv Headers rau MKR1000
- Kauj Ruam 2: Sib sau 8x8 LED Hnab
- Kauj ruam 3: Sib sau ua ke
- Kauj Ruam 4: Cov laug rau Perfboard
- Kauj Ruam 5: Rooj Sib Tham Kawg
- Kauj ruam 6: Software
Video: WeatherBot 3000: 6 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Txheej txheem cej luam
Txoj haujlwm no siv Arduino MKR1000 txuas rau internet thiab tau txais sijhawm thiab huab cua. Koj yuav xav tau WiFi. Nws qhia sijhawm thiab huab cua ntawm 8x8 coj zaub. Peb siv cov cim los tso saib huab cua dav xws li tshav ntuj, pos huab, los nag, hmo ntuj thiab siv cov cim tshwj xeeb rau cov xwm txheej tshwj xeeb. Cov xwm txheej tshwj xeeb suav nrog yam xws li Hnub Valentines, hnub yug, hnub tseem ceeb thiab lwm yam. Cov no tsuas yog tso tawm rau hnub tiag.
Peb tau kaw txoj haujlwm sab hauv lub thawv 3d luam tawm nrog lub hau tshem tau. Txhawm rau pib tawm, sau koj cov khoom.
Qhov 1. Arduino MKX 1000
2. Adafruit Mini 8x8 LED Matrix w/I2C Backpack
3. Perfboard
4. Txiv neej rau Poj Niam Ua Ntej Crimped Hlau 6"
5. Crimp connector Housing 1x4
6. 5V 2A Micro USB Phab Ntsa Plug
7. Lub thawv rau Project (Peb 3d luam lub thawv siv www.makexyz.com Nov yog 2 STL cov ntaub ntawv koj yuav xav tau - 1. Lub hau 2. Lub thawv)
Lwm Yam Khoom
1. tus lej openweathermap.org
2. WiFi username thiab password
Kauj Ruam 1: Ntxiv Headers rau MKR1000
Yog li, thawj qhov yog txhawm rau txuas lub taub hau ntawm MKR1000.
Tsuas yog tus pin koj xav tau tiag tiag yog 5V, GND, SCL, SDAT pom hauv daim duab hauv qab.
Peb siv tag nrho 12 lub taub hau hauv pab pawg ntawm 4, raws li peb twb muaj 4 daim headers.
Lub taub hau ntxiv tsuas yog rau kev ruaj ntseg thaum txhim kho qhov no mus rau perfboard.
Peb muab plaub lub taub hau ntawm tus pin 5v, vin, vcc, gnd. Peb muab qhov thib ob 4 ntawm scl, sda, miso, sck. 4 kawg yog nyob rau lwm sab ntawm A5, A4, A3, A2.
4 kawg yog nyob rau lwm sab ntawm A5, A4, A3, A2 thiab tsuas yog rau kev ruaj ntseg.
Muab cov taub hau taub hau tso rau hauv thiab muab lub MKR1000 tso rau ntawm lub khob cij.
Kauj Ruam 2: Sib sau 8x8 LED Hnab
Tam sim no, ntxiv 8x8 coj zaub rau lub hnab ev ntawv. Ceev faj tsis txhob khoov tus koob. Nws yuav siv sijhawm li ob peb feeb kom tau txais tus pin. Yog tias lawv me ntsis ntawm txoj kab sib dhos, sim muab lawv tso rau hauv lub khob cij kom ncaj lawv tawm.
Kuj xyuas kom tseeb tias koj muab lawv hla lub nraub qaum kom lawv tus pin xaus lo tawm ntawm ib sab nrog tus nti rau nws. Tam sim no muab cov pins coj los tso rau thiab tom qab ntawd txiav tawm qhov ntev ntev thaum ua cov laug.
Thaum qhov no ua tiav nqa qee cov pliers thiab tshem tawm 2 ntawm qhov hnov kom koj muaj 4 daim. Mus tom ntej thiab muab tshuaj txhuam ntawm 4 lub taub hau taub hau kom lub ntsej muag ntev nyob deb ntawm cov zaub coj. Nws yog qhov yooj yim tshaj plaws los ua qhov no yuav muab lub taub hau tso rau hauv lub khob cij. Siv 2 lub taub hau txuas ntxiv txhawm rau txhawm rau sab koj tsis xeb. Thaum ua tiav cov txheej txheem tso qhov no tseg rau tom qab.
Kauj ruam 3: Sib sau ua ke
Tam sim no tau txais koj 4 cov xov hlau thiab lub tsev txuas txuas txuas. Peb siv dub, liab, ntsuab thiab dawb. Peb siv 6 "xaim thiab txiav nws luv luv me ntsis. Koj kuj tuaj yeem siv tau 3" xaim ib yam.
Pib tawm nrog xaim liab ua ntej, tom qab ntawd dub. Muab qhov txuas txuas nrog lub qhov uas tig rov los zoo li hauv daim duab saum toj no. Coj tus poj niam kawg ntawm cov xaim liab thiab tso rau sab ncaj thiab ntxig nws mus rau sab laug feem ntau ntawm lub qhov txuas txuas. Nws yuav tsum nyem rau hauv qhov chaw thiab muab nws me ntsis rub, nws yuav tsum tsis txhob rub tawm.
Zoo kawg, tam sim no muab cov xaim dub nyob ib sab ntawm cov hlau liab, tom qab ntawd dawb thiab ntsuab.
Koj yuav tsum xaus nrog lub txuas zoo li hauv qab daim duab sab laug.
Tam sim no txiav tawm li 2 ntiv tes ntawm xaim thiab tshem tawm li 1/4 ntawm cov yas tsev.
Zoo kawg, qhov txuas tau ua tiav rau lub sijhawm no. Teem nws ib sab.
Kauj Ruam 4: Cov laug rau Perfboard
Teem lub MKR1000 pawg thawj coj saib thiab muab Perfboard rau nws. Nco ntsoov tsis txhob npog qhov 4 qhov sib dhos ntawm MKR1000 yog tias koj xav teeb nws hauv koj lub npov. Tam sim no siv tus lej 1 tus pin ntawm txhua sab thiab tom qab ntawd muab tso rau hauv koj lub tuav lossis pab txhais tes vim nws yuav yooj yim dua rau cov laug.
Tam sim no ua tiav qhov muag ntawm lub taub hau thiab nws yuav tsum zoo li cov duab thib ob thiab thib peb & thib plaub los ntawm sab saum toj.
Tam sim no peb yuav tsum tau txuas ntawm kab txuas uas peb tau ua yav dhau los.
Ua ntej muab cov xaim liab txuas mus rau daim kab xev hauv kab nrog +5 thiab xaim dub rau GND. Peb muab lub perfboard tso rau hauv peb Lub Rooj Tswjhwm Saib Xyuas Circuit Court thiab siv qee tus neeg pleev xim rau daim kab xev los tuav cov xaim nyob hauv qhov chaw thaum siv cov laug.
Tom qab ntawd muab tshuaj txhuam ces xaim ntsuab rau scl (tus pin 12) thiab xaim dawb rau sda (tus pin 11).
Nov yog txhua yam ua tiav. Zoo heev, koj tau ua tiav cov laug. Tig koj cov hlau txuas tawm.
Kauj Ruam 5: Rooj Sib Tham Kawg
Los ntawm sab hauv lub npov ntxig rau 8x8 coj zaub kom lub 4 header pins nyob saum thiab lub ntsej muag coj los sab nraum lub thawv. Lub 8x8 coj zaub yuav tsum nyob hauv qhov chaw vim kev sib txhuam. Thaum koj ua tiav txhua yam thiab txhua yam ua haujlwm, koj tuaj yeem ntxiv ob peb tee kua nplaum los tuav nws hauv qhov chaw.
Tam sim no txuas tus txuas kom ntseeg tau tias cov kab liab txuas nrog + ntawm sab xis thiab muab MKR1000 tso rau hauv koj lub thawv.
Tam sim no ntxig koj micro usb cable hla lub qhov nyob tom qab thiab ntxig nws rau hauv MKR100. Txuas lwm qhov kawg rau hauv koj lub computer.
Kauj ruam 6: Software
Qhib Arduino IDE thiab xyuas kom koj muaj cov tsev qiv ntawv hauv qab no teeb tsa.
Nyem rau ntawm qhov txuas yog tias koj tsis muaj lawv. Koj tseem tuaj yeem hloov kho cov tsev qiv ntawv los ntawm hauv Arduino IDE.
Peb twb muaj Hlau thiab SPI yog li tsis tas yuav teeb tsa cov ntawd.
- SPI.h
- Hlau.h
- WiFi 101 hnub
- Adafruit_GFX.h
- Adafruit_LEDBackpack.h
- RTCZero.h
Tam sim no rub tawm 2 cov ntawv ntawm no. 1. WeatherBot 3000 2. Anim.h
Thawj cov ntaub ntawv yog qhov program thiab thib ob yog cov cim. Qhib tus duab kos tshiab thiab txiav thiab muab tshuaj txhuam rau hauv qhov program. Tam sim no nyem rau ntawm daim duab peb sab sab saum toj sab xis thiab ntxiv lub tab tshiab thiab hu nws anim.h. Qhib lub cim ntawv thiab txiav thiab hla nws mus rau hauv cov anim.h tab.
Peb siv openweathermap.org/ kom tau txais huab cua thiab txheeb xyuas cov ntaub ntawv. Txhawm rau siv openweathermap.org koj yuav tsum tau kos npe rau tus yuam sij. Qhov no yuav tsum tsis siv sijhawm ntau dua li ob peb feeb.
Thaum koj muaj koj tus yuam sij ntxiv nws rau kab kab ntawv no tom qab APPID = hloov tag nrho cov x's. client.println ("Tau txais /data/2.5/weather?id=4487042, peb & units = imperial & APPID = xxxxxxxxxxxxxxxxxx
Koj kuj yuav tsum teeb tsa koj qhov chaw nyob. Ntawm no kuv siv kuv lub nroog ID raws li qhov uas lawv pom zoo.
Koj tseem tuaj yeem siv koj tus lej zip zoo li no: client.println ("Tau txais /data/2.5/weather?zip=94040, peb & units = imperial & APPID = xxxxxxxxxxxxxxxx
Saib nplooj ntawv no ntawm openweathermap.org kom paub ntau ntxiv.
Ob yam kawg koj yuav xav tau ntxiv yog koj li WiFi teeb tsa. Cov kab 2 kab no tuaj yeem pom nyob ze rau sab saum toj ntawm txoj cai ua ntej tsis muaj teeb tsa ().
Hloov Lub Npe Network nrog lub npe ntawm koj li WiFi thiab hloov Tus password nrog koj tus password.
char ssid = "Lub Npe Network"; // koj lub network SSID (lub npe)
char pass = "Password"; // koj tus password network
Qhov ntawd yog nws! Tam sim no upload cov cai rau MKR1000 kom ntseeg tau tias koj muaj tus programmer teeb tsa rau ATMEL EDGB. Kuv yuav siv ob peb feeb ua ntej txhua qhov ntaub ntawv huab cua raug qhia tawm. Cov cai ntawm no tau muab raws li yog thiab yeej tuaj yeem siv qee qhov kev txhim kho. Peb tau teem sijhawm tsaus ntuj ntawm 9 teev sawv ntxov txog 5 teev sawv ntxov los qhia lub hli hli. Qhov no tuaj yeem txhim kho tau zoo heev.
Ua tsaug rau kev nyeem ntawv. Tuaj ntsib peb ntawm Qhov Chaw Muag Khoom Soldering.
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab