LuisMiCa / IRsmallDecoder

A small, fast and reliable infrared signals decoder to control Arduino projects with remotes.
MIT License
13 stars 5 forks source link

Decoder stopped working after a few successful decodes #3

Closed facetorched closed 4 years ago

facetorched commented 4 years ago

On my first try I connected a TSOP58338 IR receiver to my arduino nano 33 BLE uploaded your NEC example script. I used a philips universal remote and miraculously I was getting the correct key codes printing out to the serial window. Then after about 20 button presses it stopped working entirely. No outputs to the serial window except what is in startup. I thought maybe my IR receiver failed but using digitalRead on the same pin (D2) I get square waves as expected but it seems like the code no longer recognizes them as valid data. I tried:

But alas, no data printing out.

I hope you know what is happening here since this library is exactly what I need :)

facetorched commented 4 years ago

Well I feel dumb. Turns out the universal remote has different modes and after 20 button presses I hit one of these modes. The only mode that works is VCR (I guess that uses NEC). On the bright side, writing the above report helped me narrow down things that I could have overlooked.