Тёмный

ARDUINO DMX512 CONTROLLER 

Gadget Reboot
Подписаться 30 тыс.
Просмотров 104 тыс.
50% 1

Using the DMXSimple Arduino library, I was able to get these two American DJ Micro Wash RGBW PAR can lights running, controlling them with manual commands from the serial monitor or automatic scenes from the sketch.
This is mostly an Arduino protocol demo, an actual implementation would require power and data isolation, which I will do in a different video.
Sketch and Schematic:
github.com/GadgetReboot/Ardui...
If you'd like to support the channel, you can:
Support me on Patreon: / gadgetreboot
Shop through my affiliate links!
Banggood www.banggood.com/custlink/3vK...
Aliexpress s.click.aliexpress.com/e/_AFeHwB
Amazon.com www.amazon.com/?&_encoding=UT...
Amazon.ca www.amazon.ca/?&_encoding=UTF...
Videos are mirrored at LBRY/Odysee: odysee.com/@GadgetReboot:4
#ElectronicsCreators

Наука

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 119   
@Kermareg
@Kermareg 5 лет назад
Thank you for your video which allows me to understand DMX protocol. I'll try the library tomorrow.
@eagonsiahaan5682
@eagonsiahaan5682 4 года назад
THIS IS WHAT I NEEDED
@Sarikaduja
@Sarikaduja 3 года назад
Thank You. This was very educational, easy to follow and informative. I got my lamp working on the first try.
@mkl126
@mkl126 3 года назад
Thank you so much! I dont know how many tutorials I have tried and none worked until this one. Luckily I had a similar setup.
@ElihuStevens
@ElihuStevens 4 года назад
Love ALL the detailed explanation in your video!
@GadgetReboot
@GadgetReboot 4 года назад
Thank you!
@samithadodangoda2813
@samithadodangoda2813 9 месяцев назад
Thank you for providing every details source code and schematic. good luck!
@gabrielgraf2521
@gabrielgraf2521 4 года назад
Very very helpfull, thx for explaning this simple library. 👍🏻✌🏻
@jenssejerchristiansen
@jenssejerchristiansen 4 года назад
Seriously this is just amazing
@peteabdu9179
@peteabdu9179 8 месяцев назад
Awesome video, thanks for makng such a good one!
@electronic7979
@electronic7979 5 лет назад
Excellent project
@lalchandra4590
@lalchandra4590 5 лет назад
Unique video on whole RU-vid about DMX.
@chuicoevenmerk
@chuicoevenmerk Год назад
finally thanks for this video. this is what I am looking for to begin with my thunder lighting effect RGBW project.
@juliusfan1843
@juliusfan1843 4 года назад
VERY NICE VIDEO!!! THIS IS WHAT I NEED!!!!!!!!
@Dally_Sparkles
@Dally_Sparkles 5 лет назад
love your video very easy to follow.. i'm at risk of starting a new hobby when i already have 6 - 7 on the go
@rickr7115
@rickr7115 5 лет назад
This is the first video I've ever seen on RU-vid not to have a thumbs down.
@kenseastrand7428
@kenseastrand7428 4 года назад
That is something is it not? I have seen some really great videos that have 100 or more thumbs down, I just don't get why some people are just not happy with them selves let along someone trying to give them help full info.
@jimsutton1179
@jimsutton1179 5 лет назад
Excellent video! Really appreciated the background information leading into the project. Great pace for grasping how to put the basic pieces of a DMX Arduino project together. Thanks for explaining the schematics with highlights.
@GadgetReboot
@GadgetReboot 5 лет назад
Thanks for the feedback. Sometimes I wonder if there’s too much info but I can’t help myself.
@grantlegend8872
@grantlegend8872 2 года назад
I dont mean to be so off topic but does anyone know of a way to log back into an instagram account? I was dumb lost my login password. I love any tips you can give me.
@emiliolangston9724
@emiliolangston9724 2 года назад
@Grant Legend Instablaster =)
@grantlegend8872
@grantlegend8872 2 года назад
@Emilio Langston thanks for your reply. I got to the site through google and Im waiting for the hacking stuff now. Looks like it's gonna take quite some time so I will reply here later when my account password hopefully is recovered.
@grantlegend8872
@grantlegend8872 2 года назад
@Emilio Langston it did the trick and I now got access to my account again. Im so happy:D Thanks so much, you saved my ass :D
@technicalmind1199
@technicalmind1199 Год назад
Nice bhai
@GnuReligion
@GnuReligion 5 лет назад
Well, you taught me something new. Had not heard of this standard. Your MAX485 could use a couple of 4-pin belt-buckle connectors and a little 3-D printed housing.
@GadgetReboot
@GadgetReboot 5 лет назад
A 3-D printer is on my long-term shopping acquisition list. I’ve never tried using a service to print things in the meantime. It would be convenient to have a printer for little projects. I forget when and how I found out about DMX years ago, and I’ve always wanted to experiment with it and didn’t know how easy it is with an Arduino. I’m sure I can come up with lots of related projects now like turning it into wirelessly controlled DMX and maybe a phone app to do that control or something.
@GnuReligion
@GnuReligion 5 лет назад
@@GadgetReboot I read about MAX485, but since I have no need to run a UART 1/2 mile, have never played with one. Would be almost trivial to make an ESP into a wireless relay for DMX. Code exists already converts one to a wireless serial port. github.com/jeelabs/esp-link
@GadgetReboot
@GadgetReboot 5 лет назад
Wireless serial ports are another topic I will be looking at even for RS-232 to use old dial-up modems on Wi-Fi. So many plans, so little time.
@Electronieks
@Electronieks 3 года назад
nice thing !
@vinchelo
@vinchelo 4 года назад
great tutorial thx!. Is it possible to replace the arduino one by a nodemcu and achieve the same?
@PantherJagger
@PantherJagger 4 года назад
Can you do a DMX input and output, so you can put it in your light show from a Mega? and can you connect the Out to an In of a Pixel Decoder to send the Mega information to a Led Strip?
@rahulgkhs
@rahulgkhs 2 месяца назад
Easy to understand tutorial- well done. But typing values are not practical. Does it have a GUI interfere?
@dvisuals9265
@dvisuals9265 Год назад
does anyone know how you would could add this to your xlights sequence
@dieSpinnt
@dieSpinnt 3 года назад
Thanks for the great video. Let's nitpick: There is no such thing as a level in EIA-485. Always speak about the differential input voltage. That magnitude of Voa-Vob < −200 mV = High and Voa-Vob > +200 mV = Low defines the standard. No one speaks about "levels" in the EIA paper, only about the magnitude of the differential input voltage, V_id, varying from 200 mV to 10 V, that is required to maintain correct operation over a common-mode voltage varying from -7 V to 7 V.
@eXWoLL
@eXWoLL 5 лет назад
Thanks for the video! Helped a lot to convince myself that this is indeed possible! One question: If I would like the Arduino to act as a RECEIVER for the DMX signal, how would I have to wire it? I'm thinking about a project where the arduino would control some led tubes on/off via DMX !
@GadgetReboot
@GadgetReboot 5 лет назад
I did a transmitter and receiver in another video including controlling WS2812 LEDs: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RZ_UWYBOj8M.html
@madkillerbg2430
@madkillerbg2430 2 года назад
How to make it with fader
@technicalmind1199
@technicalmind1199 Год назад
Nice nice
@faceless8337
@faceless8337 2 года назад
Hey, I am running into a very confusing issue. The light will only update constantly when its ground on pin 1 is disconnected. Thank you for any suggestions
@peace-elements
@peace-elements 7 месяцев назад
Hello. Can you tell me ir it works with resolume or madmapper? Thank you
@georgeeden5835
@georgeeden5835 5 лет назад
Thank you so much for the code to make the DMX receiver work, but I was wondering have you tried making a USB to DMX interface like a DIY arduino version of the Enttec Open DMX USB Interface using an RS485?
@GadgetReboot
@GadgetReboot 5 лет назад
I haven't done anything lately, I even fell behind in normal videos this past week so I need to get caught up on that before I get totally buried. But I'm waiting for some parts to come so I can at least try adding power and signal isolation to the existing DMX setup and make it more robust as-is. Maybe some day it'll grow into something bigger.
@rykkers
@rykkers 4 года назад
Hey, just wondering, I've read that there must be separation between the microcontroller and the DMX line. Does this RS-485 module allow this? Or is this a quick and dirty approach and more serious installs must make use of a DC-DC converter and Octocouplers? Thanks!
@GadgetReboot
@GadgetReboot 4 года назад
This was just an Arduino protocol test, a real implementation would need isolation and these particular modules don’t do it but I am working up toward another isolation demo. I recently did a DC to DC isolated converter video and I’m still waiting for another one to arrive so I can isolate two sides of a cable. For the data isolation I might either use auto couplers or one of those ADUM digital isolators www.analog.com/media/en/technical-documentation/data-sheets/ADuM1200_1201.pdf
@sixstringninja666
@sixstringninja666 3 года назад
Does anyone know how to make arduino IDE to step like other IDEs?
@alvarobyrne
@alvarobyrne 5 лет назад
just in time
@Ronaldo19924
@Ronaldo19924 2 года назад
Hi, I'm trying this project,then I tried to write the channel in to serial monitor but nothing happen. The light never change and nothing happen . Can you help me about this ? I use different rs 485 , and different type of light .
@Parox
@Parox 2 года назад
Can i visualize music with this dmx controller?
@deepeshkushwah607
@deepeshkushwah607 3 года назад
Can help me to make a code for DMX stapper motor with encoder
@dprice06468
@dprice06468 3 года назад
Great video. Can I ask where I can find the dmx adapter that you used? I’m looking for one I can incorporate into a protoboard. Thanks
@GadgetReboot
@GadgetReboot 3 года назад
I basically got everything on eBay, using the Arduino as the controller, then a little RS 485 to TTL module to translate between Arduino and DMX signal levels, and since my American DJ light uses the three pin instead of five pin standard connecter I just ordered a three pin on eBay.
@joestevens4639
@joestevens4639 3 года назад
Awesome video. Rather than controlling DMX lights from the Arduino, I want to use DMX output from PC software to trigger MP3 audio. Is that a similar hardware setup?
@GadgetReboot
@GadgetReboot 3 года назад
Yeah same hardware on both ends of the DMX transmit and receive sides. I did another project doing transmit and receive so it should also be able to receive DMX from PC and then that can trigger anything desired. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RZ_UWYBOj8M.html
@DmitriyKhazansky
@DmitriyKhazansky 4 года назад
You didn’t mention the Rt resistors that are shown in the chip diagram. Are those excluded in this demo or are they integrated into your cable connectors?
@GadgetReboot
@GadgetReboot 4 года назад
They are on the RS 485 board being used.
@bartverboom6612
@bartverboom6612 2 месяца назад
Just wondering.. How long can the output data cable be? Let 's say the lights are at 50m distance? Do you need an amplifier? How does that work?
@GadgetReboot
@GadgetReboot 2 месяца назад
According to this page, the cable has to be less than 300m (and assuming a proper DMX cable with the right impedance), and it says an amplifier may be needed after that point, or if there's more than 25-32 items connected insights.acuitybrands.com/eldoled-blog/how-to-wire-a-dmx-system#:~:text=Therefore%2C%20the%20maximum%20cable%20length,connected%20to%20one%20DMX%20cable.
@ignouliaignoulia7545
@ignouliaignoulia7545 4 года назад
Can you make a video on how to make dmx to rgb decoder
@GadgetReboot
@GadgetReboot 4 года назад
This video controls WS2812, although I will be working on maybe something more universal but this was my first experiment. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RZ_UWYBOj8M.html
@faceless8337
@faceless8337 2 года назад
Great video! My question is would this be compatible with a 5 pin XLR? I believe the first 3 pins of the 5 pin would be the same as the 3 pin, although what would I do with 4 and 5 on the 5 pin?
@GadgetReboot
@GadgetReboot 2 года назад
The extra two pins on a five pin are for an optional second communication channel so they just get left unconnected interactive-online.com/resources/faq/dmx-512-connector-pinouts
@faceless8337
@faceless8337 2 года назад
@@GadgetReboot Figured so, thank you for clarifying!
@pileofstuff
@pileofstuff 5 лет назад
Nice one. I wish this stuff was available (and at such affordability) back when I was doing sound and lighting gigs back in the '90s. I've got a couple of those MAX485 modules somewhere in the pile I was meaning to get around to eventually. I wonder what else I can do with them?
@GadgetReboot
@GadgetReboot 5 лет назад
It’s hard to think of uses for them today because I don’t really have a noisy signal environment to deal with at the workbench and any communication of any distance I would probably start thinking about Wi-Fi or wired ethernet. It almost makes me want to go out of my way to think of a project just to use them because I think I have five. Maybe a DMX receiver so I can turn some LEDs into DMX lights.
@georgeeden5835
@georgeeden5835 5 лет назад
@@GadgetReboot Did you manage to get to receiving dmx, I need a way that I can use an Arduino to receive dmx and turn on LEDs etc, I am fine with LEDs, ws2812's and transistors etc but I just don't understand how to go about receiving dmx.
@georgeeden5835
@georgeeden5835 5 лет назад
I know that you could use the dmxserial and dmxserial2 library for receiving dmx but I don't know how to go about wiring the dmx to the Arduino for receiving data.
@GadgetReboot
@GadgetReboot 5 лет назад
I will take a look at it and see if it really is as straightforward as it was to send it out. Since I already know I’m sending out valid control codes for a real DMX light, I can use that code as a test and then see if I can get another Arduino to receive it and turn on some LEDs or something and if so, I’ll do a video to have a complete series covered.
@georgeeden5835
@georgeeden5835 5 лет назад
Gadget Reboot thanks, do you think you will use a MAX458, if so I will get one.
@NoahBuehler
@NoahBuehler 4 года назад
can you do that with Rasperry aswell? and if yes how?
@GadgetReboot
@GadgetReboot 4 года назад
I’m sure there’s projects out there with raspberry pi controlling DMX but I haven’t tried before so I don’t know any right now.
@2788west
@2788west 3 года назад
This is amazing, thanks for the great tutorial. I have a project where I need to use a SAMD-based Arduino, which DmxSimple is not compatible with. Do you know of any good way to drive DMX lights from a SAMD based Arduino?
@GadgetReboot
@GadgetReboot 3 года назад
I haven't tried that platform yet, but I eventually will. I might lean toward ESP32 also. So I'll just be googling for any existing libraries, someone must have done it by now.
@spearsmt
@spearsmt 5 лет назад
I tried with a simple light I have and was unsuccessful. I then tried with a different light and it worked fine. I figured my light was bad, but I could manually set it to a color through its panel and it worked. I decided to test something and moved the light's DMX channel to 1, and it worked fine. I then moved the light to the previous channel of 150, and it will not work. Do you think it could be the generic MAX485 board I bought?
@spearsmt
@spearsmt 5 лет назад
Upon further testing... It is a 6 channel light. 1 is "set to individual color control when value is 255". 2 is red. If I set the light's first channel to 147, then send 147c 255v and 148c 255v, I get red. If I set the light's first channel to 148, then send 148c 255v and 149c 255v, I get nothing. Combinations below 147 for the first channel seem to work and above do not seem to work.
@GadgetReboot
@GadgetReboot 5 лет назад
I don't think it would be the MAX485 because being just a communication hardware interface, if it works in a certain channel range it should communicate fine no matter what is transmitted. Did you get the other light working at those higher channels? Trying to figure out if the Arduino sketch and hardware interface at least work, I don't remember if I tested at high channels and right now it's all disassembled so I can't quickly test it. I don't suppose that light for some reason doesn't work above certain channels, although I can't imagine why...what is the model number? I wonder if anyone else has run into issues similar to this. Also, just for the sake of voodoo when all else fails, I wonder if there's just some weird combination of addresses that exploit a glitch, maybe in the Arduino sketch. Did you try some other random higher channels just to see, maybe something over 200 in case there's an odd behaviour around 148... I'll be hooking up the DMX hardware at some point to continue projects, maybe I can do more testing with my American DJ microwash lights.
@spearsmt
@spearsmt 5 лет назад
@@GadgetReboot Thank you for the reply. So, I wonder if it is just that one light I decided to experiment with. I added the second light to try higher channels, and the first light is working at the higher channels, using the same sketch from yesterday because I plugged the sedan light in without modifying the sketch, as well as the second light. I removed the second light, and the first seems inconsistent. Maybe it just has to do with the resistance on the DMX side. I was only testing with one light, just to make sure it worked. I had ripped everything out of the code except static DmxSimple.write commands in the setup routing. Regardless, your tutorial was well done and easy to follow. Thank you for it.
@GadgetReboot
@GadgetReboot 5 лет назад
I wonder if it has something to do with the termination. I can’t remember if my lights have a built-in 120 ohm termination but I was only using very short wiring so maybe if you have longer cables you might need to make sure it is terminated properly. And I guess that would include if you have two lights joined together, only the one at the far end should be terminated. And presumably the RS-485 board has a termination resistor on it, mine does.
@spearsmt
@spearsmt 5 лет назад
Gadget Reboot I do have a terminator on the out of the last light, but I have never experimented with my usb-to-DMX adapter and just that one light.
@coolberry98
@coolberry98 2 года назад
up to how many channels can this work on?
@GadgetReboot
@GadgetReboot 2 года назад
I think it handles 512 channels but it's been years since I used it
@infernofury5567
@infernofury5567 5 лет назад
Hi! I've got the RS485 breakout board by Sparkfun.. would you maybe be able to tell me how I could connect this up to my arduino? It is for a halloween project DMX/Sound trigger the sound and trigger part I've got figured out, only the DMX through rs485 breakout is the thing I can't get to work...
@GadgetReboot
@GadgetReboot 5 лет назад
Is this the board with SP3485: www.sparkfun.com/products/10124 And what kind of Arduino, 5 V or 3.3 V I/O? I see that chip needs to be powered by 3.3 V and it vaguely says interoperable with 5 V logic but I didn’t see anything in the chip data sheet that clearly guaranteed it can be powered at 3.3 V and hook up to 5V I/O. Aside from that, the A and B terminals would be the same as the A and B terminals in my RS 485 breakout board schematic, RX-I is the same as DI on my board, TX-O is the same as RO on my board. The grounds will go to the same place I have them but VCC would be 3.3 V and if the data sheet can be trusted, it says it should still work at 5 V logic levels otherwise if it’s 3.3 V logic it should obviously work.
@infernofury5567
@infernofury5567 5 лет назад
@@GadgetReboot thanks for the reply! It's the board from the link indeed! I own a few Uno's and a few nano clones, the clones say they have 3.3v and 5v, so that should work. I'm gonna see if it works out with yout instructions!
@DrexProjects
@DrexProjects 5 лет назад
I have a tinkerkit DMX on an Arduino hat. I never tried it. I bet I can't even find it in my mess of stuff.
@pileofstuff
@pileofstuff 5 лет назад
If it doesn't turn up, you can always pop by Princess Auto and grab another one. (you know you want to go there anyway...) www.princessauto.com/en/detail/dmx-master-shield/A-p8641656e
@juri14111996
@juri14111996 4 года назад
prefessional fixtures mostly use 5pin xlr.
@PantherJagger
@PantherJagger 4 года назад
Is there a way to trigger this with the beat of a bass drum?
@GadgetReboot
@GadgetReboot 4 года назад
there’s always a way depending what signals are available. If there’s an actual trigger signal indicating when the other sound is playing, that can be used as an input to Arduino to do some thing. Otherwise if it’s just raw audio then a filter can be used to detect a certain frequency and use that to trigger.
@PantherJagger
@PantherJagger 4 года назад
@@GadgetReboot So do think I can use a Mic to XLR to "What" and get the Arduino to sense the beat and trigger the DMX lights, just like what would be done at a concert?
@GadgetReboot
@GadgetReboot 4 года назад
A circuit like a color organ would take the sound and be able to trigger when certain frequencies are detected and then that could trigger the input of an Arduino and the code would have to then generate whatever DMX is required to turn on whatever lights in a certain color for a certain amount of time once triggered. Basically it sounds like an interesting project idea that I might consider doing.
@PantherJagger
@PantherJagger 4 года назад
@@GadgetReboot Yes please....I have the DMX controller, just need the Arduino to trigger the scene changes
@GadgetReboot
@GadgetReboot 4 года назад
is the controller also an Arduino or is it some sort of commercial product? I’ve never used a commercial controller so I don’t know if they have options for an external interface to do things like trigger scenes but if the Arduino itself is also the controller, then it’s easy.
@aldosuarez9251
@aldosuarez9251 4 года назад
how many universes do you have? 
@GadgetReboot
@GadgetReboot 4 года назад
I was just using one to see if I could even get anything working
@DaNy3LaMy
@DaNy3LaMy 4 года назад
it works for ableton live?
@GadgetReboot
@GadgetReboot 4 года назад
I’ve never used that but doing a brief search I assume Ableton is a controller and this project is also a controller so it sounds like it’s a choice between one or the other to control a fixture.
@DaNy3LaMy
@DaNy3LaMy 4 года назад
@@GadgetReboot ty to answer me, love your work this is want i want to do ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vY5GYNAInrI.html Im trying with an audio interface to convert midi to dmx but it doesnt work help me please T_T
@shailendrasoni5214
@shailendrasoni5214 4 года назад
Hi, I really love your way to explain the project. I have used your method with Ltech DMX decoder and now I am able to control upto 512 DMX channels with Arduino UNO board. It will be a great help if you explain, how to control more than 512 DMX channels...
@lassmicharztichbindurch5319
@lassmicharztichbindurch5319 3 года назад
Can you do the same with raspberry pi and maybe with python? :D
@Krisss011.
@Krisss011. Год назад
Code
@Krisss011.
@Krisss011. Год назад
Link codeee
@mathiasensimon
@mathiasensimon 2 месяца назад
Its in the description
@Rottwiler44
@Rottwiler44 5 лет назад
true dmx 512 does NOT use a three-pin XLR, it uses a five-pin XLR
Далее
Lacave Insight - DMX protocol deconstructed
12:51
Просмотров 7 тыс.
Frank Now VS Then Edit 🥵| #brawlstars #shorts
00:18
Building a MIDI Controller Using Arduino
15:41
Просмотров 626 тыс.
DMX Control for Robot Animatronics?
13:50
Просмотров 63 тыс.
This diy DMX Light Rig will Change Your Live Shows
12:51
Control DMX Lights with Arduino
10:56
Просмотров 23 тыс.
How to Build Your Own Modular DMX Lighting Rig
33:39
Просмотров 64 тыс.
DMX Lighting Control with Arduino and Node-RED
39:09
Просмотров 34 тыс.