-->
Page 3 of 4

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Thu Jun 25, 2015 3:35 pm
by probono
PaulDG, would you be willing to upload your code to GitHub? Thanks!

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Fri Jun 26, 2015 10:14 am
by juanpintom
Im really interested on this, I found various topics on this forum, I make some tests soon as possible.
Someone has acomplished this ?

Regards

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Tue Jul 21, 2015 10:18 am
by TBR
I'm looking for a simple IR receiver. He is to receive only IR signals and then call a URL. I have ESP8266-01 and TSOP34838. Thank you.

Re: IR receiver with ESP8266 Arduino IDE

PostPosted: Wed Jan 06, 2016 2:08 am
by reddatto
PaulDG wrote:I managed to get the transmitter working from his examples but the receiver was more difficult, I had to ditch his timing loop and go with a simple timer in the main loop. I ended up sampling at 41 micro seconds.
Code: Select allvoid loop() {
  if ( micros() - PointA > 41 ) {
    irrecv.pgti();
    PointA = micros();
  }
 
  if (irrecv.decode(&results)) {
    Serial.println(results.value);
    delay(800); // Stops Key Bounce
    irrecv.resume(); // Receive the next value
  }

PaulDG


Thanks PaulDG for the inspiration. I had written my own bit-bang NEC code for transmit months ago and works fine but was having no joy with receiver. Once I took your approach of ditching the hardware timer it only took a couple of hours to get it working.