Greetings all.
I'm having trouble interfacing an arduino board with a National Control Devices/Control Anything ProXR Relay board.
The ProXR looks for serial commands, in DEC format, such as:
(254, 108) //254=command address, 108=activate relay1, bank1
So, I've tried outputting this data in multiple ways, but haven't been able to get the Arduino to activate, or even be recognized by the relay board. I know I've achieved this in the past by using serout on a basic stamp board without issue.
I've been trying the simplest command sets possible, something like:
int ledPin = 13;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print('254', DEC);
Serial.println('108', DEC);
digitalWrite(ledPin, HIGH);
delay(500);
Serial.print('254', DEC);
Serial.println('100', DEC);
digitalWrite(ledPin, LOW);
delay(500);
}
I've tried this with variations, such as:
Serial.print(254, DEC);
Serial.println(108, DEC);
Or no println, just prints, etc. Or with quotations. Or without DEC.
Nothing works. The baud rate is correct, and the relay board functions from it's PC control software without issue.
It has a log which shows each command set being entered on a separate lines, but in the manual, it details the commands codes such as this:
(254, 108)
(etc...)
If anyone has any thoughts, please let me know! I'm perplexed!
Thanks,
Jason