Cov txheej txheem:

IOT DMX Controller Nrog Arduino thiab Theem Monster Live: 6 Kauj Ruam
IOT DMX Controller Nrog Arduino thiab Theem Monster Live: 6 Kauj Ruam

Video: IOT DMX Controller Nrog Arduino thiab Theem Monster Live: 6 Kauj Ruam

Video: IOT DMX Controller Nrog Arduino thiab Theem Monster Live: 6 Kauj Ruam
Video: Mobile DJ Tips: How to Program your LIGHTs with DMX 2024, Kaum ib hlis
Anonim
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob
IOT DMX maub los nrog Arduino thiab Qib Dab Nyob

Tswj theem teeb pom kev zoo thiab lwm yam khoom siv DMX los ntawm koj lub xov tooj lossis lwm yam khoom siv hauv web. Kuv yuav qhia koj sai npaum li cas thiab yooj yim tsim koj tus kheej DMX maub los uas ua haujlwm ntawm Stage Monster Live platform siv Arduino Mega.

Khoom siv:

Arduino Mega 2560

Ethernet ntaub thaiv npog

store.arduino.cc/usa/arduino-ethernet-shield-2

DMX tiv thaiv

www.dfrobot.com/product-984.html?gclid=Cjw…

Conceptinetics lub tsev qiv ntawv rau DMX ntaub thaiv npog

sourceforge.net/p/dmxlibraryforar/code/ci/…

Ob (2) luv jumper xov hlau

Ib lub DMX cable rau txhua lub teeb pom kev zoo DMX

DMX terminator

Lub Hwj Huam (AC/DC Adapter, Roj Teeb Pob, thiab lwm yam)

Stage Monster Live account (xav tau kev tso npe, tab sis muaj 7 hnub sim dawb)

www.stagemonsterlive.com

Kauj Ruam 1: Kev Npaj DMX Shield

Kev Npaj DMX Shield
Kev Npaj DMX Shield
Kev Npaj DMX Shield
Kev Npaj DMX Shield
Kev Npaj DMX Shield
Kev Npaj DMX Shield

Ob lub ethernet shield thiab DMX shield yuav sim siv qhov chaw nres nkoj 0 txhawm rau sib txuas lus nrog Arduino thiab lawv yuav cuam tshuam nrog ib leeg yog tias peb tsis kho qhov no, yog li peb thawj zaug yuav tsum ua me ntsis ntawm kev npaj ua haujlwm rau ob qho kev tiv thaiv ua haujlwm kom raug. Vim tias DMX daim ntaub thaiv tau muab tso rau saum cov pawg, nws yuav yooj yim dua los hloov kho nws es tsis yog daim thaiv npog Ethernet.

Thawj qhov peb yuav tsum tau ua yog txiav tawm (lossis khoov rov qab) hauv qab pins ntawm DMX daim ntaub thaiv ntawm cov pins digital 0 thiab 1 (RX0 thiab TX0) kom ob lub pins tsis txuas nrog Arduino. Tom qab ntawd, peb tab tom txuas DMX daim ntaub thaiv mus rau Arduino ntawm chaw nres nkoj txuas 1. Rau tam sim no, peb tuaj yeem txav mus rau qhov hloov pauv me ntsis rau cov ntaub ntawv conceptinetics.h.

Koj yuav zoo li pom cov ntawv no nyob qhov twg koj cov neeg siv-teeb tsa lub tsev qiv ntawv khaws cia. Rau kuv, nws nyob hauv Cov Ntaub Ntawv -> Arduino -> tsev qiv ntawv -> Lub tswv yim. Koj tuaj yeem yooj yim qhib Conceptinetics.h cov ntawv hauv Notepad. Txog 44 kab nqes los ntawm qhov twg tus lej tiag pib hauv cov ntawv ntawd, koj yuav pom ntu rau kev txheeb xyuas qhov chaw nres nkoj twg siv rau DMX chaw nres nkoj. Los ntawm lub neej ntawd, nws yuav raug teeb tsa rau 0. Koj tuaj yeem hloov nws mus rau qhov chaw nres nkoj twg koj xav siv los ntawm kev tsis suav nrog kab rau qhov chaw nres nkoj ntawd thiab tawm tswv yim tawm kab rau chaw nres nkoj 0. Tom qab ntawd khaws cov ntaub ntawv. Tam sim no thaum peb muaj ob daim thaiv txuas nrog Arduino, lawv ob leeg tuaj yeem khiav tau yam tsis muaj kev cuam tshuam ib leeg.

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Qhov no yog qhov yooj yim tshaj plaws. Ethernet daim ntaub thaiv mus rau sab saum toj ntawm Arduino thiab DMX daim thaiv mus rau saum Ethernet daim thaiv. Siv koj ob lub xov hlau txuas, txuas TX0 thiab RX0 tus pin ntawm DMX daim thaiv rau tus pin tsim nyog ntawm Arduino (TX1 thiab RX1 yog tias koj xaiv qhov chaw nres nkoj 1, thiab ntxiv rau). Qhov no tso cai rau DMX daim ntaub thaiv sib txuas lus nrog Arduino ntawm qhov chaw nres nkoj uas koj tau xaiv thaum Ethernet daim thaiv sib txuas lus nrog nws ntawm chaw nres nkoj txuas 0.

Kauj ruam 3: Code

Rub tawm daim duab stmrfile.ino thiab qhib hauv koj Arduino IDE. Sau rau theem Dab Neeg Nyob Muaj Peev Xwm muaj peev xwm nyob hauv qhov sib txawv hu ua Username, Password, thiab Api_Key (qhov no yog Access API tus yuam sij uas tuaj yeem pom hauv Configure ntu ntawm koj Stage Monster Live account page), tom qab ntawd ntsaws rau hauv koj Arduino, xaiv koj lub cuab yeej hauv Cov Ntawv Qhia Chaw (Hauv Cov Cuab Yeej hauv toolbar), thiab xa cov duab kos rau koj Arduino. Yog tias lub cuab yeej tau sib sau ua ke kom raug thiab lub tsev qiv ntawv Conceptinetics tau teeb tsa kom raug, yuav tsum tsis muaj qhov yuam kev.

Kauj Ruam 4: Txuas rau DMX Devices

Txuas mus rau DMX Devices
Txuas mus rau DMX Devices

Txuas lub DMX cable mus rau DMX cov zis ntawm DMX daim ntaub thaiv. Txuas lwm qhov kawg rau thawj DMX lub cuab yeej, tom qab ntawd txuas lub cuab yeej DMX mus rau tom ntej hauv tib txoj kev, thiab ntxiv rau. Siv DMX tus neeg siv kawg ntawm lub cuab yeej DMX kawg hauv cov saw.

Tawm ntawm Arduino ntsaws rau hauv koj lub khoos phis tawj lossis tshem tawm thiab siv lub zog sib cais los muab lub zog. Siv lub ethernet cable, txuas Ethernet daim thaiv rau koj lub router.

Kauj Ruam 5: Kho Kho Teeb Pom Kev Zoo/Cov Khoom Siv Hauv Qib Dab Nyob

Kho teeb pom kev zoo/Cov cuab yeej siv tau zoo nyob rau theem Monster Live
Kho teeb pom kev zoo/Cov cuab yeej siv tau zoo nyob rau theem Monster Live

Nkag mus rau hauv koj li Stage Monster Live tus lej nyiaj thiab mus rau lub interface tswj.

Rau txhua qhov ntawm koj li DMX teeb pom kev zoo/cov khoom siv, ua cov hauv qab no:

Txheeb xyuas yog tias koj lub cuab yeej teeb pom kev zoo muaj nyob rau Txuj Ci Txuj Ci los ntawm kev nyem rau ntawm "Cov Qauv Txuj Ci" tab thiab tom qab ntawd saib los ntawm cov khoom siv muaj nyob hauv txhua cheeb tsam los ntawm txhaj rau thaj tsam, tom qab ntawd nyem rau "Tsis Siv Lub Tshuab Xaiv". Yog tias nws muaj, koj tuaj yeem teeb nws ua ib qho ntawm koj li Standard Mode devices. Tom qab xaiv nws, koj tuaj yeem teeb tsa pib channel los ntawm nyem rau "Pib Channel: Tsis Muaj."

Yog tias nws tsis muaj nyob rau ntawm Standard Mode, koj tseem tuaj yeem siv nws hauv Advanced Mode los ntawm kev mus rau Advanced Advanced sub-interface (yog tias siv lub xov tooj sib cuam tshuam, nyem "Tswj" ces siv cov xub los hloov "Standard Mode" mus rau "Advanced Mode" ") thiab nyem" Ntxiv DMX Ntaus Tshiab … "Koj tuaj yeem tshawb xyuas seb koj lub cuab yeej puas nyob hauv Cov Txheej Txheem Zoo Tshaj los ntawm txhaj" Ntxiv Cov Khoom Los Ntawm Cov Npe "lossis tsuas yog ntxiv nws ua cov cuab yeej siv.

Nco ntsoov tias hom kev tswj hwm thiab pib channel ntawm lub teeb pom kev zoo ib yam li qhov koj xaiv hauv Stage Monster Live interface.

Koj tuaj yeem tshawb xyuas tias txhua yam tau teeb tsa kom raug los ntawm kev hloov pauv tsis nyob ntawm Stage Monster Live interface. Yog tias cov cuab yeej teeb pom kev zoo hloov pauv lossis hloov pauv hauv ib txoj kev uas nws tsis tsim nyog, rov qab los ntawm cov kauj ruam no thiab xyuas kom txhua yam ua tiav raug.

Yog xav paub ntau ntxiv txog Kev Siv Lub Sij Hawm Monster Live interface, muaj phau ntawv qhia siv ntawm

Kauj ruam 6: Ua tiav

Tiav lawm!
Tiav lawm!

Nrog koj zoo siab! Tam sim no koj muaj lub luag haujlwm DMX tus tswj hwm khiav ntawm Stage Monster Live tswj lub platform.

Pom zoo: