Toggle Switch With a Timer Using the 555 Timer IC
by electronicsworkshop111 in Circuits > Arduino
3 Views, 0 Favorites, 0 Comments
Toggle Switch With a Timer Using the 555 Timer IC

A toggle switch with a timer using the 555 timer IC is an electronic circuit that allows a device to be turned ON or OFF alternately with each press of a button, while also incorporating a timing function to control how long the output remains active. By configuring the 555 timer in a bistable or monostable mode, the circuit can respond to user input to toggle the output state and include a delay or auto-off feature. This type of circuit is commonly used in applications like delayed lighting, timed relays, or simple automation systems where manual control with time-based operation is needed.
For Full Project:
https://electronicsworkshops.com/2025/03/26/toggle-switch-with-a-timer-using-the-555-timer-ic/
PCB Manufacturer
PCBWAY is a highly skilled company specializing in PCB manufacturing. They offer their services at incredibly low prices, such as providing 10 PCBs for only $5. Additionally, new members receive a $5 bonus. The website allows customers to upload their Gerber Files and place orders.
PCBWAY is known for producing PCBs of exceptional quality and maintaining high standards, which is why many people trust them for their PCB and PCBA needs.
Below are some of my PCB’S manufactured by PCBWAY and I am fully satisfied by their Quality of service they provide.
Circuit Diagram
This circuit is a toggle switch with a timer using a 555 timer IC configured in monostable mode, designed to activate a relay for a fixed duration when a button is pressed. When the push-button is triggered, it sends a low pulse to the 555 timer’s trigger pin, causing the output (pin 3) to go high for a specific time determined by the resistor and capacitor connected to the timer (R3 and C3). This high output turns on an NPN transistor, which energizes the relay and can power an external device. An LED indicates the relay’s active state, and a flyback diode protects the transistor from voltage spikes. After the time period elapses, the timer automatically resets, turning off the relay and any connected load.
Section-by-Section Explanation
Connection Diagram
1. Power Supply Section
- VCC = 12V supplies the circuit.
- Decoupling capacitors are added (near the power rail) for stability and noise filtering.
2. NE555 Timer IC (U1)
- Operates in monostable mode.
- Pin 2 (Trigger) is connected to a push-button (KEY1), which pulls the trigger pin LOW when pressed.
- This initiates a one-shot pulse at pin 3 (Output).
3. Timing Components
- R3 and C3 set the timer duration: T=1.1×R3×C3T = 1.1 \times R3 \times C3T=1.1×R3×C3
- When KEY1 is pressed, the capacitor C3 charges and the output at pin 3 goes HIGH for a calculated time.
4. Output and Relay Control
- Q2 (2N3904 NPN transistor) acts as a relay driver.
- When pin 3 of the 555 is HIGH, it turns ON Q2, allowing current through the RELAY1 coil.
- A flyback diode (D2 – 1N4007) across the relay protects the transistor from voltage spikes.
5. Indicator LEDs
- LED1 (Green) shows relay status (ON when output is active).
- Connected with resistor R6 to limit current.
- LED2 at the output side shows power status or may be used for load indication.
6. Relay Output (J2)
- The relay’s Normally Open (NO) and Common (COM) terminals are connected to an output terminal block.
- This can switch external AC or DC loads like lamps, motors, etc.
Working Principle
- Initially, the circuit is OFF.
- When you press KEY1, pin 2 of the 555 is pulled LOW → triggers output HIGH.
- Pin 3 remains HIGH for a duration set by R3 and C3.
- During this time, Q2 turns ON → energizes the relay → turns ON external load.
- After the time expires, pin 3 goes LOW → relay turns OFF automatically.
Order Directly From PCB WAY
Order Directly from PCB WAY
I have already uploaded all these required manufacturing files in PCBWAY website. You can easily go to the below link and place you order, and get your Own Home Automation PCB manufactured from one of the best pcb manufacturer PCBWAY
Applications
Automatic light or fan OFF after a fixed time
Delay timer for appliances
Door lock timer
Temporary load activation
Conclusion
In conclusion, this 555 timer-based toggle switch with timer circuit provides a simple yet effective solution for activating a device for a predetermined time using a single push-button. It combines the reliability of the NE555 timer in monostable mode with a transistor-driven relay to control external loads safely and automatically. The circuit is ideal for applications that require temporary activation, such as timed lighting, fans, or security systems, and demonstrates the practical use of basic electronic components in automation and control tasks.
For Full Project:
https://electronicsworkshops.com/2025/03/26/toggle-switch-with-a-timer-using-the-555-timer-ic/