Professional Documents
Culture Documents
The task requirements of this report were created by the school of Engineering
Design at the University of Wales Institute Cardiff. The purpose of the assignment
was to design a ‘Remotely-Controlled Lighting System’ to a given specification,
perform virtual simulations where necessary and provide costing of the components
used. An overview of the design specification is shown below:
“The completed system will consist of two different physical sub-systems. The first is
a battery-powered, hand held remote control transmitter. It will have only one
button, which when pressed will cause the remotely controlled light to change state.
If the light is already in the on-state, the pressing the remote control button will turn
it off. Alternatively, if the light is already in the off-state, then pressing the remote
control button will turn it on. The second sub-system will comprise the 50 Hz mains-
derived power supply, associated receiver circuitry and the incandescent lighting
load. The lamp is rated at 12V 2%, 10 Watts, and is to be driven from a regulated
power supply that is separate to the one that drives the receiver sub-system. The
worst-case output ripple voltage of the receiver power supply is not to exceed 100
mV peak to peak.”
This report has been separated into three main parts: the design of the system,
virtual simulation of the power supply design and component costing. Throughout
each step I presented full calculations, diagrams and screenshots where applicable.
1
1. System Design
This section is divided into two main parts; design of the remote-controlled
system and design of the power supply. From the specification, I mapped out a
block diagram showing my proposed design:
Transformer &
Rectifier
Regulator 1
Encoder Transmitter (Remote Control
System)
Toggle
Receiver Decoder Transistor &
Relay Coil
Battery
Power
Regulator 2
(Lighting Load) Relay Contact Lighting
Load
Figure 1
Since the power supply had to be designed around the requirements of the
remote-controlled system then I decided to design the remote-controlled system
first.
As you can see from the previous section, the main components making up
this system are the encoder, transmitter, receiver, decoder, toggle,
transistor and relay coil.
To begin the design process I first began with the encoder configuration.
I decided to use the HT12E RF Encoder for the design as I found that it
was slightly cheaper than the HT12A IR Encoder; however either one
could be used. On the next page (figure 2) you can see the PIN
schematic of the HT12E encoder taken from the data sheet.
2
Figure 2
With this particular model it is possible to use PINS 10-13 as data lines
or address lines, for this particular use (switching a light on or off) it
was only necessary to use the data from ‘DOUT’ therefore I decided to
use PINS 10-13 as additional address lines. With the encoder set-up in
this configuration it was possible to set 4096 (212) different
combinations for the address line; this makes the address harder to
crack compared to the HT12A encoder.
It is stated in the data sheet that the input voltage (VDD) can operate
at a minimum of 2.4 Volts DC, typically at 5 Volts DC and at a
maximum of 12 Volts DC. Since I wanted this encoder to be part of a
battery powered hand-held device then I chose to use a small battery
recommended for garage door openers, keyless entry and car alarms 1;
a lithium CR3032 3V battery.
1
Eveready Battery Company Inc, Electronic Batteries Cross Referenced by Device Type,
http://www.energizer.com/products/specialtyphotobatteries/watch-button/Pages/PDA-alarm-
remote.aspx, accessed on 05/04/10 @ 15:40
3
Figure 3
As you can see, with a 3V power supply and a 3 kHz oscillator
frequency, an 820 kΩ resistor must be used.
Figure 4
4
The address lines were not set to a particular pattern; they were
selected completely at random to avoid the combination being
cracked. When the TE (Transmit Enabled) button is pushed, the
address combination is sent to the transmitter via a single data line.
Since I had decided to use the HT12E encoder then I had to use the
HT12F decoder to match the number of address lines configured (12).
In order for the decoder to read the address line sent from the
encoder then the decoder address lines must be configured in the
‘exact’ same way.
5
Figure 5
As you can see, with a 5V power supply and a 150 kHz oscillator
frequency, a 51 kΩ resistor must be used.
To Toggle
Switch,
Transistor
& Relay Coil
Circuit
Figure 6
When the decoder finds a matching signal from the encoder, it first
checks the signal 3 times to confirm that it is definitely the correct
signal and then a ‘high’ pulse will be sent out of VT to the toggle
switch.
6
1.1.3. Toggle Switch, Transistor & Relay Coil Circuit
The signal from the output of the decoder cannot be fed straight into
the lighting load; it must be used to activate a switch between the
lighting load and its power source. To do this, I used the following
circuit containing a D-type flip flop toggle switch, Bipolar Junction
Transistor and a Relay Coil:
5V
SN74LVC2G74 D-type Flip Flop
CLK Vcc
From Decoder
Output (VT) D PRE
5V
Q VLR
Tyco 1393793-6 Relay Coil
GND Q
110kΩ R1
R1
Lighting Load
BC547C
15kΩ R2
R2
Regulator 2
Figure 7
Since the output of the D-type flip flop was equal to 5V (Vcc) then I
used a pair of resistors to create a potential divider in order to lower
the voltage at the transistor; I did this to match the BC547C transistor
‘on voltage’ which had to lie between 0.55 V and 0.7 V as
recommended in the data sheet. To work out the resistor values I
used the potential divider rule:
R2
Vout = × Vin
R 1+ R 2
R 2×Vin
R 1= −R 2
Vout
7
15× 5
R 1= −15
0.6
As you can see, when the voltage goes high on the decoder output,
the toggle (D-type flip flop) switches and provides a voltage to the
transistor. With 0.6 Volts present at the BJT base pin, the transistor
switches allowing the regulator voltage to flow through to ground and
the relay coil then becomes magnetically charged and closes the relay
contact making the connection between the lighting load and its
power source.
From my block diagram on page 2 (figure 1) you can see that the lighting
load power supply and receiver sub-system are powered from the same
mains connection but separate voltage regulators as specified in the brief.
The first regulator (Regulator 1) will supply the receiver sub-system which
requires around 5 Volts DC (see decoder, receiver, toggle and relay coil
voltage requirements) and the second regulator (Regulator 2) will need to
provide 12 Volts (lighting load requires 12V 2% as specified in brief).
Before choosing the regulators, I first had to choose a suitable Transformer
and design a Rectifier.
8
least 14.5 V) then I estimated that 18 Volts would be an appropriate
supply voltage.
W 10
= =0.83 Amps
V 12
The values for W and V were taken from the lighting load
specification; 12 V @ 10 W.
Receiver - 3.5 mA
Decoder - 0.2 mA
Toggle - 100 mA
Relay Coil – 80 mA
Fuse
125 mA
240 V @ 50Hz 18 V
Figure 8
9
To find an appropriate value for the fuse I used the following formula:
Vout
× Iout=Iin
Vin
18
×1.01=75 mA
240
I choose to use a 125 mA fuse since it was the closest value I could
find above 75 mA.
The next part of the power supply chain was the rectifier. I chose to
use a common bridge rectifier with four silicon diodes; I chose 1N4148
silicon diodes as they have a reasonably small voltage drop of 0.7 V.
See the rectifier circuit diagram below.
18 VRMS from
Transformer Smoothing
C Capacitor
Figure 9
Before I could continue any calculations I first had to convert the RMS
voltage to a peak voltage:
18 x √ 2 = 25.46 V peak
The job of the rectifier is to convert the A.C voltage into a D.C voltage.
With the bridge rectifier, only two diodes allow a voltage to pass
through at one time. Since there is a voltage drop (Vf) of 0.7 V across
each diode and only two diodes active at one instant, then the total
voltage drop across the rectifier is 1.4 V.
With the wave fully rectified, the signal then had to be passed through
a capacitor to smooth out the ripple; this is known as the smoothing
capacitor. To work out a value for the capacitor, I wanted to make
10
sure that ripple at the input of Regulator 1 was small enough so that
the output would not exceed 100 mV peak to peak as specified in the
brief. To do this, I used the ‘ripple rejection’ information from the
μA7805C datasheet (see page 13 for Regulator 1 choice).
Therefore:
Vout Ripple
−78=20 log
Vin Ripple
0.1
−3.9=log
Vin Ripple
Vout ripple is the desired ripple as specified in the brief; 100 mV peak
to peak (0.1 Volts).
0.1
10−3.9 =
Vin Ripple
0.1
Vin Ripple= −3.9
=0.1 ×103.9
10
From this you can see that for Regulator 1 to provide an output ripple
no bigger than 100 mV peak to peak, the input ripple could be as big
as 794 Volts peak to peak. Since I knew that whatever capacitor I
chose would satisfy this ripple amount, I decided to base the
calculation of the smoothing capacitor around the voltage
requirements of Regulator 2.
11
Since there was already 17 Volts RMS at the regulator input (24.06 ÷
√2) without a smoothing capacitor then the difference between the
peak and the average (taken as RMS value) was equal to 7.06 Volts;
therefore the required ripple had to be equal to 14.12 peak to peak in
order to provide 17 Volts DC. With the required ripple voltage found I
could now find the capacitor value which would provide this result
using the following formula:
I×T
C=
Vripple
To use this formula I had to find values for the current and the period.
To find the period, I had to consider that the 50 Hz mains signal had
been fully wave rectified which means it had been converted to a 100
Hz signal. Therefore:
1 1
T= = =0.01 Seconds
f 100
With the current, period and required Vripple now found, I could
complete the formula to find C:
I chose the next highest E12 value to make sure that the requirement
would definitely be met; in this case the capacitor would exceed the
requirement.
12
1.2.2. Regulator 1
μA7805C
Regulator
0.33 μF 0.1 μF
Figure 10
1.2.3. Regulator 2
One the next page (figure 11) is a circuit diagram showing the
Regulator with noise rejection capacitors as recommended in the
datasheet.
13
μA7812C
Regulator
0.33 μF 0.1 μF
Figure 11
Pdiss=Voltage Drop × I
Pdiss=(17−5)×0.18
Pdiss=2.16 Watts
For Regulator 2:
Pdiss=(17−12)× 0.83
Pdiss=4.15 Watts
14
The heat dissipation system can be thought of as the equivalent circuit
below:
θJC 4oC/W
150oC TJ
θCs 1oC/W
θSA
TA 70oC
Figure 12
TJ−TA
−( θJC+θCS )=θSA
Pdiss
15
Therefore, to find θSA for Regulator 1:
150−70
−( 4+1 ) =32.04 ° C /W
2.16
150−70
−( 4+1 ) =14.28° C /W
4.15
With the values for θSA found, I chose the following heat-sinks:
2. Virtual Simulation
Since there are many considerations to make when designing the power supply, I
decided to perform a virtual simulation in order to confirm that the power
requirements for the system were being met.
It was stated in the assignment brief that is was not required to simulate the
mains transformer and that it could be assumed that the transformer could be
represented as a ‘Thevenin equivalent’ a.c generator of 22 volts peak amplitude
with an output resistance of 0.9 ohms.
To perform the simulation I used National Instruments Multisim 10. On the next
page is a screenshot of the power supply circuit (figure 13).
16
Regulator 1
Regulator 2
Figure 13
Unfortunately, the software did not have the exact regulator model types, so I
used equivalent regulators; a TA7805F (5 Volts) and a TA7812F (12 Volts).
As you can see from the multi-meter results, 5.004 Volts was being provided by
Regulator 1 and 11.973 Volts was being provided by Regulator 2, this matched
the desired values of 5 Volts and 12 Volts.
Figure 14
As you can see (circled above), the ripple is approximately 103.55 mV peak to
peak which meant that the ripple requirements were exceeded for both
Regulators.
17
3. Components Costing
With the design and simulation complete, I decided to find an approximate cost
for the system. Below is a table showing each component and its associated
price:
TOTAL £18.61
Figure 15
This is only an approximate cost and does not include components such as the
printed circuit board, cables and enclosures.
As you can see, the total cost of the system is £18.56. To see how reasonable this
price was, I decided to compare the cost with 3 other remotely-controlled
lighting systems of a similar specification (see figure 16 on the next page).
18
Infrared Remote Control Light Switch Maplin.co.uk £24.99
Figure 16
Comparing the cost of my system to already existing systems, I would say that
the total price was fairly reasonable. If I was to set up a company then I would
most likely be able to get a ‘trade’ price on the components which would lower
the cost. Also, the prices given for my components was the individual price per
component, however if the components are bought in bulk then the individual
price per component works out cheaper.
Conclusion
One assumption that I made in my design was that all the components were working
at 100% efficiency; therefore there may have been slight voltage and current
19
variables not taken into consideration. However, I made sure that all voltage and
current values were in reasonable limits. For example, I made sure not to set a
voltage of 2.9 when the maximum voltage allowed was 3 Volts. All of the voltage and
current values were in reasonable limits so that if variable component tolerances
caused a slightly higher or lower output than expected, the system would not be
affected.
After I had finished my design, I worried that even though the RF encoder and
decoder were cheaper than the IR versions, the price of the RF transmitter and
receiver were more expensive than the IR emitter and receiver; to confirm this I
decided to find the total cost of the IR components. What I found was that even
though the price of an IR emitter was a lot cheaper than the RF transmitter, the IR
receiver circuit cost approximately the same price as the RF transmitter and receiver
together, therefore my initial choice proved to be the wisest.
Bibliography
20
Books:
Electronic & Electical Engineering: Principles and Practice (Third Edition 2002)
– Warnes, L
Websites:
Onecall.farnell.com
www.electronicsandyou.com
www.energizer.com
www.maplin.co.uk
www.overstock.com
www.rapidonline.com
www.rs-online.com
www.u-diy.co.uk
www.wikipedia.com
21