I have ( with a load of help from Crossroads and his fencing timer ) got my wireless shotclock timer transmitter working.
But my data is different to what he has, and I am stuck on how to package the data and send it.
I have a timer, counting down from 60 seconds max, and a "pause" signal, which is sent to 2 remote displays, each with a 2 digit LED display.
The timer side is working fine , the time left "T" is an integer, and the pause, and on/off signals are either 1 or 0.
I also have a 4 bit address set from dip switches from binary switches
add3 = digitalRead(SW3);
// shift it left 3 places
add3 = add3 << 3;
add2 = digitalRead(SW2);
// shift it left 2 places
add2 = add2 << 2;
add1 = digitalRead(SW1);
// shift it left 1 place
add1 = add1 << 1;
add0 = digitalRead(SW0);
// now OR it together
address = address|add3;
address = address|add2;
address = address|add1;
address = address|add0;
Serial.println("my address is: ");
When the "preset seconds " on the remote is pressed, (or when the pause button is pressed ) I want to send the time in seconds "T", and send "pause" as high .
The slave units must then update their countdown to the master one, and pause.
When the "run" button is pressed I want to send the master time in seconds "T", and send "pause" as low .
The slaves will again be reset to the master and carry on the countdown.
I am not sure how the msg and msg  are working,
Can anyone guide me how to send my 6 bits of time "T", my "pause" bit, my 4 bit binary address . and another bit for "on"
I am struggling to see how to make them into a message, that I can separate at the receiver end, which is my next task, at the moment I am just looking at the data from the receiver, I need to know how to set up the VW message receiving .