Replies: 4 comments 11 replies
-
Please post the timing dump of the received protocol, using debug pin of RecevieDemo.ino. |
Beta Was this translation helpful? Give feedback.
-
This may be a long shot, but the esp32-s3 runs at 240 MHz. Is there something that needs to be changed because of this clock frequency? cytan |
Beta Was this translation helpful? Give feedback.
-
ESP clock speed can be selected in the tools menu of the Arduino IDE...you may have selected 40Mhz before |
Beta Was this translation helpful? Give feedback.
-
As promised here's the code using the onboard ESP32-S3 RMT for sending NEC codes (IR_TX.cpp and IR_TX.hpp) https://github.com/cytan299/Ultrasonic_Screwdriver/tree/main/ultrasonic_screwdriver I only did the transmit part because that was what I needed. Hopefully, it'll help with your code for the ESP32. cytan |
Beta Was this translation helpful? Give feedback.
-
HI,
Thanks for writing this library. It's greatly appreciated.
Unfortunately, I'm having problems sending IR codes with the ESP32-s3. (It's probably pilot error).
First I used ReceiveDemo.ino to get the IR code for vol+ for my Vizio TV (note: I used D12 for receive)
Protocol=NEC Address=0x4 Command=0x2 Raw-Data=0xFD02FB04 32 bits LSB first
Send with: IrSender.sendNEC(0x4, 0x2, <numberOfRepeats>);
Then for sending, I did the following in my ESP32 (I disabled receive and used D12 for transmit)
#define DISABLE_CODE_FOR_RECEIVER
#define NO_LED_FEEDBACK_CODE
#define IR_SEND_PIN 12
#include <IRremote.hpp>
void setup(){
...
IrSender.begin(DISABLE_LED_FEEDBACK);
....
}
void doit()
{
...
IrSender.sendNEC(0x4,0x2,3);
...
}
Unfortunately the above code didn't change the volume of my TV. So, I programmed another ESP32 to read the IR with RecevieDemo.ino. I got the following result from the above ESP32:
20:01:18.889 ->
20:01:18.889 -> Protocol=Onkyo Address=0xFBFC Command=0xFDFA Raw-Data=0xFDFAFBFC 32 bits LSB first
20:01:18.889 -> Send with: IrSender.sendOnkyo(0xFBFC, 0xFDFA, );
20:01:18.939 ->
20:01:18.939 -> Protocol=UNKNOWN Hash=0x0 2 bits (incl. gap and start) received
20:01:18.939 -> Received noise or an unknown (or not yet enabled) protocol
20:01:18.939 -> rawData[4]:
20:01:18.939 -> -23400
20:01:18.939 -> +9000,-3000
20:01:18.939 -> + 600
20:01:18.939 -> Sum: 12600
20:01:19.019 ->
20:01:19.019 -> Protocol=UNKNOWN Hash=0x0 2 bits (incl. gap and start) received
20:01:19.052 -> Received noise or an unknown (or not yet enabled) protocol
20:01:19.052 -> rawData[4]:
20:01:19.052 -> -99400
20:01:19.052 -> +9000,-3000
20:01:19.052 -> + 600
20:01:19.052 -> Sum: 12600
20:01:19.151 ->
20:01:19.151 -> Protocol=UNKNOWN Hash=0x0 2 bits (incl. gap and start) received
20:01:19.151 -> Received noise or an unknown (or not yet enabled) protocol
20:01:19.151 -> rawData[4]:
20:01:19.151 -> -99400
20:01:19.151 -> +9000,-3000
20:01:19.151 -> + 600
At first, I thought it looked the address and command bits were not'ed:
0x04 ->0xFC
but
0x02 does not map to 0xFA
so there goes that theory.
Is there some flag I need to throw to get the bits sent out correctly?
Thanks for any help.
cytan
Beta Was this translation helpful? Give feedback.
All reactions