Cov txheej txheem:

Hniav LED Teeb Suab Reactive (Arduino): 5 Cov Kauj Ruam (nrog Duab)
Hniav LED Teeb Suab Reactive (Arduino): 5 Cov Kauj Ruam (nrog Duab)

Video: Hniav LED Teeb Suab Reactive (Arduino): 5 Cov Kauj Ruam (nrog Duab)

Video: Hniav LED Teeb Suab Reactive (Arduino): 5 Cov Kauj Ruam (nrog Duab)
Video: Diy Amazing Device Music Reactive light | DJ लाइट 😎 2024, Hlis ntuj nqeg
Anonim
Image
Image

Nyob zoo, nws yog thawj qhov kev qhia, thiab kuv tsis yog neeg Askiv;) thov zam txim rau kuv yog tias kuv ua yuam kev.

Cov ncauj lus kuv xav tham txog yog lub teeb LED ntau dua tuaj yeem ua suab zoo.

Zaj dab neeg pib nrog kuv tus poj niam uas muaj lub teeb no los ntawm Ikea txij li ntev los thiab kuv ib txwm xav tias, thaum saib nws, tias nws tuaj yeem yog lub ntsiab lus zoo los hloov nws nrog LED sawb.

Tom qab ntawv nyeem qee cov lus qhia Kuv pom lub ncauj lus uas tau muab kev tshoov siab rau kuv, ua tsaug rau Natural Nerd

www.instructables.com/id/Music-Reactive-De…

Nrhiav cov ntaub ntawv kom paub tias nws ua haujlwm li cas Kuv kuj pom cov animation zoo hauv

learn.sparkfun.com/tutorials/addressable-r…

Ua tsaug rau Michael Bartlett

Cia peb pib kho lub teeb Ikea, nws yuav yog lub teeb txheem (dawb) nrog lub lauj kaub kom tuaj yeem hloov kho qhov ci ci, thiab tom qab ntawd nws yuav hloov mus rau lub suab paj nruag reactive teeb nrog 8 qhov sib txawv sib txawv.

Cov vis dis aus tsis qhia zoo txog cov txiaj ntsig potar, nws zoo dua qhov tseeb.

Thov txim yog tias kuv nco qee cov ntsiab lus tab sis kuv tsis tau npaj sau cov ntawv qhia ua ntej ua.

Kho kom raug: Kuv ntxiv cov vis dis aus tshiab tab sis kuv lub koob yees duab (xov tooj ntawm tes) txaus nrog lub teeb, thov txim rau qhov ntawd), peb tuaj yeem pom qhov pib ua haujlwm, thiab lub teeb dawb nrog teeb pom kev zoo, thiab tom qab ntawd ntau lub suab paj nruag

Kauj Ruam 1: Tshooj Npe

Nov yog daim ntawv teev npe

  1. tau kawg lub teeb nws tus kheej
  2. arduino NANO (zoo li qhov no)
  3. Nano ntaub thaiv npog (tsis tas yuav tsum tau tab sis feem ntau)
  4. Lub suab suab (ceev faj Tsis txhob siv KY-037 lossis KY-038 nrog yog tsis paub tab)
  5. 3m LED sawb RGBW (RGB tuaj yeem txaus tab sis kuv xav ua si nrog RGBW) Kuv coj sov dawb, nws yog ADDRESSABLE sawb, txhua LED tuaj yeem hais kom ua tus kheej, nws tsis yog tus qauv RGB sawb
  6. 1 potar (5 potar ntawm no)
  7. Lub zog 5v 20Ah (10 lossis 15 yuav txaus tab sis kuv nyiam ua qhov loj)
  8. 2 qhov hloov pauv hloov pauv (tus qauv hloov pauv yuav zoo ib yam)
  9. kab
  10. ko taw hloov
  11. R/C cable (yooj yim txuas rau 3 tus pin sensor)

Kauj Ruam 2: Npaj Teeb

Npaj Teeb
Npaj Teeb
Npaj Teeb
Npaj Teeb
Npaj Teeb
Npaj Teeb

Lub teeb yog nyob rau hauv cov khoom siv thiab yuav tsum tau sib sau ua ke. Raws li peb yuav tsis siv lub teeb thiab yas uas xauv txhua lub raj ua ke, thiab vim nws nyob ntsiag to tsis nruj heev ntawm lub hauv paus chiv keeb Kuv txiav txim siab ntxiv cov ntsia liaj qhov rooj, yog li ua lub qhov thiab ruaj ntseg txhua lub raj ua ke. Ceev faj, ib qho yog luv dua thiab yog qhov pib los ntawm hauv qab.

Thov txim kuv tsis tau daim duab txaus thaum kuv ua nws.

Lub teeb yog 1m38 siab, Kuv siv 2 daim coj sawb, uas kuv muab tso rau 2 sab ntawm lub raj.

Ua tib zoo saib, kab txaij yuav tsum yog qhov nkag siab, vim tias lub xov tooj yuav tsum nyob hauv qab, muaj cov tswv yim thiab tso tawm ntawm cov hlua LED, cov khoom siv yuav tsum nyob hauv qab. Txhua lub pluaj LED yog 77 LED ntev rau kuv, tab sis yuav pom tom qab tias nws ntau dhau rau arduino NANO.

Kuv sim ua cov kua nplaum kub rau lub raj, tab sis thaum kuv xaj kuv coj cov ntawv pov thawj dej silicone, thiab cov kua nplaum kub tsis lo rau nws:(Yog li kuv siv khi-raps xwb. Xav kom txuas cable tib lub sijhawm.

Kauj Ruam 3: Lub Capacitive Switches thiab Potar

Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar
Capacitive Switches thiab Potar

2 lub peev xwm hloov pauv tau sab hauv lub teeb thiab ua haujlwm tau zoo los ntawm cov yas ntawm lub teeb.

Koj tuaj yeem tso nws nyob qhov twg koj xav tau, kuv txuas lawv nrog ib daim nplaum xwb, nyob nruab nrab ntawm lub teeb siab.

Qhov saum toj kawg nkaus yog rau kev hloov pauv los ntawm Dawb mus rau kev ua yeeb yaj kiab.

Hauv qab ib qho yog rau kev hloov pauv kev ua yeeb yaj kiab. Muaj 8 qhov ua yeeb yaj kiab, 7 yog suab paj nruag rov ua dua, thiab qhov kawg tsuas yog txav mus tas li.

Txog cov txiv hmab txiv ntoo, ntawm qhov pib, Kuv xav siv lub lauj kaub tais diav zawv zawg tab sis kuv tsis paub tias yuav muab nws tso rau qhov twg yooj yim, yog li thaum kawg kuv tau ua lub qhov rau saum thiab muab ib qho tig.

Kauj ruam 4: Schematic thiab Programming

Schematic thiab Programming
Schematic thiab Programming

Txuas txhua yam ua ke

Thiab upload cov cai

Nws tsuas yog siv Adafruit_NeoPixel lub tsev qiv ntawv, nco ntsoov tau teeb tsa nws.

Hauv qhov chaws koj muaj:

#Txhais NUM_LEDS 74

Txawm hais tias kuv siv 77 qhov ntev coj sawb, nano tsis nco thiab tsis muaj dab tsi tshwm sim txog thaum kuv nqis mus rau 74 LED nkaus xwb. Tej zaum yuav siv Mega yuav zoo dua

#define MIC_LOW 0.0#txhais MIC_HIGH 737.0

Thov txheeb xyuas qhov min / max tus nqi koj tau txais nrog koj lub sensor.

Thaum koj tshaj tawm koj cov hlua LED, rau kuv nws yog NEO_RGBW thiab 800 khz, txheeb xyuas qhov tshwj xeeb ntawm koj li.

Adafruit_NeoPixel strip = Adafruit_NeoPixel (NUM_LEDS, LED_PIN, NEO_RGBW + NEO_KHZ800);

Thaum lub teeb pib nws mus dhau ib lub yob dawb, liab, ntsuab thiab xiav, koj tuaj yeem tshem qhov pib yog tias koj tsis xav tau qhov pib.

Kauj ruam 5: Tom ntej Version?

Kuv tus poj niam txhawj xeeb me ntsis thaum kuv tau phais nws lub Teeb, tab sis tam sim no nws hlub nws tiag.

Thaum koj muab cable tso rau sab hauv, ua tib zoo txuas lawv kom tsis txhob muaj qhov ntxoov ntxoo inesthetic.

Lub thawv fais fab loj heev, thiab ua duab ntxoov ntxoo nyob hauv qab, pib lub LED sawb siab dua tuaj yeem txo qhov ntxoov ntxoo.

Khawm tau pom thaum pom lub teeb, nws tsis zoo nkauj, xav muab nws tso rau ntawm ib sab ntawm phab ntsa (yog tias lub teeb nyob ze ntawm phab ntsa) thiab ib sab ib yam li lub zog. tab sis nws yog qhov zoo kom pom lawv nyob qhov twg, Kuv tsis xav ua ib qho cim ntawm lub teeb.

Hauv qhov kawg, thaum koj nyem rau khawm khawm, xiav coj teeb nyem los qhia tias koj kov lub pob, thiab cov tsiaj ntawv ua haujlwm twg tab sis nws tuaj yeem txhim kho.

Lub micro tuaj yeem ua rau muaj kev nkag siab ntau dua, thiab kuv xav muab 2 micro kom muaj kev nkag siab zoo dua.

Ntau cov nyhuv tuaj yeem tsim tau, tab sis xav tau mus rau Mega Kuv twv raws li lub cim xeeb muaj nyob ntawm Nano raug kaw rau xoom.

Ib lub teb chaws encoder los hloov cov txiaj ntsig kuj tseem tuaj yeem yog lwm txoj hauv kev. Tab sis kuv nyiam hloov pauv lub peev xwm rau lub sijhawm:)

Kuv txuas tus USB cable rau sab saum toj ntawm lub teeb kom tuaj yeem yooj yim program nws.

Kuv yuav ntxiv qhov hloov pauv dav ntawm lub hwj huam qaum, thaum kuv tau txais nws.

Nco ntsoov tias Yog tias tag kis koj nkees nkees nrog nws, koj tuaj yeem tshem cov coj thiab tso rov qab lub teeb pib, tab sis kuv yeej tsis xav txog vim li cas….

Ntxiv kev tswj chaw taws teeb kuj tseem nyob hauv cov npe tswv yim.

Pom zoo: