Cov txheej txheem:

Arduino-based Master Clock for Schools: 9 Cov Kauj Ruam (nrog Duab)
Arduino-based Master Clock for Schools: 9 Cov Kauj Ruam (nrog Duab)

Video: Arduino-based Master Clock for Schools: 9 Cov Kauj Ruam (nrog Duab)

Video: Arduino-based Master Clock for Schools: 9 Cov Kauj Ruam (nrog Duab)
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Hlis ntuj nqeg
Anonim
Arduino-based Master Clock rau Cov Tsev Kawm Ntawv
Arduino-based Master Clock rau Cov Tsev Kawm Ntawv

Yog tias koj lub tsev kawm ntawv, lossis tsev kawm ntawv menyuam yaus, lossis lwm qhov chaw tso siab rau lub hauv paus tus tswv lub sijhawm uas tawg, koj tuaj yeem siv tau rau lub cuab yeej no. Tus tswv lub moos tshiab muaj nyob ntawm chav kawm, tab sis tsev kawm ntawv pob nyiaj siv tau nyob rau hauv kev nyuaj siab heev, thiab nws yog qhov haujlwm txaus siab tiag tiag yog tias koj muaj txuj ci tsim nyog.

Lub moos tseem ceeb no tswj hwm cov cim xa mus rau tus qhev lub moos, thiab ua kom lawv sib koom ua ke. Lub khoos phis tawj hauv lub moos tam sim no txhawb nqa Lub Sijhawm Tebchaws sib koom ua ke. Tus tswv tseem tseem tswj hwm lub tswb uas tuaj yeem teeb tsa lub sijhawm teem thaum nruab hnub. Lub khoos phis tawj hauv lub moos tam sim no txhawb nqa ob lub tswb tswb (tswb sab hauv tsev thiab sab nraum zoov). Lub khoos phis tawj hauv lub moos tseem tuaj yeem hloov kho kom haum rau lub sijhawm nruab hnub (qhov no tuaj yeem tua tau). Lub tsev qiv ntawv no tseem yuav muaj txiaj ntsig zoo rau lwm qhov phiaj xwm hauv moos (nco ntsoov tseem tau hloov kho Lub Sijhawm Sijhawm Sijhawm). Lub moos tau teeb tsa los ntawm kev txuas nws mus rau lub khoos phis tawj ntawm Arduino USB chaw nres nkoj, thiab khiav Java txoj haujlwm tswj hwm nrog GUI interface. Thaum lub sijhawm tau teeb tsa, thiab lub tswb tswb tau teeb tsa, lub khoos phis tawj tuaj yeem txuas tau. Tus tsim ntawm lub moos qhia txog kev yooj yim, nrog qhov tsawg kawg ntawm kev tswj hwm. Txhua qhov teeb meem nyuaj tau ua haujlwm zoo dua los ntawm kev ua haujlwm tswj hwm lub khoos phis tawj thiab txuas mus rau lub sijhawm ib ntus. Daim duab qhia pom lub vaj huam sib luag pem hauv ntej ntawm lub moos. Qhov hloov pauv tso lub tswb kom raug kaw yog tias tsis xav tau lub tswb (hnub so, hnub qhia kws qhia ntawv thiab lwm yam.) Cov LEDs ib txwm yog ntsuab, txhua yam qhia tau tias yog lub xeev txawv.

Kauj Ruam 1: Tshawb Nrhiav Txog Tus Xib Hwb Koj Puas Tau Hloov

Nrhiav Paub Txog Tus Xib Hwb Koj Puas Tau Hloov
Nrhiav Paub Txog Tus Xib Hwb Koj Puas Tau Hloov
Nrhiav Paub Txog Tus Xib Hwb Koj Puas Tau Hloov
Nrhiav Paub Txog Tus Xib Hwb Koj Puas Tau Hloov

Tus tswv lub moos uas tau hloov pauv los ntawm txoj haujlwm no yog "Rauland 2490 Master Clock". Nws tau tsum tsis ua haujlwm thaum muaj cua daj cua dub hnyav. Cov moos qhev tau txav nrawm heev (txuas ntxiv ua lub teeb liab sib txuas), thiab tus tswv lub sijhawm tom qab raug kaw. Yog li cov moos hauv tsev kawm ntawv txhua tus tau qhia txog tib lub sijhawm, tab sis txhua yam tsis raug, thiab ib txwm tsis raug. Qhov no ua pov thawj tias qhov kev hais tawm "txawm tias lub moos tawg raug yog ob zaug hauv ib hnub" yog qhov tsis tseeb. cov cheeb tsam tau siv rau tswb (sab hauv tsev, sab nraum zoov, cov tsev sib txawv thiab lwm yam) Koj lub tsev kawm ntawv (lossis lwm qhov chaw) tseem tuaj yeem muaj cov ntaub ntawv teev tseg nyob rau hauv daim ntawv ntawm cov kab hluav taws xob. Cov no tuaj yeem pab tau heev thaum txhim kho lub moos tshiab.

Kauj Ruam 2: Koj Xav Tau Cov Khoom No

Koj Xav Tau Cov Khoom No
Koj Xav Tau Cov Khoom No
Koj Xav Tau Cov Khoom No
Koj Xav Tau Cov Khoom No

Daim duab qhia qee yam ntawm cov khoom koj yuav xav tau. Koj yuav xav tau ntxiv. Thov tawm ib tsab ntawv yog tias kuv hnov qab qee yam. Hmoov tsis zoo, cov lus qhia no tau tsim tom qab qhov tseeb yog li kuv tsis muaj txhua daim duab uas kuv xav tau. * Arduino (lossis zoo sib xws) nrog Atmel '328 thiab USB txuas (Duemilanove yog qhov zoo tshaj)* 12v phab ntsa wart (hais 250 mA, nyob ntawm seb muaj pes tsawg tus xa koj yuav tsav)* 9V roj teeb, tus tuav, thiab txuas* LED's (ib qho ntsuab, ob xim liab/ntsuab)* diodes* resistors* relays (ib qho rau txhua lub tswb tswb, thiab ib lossis ntau dua rau cov teeb liab sib txuas)* LCD (tus qauv 2x20 cim HD44780-tso saib tau)* cov ntaub thaiv kom haum (loj, nruab nrab, thiab cov phiaj xwm me me)* ntsaws thiab txuas rau lub zog (5.5/2.1 mm piv txwv)* ntau yam ntsia hlau thiab lwm yam khoom siv khoos phis tawj nrog* Arduino IDE teeb tsa (nrog cov tsev qiv ntawv xav tau, saib cov kauj ruam 5)* Java-based Master Clock Control program (thiab Java ib puag ncig kev ua haujlwm, thiab rxtx lub tsev qiv ntawv)* USB chaw nres nkoj muaj* USB cable txuas rau Arduino* sijhawm teem rau qee yam tsim nyog

Kauj Ruam 3: Muab Nws Ua Ke Cov Khoos Phis Tawj

Muab tso ua ke Cov Khoom Kho Vajtse
Muab tso ua ke Cov Khoom Kho Vajtse

Kuv siv peb lub thawv ntawv* ib lub thawv loj rau cov khoom siv hluav taws xob* ib lub thawv nruab nrab rau kev xa xov hluav taws xob (sib xyaw ntawm qhov hluav taws xob qis thiab qhov hluav taws xob siab)* ib lub thawv me me rau kev sib txuas hluav taws xob siab Ua qhov nyob hauv cov thawv uas cov ntsia hlau tuaj yeem tuav lawv ua ke. Kuj ua qhov uas cov xov hlau tuaj yeem mus nruab nrab ntawm cov thawv. Lub thawv me me tseem xav tau qhov uas cov xaim tuaj yeem txuas rau kev teeb tsa. Lub thawv nruab nrab xav tau lub qhov rau txuas lub 9V lub roj teeb lub thawv. Qhov loj lub thawv xav tau qhov rau USB txuas ntawm Arduino thiab lub qhov rau lub zog ntsaws. Lub hau/sab saum toj ntawm lub thawv loj tseem xav tau qhov rau LEDs, hloov pauv, thiab LCD.

Kauj Ruam 4: Tsim Cov Khoom Siv Hluav Taws Xob

Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob

Schematics yuav muab ntxiv sai sai no!

Kauj ruam 5: Arduino Firmware

Arduino Firmware
Arduino Firmware

Thauj khoom "Master Clock Firmware" Arduino kos duab rau hauv Arduino IDE. Koj kuj tseem yuav tsum tau teeb tsa tus lej ntawm lwm lub tsev qiv ntawv (yog tias koj tseem tsis tau teeb tsa lawv)* Hnub Tim (siv cov ntawv hloov kho txuas nrog ntawm no)* Kev Nruab Hnub Nruab Hnub (saib cov kauj ruam tom ntej)* Hnub Tim Tim Sijhawm* Flash* Streaming* LiquidCrystal (los nrog IDE) Cov tsev qiv ntawv ua ke nrog cov cai ua rau kos duab loj dhau kom haum rau hauv Arduino ATmega128, uas yog vim li cas thiaj xav tau '328. Tej zaum yog tias koj tshem qee qhov chaws uas koj tsis xav tau rau koj txoj haujlwm nws tuaj yeem haum.

Kauj Ruam 6: Lub Tsev Qiv Ntawv Nruab Hnub

Lub Tsev Qiv Ntawv Nruab Nrab
Lub Tsev Qiv Ntawv Nruab Nrab

Nov yog lub tsev qiv ntawv xaiv uas ua haujlwm nrog hloov kho Lub Sijhawm Sijhawm. Yog tias koj qhov kev txuag nyiaj nruab hnub hloov pauv tsis zoo ib yam li Asmeskas kev tshaj tawm xyoo 2007, nws tsuas yog tsim nyog los hloov kho ib qho haujlwm uas nyob hauv nws cov ntaub ntawv. Qhov tseeb, raws li cov ntaub ntawv ntau ntxiv rau cov chaw sib txawv tau muab, lawv txhua tus tuaj yeem faib thiab xaiv los ntawm kev siv ib qho ntawv raug. Qhov no txwv tus lej tsim tawm rau lub tsev qiv ntawv no.

Kauj Ruam 7: Java Control Program

Java Control Program
Java Control Program

Cov duab no qhia lub vijtsam ntawm Java Master Clock Control program ua haujlwm. Ua ntej tshaj plaws, nws yog siv los teeb lub sijhawm ntawm Arduino board.

Nws muaj peev xwm sib txuas lus nrog Tus Xib Hwb Siv lub cuab yeej ntawm Arduino IDE.

Kauj Ruam 8: Kev teeb tsa

Kev teeb tsa
Kev teeb tsa

Yog tias koj tsis paub meej txog kev tiv thaiv kev nyab xeeb tsim nyog thaum teeb tsa lub mater moos tshiab, koj yuav tsum zaum tham nrog kws kho hluav taws xob. Txoj hauv kev huv tshaj plaws los teeb tsa lub moos tshiab tus tswv yog kom yooj yim hla kev sib txuas ntawm lub moos qub qub. Piv txwv li, yog tias muaj lub davhlau ya nyob twg ntawm tus tswv qub moos uas rub mus rau hauv av thaum lub teeb liab sib txuas yog "ntawm", tom qab ntawd txuas cov xov hlau no mus rau lub davhlau ya nyob twg ntawm lub moos tshiab. Lwm sab ntawm lub davhlau ya nyob twg sib txuas yuav tsum txuas nrog hauv av kom thaum kev sib txuas txuas cov xov hlau mus rau hauv av ua haujlwm zoo ib yam. Ib qho ntxiv, cov chaw xa xov tuaj yeem txuas nrog xaim kub (120 lossis 24V AC nyob ntawm tus qhev qheb kev qhia tshwj xeeb) thiab tom qab ntawd mus rau cov xov tooj sib txuas. Nws tiag tiag nyob ntawm kev teeb tsa ntawm cov txheej txheem uas twb muaj lawm thiab ntau npaum li cas koj txaus siab ua kom koj txhais tes qias neeg.

Kauj ruam 9: Nws Ua Haujlwm

Nws Ua Haujlwm!
Nws Ua Haujlwm!

Tus tswv lub moos tshiab tau teeb tsa thiab ua haujlwm tau zoo ntawm lub tsev kawm ntawv theem qis. Nov yog txoj hauv kev zoo rau txhua tus kws qhia paub koj yog leej twg. Cov menyuam yaus tsis raug yuav tuaj ntsib koj thiab ua tsaug rau "kho lub moos". Yog lawm, tib neeg txawm yuav tuaj cuag koj hauv khw muag khoom hauv nroog thiab ua tsaug! Lawv qhov tseem ceeb ntawm no tau kawg, tsis yog los hloov lub moos tawg tam sim ntawd, tab sis tos ib pliag ua ntej ua li ntawd. Tus tswv tseem ceeb tau ua haujlwm rau lub Kaum Ib Hlis 1, 2009 hloov los ntawm kev txuag nruab hnub nrig rau lub sijhawm. Tus tswv tswv qhia lub sijhawm raug, tab sis tus qhev moos tsis ua. Qhov no yog vim muaj teeb meem thaiv hluav taws xob (kab laum) qhov twg cov teeb liab sib txuas tau txais lub zog tsuas yog los ntawm roj teeb, thiab lub roj teeb tsis muaj zog heev. Qhov no tau kho tas thiab tam sim no teeb meem roj teeb tau raug kho tas lawm.

Pom zoo: