=== Etape 1 : Système de réception infrarouge === On utilise un arduino uno et un récepteur infrarouge. * VCC -> VCC * GND -> GND * OUT -> PIN11 #include int broche_reception = 11; // broche 11 utilisée IRrecv reception_ir(broche_reception); // crée une instance decode_results decode_ir; // stockage données reçues void setup() { Serial.begin(9600); reception_ir.enableIRIn(); // démarre la réception Serial.println("Init"); } void loop() { if (reception_ir.decode(&decode_ir)) { //Serial.println(decode_ir.value, HEX); if (decode_ir.value==0xFF6897) { Serial.println("Touche !"); } reception_ir.resume(); // reçoit le prochain code } } Ce code a besoin de la librairie [[https://github.com/shirriff/Arduino-IRremote|IRremote]]. Les tests sont réalisés avec la télécommande infrarouge en appuyant sur la touche 0.