do-it-yourself
Automatic USB-Controlled Power Switch
Ajith Kumar control devices powered by mains.
Here we present a circuit that can
A
lmost all electronic gadgets control mains power of an LED TV edi
S.C. D w iv
now come with one or more and a DTH set-top box (STB).
USB ports. You can use the Generally, mains power for TV
USB port as an automatic switch to and STB are derived from a common
ZD2 R4 R5
12V 10E CON1
D3 D4 1M
R1 S1 1W 230V AC
1W 1N4007 1N4007
1K START 50Hz
N/O
L
R2
1 IC1 4 D2 N
56E C2 C3
+ 1N4007
PC817 N/C R7 1000u 470u C4
D− 2 3
1u,400V
D+ RL1 2.2K 25V 25V L
GND ZD1 1C/O RELAY N
D1 4.7V R3 R6 CON2
1N4007 10K LED1 POWER
CON4 10E
T1 D6 D5 SOCKET
FOR USB−A 1W
BC547 1N4007 1N4007
OUTPUT C1 L
1000u N
25V CON3
POWER
GND SOCKET
Fig. 1: Circuit diagram of the automatic USB-controlled power switch
switchboard. When you switch off
the power of the TV using a remote
control or sleep timer in the TV, the
switched-mode power supply (SMPS)
of the TV continues to draw a small
amount of power from mains and the
STB does not get switched off. This
drawback can be overcome using
this circuit. Besides, it protects the
devices from harmful initial surges
when power comes back after a
power failure.
Fig. 2: Actual-size PCB of the automatic USB-controlled power switch
Circuit and working
Circuit diagram of the automatic
USB-controlled power switch is
shown in Fig. 1. It is built around
optocoupler PC817 (IC1), transistor
BC547 (T1), 12V 1C/O relay (RL1),
six rectifier diodes 1N4007 (D1
through D6) and a few other com-
ponents. USB-A extender cables are
used to connect the USB ports of the
TV and of the STB to the circuit.
230V AC mains power supply
connector CON1 is connected be-
tween n/o contacts of relay RL1 and
neutral line N. When switch S1 is
Fig. 3: Component layout of the PCB pressed, it allows positive voltage to
114 November 2015 | Electronics For You www.efymag.com