Cov txheej txheem:

Yuav Ua Li Cas Futuristic LED Tower: 12 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Futuristic LED Tower: 12 Cov Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Futuristic LED Tower: 12 Cov Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Futuristic LED Tower: 12 Cov Kauj Ruam (nrog Duab)
Video: Koj mus ua neej zoo li cas lawm 11/16/2018 2024, Kaum ib hlis
Anonim
Image
Image
Sau cov khoom!
Sau cov khoom!

Koj xav li cas tom qab pom daim duab? Zoo siab? Xav paub? Zoo, koj yuav txaus siab, Kuv cog lus!

Txoj haujlwm no muaj ob lub hom phiaj:

  1. Kho kuv lub rooj
  2. Qhia kuv lub sijhawm

Tab sis.. qhia kuv lub sijhawm? Dab tsi heck ?! Ob lub yees siab qhia kuv lub sijhawm li cas?

Kuv cia ib tus ntawm kuv cov nus muag saib qhov project thiab nws zoo siab los ntawm qhov pom ntawm qhov haujlwm tab sis tsis paub meej txog kev ua haujlwm. Nws lom zem ua si nrog nws lub siab!

Muaj 12 LEDs hauv ob lub yees txhua. Txhua LED ntawm tus pej thuam sab laug sawv cev rau ib teev thaum txhua LED ntawm tus pej thuam sab xis sawv cev 5 feeb. Piv txwv li, 9 LEDs teeb rau sab laug thiab 3 LEDs ntawm sab xis txhais tau tias 9:15. Qhov txias npaum li cas yog txoj hauv kev los qhia lub sijhawm?

Kev tsis lees paub: Yog tias koj xav sim qhov haujlwm no, Kuv pom zoo kom koj nkag siab cov hauv paus ntawm Arduino, RTC (Lub Sijhawm Sijhawm) Modules, Transistors, thiab muaj kev paub txog hluav taws xob yooj yim. Qhov no tsis yog txoj haujlwm yooj yim thiab nws coj kuv yuav luag 3 lub lis piam los tsim nws.

Kauj ruam 1: Sau cov khoom

Sau cov khoom!
Sau cov khoom!

Koj yuav xav tau cov khoom hauv qab no.

Cov qauv txheej txheem: 2x 20cm x 40cm Acrylic sheetsBlack Spray paintWhite Spray paintMasking daim kab xev

Tshooj hluav taws xob: 12v 2A Fais fab movArduino MegaCircuit board rau prototyping3x 40 pins Txiv neej Pin Header75cm ntev ribbon cables25x TIP32 Transistor3x TIP3125x BC548 TransistorReal Time Clock (RTC) ModuleCopper xov hlau

Kauj Ruam 2: Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic

Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic
Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic
Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic
Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic
Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic
Thaum Tshav Kub Kub Ua Koj Daim Ntawv Acrylic

Tam sim no koj yuav tsum tau quav koj daim ntawv acrylic 90 degree ntawm ob sab. Tev tawm daim ntawv tiv thaiv ntawm koj cov acrylic, kos ob kab 6.6cm sib nrug ua ke ntawm koj daim ntawv 20cm acrylic, tom qab ntawd siv rab phom kub kom ua kom cov kab ntawd mos. Nws coj kuv li 10 feeb ua ntej cov acrylic ua kom muaj zog txaus los khoov.

Kauj ruam 3: Xim nws

Xim nws!
Xim nws!
Xim nws!
Xim nws!
Xim nws!
Xim nws!

Koj yuav xav tau cov tshuaj tsuag xim dub thiab dawb rau qhov no, koj tuaj yeem siv lwm yam xim uas koj xav tau rau lub cev ntawm acrylic tab sis tsuas yog siv cov tshuaj tsuag xim dawb rau kab uas LED yuav ci los ntawm.

Txiav koj daim kab xev npog (kom paub tseeb tias nws yog qhov dav ib yam li cov khoom LED koj yuav siv) 5 cm ntev, tom qab ntawv kaw nws mus rau sab hauv sab ntawm acrylic. Chaw qhov siab ntawm txhua daim kab xev npog txog 3.3cm rau txhua tus.

Tam sim no npog lub cev sab nraud nrog daim ntawv tom qab ntawd tsuag xim rau sab hauv nrog cov xim dub, lossis yam koj xav tau, ntxiv ntau lub tsho xim raws li koj tuaj yeem ua tau vim tias koj tsis xav kom lub teeb hla dhau qhov chaw dub.

Thaum cov xim tau qhuav, tshem daim kab xev npog thiab txau lub tsho loj ntawm cov xim dawb. Ua kom pom tseeb li ua tau kom muab koj coj coj los saib zoo!

Tib yam ua tiav rau lwm tus pej thuam. Teem lawv tawm yam tsawg ib teev rau cov xim kom qhuav.

Kauj Ruam 4: Txiav RGB Led Sawb Rau Ib Daim Ntawv

Txiav lub RGB Led Sawb rau Ib Daim Ntawv
Txiav lub RGB Led Sawb rau Ib Daim Ntawv
Txiav lub RGB Led Sawb rau Ib Daim Ntawv
Txiav lub RGB Led Sawb rau Ib Daim Ntawv
Txiav lub RGB Led Sawb rau Ib Daim Ntawv
Txiav lub RGB Led Sawb rau Ib Daim Ntawv

Thaum tos kom cov xim kom qhuav koj tuaj yeem pib ua haujlwm ntawm koj cov khoom siv hluav taws xob.

Lob koj lub RGB Led sawb thiab txiav lawv raws cov tooj liab sib txuas. Koj yuav xav tau 24 RGB Led "daim" yog li koj xav tau tsawg kawg 1.2m ntawm rgb coj sawb.

Kauj Ruam 5: Muab Rgb Sib Koom hauv PARALLEL

Muab cov Rgb Sib Koom hauv PARALLEL
Muab cov Rgb Sib Koom hauv PARALLEL
Muab cov Rgb Sib Koom hauv PARALLEL
Muab cov Rgb Sib Koom hauv PARALLEL

Tam sim no tsoo tawm koj cov hlau txuas thiab tooj liab hlau. Sawb koj cov xov hlau tom qab ntawd txuas lawv mus rau rgb pob qij txha ntawm koj daim Led. Ua cov xov hlau ntev txog 5cm. Tsis txhob ua kom luv dhau lossis koj yuav tsis tuaj yeem ncab lawv hla tus pej thuam.

Ua tib yam rau daim thib peb thiab plaub kom txog thaum koj tau txais cov saw ntawm 12 leds sib koom ua ke ntawm lawv cov pob qij txha rgb. Tom qab ntawd ua lwm 12 coj saw hlau rau lwm tus pej thuam.

Tsis txhob lo koj coj mus rau kab dawb ntawm koj tus pej thuam tsis tau!

Kauj Ruam 6: Cov Neeg Siv Hluav Taws Xob Ib Leeg rau 12v Sib Koom

Solder Cov Hluav Taws Xob Ib Leeg rau 12v Sib Koom
Solder Cov Hluav Taws Xob Ib Leeg rau 12v Sib Koom
Solder Cov Hluav Taws Xob Ib Leeg rau 12v Sib Koom
Solder Cov Hluav Taws Xob Ib Leeg rau 12v Sib Koom

Peb tsis xav tau peb cov LED los ua xim sib txawv, tab sis peb yuav tsum tswj hwm lawv tus kheej. Cov kab xaim hluav taws xob ib leeg rau 12v sib koom ntawm RGB Led daim. Nco ntsoov tias cov xaim tuaj yeem ncab txhua txoj hauv kev mus rau hauv qab vim tias yog qhov uas peb yuav txuas nws mus rau peb TIP32.

Tib yam siv rau tus pej thuam txoj cai tab sis hloov qhov xaus koj txoj haujlwm nyob ntawd, txuas nws nrog cov hlua xov uas muaj poj niam tus pin header soldered rau nws.

Kauj Ruam 7: Cov Kua Kub Kub/Super Glue Koj Cov LED rau ntawm Towers

Kub Nplaum/Super Glue Koj Cov LED rau ntawm Towers
Kub Nplaum/Super Glue Koj Cov LED rau ntawm Towers

Kuv hlawv kuv tus kheej ob peb zaug thaum tus txheej txheem no -_-

Tam sim no, siv cov kua nplaum rau kab dawb ntawm koj tus pej thuam. Tom qab ntawd, nias koj lub LED nyob rau thaj tsam li 20 vib nas this kom txog thaum cov kua nplaum zoo.

Ua tib yam rau 23 daim LED tom ntej.

Tom qab ntawd, txhuam tag nrho 12v xov hlau mus rau 12 tus pin poj niam tus pin lub taub hau, thiab qhov sib txuas rgb txuas mus rau 3 tus pin poj niam tus pin header. Yog li koj muaj tag nrho 15 tus poj niam tus pin headers tawm ntawm ob lub pej thuam. Tus pej thuam sab xis, txawm li cas los xij, muaj cov xaim txuas nrog cov hlua txuas.

Peb yuav tau cog peb cov arduino thiab pawg thawj coj saib mus rau tus pej thuam sab laug.

Kauj Ruam 8: Txhim Kho Koj Lub Vaj Tsev

Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej
Tsim Koj Tus Kheej

Nov yog qhov nyuaj, qhov no yog thaum koj cov txuj ci thiab kev paub hauv tshuab hluav taws xob tseem ceeb heev.

Koj yuav xav tau koj tus txiv neej tus pin lub taub hau thiab lub rooj sib tham los tsim cov ntaub thaiv npog no rau koj lub arduino mega, koj yuav tsum siv BC548 transistor los tswj TIP32 transistor los tswj tus kheej LEDS.

Tus txiv neej tus pin header hauv qab yuav tsum tau muab kho kom raug rau lub rooj tsav xwm hauv Circuit kom nws ntsaws rau hauv koj tus poj niam arduino tus pin header yam tsis muaj teeb meem.

Tus txiv neej tus pin lub taub hau saum toj no yog rau txuas koj tus pej thuam LEDs rau koj lub transistors.

Lub Circuit Court muaj nyob saum toj no. Thov ua raws li nws ua tib zoo saib xyuas.

Koj kuj tseem yuav tsum tau muab RTC tus qauv hloov mus rau hauv pawg thawj coj saib xyuas rau peb lub sijhawm ua haujlwm.

Thaum koj ua tiav, ntsaws koj daim thaiv rau koj lub arduino mega.

Kauj Ruam 9: Kuaj thiab Troubleshoot

Test thiab Troubleshoot
Test thiab Troubleshoot
Test thiab Troubleshoot
Test thiab Troubleshoot

Tsis muaj dab tsi ua haujlwm thawj zaug, yog tias nws ua Santa Claus yuav nyob. Txuas koj ob tus yees rau tus txiv neej tus pin lub taub hau ntawm koj daim thaiv thiab ntawm koj tus lej, qhib rau txhua lub LEDs, uas txhais tau tias ua rau txhua tus pin tso tawm mus qis thiab 3 PWM pins uas tswj cov xim kom HIGH.

Yog tias qee qhov ntawm lawv tsis ua haujlwm, txheeb xyuas kev sib txuas, txheeb xyuas cov khoom sib txuas hauv Circuit Court, thiab lwm yam.

Kauj Ruam 10: Mount Koj Arduino thiab Circuit Board rau ntawm Sab Ntauwd

Mount Koj Arduino thiab Circuit Board rau ntawm Sab Ntauwd
Mount Koj Arduino thiab Circuit Board rau ntawm Sab Ntauwd
Mount Koj Arduino thiab Circuit Board rau ntawm Sab Ntauwd
Mount Koj Arduino thiab Circuit Board rau ntawm Sab Ntauwd

Hauv cov vis dis aus, koj tuaj yeem pom tias kuv laum ob peb lub qhov rau ntawm ib qho me me ntawm acrylic thiab ntsia kuv kuv Arduino Mega hauv. pej thuam.

Kauj ruam 11: Coding

Tam sim no kuv tsis xav tias kuv tus lej yuav ua haujlwm rau koj vim qhov sib txawv Output pin peb siv los tswj peb cov arduino mega tab sis ntawm no nws yog. Sim hloov kho qhov chaws ntawm tus pin sab tso tawm kom nws ua haujlwm rau koj li. Koj tuaj yeem rub tawm cov cai ntawm no.

Nco tseg 1: Kuv tau ntxiv txoj haujlwm hauv cov cai uas yuav txo qhov ci kom tsawg rau hmo ntuj kom tiv thaiv teeb pom kev zoo hauv kuv chav. Tsis txhob ceeb yog koj lub pej thuam tsaus heev thaum 10 teev tsaus ntuj txog 8 teev sawv ntxov! Siv tus lej thib ob yog tias koj tsis xav tau txoj haujlwm ntawd.

Nco tseg 2: Yog tias qhov no yog koj thawj zaug siv RTC module, koj yuav tsum teeb tsa lub sijhawm. Tshawb nrhiav kab hauv qab no: //rtc.adjust(DateTime(2017, 8, 2, 15, 56, 20)); Mus tom ntej thiab tshem tawm ob npaug ntawm sab xub ntiag thiab kho koj lub sijhawm kom haum (xyoo, hli, hnub, teev, feeb, thib ob). Thaum koj rub tawm, koj lub rtc yuav raug teeb tsa rau lub sijhawm ntawd thaum lub sijhawm tus lej tau muab tso rau. Hloov qhov ob npaug thiab tom qab ntawv rov ua dua cov cai los tiv thaiv RTC los ntawm kev rov pib dua rau lub sijhawm dhau los.

Kauj Ruam 12: Txuas rau hauv Koj Lub Hwj Huam thiab Ta-Dah !

Image
Image
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!
Plug rau hauv koj lub hwj chim thiab Ta-Dah !!!

Thaum koj ua tiav, mus tom ntej thiab ntsaws koj lub hwj chim 12v rau lub arduino mega dc jack thiab koj mus. Koj nyuam qhuav tsim koj tus kheej lub tsev ntauwd uas yuav kho koj lub rooj, thiab qhia koj lub sijhawm nyob hauv txoj kev tshwj xeeb.

Kuv vam tias koj txaus siab rau qhov kev qhia no. Qhov no tsis yog txoj haujlwm yooj yim los ntawm kuv. Kuv yuav tsum ua txhua yam, los ntawm cov phiaj xwm, txhawm rau ua kom sov. Los ntawm kev kho video rau coding. Nws yog qhov nyuaj heev rau kuv.

Pom zoo: