Cov txheej txheem:
- Kauj ruam 1: Circuit Court
- Kauj ruam 2: Txoj Cai
- Kauj Ruam 3: Lub Cev Lub Cev
- Kauj ruam 4: Troubleshooting
- Kauj Ruam 5: Ua Haujlwm Ntxiv
Video: Cov Ntaub Ntawv Chaw Nres Tsheb (Arduino): 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Zoo siab txais tos rau kuv qhov kev qhia tshiab tshaj plaws los tsim cov chaw nres tsheb cov ntaub ntawv tus kheej!
Cov cuab yeej txaus no siv Arduino Uno nrog cov ntaub thaiv npog ethernet los txuas rau hauv is taws nem thiab rub tawm cov xov xwm tshiab thiab huab cua hauv zos thiab tso tawm ntawm lub vijtsam LCD. Txoj haujlwm no yog pheej yig pheej yig thiab muaj ntau txoj hauv kev rau kev nthuav dav thiab ua haujlwm ntxiv. Koj tuaj yeem tsim kho txhua yam tawm ntawm lub khob cij tab sis yog tias koj xav siv lub tsev huv huv muaj qee qhov yuav tsum tau siv.
Yog li cia pib nrog cov npe ntawm cov khoom uas koj yuav xav tau:
- 1 Arduino UAS
- 1 Ethernet Shield. (Kuv siv daim npog ntsej muag ntawm no)
- 1 4x20 LCD zaub zoo li qhov no. kuv muaj lub teeb xiav tab sis muaj ntau txoj kev xaiv
- 1 Laub khawm (thawb kom ua)
- 1 Hloov
- 122 Ohm tus tiv thaiv
- 1 47K Ohm resistor
- ntau yam xov hlau
- headers (tus pin)
- ib qho me me ntawm veroboard thiab cov laug
- 1 lub tsev nyob (xaiv tau) thiab nylon m3 ntsia liaj qhov rooj / txiv ntseej
Cov Cuab Yeej: (tsuas yog xav tau tiag tiag yog tias koj xaiv muab koj qhov project tso rau hauv ib lub thawv zoo)
- laum
- cov ntawv me me (thiab txawm tias zoo dua dremmil)
- cam khwb cia hlau
Siv tsom iav kev nyab xeeb nrog lub dremmil thiab xyaum. Koj yuav xav tau ob peb teev thiab tej zaum kuj muaj ob peb khob dej tshuaj yej thiab.
Kauj ruam 1: Circuit Court
Raws li nrog feem ntau ntawm kuv cov phiaj xwm kuv pom zoo kom koj tsim txoj haujlwm no tawm ntawm lub khob cij ua ntej ua ntej npaj phiaj xwm lub cev nyob hauv ib qho thaiv thiab ib qho khoom siv sib txuas.
Thawj daim duab saum toj no qhia txog kev kos duab thiab qhov no yog qhov koj yuav tsum ua raws.
Pib los ntawm kev teeb tsa Ethernet daim ntaub thaiv sab saum toj ntawm arduino.
Tom ntej ntxiv LCD zaub rau Arduino Uno. Muaj ob peb yam yuav tau ceeb toom txog qhov no
- Cov koob siv tsis zoo ib yam li feem ntau ntawm cov piv txwv online. Qhov no vim tias daim thaiv thaiv ethernet khaws cia siv ntau tus pin thiab tshwj xeeb: D4, D10, D11, D12, D13 yog li peb tsis tuaj yeem siv cov ntawd.
- Tsis muaj lub hwj chim siv. Yuav kom ncaj ncees qhov no vim tias nws tsis tsim nyog, hloov peb tswj qhov hluav taws xob rau Vo pins nrog Arduino tus pin 9. Qhov no tswj qhov ci ntawm cov ntawv thiab peb yuav pom tom qab yuav ua li cas thiaj li raug.
Tom ntej no koj tuaj yeem ntxiv lub laub khawm thiab hloov.
Nrog qhov hloov pauv 220 Ohm resistor yog rub tawm tus tiv thaiv kom ntseeg tau tias qhov voltge yog 0 thaum qhov qhib qhib
kawg ntxiv rau lwm 47k Ohm resistor uas txwv qhov ci ci ntawm LCD backlight
Thaum koj lub Circuit tiav, koj yuav tsum muaj qee yam zoo ib yam li daim duab thib ob
Kauj ruam 2: Txoj Cai
Txoj cai tswj hwm ob daim thaiv thaiv ethernet thiab cov zaub. Cov ntawv txuas (cov ntawv qhia paubIScode.txt) ntawm no yog yam koj xav tau kom sawv thiab khiav tab sis muaj qee qhov teeb tsa xav tau.
Txoj cai yuav tsum ua haujlwm zoo ib yam nrog kev teeb tsa hauv qab no. Lub algorithm yog qhov pib:
teeb:
- Pib ua Ethernet shield thiab LCD
- nyeem lub xeev hloov pauv thiab tso saib "Xov Xwm" lossis "Huab Cua"
voj:
- nyeem RSS 1 tus cim ib zaug
- nrhiav "<titl"
- txuag kom txog thaum "</titl" pom
- Sau luv / raug xaiv cov hlua kom haum rau qhov txwv qhov ntev
- tso saib zaj dab neeg cawm zaum kawg / huab cua los tso saib
Rub tawm cov cai thiab qhib nws hauv cov ntawv nyeem lossis tus kho lus arduino. Tom qab ntawd kho cov hauv qab no:
- IP thiab MAC chaw nyob: Cov lus qhia no muab cov ntaub ntawv zoo txog yuav teeb tsa li cas kom raug
-
Qhov chaw huab cua. Cov ntaub ntawv piv txwv rub rov qab 3 hnub kwv yees rau Manchester, UK tab sis koj yuav zaum xav teeb tsa qhov no rau koj thaj chaw.
- Mus rau nplooj ntawv no los ntawm BBC thiab nkag mus rau koj lub nroog lossis nroog zoo li koj tab tom saib huab cua los ntawm koj tus browser.
- tam sim no saib ntawm qhov chaw nyob bar thiab nco tus lej ntawm qhov kawg ntawm URL (hais qhia hauv qhov piv txwv duab saum toj no)
- Tshawb nrhiav "2643123" hauv qhov chaws thiab hloov nws nrog koj tus nqi
- Tshawb nrhiav kab kab no: lcd.print ("(Manchester)"); thiab hloov "Manchester" nrog koj lub nroog lossis lub nroog npe
-
2 lwm qhov txiaj ntsig uas koj tuaj yeem ua si nrog yog:
- Cov kab no ntawm cov cai: analogWrite (9, 40); yog ib feem uas teev qhov ci ntawm cov ntawv. 40 yog qhov hloov pauv me ntsis tab sis 40 yog tej zaum zoo heev yog li sim ua ntej
- Thaum kawg kab kab no: ncua (6000); Teem sijhawm npaum li cas cov cai qhia txhua zaj xov xwm lossis cov ntawv qhia huab cua. Nws nyob hauv milli-vib nas this yog li 6 vib nas this tab sis yog tias koj nyeem tau nrawm koj tuaj yeem ua rau nws tsawg dua thiab yog tias koj yog tus nyeem qeeb koj tuaj yeem ua tau ntau dua
Hloov tshiab
Kuv tau tshaj tawm qhov kev txhim kho ntawm cov cai uas tseem qhia hnub ntawm lub lim tiam thiab hnub ua ntej huab cua lossis xov xwm (ua ke nrog hnub tim.txt)
Kauj Ruam 3: Lub Cev Lub Cev
Raws li kuv tau hais yav tas los koj tsis tas yuav nyob hauv koj lub phiaj xwm tab sis nws zoo dua yog tias koj ua.
Kuv yuav 150x80x50mm Clear ABS lub thawv uas yog qhov chaw txaus.
Kuv tau siv tus lej 16 tus neeg mloog rau hauv cov zaub yog tias koj tsis tau ua li ntawd.
Tom qab ntawd ntawm lub hau Kuv drilled tawm ib lub duab plaub raws li lub qhov rau cov zaub (saib daim duab). Tom qab ntawd kuv siv lub dremmel los tsoo thiab txuas lub qhov (koj tuaj yeem pom qhov no ntawm sab tes laug ntawm daim duab. Thaum qhov no tau ua tiav txhua txoj kev ncig kuv xa lub qhov rov qab kom txog thaum cov khoom haum rau hauv thiab drilled 4 qhov ntxiv rau txuas nws nrog 4 m3 ntsia liaj qhov rooj
Nrog cov zaub hauv lub hau nws yuav qhia koj lub tswv yim zoo dua ntawm qhov chaw arduino tuaj yeem mus. Kuv siv cov ntsia hlau nylon M3 txhawm rau txhawm rau txhawm rau lub arduino thiab thaiv mus rau lub hauv paus.
Txiav ib qho me me ntawm veroboard txog 40x30mm thiab laum 3 qhov hauv nws. Tsim 3 qhov nyob hauv vaj tsev kom nws haum rau qhov chaw seem. Tsis txhob xauv nws hauv tsuas yog tab sis raws li cov xov tooj xav tau txuas rau hauv nws tseem. Yeej pawg thawj coj no tsuas yog tuav (+) thiab (-) txoj kab kom peb tuaj yeem siv lawv thiab 2 tus tiv thaiv.
Tom ntej no kuv tau siv cov xov hlau txuas rau ib sab ntawm kab ntawm kab ntawv header ob zaug, ib zaug rau txhua sab ntawm daim ntaub thaiv ces thawb cov no mus rau hauv pawg thawj coj saib. Xav txog qhov uas cov xov hlau mus rau ntawm daim duab kab hluav taws xob. cov uas mus ncaj qha rau LCD yuav tsum muaj poj niam txuas rau lawv kom lawv tuaj yeem raug thawb ncaj rau hauv lub hau ntawm LCD. Lwm qhov yuav raug muag rau hauv Veroboard.
txuas cov xov hlau thiab txuas cov xov hlau mus rau hauv veroboard tom qab daim duab qhia chaw. Thaum qhov no ua tiav Kuv pom zoo rov kuaj xyuas txhua lub xaim tsawg kawg ib zaug kom ntseeg tau tias nws mus qhov twg nws yuav tsum. Nws kuj tseem zoo siv lub tshuab ntsuas hluav taws xob los tshuaj xyuas tsis muaj luv luv ntawm hauv av thiab lub zog txuas ntawm lub vero board.
Tom ntej no koj tuaj yeem siv zog ntawm lub rooj tsavxwm ntawm lub tshuab luam ntawv usb cable. nyob ntawm qhov chaw ntawm qhov hloov pauv nws yuav thauj cov xov xwm lossis huab cua. Yog tias nws ua haujlwm koj tau ua tiav !!
Kauj ruam 4: Troubleshooting
Yog tias tsis muaj dab tsi ua haujlwm lossis yog qee yam ua haujlwm tab sis tsis yog txhua yam nws yog qhov zoo tshaj plaws ua yog rov qab mus rau qhov pib.
Qhov pom tseeb tshaj plaws hais yog tshuaj xyuas tag nrho cov thaiv dua thiab xyuas kom tsis muaj cov xaim xoob.
Txheeb xyuas tom ntej tias cov zaub ua haujlwm ntawm nws tus kheej. Koj tuaj yeem ua qhov no los ntawm kev luam cov cai thiab tshem nws rov qab rau tsuas yog lcd cov lus txib thiab tawm tswv yim tas
Yog tias nws yog ethernet uas ua tsis tiav koj tuaj yeem sim ua qhov url hauv firefox browser hauv hom ntawv no kom pom tias lawv rov qab los nrog cov ntaub ntawv.
saib-qhov chaw:
Yog tias nws rov qab los nrog cov ntaub ntawv txheeb xyuas tias qhov url yog qhov tseeb hauv cov cai. Tom ntej no koj tuaj yeem sim ntxiv cov lus hais debug nrog tus saib xyuas. Qhov no ntau dhau rau kab lus no tab sis muaj ntau hauv lub vev xaib txog nws suav nrog cov lus qhia no.
Ib qho ntsiab lus tseem ceeb heev txog tus lej saib xyuas yog tshem tawm cov cai ntawd ua ntej siv cov ntaub ntawv chaw nres tsheb ib leeg vim tias txwv tsis pub nws yuav sim txuas rau koj lub khoos phis tawj!
Kauj Ruam 5: Ua Haujlwm Ntxiv
Muaj ntau txoj hauv kev nthuav dav lossis ua haujlwm ntxiv rau txoj haujlwm no, qee qhov piv txwv thiab cov tswv yim yog:
- siv lwm yam RSS pub kom haum rau koj qhov kev txaus siab, muaj ntau ntau nyob ntawd
- ncua qhov chaw nres tsheb kom suav nrog xaiv ntau dua 2 'raws'
- ntxiv kev cai raws cai (xws li hnub yug yuav los tom ntej hauv tsev neeg lossis Christmas suav nrog)
- hloov mus rau daim ntaub thaiv wireless
- lwm yam
Pom zoo:
Chaw Nres Tsheb Huab Cua DIY & WiFi Chaw Nres Tsheb Sensor: 7 Kauj Ruam (nrog Duab)
Chaw Tshawb Xyuas Huab Cua DIY & WiFi Chaw Nres Nkoj: Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub chaw nres tsheb huab cua nrog rau qhov chaw nres tsheb WiFi sensor. Lub chaw nres tsheb ntsuas ntsuas cov ntaub ntawv kub thiab av noo hauv cheeb tsam thiab xa nws, los ntawm WiFi, mus rau chaw nres tsheb huab cua. Cov chaw nres tsheb huab cua tom qab ntawd qhia t
Tsev Kawm Ntawv Nroog Tsev Kawm Ntawv Chaw Nres Tsheb Daim Ntawv Qhia: 7 Kauj Ruam (nrog Duab)
University Campus Student Parking Map: Ntau tus tub ntxhais kawm xav paub tias lawv tuaj yeem nres tsheb hauv lub tsev kawm ntawv qib siab li cas. Txhawm rau daws qhov teeb meem no, Kuv tsim daim duab qhia chaw nres tsheb ntawm thaj chaw tseem ceeb ntawm Utah State University lub tsev kawm ntawv. Daim duab qhia chaw yog rau cov tub ntxhais kawm kom nrawm nrawm saib seb qhov chaw nres tsheb twg yog
RAWS LI COV NTAUB NTAWV NTSEEG NTAWV NTAWV MUAJ NTAWV TSHUAJ NTAWV TSO CAI RAU RASPBERRY PI: 6 Kauj Ruam (nrog Duab)
RAWS LI COV NTAUB NTAWV NTAWV MUAJ NTAWV TSHUAJ NTXIV RAU RASPBERRY PI: Hauv qhov haujlwm no, peb yuav txuas peb ntawm Atlas Scientific's EZO sensors (pH, yaj cov pa thiab kub) mus rau Raspberry Pi 3B+. Hloov chaw ntawm txuas cov kab hluav taws xob mus rau Raspberry Pi, peb yuav siv Whitebox Labs Tentacle T3 daim ntaub thaiv. T
Chaw Nres Tsheb Huab Cua Nrog Cov Ntaub Ntawv Teev Npe: 7 Kauj Ruam (nrog Duab)
Chaw Nres Tsheb Huab Cua Nrog Cov Ntaub Ntawv Teev Npe: Hauv qhov kev qhia no kuv yuav qhia koj yuav ua li cas thiaj ua lub chaw nres tsheb huab cua los ntawm koj tus kheej. Txhua yam koj xav tau yog kev paub yooj yim hauv tshuab hluav taws xob, kev ua haujlwm thiab lub sijhawm me ntsis. Qhov haujlwm no tseem tab tom ua. Qhov no tsuas yog thawj ntu. Kev hloov kho tshiab yuav yog
FinduCar: Lub Ntsej Muag Tsheb Ntsuas Qhia Cov Neeg rau Qhov Chaw Lub Tsheb Nres Tsheb: 11 Cov Kauj Ruam (nrog Duab)
FinduCar: Ntse Lub Ntsiab Tseem Ceeb Qhia Tib Neeg rau Qhov Chaw Tsheb Nres Tsheb: Txhawm rau daws cov teeb meem saum toj no, txoj haujlwm no tawm tswv yim txhawm rau txhim kho tus yuam sij tsheb ntse uas tuaj yeem coj tib neeg mus rau qhov chaw lawv nres tsheb. Thiab kuv txoj kev npaj koom nrog GPS rau hauv lub tsheb tseem ceeb. Tsis tas yuav siv lub smartphone app los taug qab