Cov txheej txheem:

TwirLED: Lub Teeb Pom Teeb: 8 Kauj Ruam (nrog Duab)
TwirLED: Lub Teeb Pom Teeb: 8 Kauj Ruam (nrog Duab)

Video: TwirLED: Lub Teeb Pom Teeb: 8 Kauj Ruam (nrog Duab)

Video: TwirLED: Lub Teeb Pom Teeb: 8 Kauj Ruam (nrog Duab)
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
Image
Image
TwirLED: Teeb Teeb Tsho
TwirLED: Teeb Teeb Tsho
TwirLED: Teeb Teeb Tsho
TwirLED: Teeb Teeb Tsho

Lub tswv yim yooj yim rau txoj haujlwm no yog daim tiab uas ua rau lub zog txav thiab teeb thaum koj tig ncig ntawm cov seev cev pem teb. Txog kev ua las voos zoo li kev nyuaj siab, viav vias, thiab salsa, lub sijhawm "qhia tawm" yog thaum tus neeg seev cev tig, yog li kuv xav tau daim tiab uas tsuas yog teeb rau lub sijhawm ntawd.

Kev ua haujlwm tau ua tiav los ntawm kev ua haujlwm yooj yim uas nyeem txoj haujlwm hauv z-axis ntawm 3-axis sensor thiab ua rau lub teeb pom kev ntsais ntsais yog tias kev nyeem ntawv siab dua tus nqi.

Yam Yuav Tsum Muaj:

  • Yooj Yim Xaws
  • Soldering
  • Programming lub micro tswj nrog Arduio
  • Ua siab ntev

Tsis txhob ntshai los ntawm ib yam ntawm no; nws yog lub sijhawm zoo los kawm thiab lossis xyaum ua haujlwm. Kev xaws tuaj yeem ua tiav ntawm txhais tes yog tias koj tsis muaj lub tshuab xaws. Kuv tsuas yog kawm txhawm rau txhawm rau ob txoj haujlwm ua ntej rau qhov no, yog li yog tias koj tsis paub yuav ua li cas ua ntej kev mob siab rau xws li qhov no, koj yeej yuav tom qab! Arduino tsis nyuaj rau kev kawm thiab koj tsis tas yuav ua ib qho ntawm txoj cai sau ntawv.

Kauj Ruam 1: Sau Cov Khoom thiab Cov Cuab Yeej

Sau Cov Khoom thiab Cov Cuab Yeej
Sau Cov Khoom thiab Cov Cuab Yeej
Sau Cov Khoom thiab Cov Cuab Yeej
Sau Cov Khoom thiab Cov Cuab Yeej

Kuv suav nrog cov txuas mus rau qee yam ntawm cov khoom lag luam thiab cov khoom kuv tau siv, tab sis txhua yam zoo ib yam nrog tib tus pin yuav tsum ua haujlwm. Tsuas yog xyuas kom txhua yam tuaj yeem ua tau 5V cov tswv yim yog li koj tsis hlawv koj lub rooj tsav khoom lossis lub ntsuas pa.

Cov cuab yeej

  • Tshuab xaws (tsis xav tau, tab sis pab tau)
  • Khoos phis tawj los teeb tsa koj lub micro tswj
  • Soldering Hlau
  • "thib peb txhais tes" los pab tuav cov khoom nyob hauv qhov chaw thaum siv qhov muag
  • Cov hlua hlau
  • Kub kua nplaum phom

Khoom siv

  • Tag nrho viav vias/skater tiab (ib qho uas tig tawm ncaj ncaj thaum tig)
  • mesh npuag lossis hlua khi rau xaim thiab ua kom nws tawm ntawm koj cov tawv nqaij
  • koob thiab xov
  • Silicone coated 30g xaim
  • 3-axis accelerometor (5V nkag tau tshaj)
  • Chaw nyob RGB LEDs
  • Pro Micro micro-controller (5V) lossis Sparkfun version. Kuv tau siv ob qho tib si
  • Lub hwj huam pob (5V tso tawm) lossis qee yam zoo li no
  • kub kua nplaum

Yog tias koj xav ua koj tus kheej daim tiab, nco ntsoov tias koj tau txais cov ntaub uas tsis muaj cov qauv coj mus thiab cov ntaub uas nthuav tawm yog tias koj tsis xav teeb lub zipper. Nov yog ib qho kev qhia yuav ua li cas: DIY Skater/Circle Skirt los ntawm DIYlover89.

Kauj Ruam 2: Ua Pocket rau Lub Hwj Huam Pob

Ua Pocket rau Lub Hwj Huam Pob
Ua Pocket rau Lub Hwj Huam Pob
Ua Pocket rau Lub Hwj Huam Pob
Ua Pocket rau Lub Hwj Huam Pob
Ua Lub Hnab Rau Cov Hwj Huam Pob
Ua Lub Hnab Rau Cov Hwj Huam Pob
Ua Lub Hnab Rau Cov Hwj Huam Pob
Ua Lub Hnab Rau Cov Hwj Huam Pob

nov yog ib txoj hauv kev los ua lub hnab ntim nrawm los tuav lub hwj chim tso nyiaj thiab micro-maub los kom lawv nyab xeeb.

  • tus pin thiab xaws zipper rau sab hauv ntawm daim tiab uas koj xav tau lub hnab tshos.
  • unzip thiab txiav ib daim hlab kuv cov ntaub ntawm cov zipper hniav
  • zigzag plooj rau sab saum toj ntawm daim ntaub kom ruaj ntseg tus sipper hauv qhov chaw
  • txiav ib daim ntaub qhov loj ntawm lub txhab nyiaj thiab pro micro
  • txiav, tus pin thiab xaws ib daim ntaub me me kom tus pro micro yuav muaj nws tus kheej "tsev" (hnab tshos hauv hnab tshos)
  • pin tag nrho lub hnab tshos sab hauv daim tiab hla lub zipper
  • xaws qhov chaw
  • nco ntsoov tawm qhov qhib hauv qab ntawm lub hnab tshos kom siv cov xov hlau hla mus

Kauj Ruam 3: Teeb Txoj Kev Npaj Teeb

Txoj Kev Npaj Hluav Taws Xob
Txoj Kev Npaj Hluav Taws Xob
Txoj Kev Npaj Hluav Taws Xob
Txoj Kev Npaj Hluav Taws Xob
Txoj Kev Npaj Hluav Taws Xob
Txoj Kev Npaj Hluav Taws Xob

Tom qab lub hnab tshos nyob hauv qhov chaw, dai daim tiab thiab ntxiv qee tus pin uas koj xav kom lub teeb pom kev los ntawm. Kuv tau xaiv kom haum kuv cov LEDs nrog cov dawb polka dots hauv kuv daim tiab vim kuv xav tias nws tsim kom muaj kev zoo nkauj zoo nkauj thaum lawv twinkel.

Muab daim tiab tso rau sab nraub qaum kom koj tuaj yeem pom qhov twg koj tso koj tus lej cim.

Muab ib qho LED tso rau ntawm txhua tus pin yog li koj tuaj yeem pom qhov zoo dua li cas lawv tau faib, thiab kho qhov teeb tsa yog tias nws zoo li tsis sib xws tiag. Kuv siv 35 LEDs hauv daim tiab no, tab sis kuv xav tias lub txhab nyiaj muaj peev xwm ua kom muaj zog ntau dua yog tias koj xav sim.

Ua ib daim duab qhia chaw ntawm koj qhov kev teeb tsa kab los ntawm kev siv txoj hlua xim lossis xaim lossis kos kab los ntawm txhua qhov LED. Yog tias koj kos qhov no nrog tus cim lossis tus xaum, nco ntsoov tias nws tsis pom los ntawm koj cov ntaub vim koj yuav tsis tuaj yeem tso qhov no los ntawm lub tshuab ntxhua khaub ncaws.

Nws yog ib qho tseem ceeb los npaj phiaj xwm kom koj tsis txhob plam koj qhov chaw thaum koj pib siv tag nrho cov teeb ua ke rau hauv ib txoj hlua ntev.

Kauj Ruam 4: Txhuam Txhua Yam Ua Ke

Solder Txhua Yam Ua Ke
Solder Txhua Yam Ua Ke
Solder Txhua Yam Ua Ke
Solder Txhua Yam Ua Ke

Kuv tsis xav tig qhov no mus rau hauv kev qhia siv qhov muag, tab sis ntawm no yog ob peb lub tswv yim thiab cov txuj ci uas yuav muaj txiaj ntsig:

Hlau

Ua raws koj daim ntawv qhia xov tooj thiab txiav cov xov hlau thaum koj mus, tsis yog ib zaug.

Thaum ntsuas thiab txiav, tawm qee qhov qis hauv cov hlau khiav ntawm LEDs.

Hauv cov chaw uas cov hlua ntawm LED ua rau tig, txiav cov hlau nyob sab nraud ntawm qhov tig me ntsis ntev dua thiab cov xov hlau sab hauv luv dua me ntsis ntawm cov xov hlau nruab nrab. Qhov no pab txo qis kev ntxhov siab ntawm cov pob qij txha txuas.

Solder

Nov yog lub sijhawm siv sijhawm ntau tshaj plaws ntawm qhov haujlwm.

Nco ntsoov tias koj tab tom ua haujlwm hauv thaj chaw uas muaj cua nkag tau zoo thiab so.

Cov ntsiab lus ntawm cov laug tau nruj heev ntawm LED cov laug cam uas kuv tau siv, yog li kuv pom nws yooj yim dua los tso cov laug ntawm ib qho ntawm cov ntsiab lus sib cuag, tom qab ntawd rov yaj nws thiab lo cov hlau rau hauv cov hlau yaj.

Kauj ruam 5: Rub tawm thiab Nruab Software

Rub tawm thiab Nruab Software
Rub tawm thiab Nruab Software
  1. Arduino IDE yog tias koj tseem tsis tau teeb tsa nws. Kuv siv qhov downloadable version. Tseem tsis tau sim lub vev xaib hloov kho tshiab.
  2. ATMega cov laug cam xav tau ob peb kauj ruam ntxiv rau ua ntej koj tuaj yeem tso cai. Spark Fun Pro Micro Hookup Phau Ntawv Qhia. Nco ntsoov ua raws txhua qib ua tib zoo, lossis koj yuav "cib" koj lub rooj tsavxwm.
  3. Txog qhov "ci ntsa iab" lub tsev qiv ntawv teeb pom kev zoo kuv tau siv, mus rau Lub Tsev Qiv Ntawv, Tswj Lub Tsev Qiv Ntawv thiab ntxiv ALA Lub Tsev Qiv Ntawv. Koj tuaj yeem siv lub teeb pom kev zoo lossis lub tsev qiv ntawv uas koj nyiam, tsuas yog hloov tus lej.

Kauj Ruam 6: Nqa Cov Cheeb Tsam thiab Upload Code

Hook Up Components thiab Upload Code
Hook Up Components thiab Upload Code
Hook Up Components thiab Upload Code
Hook Up Components thiab Upload Code

Kuv nyiam ntsuas kuv tus lej, ntsuas thiab LEDs ntawm lub rooj tsavxwm Kuv paub ua haujlwm kom ntseeg tau tias cov khoom siv tshiab tau ua haujlwm ua ntej xaws lawv rau hauv khaub ncaws. Kuv pom zoo khaws micro tswj zoo li Arduino Uno lossis Sparkfun RedBoard uas tsis tau mob siab rau txoj haujlwm yog li koj tuaj yeem sim thiab sim ntsuas. Thaum kuv tab tom ua kuv cov hlua LED, Kuv yuav nqes nws los xyuas tias kuv muaj kev sib txuas zoo txhua zaus.

Nov yog yuav ua li cas txhawm rau sib koom ua ke rau txoj haujlwm no:

Accelerometer Sib Nqus:

  • VCC ntawm kev ntsuas nrawm rau VCC ntawm Pro Micro
  • GND ntawm qhov ntsuas qhov ntsuas mus rau GND ntawm Pro Micro
  • Z-OUT ntawm qhov ntsuas qhov ntsuas mus rau A0 ntawm Pro Micro
  • Y-OUT ntawm qhov ntsuas qhov ntsuas mus rau A1 ntawm Pro Micro
  • x-OUT ntawm qhov ntsuas qhov ntsuas mus rau A2 ntawm Pro Micro

LED Strand Sib Nqus:

  • 5V ntawm thawj LED rau RAW ntawm Pro Micro
  • Din ntawm thawj LED rau tus pin 2 ntawm Pro Micro
  • gnd ntawm thawj LED rau GND ntawm Pro Micro
  • Thaum tsim cov hlua ntawm LEDs, xyuas kom tseeb tias cov xub tau taw qhia hauv tib txoj kev, nyob deb ntawm lub zog siv.

Txuas lub txhab nyiaj fais fab mus rau Pro Micro nrog USB cable

Nco ntsoov xyuas lub txhab nyiaj fais fab

Nov yog cov cai:

#suav nrog

AlaLedRgb rgbStrip; AlaSeq tig = {{ALA_OFF, 100, 100, alaPalNull}, {ALA_SPARKLE, 1000, 1000, alaPalCool}, {ALA_OFF, 100, 100, alaPalNull}, {ALA_ENDSEQ}}; tus z; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); // teeb tsa qhov chaw nres nkoj mus rau 9600 rgbStrip.initWS2812 (35, 2); // teeb tus naj npawb ntawm LEDs hauv kab rau 35 thiab xa cov ntaub ntawv mus rau tus pin 2 rgbStrip.setBrightness (0x444444); rgbStrip.setAnimation (tig); lub voj void () {z = analogRead (0); // nyeem analog input pin A0 Serial.println (z, DEC); // luam qhov nrawm hauv Z axis yog (z> = 400) {Serial.print ("spin"); rgbStrip.runAnimation (); } lwm {Serial.print ("theem ob, peb"); }}

Kauj Ruam 7: Xaws LED Strand rau hauv Skirt

Sew LED Strand Rau Hauv Skirt
Sew LED Strand Rau Hauv Skirt
Sew LED Strand Rau Hauv Skirt
Sew LED Strand Rau Hauv Skirt
Sew LED Strand Rau Hauv Skirt
Sew LED Strand Rau Hauv Skirt

Ua raws txoj hauv kev koj tau teeb tsa ua ntej, xoob xoob xoob cov hlua LED rau hauv qhov chaw kom ntseeg tau tias muaj kev nyab xeeb txhua lub teeb nyob qhov twg koj xav kom nws nthuav tawm. Kuv xav kom kuv ua ke nrog cov dawb polka-dots yog li cov xim qhia tau zoo.

Tom qab cov hlua khi tau ruaj khov, ntxiv qee cov kua nplaum kub rau txhua qhov LED hla cov ntsiab lus txhawm rau txhawm rau tiv thaiv hluav taws xob tiv tauj, thiab hauv qab ntawm ob sab ntawm LED kom ntseeg tau tias nws nyob hauv qhov chaw thaum koj tab tom txav/seev cev.

Siv cov ntaub npuag lossis kab xev, txiav cov kab ntev ntev txog 2 dav, thiab quav cov ntug hauv qab thaum muab lawv tso rau ntawm qhov chaw ntawm cov hlua LED, tom qab ntawd xaws rau qhov chaw. khaws cov khoom tiv thaiv los ntawm khawb lossis ntes ntawm ob txhais ceg lossis nylons lossis lwm tus neeg.

Pom zoo: