0% found this document useful (0 votes)
85 views

NEC Format Remote: Fig.: Atmel AVR Based Remote Controlled Fan Regulator

This document describes a remote control device that can control the speed of an AC fan from 0-9 levels using buttons to increase, decrease, or turn the fan on/off. The circuit includes a microcontroller, IR sensor to receive remote signals, triac to control AC power to the fan, and 7-segment display to show the fan speed. Instructions are provided on building the circuit on a PCB and troubleshooting if it does not respond to the remote control.

Uploaded by

Jitendra Jain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views

NEC Format Remote: Fig.: Atmel AVR Based Remote Controlled Fan Regulator

This document describes a remote control device that can control the speed of an AC fan from 0-9 levels using buttons to increase, decrease, or turn the fan on/off. The circuit includes a microcontroller, IR sensor to receive remote signals, triac to control AC power to the fan, and 7-segment display to show the fan speed. Instructions are provided on building the circuit on a PCB and troubleshooting if it does not respond to the remote control.

Uploaded by

Jitendra Jain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

This device can be used to remotely control the speed of an AC fan and to switch it on or off.

The remote control is a cheap NEC Format remote, usually supplied with small DVD players.
Three buttons are used to command the circuit. The UP key increase the fan's speed while the
DOWN key decrease it. The ENTER key is used to switch on or off the fan. The unit provides 10
way speed control from 0 to 9. The current speed is displayed in a seven segment display. The
yellow LED on the PCB indicates the power status of the load. If the load is switched off using
the R/C then the LED will also be switched off.

In the Video below you can check out the project in action.

The main parts of the circuit is labeled below.

1. The seven segment display used to show the current speed level.
2. The TSOP1738 sensor is used to pick up commands from remote control.
3. The Yellow LED indicates the power status of the load.
4. OUT - Here the AC load is connected in series. Tested on 220v 50Hz AC line.
5. IN - Power supply from a 12-0-12 transformer is applied here.
6. MCU - ATmega8 AVR 8 bit Microcontroller.
7. SWITCH - Manual Switch used to operate the unit without the remote control.

Fig.: Atmel AVR Based Remote Controlled Fan Regulator.

 
Fig.: Remote Controlled Fan Regulator Wiring Diagram.

Construction of Remote Controlled Fan Regulator.


You can make the circuit as per the schematic on any general purpose PCB. To ease your job we
are giving the PCB Layouts too, so that you can make the PCB at your home using the Etching
Method. You may also have the PCBs made from any fab house too. To further easy the job and
save your money we have already made the PCBs from a good fab house and they are available
for purchase at very low cost.

Start assembly process by first soldering the jumper1. Then you can mount the resistors. After
that solder the diodes, remember to properly orient the diodes. They are polar and don't work if
installed other way round. Then solder the IC U4 and U2, this time too take care of the
orientation. The small round circle on the IC package marks the PIN number 1.
Fig.: Proper IC Installation.

After that you can solder the ceramic disk capacitors, the 16MHz crystal, 7805, Triac, TSOP
Sensor, Display. Finally Connect the 12-0-12 Transformer and apply power. The display should
show '0'. Then you can press the up/down key in remote control to adjust the speed. The display
should change accordingly. This ensures that the circuit is running properly.

Its time to connect a real AC load. Connect a 220V 100W incandescent lamp (NO CFL Please).
As shown in the above wiring diagram. Replace the fan with bulb because its easier to test.

WARNING !!!
Never Touch any part of the circuit when AC load is connected. It can
give you a fetal shock !!!

Now you can can use the remote control to increase/decrease the lamp's brightness using the
remote control. You can also switch it on and off using the ENTER key.

Troubleshooting
If the unit does not respond to the remote control signals then look for the following.

1. AVR ATmega8's Fuse BIT is programmed to


o HIGH=0xC9 LOW=0xFF
2. AVR is clocked with 16MHz crystal (other value won't work)
3. Remote Control is NEC Format Only (Chinese DVD/CD player remote works good, TV
Remote Generally do not work as these are RC5 coded)
4. Remote Key codes has been feed to rckey.h file. Build and run this demo and press
UP,DOWN and ENTER keys to get their keycode and put them in rckeys.h file. All
remotes available in market has random keycode, so This part is very important. After
editing the rckeys.h file the project must be Rebuild. (I hope you know what does that
means).
5. IR sensor is of good quality and must be labeled TSOP1738 (other values won't work).
6. If you get a KIT from us then most of the problem do not arise.
Fig.: This Hobby Remote Control Works Great!

Hobby Remote Control (NEC) is available from our online store.

Part list for Remote Controlled Fan Regulator.


Part List
01 330 ohm resistor (8 Nos) R2-R9
02 4k7 Resistor (2 Nos) R1, ,R11
03 1K Resistor R12
04 39 ohm Resistor R13
05 1K5 Resistor R15
06 22pF Ceramic Disk Capacitor (2 Nos) C1,C2
07 0.1uF Ceramic Disk Capacitor (3 Nos) C3,C5,C6
08 470uF 50v Electrolytic Capacitor C4
09 16 MHz Crystal Half Size X1
10 1N4007 Diode (6 Nos) D2,D3,D4,D5,D6,D7
11 LED 5mm Any Colour D1
12 MCT2E Opto Coupler U4
13 MOC3021 Opto Triac Driver U2
14 ATmega8-16PU General purpose 8 bit MCU U1
15 Triac BT136 U3
16 7805 Voltage Regulator U5
17 Common Anode Display DISP11
18 TSOP1738 IR Sensor X2
220V AC to 12-0-12 Centre Tapped
19  
Transformer (NOT Included in KIT)
20 Hobby Remote Control (NEC)  

Buy Remote Controlled Fan Regulator Kit.

Schematic

Fig.: Schematic (Click To Enlarge/Print).

PCB For Remote Controlled Fan Regulator.


PCBs can be purchased from PCB section of our online shop.
Fig.: Remote Controlled Fan Regulator PCB.

You might also like