Hi everyone, I'm doing a project where I need to output DMX signal to control some lights. I can't for the life of me work out how this DMX Shield works - nor can I find any documentation online! I need it to be used in Master mode and simply output a value from 0 - 255 on DMX channel 1. Am I meant to hand wire some of the pins to an XLR cable or can I use the included XLR connector? If so, how do I program that?
The position of my jumper cables on the DMX Shield are:
NOT ENABLED (when uploading), then ENABLED when running
DE
TX-uart
RX-uart
Attached is a photo of the DMX Shield itself (it has the code CTC-DRA-10-R2 on it), it's on top of an Induino Uno Rev3 (which has been working perfectly for every other task).
Note: Ignore the other jumper cables... they're just running to some sensors to collect data (which will then be used to control the DMX)
Here's some sample code I was trying to run from the Conceptinetics DMX Library example. This code doesn't do anything and there seems to be no DMX output from the XLR connector.
/*
DMX_Master.ino - Example code for using the Conceptinetics DMX library
Copyright (c) 2013 W.A. van der Meeren <danny@illogic.nl>. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <Conceptinetics.h>
//
// CTC-DRA-13-1 ISOLATED DMX-RDM SHIELD JUMPER INSTRUCTIONS
//
// If you are using the above mentioned shield you should
// place the RXEN jumper towards pin number 2, this allows the
// master controller to put to iso shield into transmit
// (DMX Master) mode
//
//
// The !EN Jumper should be either placed in the G (GROUND)
// position to enable the shield circuitry
// OR
// if one of the pins is selected the selected pin should be
// set to OUTPUT mode and set to LOGIC LOW in order for the
// shield to work
//
//
// The master will control 100 Channels (1-100)
//
// depending on the ammount of memory you have free you can choose
// to enlarge or schrink the ammount of channels (minimum is 1)
//
#define DMX_MASTER_CHANNELS 100
//
// Pin number to change read or write mode on the shield
//
#define RXEN_PIN 2
// Configure a DMX master controller, the master controller
// will use the RXEN_PIN to control its write operation
// on the bus
DMX_Master dmx_master ( DMX_MASTER_CHANNELS, RXEN_PIN );
// the setup routine runs once when you press reset:
void setup() {
// Enable DMX master interface and start transmitting
dmx_master.enable ();
// Set channel 1 - 50 @ 50%
dmx_master.setChannelRange ( 1, 25, 127 );
}
// the loop routine runs over and over again forever:
void loop()
{
static int dimmer_val;
// Keep fading channel 1 in from 0 to 100%
dmx_master.setChannelValue ( 1, dimmer_val++ );
delay ( 100 );
}
In short, how can I get DMX to be output from this connector? Or, in fact, from this DMX shield at all?
Thank you very much in advance!