Cov txheej txheem:

DIY Arduino Wordclock: 7 Kauj Ruam (nrog Duab)
DIY Arduino Wordclock: 7 Kauj Ruam (nrog Duab)

Video: DIY Arduino Wordclock: 7 Kauj Ruam (nrog Duab)

Video: DIY Arduino Wordclock: 7 Kauj Ruam (nrog Duab)
Video: Will Tesla window break my hand? 2024, Hlis ntuj nqeg
Anonim
Image
Image

Kuv qhov version ntawm lo lus moos yuav tsis muaj qhov 12 × 12 LED-Matrix zaub. Hloov chaw nws tau ua nrog LED strips thiab tsuas yog cov lus tseem ceeb ntawm lub moos tuaj yeem ua kom pom kev. Nrog rau txoj hauv kev no koj tsis tuaj yeem tso tawm cov lus kev cai, tab sis tag nrho kev tsim yuav tsis raug nqi koj ntau npaum li.

Cov ntawv qhia no yog yuav luag txhua daim ntawv theej ntawm kuv tsab xov xwm, uas tau tshaj tawm ntawm no.

Kauj Ruam 1: Sau Cov Khoom Uas Xav Tau

Rooj plaub

Rau rooj plaub koj yuav xav tau cov khoom hauv qab no. Koj yuav tsum muaj peev xwm tau txais feem ntau ntawm cov khoom siv hauv koj lub khw muag khoom kho vajtse hauv zos (Txhua qhov ntsuas hauv mm!):

1. Acryl/iav vaj huam sib luag pem hauv ntej (270 × 270 [mm])

2. Lasercut saib – ntsej muag (1, 5 mm dub matte cardboard)

Kuv xaj nws los ntawm ponoko.com

3. Ntoo:

2x 300x80x15 [mm] 2x 270x80x15 [mm] 2x 270x40x10 [mm] 2x 250x40x10 [hli]

4. Plywood panels

2x 270x270x5 [hli]

5. Ua Npuas Ncauj-Boards

Yuav raug siv los ua qhov sib txawv thiab ua kab sib chaws rau cov lus ntawm lub moos, yog li lub teeb tsis los ntshav mus rau lwm cov ntawv uas tsis txhais tau tias yuav pom kev. Cov no tuaj yeem nyuaj nrhiav, Kuv tau txais lawv los ntawm amazon.

Cov khoom siv hluav taws xob

Rau cov khoom siv hluav taws xob koj yuav xav tau:

1. LED sawb nrog WS2812B lossis zoo sib xws xws li

1 meter (60 LEDs)

2. 330 ohm resistor (lossis qee yam ze rau nws, tsuas yog rau kev tiv thaiv luv luv)

3. RTC Modul

Kuv tau txais qhov no los ntawm banggood.com

Tseem ceeb! Koj tuaj yeem siv ib qho LED-strip koj xav tau, tsuav yog cov LEDs tuaj yeem hais sib cais lossis koj tsim koj tus kheej tswj, uas hloov ntawm ntu sib cais. Kuv tau suav sau cov npe nrog cov tswj LED-strip zoo ib yam. Koj tuaj yeem rub nws ntawm no.

Kauj ruam 2: Rub tawm thiab Watchfaces

Downloads thiab Watchfaces
Downloads thiab Watchfaces
Downloads thiab Watchfaces
Downloads thiab Watchfaces

Stencil ntawv

Ua ntej koj yuav tsum nrhiav lub monospace zoo, stencil font. Uas txhais tau tias, txhua tus cim muaj qhov dav sib xws thiab tau txuas nrog tas li. Hmoov tsis zoo, kuv tsis tau xav txog qhov ntawd thaum kuv tsim kuv lub moos, yog li qee cov ntawv tau ploj lawm lawv qhov sab hauv. Txawm li cas los xij, Kuv nyiam daim ntawv no. Tab sis xav tias siv lub font uas koj nyiam.

Lub ntsej muag saib

Tom ntej no koj yuav tsum tsim lub ntsej muag saib. Txog cov txheej txheem no kuv yooj yim ntaus 12 kab ntawm gibberish suav nrog 12 tus cim ib kab. Tom qab ntawd kuv ntxiv cov lus tsim nyog (Nws yog, peb lub hlis twg, ib nrab, ib, ob,…, teev thiab ntxiv rau). (saib daim duab 1).

Tom qab ua tiav, Kuv tau theej tag nrho kuv cov ntawv thiab muab tso rau hauv photoshop. Koj tseem tuaj yeem siv GIMP ntawm no, yog tias koj tsis muaj photoshop. Hauv photoshop koj yuav tsum hloov koj daim ntawv mus rau lub cim stencil koj rub tawm ua ntej thiab tso txhua yam tawm, kom nws zoo li ntawm 270x270mm duab (qhov no yuav yog qhov loj ntawm peb lub hauv ntej), raws li qhia hauv daim duab 2 thiab 3.

Tom qab ntawd hloov cov ntawv mus rau txoj hauv kev thiab xa tawm txhua yam raws li cov duab kos duab rau laser-txiav. Pom koj qhov kev txiav laser txiav cov lus qhia yuav ua li cas thiaj li raug, vim qhov no txawv ntawm kev pabcuam rau kev pabcuam.

Lub firmware

Tsuas rub tawm nws ntawm no. Koj yuav xav tau qhov no tom qab thiab kuv yuav tham tom qab hauv cov lus qhia no.

Kauj Ruam 3: Sib Sau Cov Case

Sib Sau Cov Case
Sib Sau Cov Case
Sib Sau Cov Case
Sib Sau Cov Case
Sib Sau Cov Case
Sib Sau Cov Case

Cov ntaub ntawv ua tiav yog ua los ntawm ob lub xwmfab thiab sab hauv yuav tsum haum zoo rau sab nrauv. Ua ke lawv tsim cov ntaub ntawv tiav. Sab hauv ib qho ua raws li qhov sib txawv thiab qhov chaw teeb tsa rau LED-cov laug cam. Muab cov ntoo ntoo ua ke zoo li qhia hauv daim duab 1.

Yuav tsum muaj 250 × 250 qhov chaw seem nyob hauv nruab nrab ntawm rooj plaub. Qhov no yog, qhov chaw ua npuas dej cais yuav muab tso rau tom qab. Kuv pom zoo, tias koj tsim lub plhaub txheej ua ntej thiab tom qab ntawd siv lub hauv ntej-phaj thiab lub ntsej muag saib ua cov lus qhia thaum tsim lub thav duab sab hauv, yog li koj tau txais me ntsis di ncauj qhov twg ob qho khoom siv no tuaj yeem ntsia tom qab hauv cov txheej txheem. Txoj hauv kev no, lawv yuav yaug nrog cov npoo ntawm cov rooj ntoo thiab nws yuav zoo saib thaum ua tiav, raws li pom hauv daim duab 2. Tsis txhob hnov qab suav nrog rau qhov tuab ntawm koj lub laser-txiav saib-ntsej muag ntawm no. Cias ntxiv qhov ntawd, nyob ntawm cov khoom xaiv.

Los ntawm nraub qaum, rooj plaub yuav tsum zoo li kuv pom hauv daim duab 3. Tsis txhob dag kom txiav tawm rau ib qho dc-jack lossis cable nyob qhov twg ntawm rooj plaub, nyiam dua hauv qab.

Kauj Ruam 4: Cov Khoom Siv Hluav Taws Xob

Cov Electronics
Cov Electronics
Cov Electronics
Cov Electronics
Cov Electronics
Cov Electronics
Cov Electronics
Cov Electronics

Qhov no yog ib feem, uas coj kuv ntev los ua. Nws tsis nyuaj ua, tab sis koj yuav tsum tau ua txhua txoj hlua hlau los ntawm txhais tes, yog li npaj kom tsawg kawg ob teev ntawm kev siv tshuaj txhuam!

Ua ntej, coj ib qho ntawm ob lub plywood panels thiab koj lub ntsej muag pem hauv ntej thiab kho lawv, kom lub ntsej muag pem hauv ntej tso rau ntawm lub vaj huam sib luag. Tom qab ntawd lob tus cwj mem thiab hloov cov tsiaj ntawv, uas koj xav kom pom tom qab, mus rau lub vaj huam sib luag plywood. Nws yuav tsum zoo li qhia hauv daim duab 1 tom qab. (Faj seeb: Kuv siv lub rooj ua npuas dej tsis txhob siv cov plywood, tab sis kuv xav kom siv ntoo, vim tias ua npuas dej yuav yaj thaum yaj thiab nws yog qhov muaj peev xwm tua hluav taws thiab txaus ntshai rau kev noj qab haus huv).

Afterwads nteg tawm LED sawb ntawm lub vaj huam sib luag no. Sim faib cov LEDs sib npaug ntawm cov lus. Kuv siv tag nrho 60 LEDs uas los rau ntawm kab txaij, tab sis koj tuaj yeem siv tsawg dua, yog tias koj xav tau. Txawm li cas los xij, qhov koj siv ntau lo lus, nws zoo dua yuav saib qhov kawg, vim tias txhua tus ntawv ntawm ib lo lus ntawd yuav ci ib yam. Daim duab 2 qhia tias kuv faib lawv li cas.

Thaum koj zoo siab nrog kev teeb tsa, tev tawm cov yeeb yaj kiab tiv thaiv los ntawm sab nraum qab ntawm LED-sawb thiab teeb cov LEDs. Sim muab lawv tso rau ntawm txhua lo lus. Yog tias koj daim kab xev tsis yog tus kheej nplaum, siv qee cov kua nplaum tsis tu ncua thiab cia nws qhuav.

Nco ntsoov, tias koj tso lawv rau qhov yog. Kuv lub pluaj muaj tus xub me me rau nws, qhia txoj hauv kev, tias lub teeb liab tswj yuav siv (saib daim duab 3). Teem txhua daim kab xev, yog li ntawd xub xub taw tes rau tib txoj kev.

Tom qab qhov no ua tiav, koj yuav tsum tau siv qee qhov 2mm qhov. Ntawm ob sab ntawm txhua tus LED-sawb laum peb lub qhov nyob ze rau cov tooj liab hu rau ntawm kab txaij, raws li qhia hauv daim duab 4. Los ntawm sab nraub qaum, lub rooj teeb tsa yuav tsum zoo ib yam li kuv hauv daim duab 5.

Tam sim no los txog qhov tsis yooj yim: Koj yuav tsum txuas cov LED-strip daim ua ke, yog li ntawd lawv tsim ib txoj hlua ntev dua. Qhov ntawd txhais tau tias: Txuas cov hlua LED -kab hauv txhua kab ua ke (GND -> GND, 5V -> 5V, Cov Ntaub Ntawv -> Cov Ntaub Ntawv).

Raws li koj tuaj yeem pom hauv daim duab 5, Kuv txuas tag nrho cov kab hluav taws xob thiab kuv tau ua ib qho +5V thiab ib qho kev tsheb nqaj hlau GND ntawm sab laug thiab sab xis ntawm lub rooj teeb tsa. Yog li cov kab xev tau txuas nrog ua ke hauv ib kab thiab qhov kawg ntawm txhua kab txuas nrog GND ntawm sab laug thiab txhua thawj kab ntawm kab txuas nrog +5V.

Tom qab ntawd kuv txuas Cov Ntaub Ntawv kab ntawm txhua kab txaij ntawm ib kab ua ke thiab tso tawm zaum kawg ntawm kab rau thawj kab lus ntawm kab tom ntej. Tom qab ntawd kuv sim-teeb tsa lub vaj huam sib luag hauv rooj plaub. Qhov no tuaj yeem pom hauv daim duab 6.

Kuv siv cov xov hlau daj uas hloov pauv tau los txuas qhov kawg ntawm kab nrog ib kab tom ntej thiab cov tooj liab tawv kom ua qhov sib txuas ntawm LED-sawb daim, uas nyob ntawm ib kab. Tom qab ntawd kuv sim cov kev sib txuas los ntawm kev ntsuas kab ntawv thiab thaum kuv pom tias txhua yam ua haujlwm, Kuv tau ruaj khov cov xov hlau daj nrog cov kua nplaum kub, yog li lawv tsis ya hla txhua qhov chaw hauv rooj plaub thiab kuv ntxiv cov xim liab thiab dub rau cov kab zog.

Yog tias koj siv DC-Jack rau koj lub zog txuas, txuas tam sim no. Kuv siv lub xov tooj-them nyiaj thiab txuas nws rau hauv qhov chaw.

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Thaum koj paub tseeb, tias txhua yam ua haujlwm, teeb tsa lub rooj tsavxwm nrog LEDs hauv rooj plaub, yog li cov LEDs tig mus rau tom ntej. Nws yuav tsum zoo li qhov no nthuav tawm hauv daim duab 1.

Koj tuaj yeem ruaj ntseg nws nrog cov ntsia hlau lossis tsuas yog siv cov kua nplaum. Kuv tau txiav txim siab nrog qhov kev xaiv thib ob, vim kuv tsis npaj yuav tshem nws dua.

Tom qab ua tiav qhov no, Kuv tau pib tsim cov kab npuas dej uas yuav tiv thaiv cov ntawv tsis xav tau los ntawm teeb pom kev ntawm lub ntsej muag pem hauv ntej. Yog li thawj zaug kuv txiav tawm kaum ib 250 x 40 mm daim tawm ntawm cov laug cam thiab ua rau lawv mus rau ntawm pawg thawj coj saib LED. Kaw cov kab no hauv-nruab nrab ntawm kab ib kab ntawm cov ntawv ntawm lub ntsej muag thiab koj tsim yuav tsum zoo ib yam li kuv li qhia hauv daim duab 2.

Tam sim no txiav ua npuas dej rau hauv daim me me, uas mus nruab nrab ntawm cov kab thiab tso rau qhov uas tsim nyog. Nws yuav tsum zoo li kuv li hauv daim duab 3.

Txoj hauv kev no koj tsim tib lub cell rau txhua lo lus, uas yuav pom qhov kawg. Tom qab qhov no ua tiav, cia txhua yam kom qhuav thiab txiav tawm 250 x 250 mm daim ntawm parchment-ntawv lossis qee yam uas zoo ib yam rau nws. Kuv siv nws los nthuav lub teeb los ntawm LEDs. tso nws rau ntawm daim phiaj ua npuas ncauj thiab ruaj ntseg nws nrog qee cov kua nplaum. Sim tsis txhob muab nws tso rau ntawm cov ntoo.

Tom qab ntawd lo lub laser-txiav lub ntsej muag pem hauv ntej rau hauv qhov chaw thiab tom qab ntawd ua kom tiav nrog lub iav pem hauv ntej-ntsej muag. Nco ntsoov tshem tawm cov yeeb yaj kiab tiv thaiv. Cov khoom tiav yuav tsum zoo li daim duab 4.

Tam sim no muab tso rau hauv txhua lub tshuab hluav taws xob-cov khoom uas tseem tshuav thiab ua qhov tsim nyog sib txuas. Cov ntaub ntawv-kab ntawm LED-strip txuas nrog kuv Arduino ntawm nws tus lej thib ob (tus pin 2) thiab kuv ntxiv 330 Ohm resistor rau kev tiv thaiv ntxiv.

Tom qab ntawd txuas RTC-Module rau Arduino's SDA thiab SCL pins thiab rau 5V thiab GND ntawm Arduino.

Tom qab ntawd kaw rooj plaub nrog cov plywood seem uas seem thiab koj ua tiav nrog rooj plaub!

Kauj ruam 6: Firmware

Rau lub khoos phis tawj kuv siv nrawm thiab Sodaq-DS3231 cov tsev qiv ntawv rau Arduino.

Cov firmware no tsuas yog ua haujlwm raug yog tias koj siv tib lub LED-strip maub los, ib yam li kuv tau ua. Yog tias koj xav siv qhov sib txawv, koj yuav xav hloov txoj cai, kom nws haum rau koj qhov chaw. Kuv tau sim ua txoj cai kom nkag siab yooj yim li sai tau, yog li koj tuaj yeem hloov pauv sai sai raws li koj lub ntsej muag lossis LED teeb. Yog tias koj tsuas yog siv cov tswj LED sib txawv, koj yuav tsum yog qhov zoo los ntawm kev hloov kab no hauv kev teeb tsa ()-Txoj hauv kev:

FastLED.addLeds (leds, NUM_LEDS);

Txawm li cas los xij, yog tias koj tau ua daim phaj pem hauv ntej sib txawv, hloov tus lej ntawm LEDs, uas tau hais tseg hauv qhov pib ntawm txoj haujlwm. Kuv xav tias cov cai yuav tsum nkag siab yooj yim thiab kuv ntxiv cov lus pom.

Kuv lees paub, qhov program tsis tau sau zoo (txhua yam nyuaj-coded), thiab nws tsis yog txhais tau tias ua kom zoo dua, tab sis kuv sim ua kom yooj yim thiab nkag siab yooj yim, raws li ua tau.

Kauj Ruam 7: Xaus

Xaus
Xaus

Nov yog kuv thawj qhov kev qhia thiab kuv vam tias koj nyiam nws. Zoo li tau hais los saum no, Kuv kuj muaj lub vev xaib uas kuv tshaj tawm cov khoom zoo li no. Zoo siab tuaj ntsib nws.

Kuj tseem muaj cov vis dis aus txuas hauv thawj qib, yog tias koj xav saib nws, tsis txhob nyeem ntawv.

Nrog cov lus qhia no kuv xav qhia koj, tias nws tseem muaj peev xwm tsim lub moos lus pheej yig hauv tsev yam tsis muaj cov cuab yeej tshaj lij lossis cov khoom siv. Zoo, OK koj tseem yuav xav tau laser txiav lub ntsej muag ua ntej, tab sis koj tuaj yeem ua nws tus kheej yog tias koj muaj lub siab ntev thiab lub sijhawm los txiav tawm txhua tsab ntawv ib tus zuj zus.

Qhov zoo tshaj plaws txog qhov no yog: Sab nraud, tsis muaj leej twg tuaj yeem pom nws yooj yim npaum li cas los ntawm sab hauv, yog li koj tseem tuaj yeem ua piv txwv tias yog tus kws tshaj lij engineering, thaum tib neeg tuaj xyuas koj lub tsev thiab txawm tias koj tsis npaj yuav ua li no, koj tseem yuav muaj txoj hauv kev zoo los sawv cev rau lub sijhawm tam sim no!

Pom zoo: