Cov txheej txheem:

RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: 6 Cov Kauj Ruam (nrog Duab)
RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: 6 Cov Kauj Ruam (nrog Duab)

Video: RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: 6 Cov Kauj Ruam (nrog Duab)

Video: RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control: 6 Cov Kauj Ruam (nrog Duab)
Video: This diy DMX Light Rig will Change Your Live Shows 2024, Hlis ntuj nqeg
Anonim
RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control
RGB Led Sawb Bluetooth Controller V3 + Music Sync + Ambient Light Control

Txoj haujlwm no siv arduino los tswj RGB coj sawb nrog koj lub xov tooj ntawm bluetooth. Koj tuaj yeem hloov xim, ua teeb sib txuas nrog suab paj nruag lossis ua rau lawv pib kho rau lub teeb pom kev ib puag ncig.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

Rau qhov haujlwm no koj yuav xav tau cov hauv qab no:

LED strips ntawm chav kawm, kuv xaj 10 meter ntawm qhov ntom ntom ntom ntom RGB strips los ntawm aliexpress rau ib puag ncig 1 €/m: https://it.aliexpress.com/item/10000000224362.html …, cov nplaum tsis zoo tab sis lwm yam tshaj li lawv yog txaus rau tus nqi. thaum xaiv dab tsi yuav koj yuav tsum tau mus rau RGB "ruam" ib daim hlab, tsis muaj adressable thiab tsis muaj RGBW. Kuj tseem ceeb ntawm lub zog ntsuas ib lub 'meter' ntawm koj lub pluaj thiab muab nws ntxiv rau cov ntsuas koj yuav xav tau kom tau txais lub zog ntxhib kwv yees. 5050 LED strips nyob ib puag ncig 7W/m rau qhov ntom ntom 30 LED/m hom thiab 14W/m rau qhov ntom ntom ntom ntom 60 LED/m hom

12/24v hloov fais fab mov, nyob ntawm koj qhov hluav taws xob qhov hluav taws xob. Koj tuaj yeem siv ATX lub zog xa khoom tab sis txhua qhov xwm txheej nco ntsoov xaiv lub zog xa khoom nrog ntsuas lub zog tsim nyog. Kuv raccomend yuav khoom siv hluav taws xob uas muaj tsawg kawg 30% lub zog ntsuas ntau tshaj qhov koj xav tau rau LEDs, tshwj xeeb tshaj yog tias koj yuav ib qho pheej yig zoo li no: https://it.aliexpress.com/item/32304688758.html?sp …. Kuv Strips tau 14W/m, kuv xav tau lub zog 7.5m yog li kuv xav tau kwv yees li 105W, Kuv yuav 180W lub zog siv hluav taws xob tsuas yog ua rau muaj kev nyab xeeb. Kuv tsis raccomend yuav qhov no yog tias koj tshiab rau cov khoom siv hluav taws xob vim nws tau nthuav tawm qhov hluav taws xob siab, ua nws ntawm koj tus kheej txoj kev pheej hmoo

Arduino, kuv siv PRO micro tab sis koj tuaj yeem siv txhua yam koj xav tau, nco ntsoov tias koj yuav tau hloov qee tus pin thiab lub npe ntawm Serial chaw nres nkoj hauv kuv tus lej yog tias koj yuav siv qhov sib txawv micro tswj

3x N channel mosfets, Kuv tau mus nrog IRF3205 vim tias kuv twb muaj lawv nyob ntawm tes, lawv muaj peev xwm ntawm 80Amps thiab muaj qhov tsim nyog qis rau kev tiv thaiv yog li lawv yuav tsum muaj qhov zoo txaus. Yog tias koj pom tias lawv zoo li ua kom sov koj tuaj yeem ntxiv qee qhov rhaub dej kub ib yam li kuv tau ua

3x TC4420 mosfet tsav tsheb, Lawv yuav tsis tsim nyog nyob ntawm koj lub zog xav tau, mus nyeem rau kev piav qhia

HC-05 bluetooth module, yuav tsum paub xaiv 5v logic qib ib lossis koj yuav xav tau cov khoom siv hluav taws xob ntxiv (qhov faib hluav taws xob yuav tsum ua haujlwm) txhawm rau nqis qis qhov hluav taws xob tawm ntawm TX ntawm arduino

7805 tus tswj hluav taws xob/ 5v hloov pauv rau lub zog arduino thiab bluetooth module

5x 0.1uF, 1x 100uF capacitors, 4x 10kohm resistors

(yeem)

  • electrect microphone module, nws suav nrog lub microphone thiab lub amp nrog kho tau nce uas xa tawm qhov hluav taws xob analog npaj los nyeem los ntawm arduino. Koj tuaj yeem tsim koj tus kheej Circuit lossis tsis siv nws yog tias koj tsis xav kom koj lub teeb tig mus rau lub suab paj nruag rythm.
  • photoresistor, koj tseem tuaj yeem siv qhov yooj yim LED siv los ua lub teeb pom kev zoo tab sis koj yuav tsum hloov txoj cai kom nws ua haujlwm.

Kauj ruam 2: Schematic

Schematic
Schematic
Schematic
Schematic
Schematic
Schematic

Ua lub voj voos ntawm lub khob cij los ntsuas nws, rov ua cov mosfet tsav Circuit (daim duab thib ob) 3 zaug, ib qho rau txhua tus channel, txuas 3 PWM tso tawm ntawm arduino mus rau PWM cov tswv yim tsav tsheb. Yog tias koj tsis xav siv lub siab mosfet tsav tsheb IC koj tuaj yeem tsim tus neeg tsav tsheb yooj yim siv ob lub NPN transistor, koj tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv hauv is taws nem. Yog tias koj tab tom npaj yuav siv Circuit rau tsuas yog ob peb LEDs koj tuaj yeem txuas ncaj qha lub qhov rooj ntawm mosfets mus rau PWM cov txiaj ntsig ntawm arduino ntawm 100ohm resistor, thiab ntxiv 10Kohm resistor ntawm qhov chaw thiab ntws ntawm mosfets, txawm li cas los xij qhov no yog tsis raccomended vim nws tsis qhib tag nrho cov mosfets thiab yog li ua rau ntau qhov tsis ua tiav.

3 R G B cov pawm ntawm cov hlua coj yuav tsum txuas nrog lub qhov dej ntawm 3 mosfets, thiab lwm lub ncoo rau +12v.

Kauj ruam 3: Code

Nov yog tus lej koj yuav tsum tau xa mus rau arduino, nws ua dab tsi yog siv qee qib qis sau npe khawv koob los tsim peb 15KHz mem tes-dav-hloov pauv teeb liab (PWM) los tsav peb lub mosfets nrog lub luag haujlwm hloov pauv. Hauv lub voj nws kuaj xyuas cov khoom xa tawm los ntawm bt module thiab thaum nws tau txais qee yam nws hloov kho xim thiab hom, tseem nws khaws txhua yam ntawd mus rau sab hauv EEPROM yog li nws nco txog cov teeb tsa thaum nws rov pib dua. Tam sim no muaj 3 hom kev siv:

Hom xim: tsuas yog tso saib xim ruaj khov

Hom suab paj nruag: tua tag nrho cov txiaj ntsig rau lub sijhawm luv luv yog tias lub suab treshold tau mus txog, ib txwm ua rau lub teeb pom kev zoo sib xws nrog koj lub suab paj nruag. Yog tias nws tsis ua haujlwm raws li lub hom phiaj koj yuav tsum tau kho lub rhiab rhiab ntawm lub microphone nrog lub lauj kaub ntawm tus qauv, tus nqi treshold hauv tus lej cim "thd" lossis qhov nrug nruab nrab ntawm lub microphone thiab lub suab

Hom ib puag ncig: Nws ntsuas tus nqi ntawm lub teeb nyob hauv chav ntawm tus kws yees duab thiab tshem qhov ci ntawm qhov koj xaiv xim kom haum. Hauv mobile app lossis hauv txoj cai koj tuaj yeem hloov kho HIGH thiab LOW tresholds uas txiav txim siab seb tus nqi (0-1023) lub teeb puas puv lossis puv nkaus. Yog tias koj pom qee qhov flicker thaum nyob hauv hom no koj yuav xav txav lub teeb pom kev deb ntawm LED strips lawv tus kheej txhawm rau zam kev cuam tshuam

Xav tias dawb los hloov cov cai thiab ntxiv ntau hom, yog tias koj xav tau kuv kev pab nkag siab tus lej kuv email rau saum cov ntawv.

Kauj ruam 4: Android App

Hauv App
Hauv App

Koj yuav tsum rub tawm daim ntawv thov no:

thiab tseem rub tawm thiab ntshuam cov ntaub ntawv.kwl.

Yog tias koj xav tsim koj tus kheej app uas ua haujlwm nrog kuv tus lej koj yuav tsum muaj cov hauv qab no:

swb rau RED tus nqi uas xa: "r+tus nqi nruab nrab ntawm 0 thiab 1023+x" (es: "r130x")

swb rau GREEN tus nqi uas xa: "g+tus nqi nruab nrab ntawm 0 thiab 1023+x"

swb rau BLUE tus nqi uas xa: "b+tus nqi nruab nrab ntawm 0 thiab 1023+x"

slider rau High treshold uas xa: "h+tus nqi nruab nrab ntawm 0 thiab 1023+x"

slider rau Low treshold uas xa: "l+tus nqi nruab nrab ntawm 0 thiab 1023+x"

khawm uas xa "m" rau hom suab paj nruag

pushbutton uas xa "a" rau hom ambient

laub khawm uas xa "c" rau hom xim

Kauj Ruam 5: Perf Board Circuit

Perf pawg thawj coj saib Circuit
Perf pawg thawj coj saib Circuit

Thaum koj muaj kev ua haujlwm puv ntoob ntawm lub khob cij koj tuaj yeem txav nws mus rau ib qho ntawm daim txiag ntoo, siv cov ntawv tuab rau cov dej ntws thiab qhov sib txuas ntawm mosfets thiab cov ntsia hlau txuas kom txuas cov hlua coj thiab lub zog rau hauv Circuit Court. Yog tias koj muaj teeb meem cua sov ntxiv qee qhov rhaub dej kub, yog tias koj xav siv ib lub rhaub dej kub rau tag nrho ntawm peb lub mosfets nco ntsoov cais lawv ib leeg los ntawm ib leeg siv cov ntaub qhwv cua sov lossis koj yuav luv cov txiaj ntsig raws li qhov tso dej ntawm mosfets txuas nrog sab hauv hlau ib feem ntawm lub cev.

Kauj Ruam 6: Koj Ua tiav

Image
Image

Txuas qee cov hlua coj thiab lub zog xa mus rau koj lub Circuit Court thiab koj tau ua tiav.

Qhov ntawd yog nws, ntawm qhov no koj yuav tsum tau ua haujlwm THING.

Thov qhia rau kuv paub yog tias koj muaj teeb meem lossis cov lus qhia hauv nqe lus tawm tswv yim.

PS Hauv cov vis dis aus saum toj no qhov ua tau zoo ntawm kev ua haujlwm nrog suab paj nruag tsis tau qhia zoo li nws yog nyob hauv lub neej tiag tiag vim muaj cov vis dis aus qis.

Pom zoo: