Cov txheej txheem:

Nplaum rab phom tuav nrog LED Flickering: 5 Kauj Ruam (nrog Duab)
Nplaum rab phom tuav nrog LED Flickering: 5 Kauj Ruam (nrog Duab)

Video: Nplaum rab phom tuav nrog LED Flickering: 5 Kauj Ruam (nrog Duab)

Video: Nplaum rab phom tuav nrog LED Flickering: 5 Kauj Ruam (nrog Duab)
Video: หนังม้ง Blaum Blaum ep1 2024, Kaum ib hlis
Anonim
Image
Image
Nplaum rab phom nrog LED Flickering
Nplaum rab phom nrog LED Flickering

Kuv cov tub ntxhais kawm ntawv tau zoo, tab sis lawv tseem yog cov tub ntxhais kawm theem nrab. Qhov ntawd txhais tau tias lawv tsis nco qab ua tej yam xws li tshem rab phom phom thaum kawg ntawm chav kawm. Qhov no yog qhov phom sij txaus ntshai thiab hluav taws xob tsis zoo yog li kuv tau tsim lub chaw phom phom nrog cov teeb uas ceeb toom peb kom tua txhua yam. Cov khoom koj yuav xav tau rau txoj haujlwm no:

- Ob daim ntawm 1/4 "plywood 24" x18"

- Lub hwj huam hluav taws xob (piv txwv - qhov loj thiab qhov zoo yog qhov tseem ceeb)

- Cov qhob cij

- Arduino Ib

- 12V RGB LED sawb (SMD5050)

3 x 10k Ohm Resistors

- 3 x Logic Level N-channel MOSFETs

- Cov kab sib txuas

- 12V Cov Khoom Siv Hluav Taws Xob (Kuv siv qaum los ntawm lub teeb qub)

- 2.1 mm DC chim chim

- 5V USB cable thiab cib los txuas Arduino rau lub hwj chim sawb

- Ntoo kua nplaum

Kauj Ruam 1: Txiav daim

Kuv siv 50W Epilog laser nrog 24 "x18" txaj txiav ob 1/4 "plywood rau hauv daim rau kuv cov qauv. Kuv txiav tsib daim ntawv tawm ntawm cov ntawv los ua ntej kuv tau npaj txiav qhov kawg version. ntoo rau ntawm lub vaj huam sib luag pem hauv ntej, Kuv tau siv ib daim plexiglass vim kuv xav kom kuv cov tub ntxhais kawm pom Arduino thiab lub khob cij.

Kauj ruam 2: Txuas thiab Program LED Sawb

Image
Image
Txuas thiab Program LED Sawb
Txuas thiab Program LED Sawb

Txhua qhov txiaj ntsig rau kev txuas mus rau Ian Buckely Cov Lus Qhia Kawg rau Kev Txuas Txuas LED Teeb Sawb rau Arduino suav nrog Fritzing duab ntawm Circuit. Nws piav qhia li cas MOSFETs tswj lub zog xav tau ntawm 5V Arduino thiab 12V LED sawb.

  • Txuas Arduino tus pin 9, 6, thiab 5 mus rau lub rooj vag ob txhais ceg ntawm peb MOSFETs, thiab txuas 10k tus tiv thaiv kab hauv kab nrog txhua tus rau hauv av tsheb nqaj hlau.
  • Txuas Lub hauv paus ceg mus rau txoj kev tsheb nqaj hlau.
  • Txuas cov Dej ntws mus rau Ntsuab, Liab, thiab Xiav txuas ntawm LED kab.
  • Txuas cov kab hluav taws xob mus rau +12v txuas ntawm LED kab txaij (nco ntsoov tias hauv daim duab Fritzing lub hwj chim hlau yog xim dub).
  • Txuas Arduino av rau hauv av tsheb nqaj hlau. Txuas koj lub hwj chim 12v rau lub zog thiab cov tsheb hauv av. Hauv daim duab ntawm no, Kuv muaj kuv lub hwj chim thiab cov hlua hauv av txuas nrog lub roj teeb 12V thiab Arduino txuas rau hauv lub computer rau kev sim.

Kuv xav tau qhov hluav taws kub cuav flickering saib rau LEDs. Muaj ntau qhov kev qhia sib txawv rau siv tib xim LEDs ua ke los tsim cov hluav taws, tab sis tsis yog ntau rau siv RGB sawb ces kuv tsim kuv tus kheej cov cai. Nws siv tus lej tsis raug siab rau liab, qis dua rau daj thiab me me ntawm cov xim xiav nrog ncua sijhawm qeeb ua ntej hloov xim. Nws zoo nkauj heev hauv kuv lub tswv yim. Kuv tau txuas cov cai thiab muab nws tso rau hauv qab no.

int ledPinRed = 6; int ledPinGreen = 9;

int ledPinBlue = 5;

void teeb tsa ()

{

pinMode (ledPinRed, OUTPUT);

pinMode (ledPinGreen, OUTPUT);

tus pinMode (ledPinBlue, OUTPUT); }

void voj () {

int Liab = random (200, 255);

int daj = random (10, 30);

int Blue = random (0, 5);

analogWrite (ledPinRed, Liab);

analogWrite (ledPinGreen, Daj);

analogWrite (ledPinBlue, Xiav);

ncua (random (100)); }

Kauj Ruam 3: Sib sau ua ke thiab nplaum

Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum
Sib sau ua ke thiab nplaum

Tom qab koj txiav txhua daim, sib sau ua ke siv cov kua nplaum ntoo. Pub dawb nrog cov kua nplaum rau ntawm txhua qhov chaw uas yuav kov. Clamp daim ua ke thiab so tawm ib qho twg uas tawm nrog cov ntaub ntub dej. Cia txhua theem qhuav me ntsis ua ntej yuav mus rau tom ntej:

Ua ntej tshaj, txuas sab laug thiab sab xis rau lub txee thiab hauv qab daim.

Tom qab ntawd muab lub nraub qaum rov rau sab, txee thiab hauv qab daim.

Sab saum toj tsis muaj ntiv tes sib txuas thiab nws ua tau txawv heev rau clamp. Kuv smeared tag nrho cov npoo nrog cov kua nplaum thiab tom qab ntawd tsoo cov ntsia hlau me me nyob rau ob qho kawg thiab hauv nruab nrab (cov xub daj).

Tuav lub nraub qaum rov qab rau ntawm lub rooj kom txuas cov kab zauv thiab tso cov tais. Qee cov kua nplaum yuav tawm sab nraub qaum rau ntawm lub rooj. Ob peb daim ntawv so tes ntub yuav ntes qhov ntawd. So tag nrho cov kua nplaum ntau dhau. Tso nws kom qhuav kom txog thaum cov khoom ntim thiab cov tais tso kom ruaj ntseg.

Kauj Ruam 4: Ntxiv Teeb

Ntxiv Teeb
Ntxiv Teeb
Ntxiv Teeb
Ntxiv Teeb
Ntxiv Teeb
Ntxiv Teeb

Haum txhua yam ua ke hauv qhov chaw cubby hauv qab ntawm qhov sawv ntsug. Pub cov hlua fais fab tawm lub qhov ntawm sab xis. Pub cov hlua hluav taws xob rau LEDs thiab Arduino tawm lub qhov nyob sab laug. Plug txhua yam rau hauv koj lub hwj huam hluav taws xob thiab tso nws ua ntej. Nco ntsoov them nyiaj rau cov plugs loj thiab kuaj uas koj tuaj yeem tso rau ntawm lub vaj huam sib luag pem hauv ntej. Kuv yuav tsum tau kaum lub hwj chim sawb me ntsis vim tias kuv lub cib rau USB qaum tau ntxaum dua lwm qhov. Thaum koj muaj txhua yam nyob qhov twg nws yuav haum, siv daim kab xev ob tog txhawm rau txhawm rau txhim kho lub zog txuas hauv qhov chaw.

Txog ntawm qhov no, Kuv tau ntsaws Arduino rau hauv 5V USB cib txhawm rau txhawm rau siv nws siv lub hwj chim sawb. Kuv kuj tseem txuas lub 2.1 hli lub tog raj txuas rau lub khob cij kom muab lub zog rau LEDs. Lub thoob yas kuv siv (txuas hauv qab cov npe khoom) tau nkag siab yuam kev rau xaim yog li kuv tau sau cov pins hauv daim duab saum toj no. Yog li thaum koj qhib lub hwj huam hluav taws xob rau phom phom, koj kuj tig rau ntawm LEDs thiab Arduino. Muaj 5-10 feeb thib ob tos tom qab koj tig lub teeb ua ntej lub teeb qhib.

Pub cov hlua LED tawm ntawm lub qhov ntawm sab laug thiab tom qab ntawd hla lub qhov me me ntawm sab sab. Tev tawm cov nplaum thaub qab thiab nias nws ruaj khov nyob ib puag ncig ntawm cov sawv ntsug…. Tom qab kwv yees li ib hlis ntawm kev siv, LED sawb los xoob los ntawm ntug, dai los ntawm ob peb qhov nplaum xwb. Kuv tau thov qee Tacky Glue rau tom qab thiab kaw nws ib puag ncig. Txij thaum ntawd los, nws tau nyob hauv qhov chaw. Tej zaum koj yuav xav siv lub tswv yim no los ntawm qhov pib.

Kauj Ruam 5: Ua tiav Kev Sib Ntsib thiab Mount

Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount
Ua tiav Kev Sib Ntsib thiab Mount

Siv cov kua nplaum ywj pheej rau sab xub ntiag uas nws yuav txuas nrog ob sab, hauv qab thiab txee. Nco ntsoov tias koj yuav tsis tuaj yeem so ntau dhau ntawm sab hauv thiab koj tsis xav kom ib qho nkag mus rau hauv koj lub tshuab hluav taws xob. Pub tag nrho koj cov hlua hla lub qhov thiab muab cov khoom ua ntej tso rau hauv qhov chaw. Siv cov kua nplaum rau cov faib uas lawv txuas rau sab xub ntiag, txee thiab nraub qaum. Clamp thiab cia qhuav ib hmo. (Kuv tsis tau ua tiav qhov no. Txij li thaum kuv xav kom tuaj yeem nkag mus rau sab hauv thiab kuv siv plexiglass rau pem hauv ntej, Kuv txiav txim siab tsis ua kua nplaum tas mus li. Xwb, kuv siv tag nrho cov kab xev ntim.) Kuv kuj tau kaw cov hlua rau Arduino thiab LEDs rau sab ntawm tus tuav kom lawv tsis txhob cuam tshuam nrog cov hlua phom phom.

Nrhiav ib lub pob zeb hauv koj phab ntsa lossis siv cov thauj tog rau nkoj kom ruaj khov rau ntawm phab ntsa. Kuv siv ob lub hau ntswj txog 2/3 ntawm txoj kev nce. Qhov hnyav tau nqa los ntawm lub rooj nws nyob ntawm, tab sis koj tsis xav kom nws hla thaum ib tus neeg rub rau ntawm txoj hlua.

Cov tub ntxhais kawm yeej nyiam siv nws. Kuv tsis tau muaj teeb meem nrog cov kua nplaum phom tawm thaum lawv tsis siv. Lub teeb ua kom pom tseeb heev thaum nws nyob ntawm. Kuv yuav ua ob lub chaw tua phom rau qee tus kws qhia ntawv uas tsis ua haujlwm ntau npaum li peb ua hauv kuv chav kawm. Yog tias yog, kuv yuav ntxiv cov ntawv no ib yam. Qhia rau kuv paub yog tias koj ua!

Pom zoo: