Bryan
Posts: 2
Joined: Fri Feb 14, 2014 5:45 am

Control Hunter ceiling fan using RF Transmitter

Fri Feb 14, 2014 6:12 am

I am trying to use my pi as an alarm clock, I would like it to wake me up by switching my ceiling fan light on (I have some really bright LED lights on it which Should wake me up :lol: ). What I have done so far is disassembled a TX module from a working RF remote for the fan. The TX module has the usual three pins VCC, Data, and Ground. I hooked up the remote to my mic and used Audacity to record the key presses to have an idea of the signal before it hits the TX module. I believe I have digital signal for each button press. I also found some documentation for these remotes on the FCC website (https://apps.fcc.gov/eas/GetApplication ... ?id=142347) Using the signal I recorded in audacity and the data on the FCC website I believe the decoded the lights on keypress to be 011111110000. Now how do I build that signal using the RPis GPIO so that I can replay it from the RPi? The signal has to have certain specs (a 0 is .21ms low and .42 high and a 1 is the opposite).

light on 011111110000
fan 0 011111111001
fan 1 011111110001
fan 2 011110000000
fan 3 011111110100

I know the basics of using the GPIO using python, setting/checking a pin high/low, but I don't know how to proceed.

Documentation for the Hunter remote (See Operation Diagram and Schematics):
https://apps.fcc.gov/oetcf/eas/reports/ ... id=IN2TX13

I have the recorded key presses as .wavs also if that helps
Any and all help will be greatly appreciated! And I will do my best to document it all so that it may serve others in the future :)

Bryan
Posts: 2
Joined: Fri Feb 14, 2014 5:45 am

Re: Control Hunter ceiling fan using RF Transmitter

Mon Feb 17, 2014 5:13 am

Well some updates.. I have been googling and I found several other DIYs dealing with RF TX/RX and LIRC. I also found a controller config file for a hampton bay rc ceiling fan (similar to mine, but different freq) Anyways now I will work on setting up LIRC on the pi and experimenting with the config to tweak it for a Hunter fan. If anyone has some experience with this any help is welcome.

RF remote on the pi
http://randomtutor.blogspot.com/2013/01 ... ry-pi.html

LIRC config for hampton bay
http://lirc.sourceforge.net/remotes/hampton_bay/UC7078T

TJCooper
Posts: 1
Joined: Wed Apr 16, 2014 8:43 pm

Re: Control Hunter ceiling fan using RF Transmitter

Wed Apr 16, 2014 8:46 pm

I'm interested in this as well. I would love to control my fans with my phone.

jalancaster
Posts: 1
Joined: Tue Aug 12, 2014 12:43 pm

Re: Control Hunter ceiling fan using RF Transmitter

Tue Aug 12, 2014 12:50 pm

Did you get this going?

I have tried the same thing, with a slightly different Hunter remote model.

I have found that the pulses needed to send via RF cant be done quickly enough using RPIO's PWM.

src
Posts: 1
Joined: Sat Sep 09, 2017 12:37 am

Re: Control Hunter ceiling fan using RF Transmitter

Sat Sep 09, 2017 12:48 am

Another approach is to have the RP virtualize a keypress on the remote by using a 4066 IC (or even relays) connected to the keypad circuit. In many remotes the keypad is a crosspoint switch which minimizes the number of switches required. This greatly simplifies the timing and any protocol requirements of the raw data stream.

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: Control Hunter ceiling fan using RF Transmitter

Sat Sep 09, 2017 11:00 am

top get that sort of perfect timing out of the RPi's GPIO pins you will need to look at pigpio library it is well and truly capable of waht you need. The Author of the library is on this forum and helps users a regularly.

Return to “Automation, sensing and robotics”