Difference between revisions of "Using the DMX Dimmer Pack"
(11 intermediate revisions by one other user not shown) | |||
Line 14: | Line 14: | ||
− | == HOW TO CONTROL THE DIMMER WITH AN ARDUINO | + | == HOW TO CONTROL THE DIMMER WITH AN ARDUINO== |
This setup is ideal if you want a simple standalone installation without a computer | This setup is ideal if you want a simple standalone installation without a computer | ||
Line 26: | Line 26: | ||
http://playground.arduino.cc/Learning/DMX | http://playground.arduino.cc/Learning/DMX | ||
+ | ==CONTROL VIA COMPUTER METHOD 1. ARTNET== | ||
+ | Arnet is a protocol which allows you to send DMX signals over a network cable. The interaction station has an EZ KLING Artnet device which will allow you to connect to DMX devices using a network cable. | ||
− | + | The EZ-KLING device has the following network settings:<br/> | |
− | + | IP: 10.85.37.24<br/> | |
− | + | Subnet Mask: 255.0.0.0<br/> | |
− | |||
− | |||
− | |||
− | The EZ-KLING device has the following network settings: | ||
− | IP: 10.85.37.24 | ||
− | Subnet Mask: 255.0.0.0 | ||
Your Ethernet port needs to be in the same IP range as the EZ-KLING. I use an external Ethernet adapter, set manually to IP address 10.85.37.55, and Subnet Mask 255.0.0.0. | Your Ethernet port needs to be in the same IP range as the EZ-KLING. I use an external Ethernet adapter, set manually to IP address 10.85.37.55, and Subnet Mask 255.0.0.0. | ||
Line 44: | Line 40: | ||
'''Things you’ll need:''' | '''Things you’ll need:''' | ||
− | 1. ELATION EZ-KLING ARTNET to DMX | + | 1. ELATION EZ-KLING ARTNET to DMX<br/> |
− | This device connects to your computer over an ethernet connection. | + | This device connects to your computer over an ethernet connection.<br/> |
− | 2. THUNDERBOLT to ETHERNET adapter | + | 2. THUNDERBOLT to ETHERNET adapter<br/> |
− | Use this adapter so that you have an extra port on a Macintosh computer, so that you can connect the ARTNET device while still staying connected to the school network. You’ll need to configure the adapter in System Preferences/Network. | + | Use this adapter so that you have an extra port on a Macintosh computer, so that you can connect the ARTNET device while still staying connected to the school network. You’ll need to configure the adapter in System Preferences/Network. <br/> |
− | 3. ETHERNET AND DMX CABLES | + | 3. ETHERNET AND DMX CABLES<br/> |
'''Connecting it all together:''' | '''Connecting it all together:''' | ||
Line 69: | Line 65: | ||
'''OPENFRAMEWORKS'''<br/> | '''OPENFRAMEWORKS'''<br/> | ||
− | (you might need to disable wifi first to make the connection work) | + | (you might need to disable wifi first to make the connection work) <br/> |
https://github.com/hiroyuki/ofxArtnet | https://github.com/hiroyuki/ofxArtnet | ||
− | == | + | ==CONTROL VIA COMPUTER METHOD 2. VIA USB== |
A slightly simpler connection | A slightly simpler connection | ||
− | Things you’ll need: | + | '''Things you’ll need:'''<br/> |
− | 1. Enttec DMX USB Pro | + | 1. Enttec DMX USB Pro<br/> |
− | 2. USB and DMX cables | + | 2. USB and DMX cables<br/> |
'''Drivers:''' <br/> | '''Drivers:''' <br/> | ||
Line 89: | Line 85: | ||
*NB. The Enttec device uses DMX 5 pin and the Dimmer Pack uses DMX 3 pin, make sure you have the right cables. You can get adapters from 3 pin to 5 pin at the rental. | *NB. The Enttec device uses DMX 5 pin and the Dimmer Pack uses DMX 3 pin, make sure you have the right cables. You can get adapters from 3 pin to 5 pin at the rental. | ||
− | Code it yourself: | + | ===Code it yourself:=== |
'''PROCESSING'''<br/> | '''PROCESSING'''<br/> | ||
− | |||
− | |||
http://motscousus.com/stuff/2011-01_dmxP512/ | http://motscousus.com/stuff/2011-01_dmxP512/ | ||
− | + | Their example code example is a little stupid, use this isntead to test, mouse x will control CH1, mouse y will control CH2. | |
—code-- | —code-- | ||
dmxOutput.set(1, (int)map(mouseX, 0, width , 0, 255)); | dmxOutput.set(1, (int)map(mouseX, 0, width , 0, 255)); | ||
dmxOutput.set(2, (int)map(mouseY, 0, height , 0, 255)); | dmxOutput.set(2, (int)map(mouseY, 0, height , 0, 255)); | ||
+ | |||
+ | See also:<br/> | ||
+ | http://dmxp5.sourceforge.net/ //deprecated but still works | ||
Line 108: | Line 105: | ||
http://www.nullmedium.de/dev/dmxusbpro/ | http://www.nullmedium.de/dev/dmxusbpro/ | ||
https://github.com/thomasfredericks/DMX_USB_PRO_MAX | https://github.com/thomasfredericks/DMX_USB_PRO_MAX | ||
+ | |||
+ | [[Category:Electronics]][[Category:Arduino]] |
Latest revision as of 12:42, 21 November 2022
The EUROLITE EDX-4R Is a 4 channel DMX pack which allows you to dim or switch 4 channels of 220V power, using standard euro plugs.
DMX is a protocol that is most commonly used for controlling lights, but other things can be controlled as well, such as fans, smoke machines, moving heads etc. DMX protocol is divided into what is called Universes. A standard DMX universe consists of 512 channels. Most lighting fixtures, DMX LED drivers and so on are addressable. Each channel has an 8 bit resolution, meaning you can control the channels with values from 0-255.
Simply put, you can control the intensity of 4 different lights.
About addresses:
The DMX dimmer pack has one important setting, which is the start address. This will show up on the dimmer display as A001.
The dimmer has four plugs (labelled CH1-CH4) if the start address is set to 1, then CH1 will have an address of 1 and the remaining plugs will have addresses of 2,3 and 4. If the start address is set to 15 then the CH1 will have the address of 15 and the remaining plugs will have addresses of 16, 17 an 18. And so on and so forth. For most setups it’ll be best to have the start address set to 1.
HOW TO CONTROL THE DIMMER WITH AN ARDUINO
This setup is ideal if you want a simple standalone installation without a computer
The Interaction Station has a DMX Shield for the Arduino from tinker.it
The library for the shield can found here: https://github.com/PaulStoffregen/DmxSimple
There’s lots of extra info here: http://playground.arduino.cc/Learning/DMX
CONTROL VIA COMPUTER METHOD 1. ARTNET
Arnet is a protocol which allows you to send DMX signals over a network cable. The interaction station has an EZ KLING Artnet device which will allow you to connect to DMX devices using a network cable.
The EZ-KLING device has the following network settings:
IP: 10.85.37.24
Subnet Mask: 255.0.0.0
Your Ethernet port needs to be in the same IP range as the EZ-KLING. I use an external Ethernet adapter, set manually to IP address 10.85.37.55, and Subnet Mask 255.0.0.0.
For most setups you’ll need to remember both the IP of both your ethernet adapter and the artnet device.
Things you’ll need:
1. ELATION EZ-KLING ARTNET to DMX
This device connects to your computer over an ethernet connection.
2. THUNDERBOLT to ETHERNET adapter
Use this adapter so that you have an extra port on a Macintosh computer, so that you can connect the ARTNET device while still staying connected to the school network. You’ll need to configure the adapter in System Preferences/Network.
3. ETHERNET AND DMX CABLES
Connecting it all together:
Computer -> Thunderbolt to Ethernet Adapter -> Ethernet Cable -> EZ-KLING ARTNET -> DMX cable -> DMX Dimmer Pack
Software:
VEZER
A timeline program that is very easy to use. You can use keyframes on a timeline to control the dimmer. The free version doesn’t allow saving, but it is still very useful for testing purposes. This should be the first thing you try. Works only via ARTNET.
https://imimot.com/vezer/
Code it yourself:
MAX/MSP
https://www.theimpersonalstereo.com/impdmx/
PROCESSING
https://github.com/cansik/artnet4j
OPENFRAMEWORKS
(you might need to disable wifi first to make the connection work)
https://github.com/hiroyuki/ofxArtnet
CONTROL VIA COMPUTER METHOD 2. VIA USB
A slightly simpler connection
Things you’ll need:
1. Enttec DMX USB Pro
2. USB and DMX cables
Drivers:
To use the Enttec DMX USB pro you’ll need these drivers:
http://www.ftdichip.com/Drivers/VCP.htm
Connecting it all together:
Computer -> USB cable -> USB to DMX interface -> DMX Cable -> DMX Dimmer Pack
- NB. The Enttec device uses DMX 5 pin and the Dimmer Pack uses DMX 3 pin, make sure you have the right cables. You can get adapters from 3 pin to 5 pin at the rental.
Code it yourself:
PROCESSING
http://motscousus.com/stuff/2011-01_dmxP512/
Their example code example is a little stupid, use this isntead to test, mouse x will control CH1, mouse y will control CH2. —code--
dmxOutput.set(1, (int)map(mouseX, 0, width , 0, 255)); dmxOutput.set(2, (int)map(mouseY, 0, height , 0, 255));
See also:
http://dmxp5.sourceforge.net/ //deprecated but still works
OPENFRAMEWORKS
https://github.com/kylemcdonald/ofxDmx
MAX/MSP
http://www.nullmedium.de/dev/dmxusbpro/
https://github.com/thomasfredericks/DMX_USB_PRO_MAX