13 December 2016
13 December 2016
• Introduction
• Objectives
• Methodology
SIRC (Series Infrared Controller) protocol
IR remote
IR sensing
Ceiling fan rotation speed controlling
• Results
• Conclusions
• Recommendations
13 December 2016
Quality and comfort of life is achieved from seek of convenience...
• Ceiling fan is an electrical device used to control the temperature
inside a room
• There are many manual celling fan regulators
• Automatic systems are available too, but are expensive and rare in
Sri Lanka
Focused on designing a low cost remote control system for ceiling fan
Speed Time Turned on
13 December 2016
Designing an Infrared (IR) remote control system to control therotating speed of a ceiling fan
Designing a timer and 7-segment display unit to display the speedand the timer of the ceiling fan
low cost product
13 December 2016
• Commercially available manual ceiling fan regulators were analyzed
• A method to control the ceiling fan rotation was designed
• An IR remote and receiver that uses SIRC protocol to send and receive IR signals were designed
• A 7-segment display unit was designed to indicate the speed level and the timer of the ceiling fan.
• The designed ceiling fan remote control system was manufactured on a PCB (Printed Circuit Board)
13 December 2016
Series Infrared Controlling Protocol
-Device
-Command
-Start
S 0 1 2 3 4 5 6 0 1 2 3
S
b
b
Key
Bit stream in SIRC 12-bit version
12-bit version was selected which is also used in SONY IR television remotes
13 December 2016
0.6ms
Start bit = 2.4ms Logic “0” = 0.6ms Logic “1” = 1.2ms
0.6ms
Pulse width durations in SIRC protocol
BitDuration of pulse
𝛍𝐬
Start 2400
1 1200
0 600
13 December 2016
PWM output of microcontroller 12F683*
• PIC 12F683 was used
• 40 kHz square wave signal was generated by PWM module
𝑃𝑊𝑀 𝑝𝑒𝑟𝑖𝑜𝑑 = [ 𝑃𝑅2 + 1] × 4 × 𝑇𝑂𝑆𝐶 × 𝑇𝑀𝑅2 𝑝𝑟𝑒𝑠𝑐𝑎𝑙𝑒 𝑣𝑎𝑙𝑢𝑒
𝑃𝑢𝑙𝑠𝑒 𝑊𝑖𝑑𝑡ℎ = [𝐶𝐶𝑃𝑅1𝐿 ∶ 𝐶𝐶𝑃1𝐶𝑂𝑁] × 𝑇𝑂𝑆𝐶 × 𝑇𝑀𝑅2 𝑝𝑟𝑒𝑠𝑐𝑎𝑙𝑒 𝑣𝑎𝑙𝑢𝑒
* Source - Microchip, “8-Pin Flash –Based, 8-Bit CMOS Microcontroller with nanoWattTechnology,” PIC12F683 datasheet, 2007
13 December 2016
Power
ON/OFF
Increase
Speed / Timer
controller mode
Decrease
IR remote design
13 December 2016
• PIC 18F2550 was used
• SM0038 IR module was used
Block diagram of SM0038 IR module*
* Source - Thermoelectric Products, “Infrared Receiver Module,” SM0038 datasheet, 2003
13 December 2016
Timer2 Module was programmed to issue interrupt on every 0.6ms after detecting an external interrupt
0·6ms0·6ms
Falling edge Rising edge
0·6ms 0·6ms
Waveform of correctly received Start-bit at RB0 port
13 December 2016
0·6ms
Timer2 resets on this rising edge and
counter value = 0
Timer2 resets on this rising edge and
counter value = 3
0·6ms 0·6ms
Logic “1” pulse received on RB0 port
13 December 2016
0·6ms
Timer2 resets on this rising edge and
counter value = 0
Timer2 resets on this rising edge and
counter value = 2
0·6ms
Logic “0” pulse received on RB0 port
13 December 2016
The Power delivered to ceiling fan was controlled by a Triac
Phase control using a Triac*
* Source - http://www.pic_examples.byethost3.com/Dimmer.html (10/09/2012)
13 December 2016
Timer1 module was used to control the triggering time of the Triac
Timer0 module was used to control the automatic turn OFF time ceiling fan
A 7-segment display unit was designed using a shift register
13 December 2016
Optocoupler
Transformer
Isolates the
circuit From
230V
Use of an IR remote!!
13 December 2016
The designed ceiling fan regulator
13 December 2016
Output waveform of the device for speed level 1 Output waveform of the device for speed level 2
Output waveform of the device for speed level 3 Output waveform of the device for speed level 4
13 December 2016
Speed levelSupply Voltage
(V)
Supply Current
(mA)
Wattage
(W)
OFF* 218.3 8.56 1.869
1 218.3 8.63 1.883
2 218.3 8.64 1.886
3 218.3 8.64 1.886
4 218.3 8.66 1.890
Power consumption of the designed ceiling fan regulator without the ceiling fan
*OFF- power consumed by regulator when it is in Stand By mode
13 December 2016
The Graphs of Wattage vs. Rotation speed for different type of ceiling fan
regulators
Designed ceiling fan regulator
Capacitive type manual ceiling fan regulator
Inductive type manual
ceiling fan regulator
13 December 2016
• Energy Efficient
• Easy to control
• Linear relationship with RPM of Ceiling fan
• Can be used as light dimmer
• Low cost
• Needs a special wiring system
13 December 2016
• IC with only necessary Modules
• Modify to control several devices
• Use Atmel microcontrollers
13 December 2016
13 December 2016
Figure 5.3(b): Schematic of the IR remote
13 December 2016
Figure 5.4(a): Schematic of the power supply
13 December 2016
Figure 5.6(a): The schematic of 7-segment display unit