Cov txheej txheem:

LED Tswb Tswb Tswb: 5 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb: 5 Kauj Ruam (nrog Duab)

Video: LED Tswb Tswb Tswb: 5 Kauj Ruam (nrog Duab)

Video: LED Tswb Tswb Tswb: 5 Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
LED Tswb Tswb Tswb
LED Tswb Tswb Tswb

Teeb meem sawv ntxov? Ntxub lub suab ntsaum hnyav ntawm lub tswb? Koj puas xav ua qee yam ntawm koj tus kheej uas koj tuaj yeem sib cav yuav tau nyiaj tsawg thiab sijhawm? Tom qab ntawv txheeb tawm qhov LED Tswb Tswb Tswb Tswb!

Lub tswb tswb tuaj tsim los kom muaj kev nyob ntsiag to ntau dua los ntawm kev maj mam nce qhov ci nyob ib puag ncig koj lub sijhawm teev. Lub tswv yim yog qhov no thov kom peb lub siab xav kom sawv nrog lub hnub thiab 'dag ntxias' lub cev mus rau qhov sib npaug sib npaug sib npaug ua kom sawv tau yooj yim dua. Qhov no yuav tsis yog rau txhua tus tab sis tus kheej kuv tau pom tias nws muaj txiaj ntsig thiab tshwj xeeb tshaj yog pom cov xim sov sov thaum sawv ntxov.

Ntau lub moos hnub tuaj koj tuaj yeem yuav sim sim hnub ci nrog cov qhov muag tshwj xeeb uas sim ua kom haum cov xim thiab xim kub ntawm lub hnub thaum sawv ntxov. Txawm li cas los xij rau qhov kev tsim no peb tsuas yog siv RGB LEDs uas tuaj yeem kwv yees kwv yees lub hnub ci zoo nkaus li tab sis tseem tso cai rau txias thiab cim xim sib xyaw ua ke thiab cuam tshuam. Qhov kev tsim no yog nyob ib puag ncig ntawm cov pob txha liab qab Arduino UNO nrog Lub Sijhawm Sijhawm Sijhawm (RTC) qauv thiab 7 ntu LED moos.

Kauj ruam 1: BOM

  • Basswood Lub Hau Box
  • Arduino UNO lossis cov pob txha liab qab sib npaug
  • LM7805 5V Kab Tawm Tawm
  • Caps, ntau 1uF, 10uF rau LEDs.
  • Lub Sijhawm Tiag (RTC) tus qauv
  • 7 Segment LED Moos Zaub
  • Potentiometer
  • Teb Encoder
  • Pob qhov rooj rau lub lauj kaub thiab encoder. Kuv siv qee lub pob qhov rooj kuv tau pw ib ncig
  • Momentary Pushbutton hloov nrog LED
  • Acrylic pas nrig (6x 10mm dia. 250mm ntev)
  • 8x WS2812B RGB LEDs
  • M3 ntsia hlau standoffs thiab ceev
  • Mini hlau nplaum
  • PCB lossis pawg thawj coj saib + xov hlau
  • Ntoo stain ntawm yam xim

Kauj Ruam 2: Tsim

Schematic ntawm kev tsim yog suav nrog hauv qab no. Txheeb nws tawm. Lub hauv paus tseem ceeb ntawm lub moos yog RTC module. Qhov no muab lub sijhawm ntseeg tau khaws cia thiab muaj lub roj teeb me me uas ua rau nws tswj tau lub sijhawm yog tias lub tswb nrov tag nrho tau siv. RTC module thiab 7 ntu moos saib interface rau Arduino ntawm I2C raws tu qauv.

Cov neeg siv cov tswv yim rau lub cuab yeej ua tiav los ntawm kev nkag teb chaws nrog lub pob nyem uas siv tau los teeb tsa lub sijhawm teev thiab lub tswb ntxiv nrog rau hom LED thiab ci ci. Lub hwj chim ntsuas tau siv los sib txawv 7 ntu moos teeb pom kev zoo. Hauv retrospec siv lwm tus lej nkag teb chaws yuav tau ua kom yooj yim dua me ntsis thiab kuv tuaj yeem tau ntxiv kev ua haujlwm ntau dua tab sis nws tau nyuab dua me ntsis tuav ob lub teb chaws encoders siv Arduino cuam tshuam (tsis tau nkees tiag tiag rau ntxiv ob lub teb chaws encoder tsis paub tseeb tias nws nyuaj npaum li cas). Lub laub ib ntus tau siv los qhib lub LEDs. Kuv tau txais lub khawm hlau zoo dua nrog LED hauv nws tab sis ib lub pob twg yuav ua. Koj tuaj yeem siv lub khawm ntawm tus lej thib ob rotary encoder yog tias koj ntxiv nws.

Kuv siv lub 9V fais fab mov hloov nrog 5.5mm x 2.5mm jack rau lub rooj tsavxwm. LM7805 tau siv los tso qhov no rau 5V rau cov khoom siv hluav taws xob. Kuv tau ntsuas ntawm 0.75A ntawm 9V thiab kuv yuav tsis xav mus qis dua li WS2812B LEDs tuaj yeem kos tau me ntsis ntawm qhov ci ci. Thaum txog qhov ci ntsa iab tag nrho lub cuab yeej tau teeb duab txog ~ 450mA.

Txhua yam haum rau hauv lub thawv Basswood lub cev uas koj tuaj yeem ua kom pom zoo dua. LEDs siv yog 8x WS2812B digitally LEDs. Cov no yog qhov zoo thiab kuv nyiam siv lawv hauv ntau qhov haujlwm raws li lawv tau yooj yim programmed los tsim cov txiaj ntsig txias thiab tuaj yeem ua kom pom kev ncaj ncees. Cov LEDs nthuav tawm los ntawm cov pas nrig ua npuas acrylic tau teeb tsa nyob rau sab saum toj ntawm lub thawv. Kuv siv daim npog yas 3D luam tawm los txhawb cov pas nrig, uas kuv tau kov tom qab. Koj tuaj yeem siv lwm yam uas koj nyiam ua LED diffuser. Kab lus no muaj qee cov tswv yim nthuav.

Kauj Ruam 3: Kev thaiv thiab thaiv

Kev thaiv thiab thaiv
Kev thaiv thiab thaiv
Kev thaiv thiab thaiv
Kev thaiv thiab thaiv
Kev thaiv thiab thaiv
Kev thaiv thiab thaiv

Saib cov ntaub ntawv. ZIP rau Gerbers ntawm PCB. Kuv tau ua qhov no siv DipTrace Schematic thiab PCB Tsim Software thiab kuv kuj tau suav nrog DipTrace cov ntaub ntawv yog tias koj xav tau. Yog tias koj tsis xav ua PCB koj tsuas tuaj yeem siv perf board lossis xaim ncaj qha mus rau Arduino UNO. Feem ntau nws tsuas yog txuas cov qauv, hloov pauv thiab LEDs rau Arduino.

Potentiometer muaj ib qho kawg rau GND lwm qhov rau 5V thiab nruab nrab rau koj tus lej pin analog. Cov kab hluav taws xob xa hluav taws xob xav tau txuas rau GND thiab ob txoj kab txuas cuam tshuam (2 thiab 3) ntawm Arduino. Cov Lus Qhia no yuav pab tau. Lub pob khawm nkag teb chaws thiab khawm thawb sab saum toj yog xaim rau GND thiab tus lej digital cov lej nkag (cov no yuav siv tus pin rub sab hauv). Tsis tas li tsis txhob hnov qab xaim hluav taws xob rau LED nyob rau sab saum toj khawm (kuv tsis xav tau tam sim no txwv kev tiv thaiv). Cov zaub thiab RTC module tau txuas rau 5V, GND thiab SDA, SCL tus pin ntawm Arduino. Kuv siv 1uF ntawm cov tswv yim thiab tso tawm cov hluav taws xob rau LM7805 thiab lwm 10uF ntawm txoj kab 5V los txhawb nqa LEDs.

Koj tuaj yeem xaim feem ntau ntawm cov txuas ncaj qha mus rau koj li PCB lossis perfboard tab sis kuv nyiam siv tus qauv 100mil (2.54mm) lub suab taub hau txuas nrog cov cua sov ua rau tubing ntawm kuv cov hlua txuas rau pins ntawm lub rooj tsavxwm vim qhov no ua rau muaj kev hloov pauv lossis kho dua.

Tom ntej no yog teeb tsa rau hauv lub thawv lub cev thiab txiav tawm thaj chaw tsim nyog rau lub lauj kaub, lub cav hloov pauv, tso saib, lub zog txuas thiab khawm sab saum toj. Kuv siv M3 ntsia hlau standoffs thiab txiv ntseej rau mount lub rooj tsavxwm. Yog tias koj ntsuas koj lub qhov kom raug koj yuav tsum muaj peev xwm khaws cov khoom sib txuas thiab cov khoom ruaj ntseg ntawm lawv tus kheej, txwv tsis pub kub lo rau nws, menyuam.

Ib yam uas yuav tau txiav txim siab thaum txiav/drilling hauv lub thawv ntoo yog tias koj yuav xav tawm mus sab nraud hauv thiab siv cov khoom siv ntse thiab xws li ntoo yooj yim zom. Qhov no yog ib feem ntawm qhov laj thawj rau lub hnab yas qhwv rau cov pas nrig acrylic zoo li txhawm rau lub qhov loj rau lawv ua rau ntoo cuam me ntsis.

Kauj Ruam 4: LEDs thiab Xim

LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining
LEDs thiab Staining

Hlau 5V, GND thiab cov ntaub ntawv kab rau kab txaij ntawm 8x WS2812B LEDs. Kuv kuj tseem nyiam epoxy xaim txuas mus rau kab txaij raws li lawv zoo li rub tawm cov ntaub qhwv hauv qab quab yuam thiab nws qhov mob loj los kho. Kuv tsuas yog kaw lawv rau hauv qab lub thawv.

Cov pas nrig acrylic tau txiav, ob daim rau txhua qhov hauv qab no: 2.5 "3.25" 4 "4.75". Kuv tsis muaj lub cuab yeej zoo los ua qhov no thiab tsuas yog tau qhab nia qhov twg kuv xav txiav nrog Dremel thiab txiav nws tawm. Tom qab ntawd kuv siv cov ntawv xuab zeb thiab Dremel polishing taub los ntxuav qhov kawg. Rau kev teeb tsa cov pas nrig acrylic nws yog qhov yooj yim tshaj plaws txhawm rau txhawm rau txhawm rau yam tsis ua kom ntoo puas. Kuv ua tsis tau qhov no yog li hloov 3D luam tawm daim npog yooj yim los tuav lub LEDs hauv. Nws tau nkhaus raws kom haum yaug tawm tsam sab saum toj ntawm lub thawv ntoo (ib txoj hauv kev yooj yim los ua qhov no yog taug qab qhov nkhaus ntawm lub npov ntawm daim ntawv, tom qab ntawd ntsuas qhov nruab nrab ntawm lub voj voog tsim cov kab nkhaus kom rov ua dua qhov nkhaus hauv CAD). Zuag qhia tag nrho, ib feem ua haujlwm tau zoo thiab ruaj ntseg tuav cov pas nrig tawm tsam cov LEDs uas kuv tsis xav tau kua nplaum. Kuv kuj xav tias daim npog ntxiv qhov zoo nkauj zoo nkauj rau qhov saib ntawm lub moos tag nrho.

Txhawm rau kom lub thawv kaw Kuv super glued hlau nplaum me me rau sab hauv sab saum toj thiab hauv qab ntawm lub thawv ntawv.

Tom qab ntawd txhua yam uas tseem tshuav ntawm sab kho vajtse yog kom xeb nws, ua kom lub ntsej muag npog thaj chaw uas koj tsis xav tau stain rau (lossis zoo dua tseem tau ua kom puas tag nrho ua ntej koj tso cov khoom siv hluav taws xob hauv …) thiab ntxiv qee qhov me me lossis roj hmab taw ncoo khoom.

Pom zoo: