• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

315vmhz remote

Q&A Forum › Category: Home Automation › 315vmhz remote
0 Vote Up Vote Down
gary duggins asked 3 years ago

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.

4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
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.
Regards,
Sara

0 Vote Up Vote Down
gary duggins answered 3 years ago

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
Thanks

0 Vote Up Vote Down
gary duggins answered 3 years ago

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?

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
 
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.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.