Cov txheej txheem:

Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LED: 4 Cov Kauj Ruam
Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LED: 4 Cov Kauj Ruam

Video: Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LED: 4 Cov Kauj Ruam

Video: Maus Tail Teeb Nrog Cov Teeb Pom Kev Zoo Siv Lub Teeb LED: 4 Cov Kauj Ruam
Video: # 3 YouTube Video Marketing Tools и приложения для продвижения местно... 2024, Kaum ib hlis
Anonim
Image
Image
Maus taus Tail Teeb Nrog Ua Ke Blinkers Siv Programmable LEDs
Maus taus Tail Teeb Nrog Ua Ke Blinkers Siv Programmable LEDs
Maus taus Tail Teeb Nrog Ua Ke Blinkers Siv Programmable LEDs
Maus taus Tail Teeb Nrog Ua Ke Blinkers Siv Programmable LEDs

Nyob zoo!

Qhov no yog qee qhov yooj yim DIY ntawm yuav ua li cas thiaj tsim tau Txoj Cai RGB Tail Teeb (nrog rau kev ntsais muag/ntsuas) rau koj lub maus taus lossis tej zaum ib yam dab tsi siv WS2812B (tus kheej qhov chaw nyob coj tuaj) thiab Arduinos. Muaj 4 hom qauv teeb pom kev zoo uas tuaj yeem caij tsheb kauj vab los ntawm kev siv lub laub khawm.

Lub tswv yim los ua lub teeb nrig tom qab tau muaj txij li thawj hnub uas kuv tau txais kuv lub maus taus tab sis lub sijhawm ntawd kuv tsis paub tseeb txog txoj hauv kev los ua ib qho thiab tsis muaj sijhawm tiag tiag vim kuv tsis khoom nrog kuv kawm ntawv qib siab. Kuv thawj txoj kev npaj yuav yuav RGB leds thiab hloov lawv nrog cov khoom lag luam hauv lub teeb lub teeb ntawm kuv lub maus taus thiab ua qee qhov rov txuas ntxiv rau kev ua haujlwm ntsais muag ua ke. Qhov kev ua tiav no yuav xav tau ob peb lub transistors thiab cov tswj hluav taws xob rau txhua tus RED-GREEN-BLUE tswj cov xov hlau ntawm RGB leds xaus nrog cov teeb meem nyuaj heev.

Txawm li cas los xij kuv tau mob siab rau lub tswv yim no, yog li kuv txiav txim siab yuav cov RGB leds thiab lwm yam khoom siv uas xav tau, tab sis txhua qhov kuv cov phiaj xwm tau hloov pauv thaum tus txiv leej tub ntawm lub khw hluav taws xob tau qhia kuv txog hom leds uas paub tias yog tus kheej qhov chaw nyob lossis programmable leds (uas yog qhov tshiab rau kuv nyob rau lub sijhawm ntawd) uas zoo ib yam li RGB leds tab sis txhua tus coj tuaj yeem tswj tus kheej kom pom kev nyob hauv ib qho zuj zus lossis xim siv Arduino cov tswj hwm thiab tsuas yog ib txoj hlua tswj rau tag nrho cov kab. Los ntawm qhov ntawd nws coj kuv yuav luag ib xyoos los ua kom tiav txoj haujlwm no pib los ntawm kev kawm paub yuav ua li cas cov leds no ua haujlwm … yuav ua haujlwm li cas rau lawv … mus los ntawm kev tsim qauv sib txawv ntawm Circuit thiab nws cov qauv … ntau thiab ntau qhov kev daws teeb meem (qhov no tsuas yog qhov uas yog tshwm sim rau ob lub hlis dhau los ntawm kuv txoj haujlwm vim tias muaj ntau qhov ua yuam kev thiab cov khoom tsis ua tiav tshwm sim txhua hnub raws li ib feem ntawm kuv qhov kev tsim qauv tsis zoo. thiab yog qhov kev nyuaj siab ua tiav rau kuv tias nws yuav luag ua rau kuv tsis muaj peev xwm mloog zoo rau lwm yam). Thaum kawg ntawm qhov haujlwm no kuv tau dhau los ntawm ib qho kev puas tsuaj Arduino, ob peb tshuab LM7805 IC thiab cov tiv thaiv, ntau thiab ntau ntawm cov laug cam thiab coj txhua qhov uas yuav ntxiv txog yuav luag ib nrab ntawm cov nyiaj kuv tau siv rau ntawm qhov haujlwm no.

Txoj haujlwm no yog qee yam uas kuv tuaj yeem ua lossis koj tuaj yeem ua tiav hauv 20 hnub yog tias koj muaj tag nrho cov khoom xav tau ntawm koj qhov kev pov tseg. Dab tsi coj kuv mus ntev yog vim kuv kawm ntawv qib siab, tos lub sijhawm ntawm cov khoom lag luam uas tau xaj lub lis piam lossis hli sib nrug raws li cov nyiaj yog qhov teeb meem rau kuv thiab thaum kawg xav rau kuv tus kheej seb txhua yam ntawm no puas yog lub tswv yim ruam thiab yog dab tsi tiag tiag nkim kuv lub sijhawm thiab nyiaj txiag los ua qhov no. Xijpeem kuv zoo siab ua qhov haujlwm no thiab nws ua rau kuv koom nrog yuav luag ib xyoos thiab kuv paub tseeb tias koj ib yam nkaus. Yog li kuv zoo siab tos txais koj rau DIY!

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Cov khoom xav tau tuaj yeem sib txawv raws li koj yuav npaj yuav ua txoj haujlwm no li cas. Piv txwv li kuv tau siv ob Arduinos kom kuv tuaj yeem muaj ntau tus qauv thiab hloov pauv los ntawm cov qauv no. Txawm li cas los xij yog tias koj tsuas xav tau kev sib txuas ua ke ntsais muag/ntsuas nrog nres lub zog ua haujlwm koj tuaj yeem ua qhov no nrog tsuas yog ib qho Arduino. Ib yam li cov cua sov uas siv hauv kuv qhov kev tsim yog overkill thiab tsis xav tau txhua rau kuv lub hom phiaj. Yog li koj tuaj yeem tshem tawm cov khoom zoo uas koj xav tias tsis tsim nyog, uas kuv tsuas yog siv vim kuv yog neeg ruam, tsis muaj kev paub thiab tau muaj kev txhawj xeeb dhau (Kuv tseem tswj hwm los rhuav tshem kuv lub Circuit ob peb zaug). Yog li hauv qab no yog cov npe ntawm cov khoom kuv tau siv los tsim txoj haujlwm no:

  • WS2812B LEDs (nyob ntawm seb koj xav tau ntau npaum li cas rau koj lub hom phiaj)
  • ARDUINO NANO x2
  • LM7805 x5 (tus tswj hluav taws xob hloov pauv 12v los ntawm roj teeb mus rau 5v)
  • 10 kΩ resistor x5
  • Hlau
  • Cov txuas (Kuv siv niam txiv-smps txuas txuas MALE (x2) & poj niam (x2))
  • Laub khawm (hloov los ntawm cov qauv) x1
  • Sawb Board x2
  • Thaum tshav kub kub x5
  • Cov Thawv Yas x1

Raws li kuv tau hais, cov ntu xav tau tiag tiag nyob ntawm seb koj npaj yuav ua li cas rau txoj haujlwm no.

Kauj Ruam 2: Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)

Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)
Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)
Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)
Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)
Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)
Arduino, WS2812B Leds thiab FastLED Library (Programming thiab Xeem)

Yog li thawj qhov uas koj yuav tsum tau ua ua ntej ua qhov Circuit tiag yog txhawm rau txheeb xyuas seb koj li kev tsim hluav taws xob yuav ua haujlwm tiag tiag thiab seb koj qhov haujlwm yuav ua haujlwm raws li nws xav tau. Txhua yam no tuaj yeem ua tiav los ntawm kev ntsuas tawm cov khoom sib xyaw ntawm daim ntawv tais thiab yog tias muaj teeb meem nrog ib qho ntawm cov khoom siv lossis kab hluav taws xob. Peb ib txwm tuaj yeem rov sim nrog cov kev xaiv sib txawv kom txog thaum peb tau txais kev ua haujlwm zoo tshaj plaws. Ib qho laj thawj yog vim li cas nws thiaj coj kuv mus ntev kom ua tiav txoj haujlwm no vim yog vim li cas kuv thiaj maj nrawm nrog txoj haujlwm no thiab tsis ntsuas qhov pib tsim hluav taws xob rau kev sib txuas ua ke ntawm cov teeb liab nkag mus. Qhov no tau xaus nrog qhov yuav tsum tau hla ntau qhov kev hloov pauv ntxiv nrog rau rov ua haujlwm ntawm lub Circuit Court.

Thawj qhov uas yuav tham txog yog hom LED uas tau siv hauv txoj haujlwm no thiab peb yuav ua haujlwm li cas rau lawv kom ua haujlwm raws li peb npaj siab yuav ua. Tus qauv ntawm cov coj uas kuv siv yog WS2812B, feem ntau hu ua LEDs tus kheej tuaj yeem hais qhia. Muaj ntau yam qauv ntawm cov LEDs no nrog cov npe sib txawv thiab kuv tsis muaj lub tswv yim sib txawv ntawm lawv txhua tus, txhua yam kuv paub yog tias cov qauv sib txawv sib txawv ntawm qhov kub thiab xim thiab qee qhov lawv muaj lub moos pin ntxiv rau cov ntaub ntawv tus pin.

Txhawm rau tswj cov LEDs no peb siv Arduino maub los (Kuv siv UNO thiab MEGA rau kev sim thiab NANOs rau kuv qhov kev sib tw zaum kawg) ua ke nrog FastLED lub tsev qiv ntawv, lub tsev qiv ntawv arduino siv los tswj hom LEDs siv hauv txoj haujlwm no. Lub tsev qiv ntawv no tuaj yeem tau txais los ntawm GITHUB REPO.

Yog li thawj qhov uas yuav tsum nco ntsoov ua ntej peb tuaj yeem tso cov program rau Arduino yog ntxiv lub tsev qiv ntawv FastLED rau Arduino IDE. Cov kauj ruam yuav ua li cas thiaj tuaj yeem pom ntawm no.

Rau qhov haujlwm no kuv tau siv ob lub Arduinos, ib qho rau xa cov cim rau LED thiab lwm yam los hloov ntawm cov qauv sib txawv lossis cov qauv teeb pom kev zoo. Yog tias koj tsuas xav tau ib hom/qauv ua qauv, ib qho arduino yog txhua yam uas koj xav tau.

Koj tuaj yeem rub tawm cov program los ntawm qhov txuas hauv qab no.

Tam sim no kuv yuav taug kev koj los ntawm cov haujlwm thiab piav qhia txhua yam xav tau hloov pauv raws li koj teeb tsa. Koj tuaj yeem pom tias muaj ob txoj haujlwm hu ua ledact thiab ledpatt2. Qhov kev pab cuam ledact yog rau arduino uas tau siv los mus los ntawm cov qauv/cov qauv thiab cov haujlwm ledpatt2 yog qhov uas tswj lub teeb. Koj tseem tuaj yeem pom tib ob txoj haujlwm sib txawv hauv daim nplaub tshev hu ua nano. Nws yog yam tab sis me me kom koj tuaj yeem siv nws nrog ARDUINO NANO uas muaj lub cim xeeb tsawg dua UNO lossis MEGA.

Ua ntej cia saib dab tsi txhua yam xav tau hloov pauv hauv ledpatt2 raws li koj lub Circuit Court. Ua ntej koj yuav tsum hloov pauv NUM_LEDS thiab DATA_PIN hauv kab 3-4 rau tus lej ntawm cov leds uas koj siv thiab tus lej tus pin ntawm arduino uas cov ntaub ntawv teeb liab ntawm koj coj tau txuas nrog. Tom qab ntawd koj yuav tsum hloov txoj cai hauv 18 raws li hom leds uas koj siv. Piv txwv li kuv tus lej zoo li thta txij li thaum kuv tau siv WS2812B leds nrog BRG (BLUE-RED-GREEN) calibration. Yog tias koj tab tom siv ib qho coj txawv txawv hloov WS2812B hauv cov cai nrog lub npe ntawm koj coj thiab hloov BRG nrog nws cov xim ntsuas. Txhawm rau nrhiav cov xim ntsuas ntawm koj coj, koj tuaj yeem ua raws kab lus pom ntawm no.

Koj tuaj yeem pom ob peb qhov pib ntawm kab 15-25 uas 15-21 tuaj yeem zam tau yog tias koj tsuas xav tau ib tus qauv nkaus xwb. Cov pins no tau hais hauv kab 15-21 tau siv los ua kom muaj cov qauv sib txawv thiab qhov no tau ua tiav siv lwm Arduino. Kab 22-25 raws li nws tau hais hauv txoj cai, yog siv rau kev siv cov cim qhia rau nres, nres tsheb thiab ntsais muag/teeb pom kev.

Hauv ledact koj tsuas xav tau kev thab plaub txog kab 4-8 yog tias koj xav kom nws ua haujlwm ib yam li nws tau ua rau txoj haujlwm no. Kab 4-7 yog tus pin uas ua rau txhua tus qauv. Txij li thaum kuv tsuas xav tau 4 hom, 4 tus pin tau siv. Kab 8 tau siv los pib ua haujlwm hom pin, tus pin uas khawm khawm txuas nrog. Hauv txoj cai koj tuaj yeem pom tias tus pin arduino 3, 4, 5, 6 tau siv rau 4 hom. Cov pins no tau txuas ncaj qha rau 3-4-5-6 tus pin ntawm arduino thauj khoom nrog rau qhov kev pab cuam ledpatt2.

Nov yog kuv txoj hauv kev los teeb lub teeb nrog cov qauv sib txawv thiab kuv xav tias nws tsis zoo ib yam. Kuv tau tshawb nrhiav ntau hauv is taws nem seb nws puas tuaj yeem ua txhua yam ntawm no siv tsuas yog ib qho Arduino tab sis kuv nrhiav tsis tau ib qho uas tau pab kuv. Yog tias koj paub yuav ua li cas lossis zoo heev nrog lub cajmeem, Kuv qhia koj mus nrog nws vim tias kuv qhov program tsis zoo thiab ua rau hnyav vim kuv qhov txuj ci tsis zoo. Thiab thov qhia koj cov txiaj ntsig nrog peb.

Kauj Ruam 3: Teeb Circuit

Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit

Qhov no yog qhov yooj yim dua yog tias koj nkag siab lub Circuit Court lossis muaj lub tswv yim zoo npaj rau kev siv hluav taws xob. Yog tias cov khoom siv hauv Circuit Court zoo li tsis meej pem rau koj, kuv yuav rhuav nws rau koj vim qhov no yog ib qho yooj yim Circuit Court. Ua ntej peb muaj tsib LM7805 ICs siv los hloov 12v rau 5v (qhov hluav taws xob no muaj kev nyab xeeb rau arduino cov tswv yim txuas), plaub ntawm qhov uas tau siv los coj cov cim ntawm nres, chaw nres tsheb & LR ntsais muag, lwm qhov yog siv los txhawb ob lub arduinos. Tom qab ntawd peb muaj ob peb ntawm 10k ohm resistors txuas nrog ua ke nrog txhua qhov ntawm cov khoom siv nkag mus thiab thaum kawg ob lub arduinos.

Kuv tau ua lub Circuit Court hais txog kev tsim hluav taws xob ua ntej siv Fritzing. Rau cov txuas, SMPS-MOTHERBOARD MALE/Poj niam txuas tau siv. Koj tuaj yeem txheeb xyuas cov duab thiab ua raws.

Lub voj voog no tsis yog qhov zoo tshaj plaws vim tias nws tsis muaj kev tiv thaiv lossis lim hluav taws xob thiab yog vim li cas kuv tsis suav nrog ib qho ntawm qhov no yog vim kuv yog noob tiav. Tsis tas li cov cua sov siv nrog ICs tau raug tshem tawm los ntawm SMPS qub thiab siv cov cua sov tso nrog lawv. Txawm li cas los xij qee qhov hluav taws xob geeks tau hais rau kuv tias kev siv cov dab dej kub yog qhov ua kom dhau rau daim ntawv thov no thiab tias ICs yuav ua haujlwm yam tsis tas yuav muaj cua sov dab dej hauv qhov Circuit no. Yog li ntawd.

Kauj Ruam 4: Kauj Ruam Kawg: Boxing and Setting Up in Motorcycle

Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle
Kauj Ruam Kawg: Boxing and Set Up in Motorcycle

Lub thawv yas tau siv los ua rooj plaub rau hauv Circuit Court thiab qhwv daim kab xev nyob ib puag ncig nws vim tias dej yog ib yam uas peb tsis xav tau hauv peb lub Circuit Court. Txoj hauj lwm tom ntej yog txhawm rau txuas txhua yam thiab ua txoj hlua ntawm lub maus taus. Koj yuav tsum tau ceev faj tiag tiag thaum ua haujlwm ntawm lub tsheb kauj vab hluav taws xob vim tias qhov luv yuav ua rau lub tshuab maus taus hluav taws xob puas tag. Yog tias koj tsis paub txog qhov thaiv koj lub maus taus, koj tuaj yeem xa mus rau koj phau ntawv qhia kev pabcuam lossis tshawb hauv internet. Txoj haujlwm tseem tshuav yog tshem koj lub teeb lub tsaj teeb thiab hloov cov LEDs sab hauv nws nrog WS2812B sawv daws. Tom qab ntawd rov ntim dua thiab rov teeb lub teeb yam tsis tas tawm hauv qhov lossis qhov chaw kom muaj dej noo nkag mus. Thaum kawg txuas txhua yam, txhawb zog thiab nqa koj lub maus taus los caij. Txawm hais tias txoj haujlwm zoo li ua haujlwm ntau dhau, kuv tuaj yeem ntseeg koj tias qhov kawg yuav ua rau koj zoo siab zoo li tus tub vwm. Ua tsaug rau koj nyeem thiab txaus siab!

Pom zoo: