Pour répondre à ton message, j’utilise les télécommandes suivantes :
- Télécommande N°1
- Télécommande N°2
- Emetteur & Recepteur 433mhz
Ci-dessous les infos reçu pour la télécommande N°1 via l'exemple de la bibliothèque RC-SWITCH
Decimal: 5592512 (24Bit) Binary: 010101010101010111000000 Tri-State: FFFFFFFF1000 PulseLength: 222 microseconds Protocol: 1
20:35:56.138 -> Raw data: 6908,308,592,736,164,272,632,700,200,236,668,680,216,220,684,668,224,212,688,660,232,204,692,660,232,204,696,656,236,200,700,656,236,652,244,648,244,192,708,192,696,200,692,204,684,216,680,216,672,
Ci-dessous les code utilisé pour l'envoie vers la télécommande N°1 et N°2.
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
// Optional set protocol (default is 1, will work for most outlets)
mySwitch.setProtocol(1);
// Optional set pulse length.
mySwitch.setPulseLength(220);
// Optional set number of transmission repetitions.
//mySwitch.setRepeatTransmit(10);
}
void loop() {
/* Same switch as above, but using decimal code */
mySwitch.send(1111111, 24);
delay(500);
}
Pour rappel les télécommande N°1 et 2 se clone sans problème entre elles