Members | Sign In
All Forums > Development
avatar

DMX for Dummies

posted Feb 04, 2013 06:26:14 by 5th_Wall_Gaming
I have a flashing light that I'd like to have for red alert. It's got a switch on it and plugs into the wall. Is there any way I can set it up with DMX to apply power to it when red alert sounds?

I don't necessarily want to get extra lights. All I'd like it to do is turn on the power to the plug when it's activated. Is there any way to do this?

If so, can you tell me exactly how from a "DMX for Dummies" way?

If not, Thom, can you add this to the code for the next version?
http://www.5thWallGaming.com
We make dreams reality
page   1
10 replies
avatar
onwijzebackup said Feb 04, 2013 09:42:26
If you don't have a DMX-Controller, you can use an Arduino that has a 232-based ftdi-chip (I use a DM-Nove). You can then set one of the RGB values for the red alert in DMXcommands.xml to power a digital port. If your lamp is 5V you can connect it directly to the Arduino's port, otherwise you will have to use a MOSFET-transistor. Note that the red-alert event only happens when turning on red-alert, I think you have to use the "shields up" and/or the "normal_condition" event for turning it off again (Trying this tonight, will update).

avatar
MarkBell said Feb 04, 2013 15:56:02
If this is literally all you want to do, the artemis.ini file actually provides an option for this (not DMX).

; -------------------------------------------------------------------------------------
; SERVER_SIDE SETTINGS (the following settings don't mean anything to the clients)
; -------------------------------------------------------------------------------------


; SETTING: lightingIPAddress
; USE: when set, this address will be used to send on/off commands to a very specific device (http://www.pimfg.com/Product-Detail/ETPW-322B)
; ACCEPTABLE: any valid IPaddress or URL; just like what you type to connect to the server
lightingIPAddress=192.168.1.100

You just connect this outlet to the network you are running Artemis on, plug in the light to the socket, and set the ip address in the artemis.ini to match. Then, when you hit Red Alert, Artemis tells the device to be on, and off again when you come out of Red Alert. This was implemented before DMX, but it should still work.
[Last edited Feb 04, 2013 16:07:15]
avatar
5th_Wall_Gaming said Feb 04, 2013 16:12:11
; -------------------------------------------------------------------------------------
; SERVER_SIDE SETTINGS (the following settings don't mean anything to the clients)
; -------------------------------------------------------------------------------------


; SETTING: lightingIPAddress
; USE: when set, this address will be used to send on/off commands to a very specific device (http://www.pimfg.com/Product-Detail/ETPW-322B)
; ACCEPTABLE: any valid IPaddress or URL; just like what you type to connect to the server
lightingIPAddress=192.168.1.100

You just connect this outlet to the network you are running Artemis on, plug in the light to the socket, and set the ip address in the artemis.ini to match. Then, when you hit Red Alert, Artemis tells the device to be on, and off again when you come out of Red Alert. This was implemented before DMX, but it should still work.


SOLD! Thank you! :)

Do you happen to know if I can trigger one or the other by themselves (perhaps if I want a blue light for docking (that I can manually turn on from the GM screen) and red alert?
http://www.5thWallGaming.com
We make dreams reality
avatar
MarkBell said Feb 04, 2013 16:19:27
AFAIK, it only does red alert, as this was just before Thom got turned on to DMX. If you want to start getting fancy, you're looking at DMX :)

[techie_stuff]
The trick with most DMX controllers is that DMX uses the RS-485 communication protocol for communications, which is a 15V DC communication bus. Most controllers then command 12-24 VDC lines for individual LED strands and such, not an AC power relay.
[/techie_stuff]

I'm sure there is a 12V DV relay controller AC outlet box you could make/buy and use DMX to control that (since that's basically what that does, just with network commands). If all you want is a "thing to turn on when you hit red alert," that's precisely what you'll get with the pimfg box.
[Last edited Feb 04, 2013 16:20:17]
avatar
5th_Wall_Gaming said Feb 04, 2013 16:21:51
Coolcool.

But that wasn't my question.. :)

I got (let's say) 2 lights now. I plug them both into it and someone hits red alert. Can I make only the red one come on or will both come on?

Either way, I just ordered one. Thanks. :)
http://www.5thWallGaming.com
We make dreams reality
avatar
MarkBell said Feb 04, 2013 16:34:53
Honestly, I'm not sure. I know Thom has one and used it for a while, but I don't know how/which packets are sent and what they do with the box.
[Last edited Feb 04, 2013 16:36:41]
avatar
Mike_Substelny said Feb 05, 2013 14:54:05
Thom and I experimented with that box on my bridge. To set it up you must give that box an ethernet connection to your network and tell the Artemis.ini file the address it is assigned.

As I recall the box has two outlets. The Artemis software sends power to one outlet when Red Alert is on and to the other when Red Alert is off. It worked, but unfortunately its functionality was network dependent. On some networks it was reliable but on others it was not reliable.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
5th_Wall_Gaming said Feb 15, 2013 06:16:20
I've tried to plug it into the router, forwarded port 80 to it and then change listenip to the IP address. Red alert still does nothing.

I'm heading to a convention tomorrow morning with it. Can anyone give some tips that might help?
http://www.5thWallGaming.com
We make dreams reality
avatar
MichaelMesich said Feb 19, 2013 03:53:24
Did you get it worked out? I don't know anything about this unit, but from a brief look at it, you shouldn't have to be forwarding anything to it or listening, it looks like it just needs to have an IP address in the local network with that address input into the ARTEMIS.INI file.

I think you're looking at instructions for how to use this from the internet somewhere to remotely turn things on and off.
avatar
5th_Wall_Gaming said Feb 19, 2013 06:22:53
Yeah. I know. I tried that. It didn't work (then got desperate and tried the port forwarding and such).

Simply putting it into the artemis.ini file doesn't work.
http://www.5thWallGaming.com
We make dreams reality
Login below to reply: