1

I am trying to control a receiver, wich is not working. I believe i have to send the code at least three times... but after the first time the IR Led stays off. I am using the Arduino Nano with the LED connected to pin 13. The "Send" message keep printing.

My code:

#include <IRremote.h>

IRsend irsend;

void setup() { Serial.begin(9600); }

const static unsigned int raw[68] = {8950,4450,550,550,600,550,600,500,600,550,550,550,600,500,600,550,600,500,600,1600,600,1600,600,1650,550,1650,550,550,600,1600,600,1600,600,1650,550,550,600,1600,600,1600,600,550,550,550,600,500,600,550,550,550,600,1600,600,550,550,550,600,1600,600,1600,600,1600,600,1600,600,1650,550};

void loop() {
Serial.println("Send"); for (int i=0; i<3; i++) { irsend.sendRaw(raw,68,38); delay(40); } delay(5000); }

  • Works only again once when resetting the Arduino

0 Answers0