Cov txheej txheem:

Spooky Fading LED Qhov Muag: 5 Kauj Ruam (nrog Duab)
Spooky Fading LED Qhov Muag: 5 Kauj Ruam (nrog Duab)

Video: Spooky Fading LED Qhov Muag: 5 Kauj Ruam (nrog Duab)

Video: Spooky Fading LED Qhov Muag: 5 Kauj Ruam (nrog Duab)
Video: Manhole Imaginary Palang pintu kereta api 😂【踏切アニメ】FUMIKIRI 踏切 Railroad crossing sign trainz !!!!! 2024, Kaum ib hlis
Anonim
Spooky Fading LED Qhov Muag
Spooky Fading LED Qhov Muag
Spooky Fading LED Qhov Muag
Spooky Fading LED Qhov Muag

Siv lub microcontroller, zoo li Arduino, kom ploj ib qho LED tsis yog qhov kev xaiv zoo tshaj plaws. Qee lub sij hawm, koj xav tau ib qho yooj yim, siv hluav taws xob tsawg uas tuaj yeem nkag ncaj qha mus rau hauv tus ncej thaum khiav los ntawm roj teeb rau lub lis piam ib zaug.

Tom qab ntsuas txog kaum tawm tus qauv, Kuv tsim qhov Circuit Court no uas ua haujlwm tau zoo heev thiab yooj yim rau kev siv, hloov kho, thiab kos sab hauv ntawm yuav luag txhua yam. Lub voj voog no yuav ua haujlwm me me li 3.5 volts ua rau nws zoo tshaj rau cov roj teeb lithium-ion, 5V USB, lub xovtooj ntawm tes, lossis lub roj teeb AA me me.

Siv tag nrho cov txheej txheem txheej txheem uas tej zaum koj twb muaj hauv koj cov khoom kos yog ib qho ntxiv ntxiv.

Cia peb pib.

Khoom siv

Cov no yog cov khoom siv txheem uas xav tau rau txoj haujlwm no

  • 555 timer IC (ib qho bipolar lossis CMOS)
  • Resistors (100k, 45k, 10k, 1k, thiab 220)
  • Capacitors (1000 lossis 1200uF, 100uF, thiab 0.1uF [xaiv tau])
  • LEDs (5mm lossis 3mm)
  • Diode (ib qho yuav ua, Kuv siv 1N4007)
  • NPN Transistor (ib qho yuav ua haujlwm, Kuv siv 2N2222)
  • Lub roj teeb pob tsawg kawg 3.5V (Kuv siv 18650 lithium-ion)
  • Cov qhob cij
  • Hlau

Txhawm rau tsim qhov kev daws teeb meem tas mus li, muab cov kab hluav taws xob tso rau hauv ib qho ntawm daim txiag ntoo siv:

  • Soldering hlau
  • Solder (qhov no yog qhov kuv nyiam tshaj)
  • Perf board (Kuv siv 4cm x 6cm)

Kauj ruam 1: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Lub Circuit Court yog tsim los ntawm ob ntu tseem ceeb - "555 timer" Circuit, thiab "LED fade" Circuit.

Ua ntej, 555 timer Circuit:

Qhov no yog tus qauv 555 timer Circuit uas siv 45k & 100k resistor faib nrog rau 100uF capacitor los tsim 3-4 lub hlis thib ob nrog rau 50% kev ua haujlwm. 50% lub luag haujlwm voj voog yog qhov tseem ceeb los tsim lub sijhawm ploj mus zoo thiab ploj mus.

Txawm li cas los xij, koj tuaj yeem kho qhov no kom haum txhua yam koj xav tau. Piv txwv li, koj xav tau ntsais muag qeeb heev uas yuav siv sijhawm li ib feeb los ua kom tiav.

Qhov thib ob, qhov hluav taws xob ploj mus thiab ploj zuj zus:

Siv NPN transistor (2N2222 ua haujlwm tau zoo) tso cai rau peb kom khiav ntau LEDs raws li peb lub zog tuaj yeem tswj hwm. Lub 555 timer muaj qhov txwv tam sim no tso tawm rau tus pin 3 thiab nws yog lub tswv yim zoo los tsav koj cov LEDs los ntawm lub transistor.

Hauv ib feem ntawm Circuit no, peb tab tom siv 10k resistor kom maj mam them nyiaj thiab tso lub ntim ntim loj - txawm tias 1000uF lossis 1200uF yuav ua haujlwm. Thaum 555 tus pin tso zis siab, lub capacitor maj mam tsub thiab maj mam tig ntawm lub transistor uas yuav tig rau LEDs. Thaum 555 tus pin tso tawm mus qis thiab poob tam sim no los ntawm 555 lub sijhawm, lub capacitor yuav pib maj mam tso tawm ua rau cov LEDs maj mam ploj mus.

Thaum nws yog cov qauv tsim hluav taws xob yooj yim, nws yooj yim heev thiab ua haujlwm tau zoo.

Thib peb, tus kws kho duab kom tig lub Circuit Court thaum hmo ntuj (xaiv tau)

Qhov no yog qhov kev xaiv ua tiav tab sis yog tias koj xav kom koj lub Circuit Court qhib thaum hmo ntuj thiab tawm thaum nruab hnub kom txuag hluav taws xob, ntxiv qhov no rau koj qhov kev tsim kawg.

Siv POT los kho qhov pib ntawm lub teeb rau qhov qhib/tua lub teeb xav tau los qhib lub Circuit Court.

Plaub, lub zog (xaiv tau)

Kuv qhov kawg yuav suav nrog daim ntawv luam tawm Circuit Board (PCB). Thiab, nrog PCB Kuv yuav muaj ntau txoj hauv kev xaiv los ua kom muaj zog hauv Circuit nrog rau cov ntsia hlau hais txog lub roj teeb thiab lub mini lossis mico-USB nkaus. Nws ib txwm yog lub tswv yim zoo los xav txog txhua txoj hauv kev koj tuaj yeem siv qhov kawg ntawm Circuit thaum tsim PCB.

Kev tsim lub rooj tsav xwm PCB zaum kawg tuaj yeem muaj kev lom zem heev thiab nws ua rau tsim kaum ob ntawm cov kab hluav taws xob no yooj yim.

Kauj ruam 2: Daim Breadboard Version

Lub Breadboard Version
Lub Breadboard Version

Ib txwm tsim cov qhob noom xim kasfes ua ntej koj cog lus rau soldering qhov kawg version ntawm perf board. Hauv theem no, koj tuaj yeem yooj yim kho 555 lub sijhawm sib txawv ntawm qhov sib cais, ob lub sijhawm ntsuas hluav taws xob, thiab tseem txheeb xyuas koj qhov hluav taws xob kom ntseeg tau tias lub sijhawm tsim nyog rau koj txoj haujlwm.

Piv txwv li, yog tias koj xav khiav lub voj voog no los ntawm 9V lossis 12V lub zog xa khoom, koj yuav pom tias cov khoom siv hluav taws xob them sai dua thiab LEDs hloov mus nrawm heev. Kho lub Circuit Court los ntawm kev nce tus nqi resistor kom them nyiaj.

Ib qho kev xaiv kom nrawm koj qib ntsuas yuav yog siv lub zog ntsuas ntawm tus pin 8, 7 & 6 ntawm 555 lub sijhawm. Qhov no yuav cia koj hu-hauv qhov koj xav tau lub sijhawm tawm sai. Siv 200k potentiometer yog tias koj muaj, txwv tsis pub, 100k lossis 500k yuav ua haujlwm.

Thaum koj pom lub sijhawm zoo tshaj plaws, siv koj lub ntsuas ntsuas los ntsuas qhov tsis kam ntawm tus pin 8 & 7 thiab 7 & 6. Nrhiav tus tiv thaiv ze tshaj plaws rau ob qho kev ntsuas thiab ntsuas lawv hauv lub khob cij ua ntej txav mus.

Hauv kuv qhov xwm txheej, Kuv tau ua ntau qhov kev hloov kho ua ntej sib hais ntawm 47k & 100k qhov faib hluav taws xob hauv kuv qhov kev tsim kawg.

NCO TSEG: yog tias koj tig lub hwj chim ntsuas hluav taws xob txhua txoj hauv kev ob qho tib si, koj yuav ua rau xoom tsis kam (luv-Circuit) ntawm tus pin 7 lossis 6. Nco ntsoov tias koj nco ntsoov qhov no thaum ntsuas.

Kauj Ruam 3: Pawg Thawj Coj

Pawg Thawj Coj
Pawg Thawj Coj
Pawg Thawj Coj
Pawg Thawj Coj
Pawg Thawj Coj
Pawg Thawj Coj

Kuv ib txwm ua tiav kuv cov phiaj xwm nrog cov laug cam laug cam, ib qho ntawm ib daim ntawm perf board (raws li qhia ntawm no) lossis nrog cov ntawv luam tawm Circuit Board (PCB). Muaj cov ntawv hloov pauv yuav ua rau txoj haujlwm muaj zog dua, tsis tshua muaj kev qoj ib ce xoob, thiab zoo li muaj txuj ci ntau dua thaum qhia rau koj cov phooj ywg.

Txog qhov haujlwm no, Kuv siv daim 4cm x 6cm ntawm daim txiag ntoo los txhuam qhov kawg ntawm qhov Circuit Court. Raws li koj tuaj yeem pom, muaj ntau cov xov hlau uas ua rau nws tsis meej pem rau kev tsim. Txawm li cas los xij, ua ntej kuv cog lus kom muaj kaum ob PCBs ua, Kuv xav kom paub tseeb tias qhov kawg tau coj ua raws li tau npaj tseg, uas nws tau ua.

Ib txwm siv lub txuas lossis lub dav hlau ntsia hlau thaum txuas koj lub LEDs thiab roj teeb. Muaj peev xwm tshem tawm pawg thawj coj los ntawm yuav ua rau nws yooj yim dua los daws qhov teeb meem uas tshwm sim. Premade cov txuas thiab cov davhlau ya nyob twg yog qhov pheej yig heev thiab yuav cawm koj lub taub hau loj tom qab.

Thaum ua tiav, lub rooj zaum zaum kawg tuaj yeem txuas nrog sab hauv ntawm koj tus ncej nrog qee cov kua nplaum kub los yog daim kab xev ob tog.

NCO TSEG: Yog tias tus ncej koj tab tom ntxiv LEDs rau hauv yas, koj tuaj yeem siv lub raj kub taub hau kom yaj qhov rau cov LEDs. Ua rau lub qhov me me me me dua li cov LEDs kom nruj, txhuam kom haum. Feem ntau nws yooj yim dua los ntxig cov LEDs los ntawm sab nraud es tsis txhob sim fiddle nrog lawv los ntawm sab hauv ntawm tus ncej me, raws li qhia nws nrog kuv nas.

Kauj Ruam 4: Cov Khoom Kawg

Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg

Tam sim no koj tuaj yeem ntxiv qeeb fading LEDs rau TXHUA ntawm koj cov haujlwm.

Ntawm 4.2V, qhov kev sib tw no kos kwv yees li 6.5mA siv lub bipolar 555 timer thiab 2 LEDs nrog 200 ohm resistors. Ua kom nws zoo tshaj plaws los ua haujlwm los ntawm ib lub roj teeb lithium-ion uas tuaj yeem them rov qab, zoo li 18650.

Ntawm 6.5mA, yog tias koj ua haujlwm 24 teev nyob rau ib hnub, nws yuav tsum ua haujlwm kwv yees li 25 txog 26 hnub ua ntej lub roj teeb poob qis dua qhov txiav tawm qhov hluav taws xob. Txhawm rau kom tau txais lub sijhawm ua haujlwm ntev dua, ntxiv cov kev xaiv hauv Circuit Court uas tig tawm qhov fading thaum nruab hnub lossis siv lub zog loj dua ntawm koj lub LEDs (nce tus tiv thaiv los ntawm 200 ohms txog 470 ohms lossis txawm tias 680 ohms).

Kuv vam tias koj txaus siab rau txoj haujlwm no. Yog tias koj tau ua ib qho version, thov nyem qhov "Kuv Ua Nws" khawm thiab tso koj cov duab thiab yeeb yaj kiab ntawm koj lub qhov muag ploj.

Kauj Ruam 5: Hais kom PCBs Tam Sim No

Txiav txim PCBs Tam sim no
Txiav txim PCBs Tam sim no
Txiav txim PCBs Tam sim no
Txiav txim PCBs Tam sim no

Hloov kho: Tom qab ob peb qeeb thiab kho dua, cov PCBs tam sim no muaj nyob ntawm Tindie rau tsuas yog qee qhov nyiaj. Yog li xaj ntau npaum li koj xav tau.

www.tindie.com/products/bluemonkeydev/spooky-fading-eyes-board/

Pom zoo: