Cov txheej txheem:

Smartphone Tswj Bluetooth LEDs (nrog Lub Suab Nkauj Nyob Ua Ke): 7 Kauj Ruam
Smartphone Tswj Bluetooth LEDs (nrog Lub Suab Nkauj Nyob Ua Ke): 7 Kauj Ruam

Video: Smartphone Tswj Bluetooth LEDs (nrog Lub Suab Nkauj Nyob Ua Ke): 7 Kauj Ruam

Video: Smartphone Tswj Bluetooth LEDs (nrog Lub Suab Nkauj Nyob Ua Ke): 7 Kauj Ruam
Video: Часы G Shock до 100 долларов-15 лучших часов Casio G Shock до 100 дол... 2024, Kaum ib hlis
Anonim
Image
Image
Tau Txais Cov Khoom
Tau Txais Cov Khoom

Kuv ib txwm nyiam tsim cov khoom, tom qab kuv pom tias kuv lub tsev kawm qib siab tshiab muaj teeb pom kev zoo, Kuv txiav txim siab ua txuj lom me ntsis.

*** CEEB TOOM *** Yog tias koj tsim txoj haujlwm no ntawm qhov ntsuas tib yam li kuv teeb tsa, koj yuav ua haujlwm nrog qhov tsim nyog siv hluav taws xob. SAFE, siv kev nkag siab zoo, thiab yog tias koj tsis paub meej, Nug! Tsis txhob pheej yuav hlawv koj lub tsev.

Kauj Ruam 1: Nrhiav Cov Khoom

Tau Txais Cov Khoom
Tau Txais Cov Khoom
Tau Txais Cov Ntaub Ntawv
Tau Txais Cov Ntaub Ntawv

Rau qhov haujlwm no koj yuav xav tau:

  1. Chaw nyob WS2812B LED sawb (s). 5V yog nyob deb ntawm hom uas pom ntau tshaj thiab nyiam nyob hauv txoj haujlwm no. Txoj haujlwm no yog tsim los rau RGB LEDs, tsis yog RGBW. Kuv Nthuav tawm Adafruit's NeoPixels. (~ $ 25 rau 60 LEDs)
  2. Ib CurieNano (tseem muag), Arduino 101 (txiav tawm tab sis qhov kuv tab tom siv), lossis lwm lub micro-maub los uas tuaj yeem nkag mus rau BLE. (~ $ 35)
  3. Lub xov tooj smartphone (ob qho tib si Apple thiab Android ua haujlwm)
  4. Fais fab mov. LEDs feem ntau hais tau ntawm lub khw yog 5V. Amperage xav tau yog nyob ntawm qhov loj ntawm koj teeb tsa*. (~ $ 10-50 nyob ntawm koj teeb)
  5. Txuas ** (koj kuj tseem xav tau 3-pin lossis 2-pin JST txuas thiab Arduino pins) (~ $ 20-30)
  6. 2.1x5.5mm chim txuas txuas, koj tuaj yeem pom lawv ntawm no. (~ $ 5)
  7. Ib qho me me Phillips ntsia hlau
  8. Soldering Iron & Solder (~ $ 20)
  9. Muab ob sab sib dhos daim kab xev (1/4 nti dav). Kuv siv qhov no. (~ $ 10)
  1. (Pom zoo) Lub microphone rau lub suab paj nruag sync. (Txhawm kom muaj cov nkauj ua haujlwm sib txuas koj yuav tsum muaj ib qho) Koj tuaj yeem pom ib qho los ntawm Adafruit ntawm no. (~ $ 7)
  2. (Tsis teb los tau) Ib rooj plaub Arduino, xws li qhov no. (~ $ 10)
  3. (Tsis teb los tau) lub capacitor tsawg kawg 10 μF (Qhov no tiv thaiv qhov ntsuas hluav taws xob loj thaum xub thawj ntawm koj lub zog hluav taws xob. Nco ntsoov tias qee qhov loj dua, kiv cua, cov khoom siv hluav taws xob twb tau tsim los tiv thaiv.) (~ $ 5)

Kuv pom zoo kom koj ua raws cov ntaub ntawv txuas ntawm cov npe no txij li kuv tau siv lawv feem ntau ntawm txhua hnub, txhua hnub, rau lub hlis yam tsis ua tiav- tshwj xeeb yog cov LEDs. Txwv tsis pub, koj yuav khiav mus rau qhov tsis tau xav txog lossis pom tias koj tsis muaj qee yam khoom tshwj xeeb lossis cov cuab yeej tshwj xeeb.

* Rau cov kab ntawv me me heev (~ 30 Pixels lossis tsawg dua) lossis Arduino muaj lub zog txaus los ua cov no thiab koj yuav tsis xav tau lub zog siv. (Qhov no Tsis Yog RECOMMENDED RAU QHOV NO. Muaj ntau ntau cov lus qhia qhia txog kev teeb tsa me me, hais txog teeb tsa LED, cov ntawd yuav hais tshwj xeeb rau koj qhov xwm txheej.)

Feem ntau ntawm koj, txawm li cas los xij, tej zaum yuav xav tau lub zog siv. Kev suav yog (Amperage) = 0.075*(Tus lej Pixels). Qhov no yog nrog kev nyab xeeb ua hauv (ntawm qhov kos tag nrho koj lub zog siv yuav ua haujlwm ntawm ~ 75% ntawm lub peev xwm. Qhov no yuav ua rau koj lub zog hluav taws xob khiav txias thiab yog li xwm yeem nyob rau lub sijhawm ntev). Mus qis dua hauv qab no ua rau muaj kev pheej hmoo ntawm kev ua kom sov thiab txawm tias hluav taws. Qee qhov khoom siv hluav taws xob tseem yuav xav kom koj txuas koj tus kheej AC phab ntsa ntsaws. Rau cov lus qhia uas siv ntau qhov puv coj rov los, Kuv pom zoo kom koj txhaj tshuaj. Qhov no yuav tham txog hauv ntu tom ntej.

** Qhov loj me koj cov xaim kom raug! SAFETY Thawj zaug siv ob peb daus las ntxiv tuaj yeem txuag koj lub tsev.

(Yog tias koj xav paub Kuv tab tom siv ob lub 5V cov khoom siv hluav taws xob txhua nrog ob qhov 30A tso tawm, thiab 12 lub ntsuas cua hais lus xaim. Qhov no tso cai rau kuv txhaj tshuaj kom txaus ntawm plaub lub ntsiab lus raws kuv kab LED. Kuv siv ~ 21 meters nrog ntom ntawm 60 LEDs /meter.)

Kauj ruam 2: Lub zog

Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab
Fais fab

"chaw thau khoom =" tub nkeeg"

Image
Image
Hom thiab Kho
Hom thiab Kho
Hom thiab Kho
Hom thiab Kho
Hom thiab Kho
Hom thiab Kho

Muaj ob hom uas nug tus lej pixel ntawm cov ntsiab lus pib: hom 2 (Xim So) thiab hom 12 (Music Sync). Yog tias koj muaj ntau lub LEDs, nws yog qhov mob hnyav suav rau qhov pixel tseeb uas koj xav tau thaum pib yog li kuv tau tsim cov cuab yeej. Hauv qhov khoom kawg ntawm cov ntawv qhia zaub mov ntawm koj li BLYNK app, koj yuav pom hom uas hu ua "Pixel Finder". Txhawm rau siv qhov no koj yuav zaum yuav tau hloov kho koj cov chaw teeb tsa.

  • Ua ntej ua kom ntseeg tau tias koj nyob hauv hom kev hloov kho
  • Xaiv tus swb
  • Hloov koj qhov tseem ceeb ci ntsa iab kom tus lej pixel koj tab tom nrhiav yog nyob hauv qhov ci ci nkag mus.

Thaum koj siv hom Pixel Finder no, tus lej pixel ntawm koj lub teeb pom kev zoo ua rau pom ntsuab. Txoj hauv kev no koj tuaj yeem nrawm mus rau qhov chaw xav tau, thiab nyeem tawm tus lej pixel los ntawm koj lub xov tooj

Koj tuaj yeem pom qhov no hauv Duab [5 thiab 6] thiab [7 thiab 8]. (Koj tuaj yeem pom tias hauv lub vijtsam no kuv tab tom siv Xim Sliders tsis siv zeRGBra). Tseem nco ntsoov tias thawj pixel qhov ntsuas yog 0 tsis yog 1.

Qhov no yuav tsum pab koj teeb tsa koj cov qauv uas koj xav tau.

Ib qho ntxiv uas kuv yuav tsum hais yog "Qhov ci" hauv Comet (hom 10) thiab Music Sync (hom 12) hom kho qhov ntev ntawm "tails". Nov yog yuav ua li cas txoj cai yuav tsum ua haujlwm li "Brightness" tsis ua rau muaj kev nkag siab hauv cov qauv no.

Kauj ruam 7: Hooray! Koj Ua Tiav lawm! (Nyeem rau ntxiv rau Hais Txog Txoj Cai)

Txhawm rau siv koj cov LEDs:

  • Nyob hauv thaj tsam ntawm koj Arduino
  • Coj mus rhaub BLE icon
  • Nrhiav koj lub cuab yeej (teb rau deviceName ) thiab xaiv nws

Tam sim no koj tuaj yeem siv koj lub chaw taws teeb.

Mus zoo siab rau txhua yam koj ua hauj lwm nyuaj!

***************************** Advanced (Txog Txoj Cai) *************** ******************

Kuv sim ua kom cov cai tau hais tawm zoo, nws yog tej zaum tsis ua kom zoo los ntawm ib txoj hauv kev, tab sis kuv paub nws khiav kuv li 1200+ teeb nrawm txaus. Cov lus ntawm cov ntsiab lus muaj cov cai cais los ntawm kab lej.

Ib feem ntawm cov cai uas muaj cov qauv thiab cov neeg siv sib cuam tshuam tau sib txawv, cov txheej txheem koj tuaj yeem tso bluetooth thiab siv lub zog hloov pauv hloov pauv, lossis lub sijhawm yooj yim uas mus los ntawm txhua hom. Koj tsuas yog yuav tsum tau sau rau hauv cmdArr array kom muab cov lus qhia.

  • Index 0 khw muag khoom cov ntaub ntawv hais txog kab txaij qhib/tawm,
  • Index 1 khaws cov lej hom los ntawm cov ntawv qhia zaub mov
  • Cov Ntsiab Lus 2, 3, thiab 4 khaws R, G, thiab B qhov tseem ceeb los ntawm cov xim xaiv.
  • Index 5 khaws cov feem pua ci ntsa iab
  • Lwm cov cim qhia tam sim no tsis siv

Koj pom ntau hauv txoj cai muaj ntau kab uas nyeem "SetPixelColorAdj (…" txawm hais tias txoj haujlwm tsuas yog ua "setPixelColor (…". Piv txwv li, yog tias koj siv ib txoj hlua los ua ob lub voj, nws yuav yog qhov mob los daws cov qauv nrog so kom txog thaum lub voj sib txuas rov qab rau hauv nws tus kheej. thiab tseem txuas lub voj tseem ceeb rov qab ua ke kom nyob hauv txoj cai, nws yog qhov xav paub ua haujlwm nrog.

Kuv tseem yuav muab cov lus piav qhia txog yuav ua li cas qee qhov kev ua haujlwm nyuaj dua. Qee tus ntawm lawv (Zaj sawv, Xim Xim, thiab Fade [1, 2, 3]) twb tau nyob hauv NeoPixel Library ua piv txwv piv txwv.

  • Lava, Canopy, Dej hiav txwv [4, 5, 6] - Cov qauv no siv cov lus qhia -ntsiab lus raws li tau hais ua ntej, txhua qhov taw qhia taw qhia tau txais xim tsis xwm yeem hauv thaj chaw uas tau muab rau nws. Lava feem ntau yog xim liab, Canopy feem ntau yog ntsuab, thiab Dej hiav txwv feem ntau yog xiav. Tus Fade qauv [3] twb tau muab qhov ua tau zoo rau qhov ua rau poob qis Qhov no tau rov ua dua kom ploj mus los ntawm cov xim ntawm ib qho taw qhia taw qhia mus rau lwm qhov siv cov pixels nyob nruab nrab, tsim kom muaj kev hloov pauv yooj yim. Peb qhov fade arrays khaws cov kauj ruam ntawm lub sijhawm ploj ntawm cov lus qhia (pib, hloov pauv, thiab xaus xeev). Thaum phau ntawv qhia cov ntsiab lus ploj mus nyob rau lub sijhawm, cov pixels nyob ze lawv kuj hloov kho lawv cov xim ib yam. Thaum lub sijhawm ua tiav tiav, qhov kev cia siab tsuas yog mus txog qhov kawg dhau los ua qhov pib tshiab. Txoj kev no tus qauv nyob twj ywm hauv lub sijhawm.
  • Xim Wave [7] - Qhov no zoo ib yam li cov qauv yav dhau los, tab sis cov xim rau cov lus qhia -cov ntsiab lus raug xaiv sib txawv. Muaj qhov sib txawv muab rau lub hauv paus xim uas ploj ib puag ncig lub log xim nyob rau lub sijhawm.
  • Fireflies [8] - 2D array khw muag khoom qhov chaw thiab kev qhia rau 90 qhov kev xaiv foob pob hluav taws. Nws txiav txim siab, nyob rau txhua lub sijhawm-kauj ruam, seb tus nplaim taws yuav txav mus rau sab laug, sab xis, lossis tsis yog txhua lub sijhawm. Lawv qhov ci ci tag nrho ua raws qhov ploj mus, ploj mus.
  • Confetti [9]- Koj tsis tuaj yeem siv qhov chaw los ntawm cov nplaim taws ntawm no txawm hais tias lawv zoo li zoo sib xws- qhov no yog vim tias koj nyiam qhov ci ntsa iab zoo ib yam kom pom qhov hloov xim. Lub tswv yim txawm li cas los tsis txawv heev. Kuv ua tiav txawm tias teeb pom kev zoo los ntawm kev muab 1/3 ntawm tag nrho cov ntawv ci ci rau 3 co-periodic sine ua haujlwm sib cais los ntawm kev hloov pauv ntawm 1/3 ntawm txhua lub sijhawm.
  • Comet [10] - Zoo ib yam li Adafruit's Scanner, qhov sib txawv yog qhov kev coj yog tam sim no tsim tawm txhua lub sijhawm thiab tsis hloov pauv, muaj qhov sib txawv me ntsis hauv xim raws li lub pixel txav ib puag ncig tsim ntau dua "hluav taws" zoo li cuam tshuam rau ntawm qab. Kev hu xov tooj ntawm txhua qhov hloov tshiab yog dab tsi tsim qhov ploj mus lossis "tw" ntawm tus qauv.
  • Suab paj nruag Sync [12]- Ob qhov ntsuas tau suav raws qhov ntim (qhov hluav taws xob los ntawm A0): Xim thiab ntev. Lub suab paj nruag sib txuas ua ke ploj mus los ntawm lub hauv paus xim mus rau xim suav, thaum tib lub sijhawm ploj mus rau dub hauv qhov ntev. Qhov nruab nrab xim zoo ib yam ploj ib ncig ntawm lub log xim, yog li koj tau txais ob qho kev cuam tshuam zoo thiab ua kom du yog li nws tsis txaus ntshai.

Khab nias Duab

cdn.shopify.com/s/files/1/0176/3274/produc…

store-cdn.arduino.cc/usa/catalog/product/c…

cdn.mos.cms.futurecdn.net/aSDvUGkMEbyuB9qo…

images-na.ssl-images-amazon.com/images/I/6…

www.amazon.com/Speaker-GearIT-Meters-Theat…

www.powerstream.com/z/adapter-2-1-to-screw…

www.amazon.com/Hobbico-HCAR0776-Soldering-…

images-na.ssl-images-amazon.com/images/I/7…

cdn-shop.adafruit.com/970x728/1063-03.jpg

cdn-learn.adafruit.com/assets/assets/000/0…

www.adafruit.com/product/2561

www.adafruit.com/product/2964?length=1

cdn.sparkfun.com//assets/parts/4/6/8/4/102…

www.holidaycoro.com/v/vspfiles/assets/image…

www.circuitspecialists.eu/5-volt-enclosed-s…

d3vs3fai4o12t3.cloudfront.net/media/catalo…

Pom zoo: