-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IR decoder and esp32 #7
Comments
I haven't tested this library on ESP32 boards, but I belive that some of the pins won't work because, according to the ESP32 documentation: "...only pins that support both input & output have integrated pull-up and pull-down resistors. Input-only GPIOs 34-39 do not..." And this library uses INPUT_PULLUP mode for the IR receiver signal... There's also another issue with the ISR functions: they do not have the recomended attribute for ESP32 systems (IRAM_ATTR or ARDUINO_ISR_ATTR). I'm not sure how much this might affect the funcionality. Try connecting the sensor to a different pin... You can also add #define IRSMALLD_DEBUG_STATE before the #include "IRsmallDecoder.h", to see if the ISR is being called (it should print FSM's state transitions to the serial port). |
So, I've now tested this library on an Arduino Nano ESP32 and was able to make the HelloNEC example work by creating the decoder object in the Method 1: Method 2: Let me know if this works on your ESP32 board. If it does, you should consider adding the recommended attribute ARDUINO_ISR_ATTR in the ISR function, for the protocol you are using. If it's the NEC protocol, then, in the IRsmallD_NEC.h file, change line 51 from If this works with other ESP32 boards, besides the Arduino Nano ESP32, I might consider updating this library with that change. |
Many thanks for puzling this. Ill give it a try when i come around there. Its for a si4703 radio module in case with amplifier, big project. It has been difficult to get around, after uploading new firmware and updating the arduino IDE also. Had to change a lot, and the Irremote.h never got to work for me, after version 2.6.1, so i wanted to try this decoder instead. |
example compiles and run okay, and printing out the "waiting for..:"
No reaction from the remote.
Esp32 30pin, gpio35.
Was working with another library until esp32 firmware got updated. Not much working with this, so downgraded firmware to 2.1 from 3.x
Error after monitor printout: E (130) gpio: ����}���}����}���������failed (0x103)
So it doesn't like the pin its at?
The text was updated successfully, but these errors were encountered: