
Added an LED with a 1k resistor for visual indication.
Connected a 1N4007 diode across the relay coil as a flyback diode to protect transistors from back EMF.
Extended Features:
Connected a clap switch using PC817 optocoupler to trigger the toggle circuit hands-free.
Also tested the toggle with an IR transmitter and receiver for remote switching.
Component Highlights:
BC547 NPN transistors
12V relay (RL1)
1N4007 flyback diode
PC817 optocoupler
IR sensor module
LED indicator
This project is perfect for DIY home automation, allowing you to control lights, fans, or other appliances using clap sound or IR remote without a microcontroller.
demonstration. Don’t forget to like, share, and subscribe!
#Electronics #RelaySwitch #BC547 #TransistorSwitch #HomeAutomation #ClapSwitch #IRRemote #DIY
Modifications I made to the original circuit:
– Used a 220μF capacitor instead of 100μF (to increase pulse duration)
– Used a 1MΩ resistor instead of 470kΩ (to increase sensitivity)
– Used a 1kΩ resistor instead of 2.2kΩ (to improve base current)
– Connected an auto player LED series with an extra red LED and 22Ω resistor
– Added a relay driver circuit using a BC547 transistor to control the 220V bulb
– Connected a flyback diode (1N4007) across the relay coil to protect the transistor
When you clap near the microphone, the circuit detects the sound and turns ON the LEDs and the relay. This relay can safely switch a 220V AC 100W bulb or other appliances.
Components used:
– Microphone sensor
– BC547 transistors (x3)
– Resistors: 1kΩ, 220Ω, 22Ω, 1MΩ
– Capacitor: 220μF
– LED (x2)
– Relay (5V or 9V, 10A contacts)
– 1N4007 diode
– Power supply: 5V to 9V DC
Warning: Always be careful when working with 220V AC — use proper insulation and safety measures.
If you like the project, don't forget to like, share, and subscribe!
#ClapSwitch #ElectronicsProject #RelayControl #DIY