I am mostly new at electronics. The project which I want to create is a RF control for an overhead ceiling fan. The fan comes with a RF remote control. On the controler are several functions: temp select, time delay, light on/off, light dim, fan speed change/off.
The only things I want for this controller are : Light on/off, Fan speed change/off, and 3 status LEDs for the fan speed : low, med, high, off.
I think I only need 7 I/O pins. inputs will be two buttons; lights and fans. outputs will be : RF signal for light, RF signal for Fan, and LED 1, 2 and 3.
I think I need to use a micro-controller that can take at least 7 I/O pins and i can program with a counter to control the LEDS.
the logic I am thinking is:
- Light button is pushed, energize light on/off command on the RF side of circuit
The light is on
- -Light button is pushed, energize light on/off command on the RF side of circuit
The light is off
- Fan button is pushed, increase variable to 1. send change speed on RF side of circuit
The fan is on low speed.
-fan button is pushed, increase variable to 2. send change speed on RF side of circuit
The fan is on med speed
- The fan button is pushed, increase variable to 3. send change speed on RF side of circuit
the fan is on high speed
-The fan button is pushed, increase variable to 4. If variable is is > 3 set to 0. send change m speed on RF side of circuit
The Fan is off
If variable is = 1. energize LED 1
If variable is =2. energize LED 2
if variable is = 3 Energize LED 3
If variable is =0 de-energize all LEDs.
I am hoping this is making sense. Where I am getting lost is with the RF side of things. How to learn the commands from the OEM remote and duplicate them on the circuit board. If someone could point me in the right direction i would be much appreciative.
The only things I want for this controller are : Light on/off, Fan speed change/off, and 3 status LEDs for the fan speed : low, med, high, off.
I think I only need 7 I/O pins. inputs will be two buttons; lights and fans. outputs will be : RF signal for light, RF signal for Fan, and LED 1, 2 and 3.
I think I need to use a micro-controller that can take at least 7 I/O pins and i can program with a counter to control the LEDS.
the logic I am thinking is:
- Light button is pushed, energize light on/off command on the RF side of circuit
The light is on
- -Light button is pushed, energize light on/off command on the RF side of circuit
The light is off
- Fan button is pushed, increase variable to 1. send change speed on RF side of circuit
The fan is on low speed.
-fan button is pushed, increase variable to 2. send change speed on RF side of circuit
The fan is on med speed
- The fan button is pushed, increase variable to 3. send change speed on RF side of circuit
the fan is on high speed
-The fan button is pushed, increase variable to 4. If variable is is > 3 set to 0. send change m speed on RF side of circuit
The Fan is off
If variable is = 1. energize LED 1
If variable is =2. energize LED 2
if variable is = 3 Energize LED 3
If variable is =0 de-energize all LEDs.
I am hoping this is making sense. Where I am getting lost is with the RF side of things. How to learn the commands from the OEM remote and duplicate them on the circuit board. If someone could point me in the right direction i would be much appreciative.