Ib qho kev xaiv rau kev ua vaj huam sib luag zoo nkauj nrog LED backlighting, uas yuav yog tswj los ntawm Arduino, raug npaj siab. Lub vaj huam sib luag no yuav piav qhia txog lub hnub qub ntawm Ursa Major thiab cov hnub qub uas nyob ib puag ncig. Cov LED yuav ua lub luag haujlwm ntawm cov hnub qub. Txhawm rau muab cov duab ntau dua kev paub tsis meej thiab ntxim nyiam, cov hnub qub yuav ci ntsa iab hauv kev txiav txim siab random.
Nws yog qhov tsim nyog
- - Arduino;
- - khoos phis tawj;
- - LEDs;
- - resistors nrog nominal tus nqi ntawm 190..240 Ohm raws li tus naj npawb ntawm LEDs;
- - txuas cov xaim;
- - plywood;
- - cov hlawv pa hluav taws;
- - soldering hlau.
Cov Lus Qhia
Kauj ruam 1
Thawj kauj ruam yog los npaj cov plywood ntawm qhov loj thiab yam xav tau thiab ua tib zoo muab nws nrog av xuab zeb.
Tom qab ntawv, thov nrog tus xaum qhuav siv rau ntawm cov ntawv plywood uas koj xav pom ntawm koj lub vaj huam sib luag. Koj tuaj yeem siv cov ntawv carbon, koj tuaj yeem faib cov nplaim rau hauv cov hlwb thiab kos ib daim duab los ntawm txhais tes ntawm cov tes. Los yog, yog tias koj zoo nyob ntawm kos duab, kos los ntawm txhais tes.
Tom ntej no, peb hlawv cov duab uas xav tau nrog lub qhov cub. Kuv xav tias qhov no tsis tas yuav piav txog.
Kauj ruam 2
Tam sim no koj yuav tsum tau txiav txim siab nyob rau hauv qhov chaw twg koj yuav muaj cov LEDs, thiab tho qhov hauv cov chaw no rau ntawm txoj kab uas hla ntawm LED. Piv txwv li, hauv vaj huam sib luag no, LED yuav nyob hauv qhov chaw ntawm cov hnub qub ci ntsa iab hauv daim duab.
Sab nraub qaum ntawm lub vaj huam sib luag, txiav txim siab qhov chaw uas Arduino Nano lossis Mini pawg thawj coj yuav nyob, thiab txiav ib qho chaw ua si rau nws.
Tsis tas li, cov xaim los ntawm cov LED yuav tsum tau txuas nrog Arduino board. Nws kuj tseem yuav tsum tau mus nkaum lawv nyob rau hauv kev ua si. Raws li, koj yuav tsum tau teev thiab txiav cov kab sib tsoo rau cov xov hlau.
Kauj ruam 3
Peb muab cov xov hlau tso rau ntawm qhov txiav txiav tawm. Lawv tuaj yeem muab kho nrog cov pob hlau hlau. Tawm qhov kawg ntawm cov xov hlau dawb.
Kauj ruam 4
Cia peb txuas cov LEDs. Nco ntsoov tias txhua tus LED yuav tsum muaj 180 txog 240 ohm tam sim no txwv kev tawm tsam. Yog li ntawd, ua ntej peb solder lub resistor rau ib qho ntawm ob txhais ceg ntawm txhua tus LED.
Tom qab ntawv ntxig cov LED rau hauv qhov drilled. Tso ob txhais ceg thiab lub cev tiv taus raws cov kab txiav tawm.
Cov LED ua yuav muab tsau nyob rau hauv qhov zawj thiab yuav los sib raug ze. Yog li ntawd, lawv yuav tsum tau muaj insulated los ntawm txhua lwm tus nrog lub dielectric. Nws raug nquahu kom muaj ntau daim ntawm cov cua sov ntsws tubing thiab muab lawv tso rau ntawm qhov kawg ntawm cov xov hlau ua ntej soldering rau cov coj ntawm LEDs. Yog tias tsis muaj lub raj, tom qab ntawd ces daim ntawm cambric lossis lwm yam insulator yuav ua.
Tom qab ntawd, peb solder cov ceg ntoo coj mus rau cov xov hlau thiab tseem kho lawv nrog hlau kab cim tes.
Kauj ruam 5
Nruab Arduino board nyob rau hauv nws qhov chaw hauv qhov npaj tiav.
Peb muag cov xov hlau los ntawm LEDs. Nws yog qhov yooj yim rau solder cov kev coj ua zoo (anodes) ntawm LEDs rau cov digital lossis cov khoom sib piv ntawm Arduino, thiab nqa hauv av sib cais rau qee lub npav thiab cam txhua txoj xov hlau ntawm cathodes ntawm LEDs rau lub npav no.
Kauj ruam 6
Tam sim no hais tias tag nrho hluav taws xob feem tau sib sau ua ke, peb yuav dai vaj huam sib luag nrog lub thav duab zoo nkauj los ntawm daim duab lossis duab. Koj tuaj yeem txhim kho tus ncej nrog cov ces kaum.
Kauj Ruam 7
Nws tseem tshuav sau cov duab kos thiab muab xa mus rau Arduino. Ib qho txawv ntawm cov duab kos yog qhia hauv duab.
LED txuas nrog digital pins tsis muaj PWM muaj nuj nqi (peb saib cov mem tes qhov dav tes taws los piav rau hauv ib qho ntawm cov ntawv sau dhau los) yuav taws teeb ntawm qhov ci tas mus li. Thiab lwm tus, txuas nrog lub PWM pins, yuav tsis tseg hloov lawv qhov ci. Ntxiv mus, lub sijhawm qeeb thiab tus lej tus lej yuav raug teeb tsa zoo nyob rau hauv kev txwv tsis pub tsawg. Qhov no yuav simulate lub hnub qub ci ci.
Kauj ruam 8
Tso cov duab kos rau hauv lub cim xeeb ntawm Arduino. Lub vaj huam sib luag yog npaj lawm!
Los ntawm lub xov tooj them ntawm lub mini-USB cable, peb muab lub zog rau Arduino … thiab qhuas qhov txiaj ntsig ntawm peb cov haujlwm!