Cov txheej txheem:

Tej Yam Tsis Txaus Ntseeg LED T-Shirt: 8 Kauj Ruam (nrog Duab)
Tej Yam Tsis Txaus Ntseeg LED T-Shirt: 8 Kauj Ruam (nrog Duab)

Video: Tej Yam Tsis Txaus Ntseeg LED T-Shirt: 8 Kauj Ruam (nrog Duab)

Video: Tej Yam Tsis Txaus Ntseeg LED T-Shirt: 8 Kauj Ruam (nrog Duab)
Video: Me koj txiv ntshe yog txoj hmoo 9/17/2017 2024, Kaum ib hlis
Anonim
Image
Image
Soldering Cov Kab Ntawv
Soldering Cov Kab Ntawv

Cov ntaub ntawv koj yuav xav tau:

  • 1x Plain Dawb T-Shirt
  • Matte Dub Npuag Xim (Amazon)
  • 26x Chaw Nyob RGB LEDs (Polulu)
  • Solder, thiab Hluav Taws Xob Hlau
  • Thaum Tshav Kub Kub Ntsws (Maplin)
  • 1 x Arduino Uno
  • 1x USB Roj Teeb Pob
  • 1 x USB-A Cable
  • 1x Koob & Xov Dawb

Cov cuab yeej koj yuav xav tau:

ib qho Soldering Iron

Kauj Ruam 1: Txhim Kho Cov Kab Kab Lus

Soldering Cov Kab Ntawv
Soldering Cov Kab Ntawv

Thawj kauj ruam yog tsim kom muaj cov saw LED teeb. Yog tias koj siv cov LEDs sib txawv rau Pololu cov uas siv hauv txoj haujlwm no, koj yuav tsum hloov kho me ntsis, tab sis lub hauv paus ntsiab lus zoo ib yam.

Soldering

Peb yuav pib los ntawm kev siv cov kab ntawv cov ntaub ntawv ua ke. Rau txhua 26 LEDs, DOUT tus pin xav tau txuas rau DIN tus pin. LED kawg nyob rau hauv cov saw yuav tsis txuas nrog, thiab thawj LED yuav xav tau cov xaim ntev uas yuav kawg txuas rau Arduino.

Thaum Tshav Kub Kub Shrink Tubing

Txij li cov pins LED nyob ze ua ke, peb yuav tsum tau siv cov cua sov ua kom tubing kom ntseeg tau tias lawv tsis kov thaum lawv txav mus los ntawm T-Shirt. Peb yuav tsum tau ntxiv cov no rau cov xov hlau tam sim no, tab sis peb yuav tsis thim lawv kom txog thaum tag nrho cov xov hlau tau xau lawm.

Yam Yuav Tsum Nco

  • Stranger Things wall muaj 8-9-9 teeb tsa, yog li nco ntsoov ua cov xov hlau ntev dua qhov tsim nyog
  • Nco ntsoov ntxiv ob qhov ntawm cov cua sov ntsws tubing rau txhua lub xov tooj digital, thiab sim kom tsis txhob muab cov hlau txuas ze rau nws, yog li nws tsis thim qhov tsis xav tau.
  • Ua tib zoo saib xyuas kom raug txhawm rau txheeb xyuas DIN thiab DOUT pins. DOUT tus pin yog qhov loj dua, thiab kab nrog lub tiaj tiaj ntawm sab ntawm LED

Kauj Ruam 2: Txhim Kho Cov Hwj Huam Kab

Soldering Lub Hwj Huam Kab
Soldering Lub Hwj Huam Kab

Tom ntej no peb yuav tsum tau txhuam cov av thiab cov kab hluav taws xob. Qhov no ua raws tib txoj hauv kev raws li cov kab ntawv cov ntaub ntawv, suav nrog qhov xav tau rau cov cua kub ntsws tubing ntawm txhua qhov txuas.

Txhua GND thiab 5V ceg ntawm LED yuav xav tau ob lub xov hlau txuas rau nws, ib qho rau LED ua ntej thiab ib qho rau LED tom qab (yog li LED kawg hauv cov saw yuav tsuas muaj ib txoj hlua txuas rau txhua ceg).

Kauj Ruam 3: Cov Cua Kub Shrink Tubing

Tam sim no tias tag nrho cov kab hluav taws xob tau muab muag, peb tuaj yeem txo cov cua sov ntsws ntsws. Ua ntej txuas mus nws tsim nyog ntsaws 5V thiab GND teeb rau hauv Arduino kom ntseeg tau tias txhua yam txuas nrog raug. Yog tias tag nrho cov LEDs teeb, koj nyob zoo, yog tias tsis ua ob zaug xyuas qhov kev teeb tsa ntawm LEDs kom ntseeg tau tias koj tsis tau muag ib qho tsis raug ib puag ncig, lossis tau txais 5V thiab GND tus pin tsis meej pem.

Yog tias txhua yam tshuaj xyuas, koj yuav tsum muaj peev xwm nqaim lub tub nrog rab phom cua sov, lossis lub teeb yooj yim.

Yam Yuav Tsum Nco

  • Khiav cov cua sov kom nrawm dua cov cua sov ntsws, rov qab thiab tawm mus kom ntseeg tau tias tsis muaj ib qho chaw kub dhau
  • Ceev faj zoo li koj tsis tuaj yeem ua kom sov lub LED, vim qhov no tuaj yeem ua rau puas tsuaj

Kauj ruam 4: Programming Arduino

Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino
  • Xyuas kom koj muaj qhov tseeb Arduino programming app teeb tsa ntawm koj lub tshuab.
  • Nkag mus rau Sketch -> Xws li Lub Tsev Qiv Ntawv -> Tswj Cov Tsev Qiv Ntawv …
  • Nrhiav PololuLedStrip thiab nruab nws

Thaum uas tau teeb tsa koj yuav muaj qee qhov piv txwv ntsuas koj li LED Sawb. Nkag mus rau Cov Ntaub Ntawv -> Piv txwv -> PololuLedStrip thiab xaiv ib qho piv txwv ntawm random. Nyob rau sab saum toj ntawm cov cai uas tshwm, koj yuav pom kab no:

PololuLedStrip ledStrip;

Txuas 5V xaim mus rau 5V chaw nres nkoj ntawm Arduino, GND xaim mus rau GND Port, thiab cov ntaub ntawv xaim mus rau tus pin 12 (lossis hloov 12 hauv kab ntawm kab lus saum toj no. Nyem khiav, thiab koj cov hlua LED yuav tsum teeb.

Kauj ruam 5: Txoj Cai

Txoj Cai
Txoj Cai

Cov cai kuv siv yog muaj nyob ntawm GitHub.

Ntau ntawm cov cai no mus dhau qhov koj yuav xav ua, raws li kuv lub tsho T-shirt kuj suav nrog qhov hloov pauv uas tuaj yeem hloov Xeev, thiab tso saib cov duab sib txawv. Xav tias dawb rau nkim qhov haujlwm thiab ntxiv koj tus kheej cov duab.

Rau lub hom phiaj ntawm Stranger Things wall, qhov no yog txhua yam koj xav tau.

Tsuas yog kev ceeb toom yog tias lub hauv paus txoj cai hais cov kab lus "MERRY CHRISTMAS". Txhawm rau hloov qhov no rau txhua yam koj xav tau, nkag mus rau kab kab ntawv no:

char text = "M E R R Y C H R I S T M A S";

Hloov qhov ntawd rau ib kab ntawv uas koj nyiam, tab sis nco ntsoov txhua yam yog cov tsiaj ntawv loj, thiab txhua tus cim muaj qhov chaw nruab nrab ntawm nws, vim qhov no yuav muab qhov tsis sib xws ntawm cov tsiaj ntawv hauv cov tsiaj ntawv.

Tom qab ntawd koj yuav tsum mus rau qhov ua ntu zus suav nrog, thiab hloov tus lej 32, mus rau tus lej ntawm cov cim hauv koj txoj hlua (suav nrog qhov chaw).

Rov ua koj cov cai, thiab koj lub tsho T-shirt yuav tsum teeb nrog koj cov lus tshiab.

Kauj Ruam 6: Xaws

Xaws
Xaws

Tam sim no koj tuaj yeem xaws lub LED rau ntawm lub tsho. Stranger yam phab ntsa muaj qhov ntxig me ntsis, yog li kev ua kom zoo tsis yog qhov tseem ceeb ntawm qhov no. Kuv ntxiv rau qhov saib no los ntawm kev sib tw cov xov hlau ua ke, zoo li daim duab ua ntej. Yog tias koj tsis tau xaws ua ntej (zoo li kuv hauv txoj haujlwm no), saib ntawm daim vis dis aus no. Koj yuav yog qhov tseem ceeb yuav xaws ncig thiab hloov cov hlau kom txog thaum koj txaus siab, kom nws nyob hauv qhov chaw. Ua tsaug, qhov tsis zoo ntawm phab ntsa txhais tau tias cov txheej txheem xaws tsis zoo kuj tuaj yeem zam txim tau.

Kauj Ruam 7: Xim Cov Ntawv

Cov ntaub xim uas kuv tau xaiv los siv hauv txoj haujlwm no los nrog lub qhov me me zoo, ua kom yooj yim. Pib los ntawm kev muab qee daim npav tso rau sab hauv ntawm T-Shirt, vim cov xim yuav dhau los ntawm cov ntaub. Siv lub vijtsam los ntawm kev ua yeeb yam raws li phau ntawv qhia, ua tib zoo pleev xim cov tsiaj ntawv nyob ib sab ntawm tsab ntawv sib xws LED. Tus ntaus ntawv tsis nyuaj ib yam li ua piv txwv, thiab raws li tau hais ua ntej, qhov ntxeev me ntsis saib qhov tseeb tawm los zoo dua li qhov huv rau qhov haujlwm no.

Kauj Ruam 8: Tiav Touches

Tiav Touches
Tiav Touches
Tiav Touches
Tiav Touches

Tam sim no peb yuav tsum txuas Arduino rau T-Shirt. Ua qhov no ua rau nws hnav tau yooj yim dua, vim tsuas yog xav tau ib leeg USB cable los ntawm T-Shirt mus rau lub roj teeb sab nraud nyob hauv koj lub hnab ris.

Pib los ntawm kev txiav lub qhov me me nyob rau sab ntawm T-Shirt thiab pub txhua lub xov tooj txawm hais tias. Tom qab ntawd koj tuaj yeem nqa Arduino thiab xaws nws sab hauv ntawm T-shirt. Muab nws tso rau sab, kom nws tsis pom, thiab yuav tsis cuam tshuam koj zaum. Ib zaug xaws, npog nws nrog qee hom kab xev, kom cov pins nyob hauv qhov chaw, thiab Arduino tsis nias rau hauv koj cov tawv nqaij tsis xis nyob thaum koj hnav nws.

Pom zoo: