433Mhz problems (rc-switch) on Leonardo

Sorry i didn't answer earlier, I was really busy.

The wiring is as follows at the attachment (the power is set to bath using an Y).

Working receive code:

#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0); // Receiver on inerrupt 0 => that is pin #3
  Serial.print("Boot ok ");
}
void loop() {
  Serial.println("Listen ok ");
  delay(500);
  if (mySwitch.available()) {
    int value = mySwitch.getReceivedValue();
    if (value == 0) {
    Serial.print("Unknown encoding");
  } else {
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );
    mySwitch.resetAvailable();
  }
  }
}

Sample output (transmitted from pi 1 time protol 1 :confused: ):
Listen ok
Received 123 / 24bit Protocol: 5
Listen ok
Received 123 / 24bit Protocol: 5
Listen ok
Received 123 / 24bit Protocol: 5
Listen ok

Non working transmit code:

#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

void setup() {
Serial.begin(9600);
 
  Serial.print("Boot ok ");
  
  mySwitch.enableTransmit(10);

}

void loop() {
  Serial.println("Send ok ");
  delay(500);
  mySwitch.send(1234,24);
}

I see both (arduino and pi) using same library, it seems it must work... but don't :sweat_smile:

Any idea?