Hola,
I’m a bit lost. I bought one of these remote/receiver pairs: http://yourduino.com/sunshop2/index.php?l=product_detail&p=369 .
I was hoping to use the Spark adapted IRremote to receive the remote signals and trigger some light to turn on BUT after reading the fine print it seems irrecv is sliced out of the library.
Any alternative libraries suggested or thoughts on how to go around that?
Thanks,
David
Take a look at: https://github.com/edalquist/ac_ir_control/blob/master/ac_ir_recorder/ac_ir_recorder.ino which is based on code posted by @AnalysIR
That is for the NEC codes my AC units use. You can take a look at the blog post linked in the comments for more info.
1 Like
Unfotunately, we don’t have a spark core available.
Possibly even more bad news about the IR receiver in that kit you linked…
see:
it does look like the VS1838B, which is the cheapest and worst receiver around. The other clue is that the vendor you linked doesn’t provide a model number or data sheet link!
The code I linked works on my Core, it only required some very minor tweaks if I remember correctly.
I used this receiver diode with it: https://www.sparkfun.com/products/10266
@AnalysIR looks like it is probably the crappy chip yeah. But it doesn’t seem to mean it won’t work. It just might be a bit more noisy.
I am a bit surprised though that there isn’t an IR library ported to the Spark or Photon. I guess not much use for it in the applications.
@edalquist I’ll try the code as soon as I get back home and report back. Hoping it work. Maybe I can add something to reduce noise.