Closed lpaolini closed 3 years ago
Is the feedback LED flickering when IR signal is present? Do you have a photo of your circuit?
No it's not flickering.
I'm attaching a screenshot of the EAGLE schematics, if this is what you mean. The IR sensor is connected to SV2 (1=signal, 2=+3.3v, 5=GND), while power is connected to SV1.
Thanks. It looks good so far. Are you sure the IR signal is delivered at pin 22. Check the pin with static HIGH and LOW level and watch the feedback led, it should change according to the static input signal.
Forgot to mention the same code runs perfectly well on Arduino Nano.
Yes, I'm sure it's delivered to pin 22 (tried also 2 and 3). Tested with logic analyzer. Nope, if I manually ground pin 22 the feedback led doesn't flicker.
OK, now we have two possible reasons.
Thanks. BTW, you should own a Teensy 4, it's awesome! :)
Please just let me know if there's any test I can do for you to find out the issue. Thanks.
Hi, it takes longer than expected and I am very busy, so it may last until monday. Sorry.
No problem. Awesome library and great support, I can wait. Thanks.
I uploaded a version with teensyduino support. Default receive pin is 3, I hope thats OK. Can you check, if it is working? Thanks!
YES!! It works! Thank you so much for fixing it.
By the way, I've tested it on pin 22 only. Please let me know if you need more tests.
You would do me a big favor if you could test it on pin 3 too, since this is the default for the library. I do not know if every Teensy board has pin 22, but I assume they all have pin3 😀
Sure! I confirm it's working good on default pin 3. Good job!
Thanks!
Bug Report
Arduino Platform
IDE
IR-Protocol
Example to reproduce the issue
Pin(s) used for IR-receive, if not default
22 (tried also 2 and 3)
Version
Current behavior
START src/main.cpp from Oct 7 2020 Using library version 3.3.2 Ready to receive IR signals of protocols: SIRCS, NEC, SAMSUNG, MATSUSH, KASEIKYO, RC5, DENON, RC6, SAMSG32, APPLE, GRUNDIG, NOKIA, SIEMENS, JVC, RC6A, IR60, NEC16, NEC42, ONKYO, at pin 22
No IR code is detected.
Expected behavior
Should detect IR codes.
Error output
No error.
Additional context
Using Teensy 4.0 (Cortex-M7)