I could check it.
I also have some interesting progress.
I found some code. Got inspired and did this.
int forwardPin = 12;
void setup()
{
Serial.begin(9600);
pinMode(forwardPin, INPUT);
digitalWrite(forwardPin, HIGH); // Turn on the pullup resistor.
}
void loop()
{
int forwardState = digitalRead(forwardPin);
if (forwardState == HIGH)
{
Serial.print("1");
}
else
{
Serial.print("0");
}
}
When I run this I get a nice stream of 1s. No random variations. When I connect pin 12 to the signal pin, they change to 0s. Then when I press the button for light on, I get this.
000000011010000000001101101000000001101000000000001101000000001100110100000000110100000000000110100000000110110110000000011010000000000011010000000011011010000000001101000000
However, if I go run that in the binary RCSDemo. Nothing happens.
/*
Example for different sending methods
http://code.google.com/p/rc-switch/
Need help? http://forum.ardumote.com
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
// Optional set pulse length.
// mySwitch.setPulseLength(320);
// Optional set protocol (default is 1, will work for most outlets)
// mySwitch.setProtocol(2);
// Optional set number of transmission repetitions.
// mySwitch.setRepeatTransmit(15);
}
void loop() {
/* Same switch as above, but using binary code */
mySwitch.send("000000011010000000001101101000000001101000000000001101000000001100110100000000110100000000000110100000000110110110000000011010000000000011010000000011011010000000001101000000");
delay(1000);
delay(20000);
}