have a problem I can’t solve, I purchased some remote control fans made by “Zhongshan Hefeng Electronics Co., Ltd.”, the remote has a “FCC ID 2AWB7-RT36A” which indicates it is 315mhz. I use a esp8366 connect to a 315mhz receiver running “ReceiveDemo2_Advanced” and got the following code to turn the fan light on:
Decimal: 12858395 (24Bit) Binary: 110001000011010000011011 Tri-State: not applicable PulseLength: 523 microseconds Protocol: 6
Raw data: 12048,397,739,384,746,385,369,760,374,758,370,758,750,380,374,757,374,757,371,757,376,756,748,381,749,382,371,758,750,379,376,756,375,755,372,757,376,755,373,755,753,378,752,377,378,754,750,380,752,”
I programmed a second esp8266 with codesend and a MQTT interface with the Decimal code, pulse length and protocol, I also tried replacing the Decimal code with the binary code.
The following code is what was actually recorded on the first esp8266 and transmitted by the second esp8266.
Decimal: 12858395 (24Bit) Binary: 110001000011010000011011 Tri-State: not applicable PulseLength: 524 microseconds Protocol: 6
Raw data: 12052,506,1069,506,1070,504,546,1027,547,1027,547,1027,1071,504,547,1027,547,1027,547,1026,548,1026,1071,504,1071,503,549,1025,1071,503,548,1026,548,1026,549,1025,550,1024,550,1024,1072,502,1072,502,550,1024,1073,503,1071,
The remote activates the fan but the esp8266 does not.
Have you checked that the ESP is sending the same information that the remote?
Did you set up a receiver board that receives both the remote and the other ESP signals? So that you can check they are sending the same data.
I set up esp8266 ( #1) connected to a receiver and a second esp8266 (#2) connected to a transmitter. The first set of data starting with “Decimal: 12858395 (24Bit) Binary:” was the output I got on esp8266(#1) when I pressed the provided fan remote which turned the fan light on. The second set of data starting with “Decimal: 12858395 (24Bit) Binary:” was the output received by esp8266(#1) and transmitted by esp 8266(#2), it did not turn the light on.
I will however rerun the test tonight
I ran the test again tonight with a different code which turns the fan on and off and got the same results, it works with the remote but does not work using the esp38266 codesend program with what appears to be the same code. If I understand rolling codes, with a rolling code the code should change between each use, this appears to be the same code at least with 3 tries, does anyone have any ideas on what I should try?
I’m not sure what might be causing the issue.
I found a similar issue on the Arduino forum and I hope it helps you figure out what might be wrong: https://forum.arduino.cc/t/315-mhz-rf-transmitting-correct-code-but-power-outlet-wont-switch-on/205825/13
Let me know if you have any luck.