Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertise
  • Subscribe

CD 4013 Based Two Way Switch

By Ashutosh Bhatt December 10, 2012

In festival days, we switch ON the lights of our corridor, balconies or staircase. In the case when people have lighting done at two different locations, they have to go to two different places to switch ON the light but, with the help of this circuit, you can switch ON both the lights with a simple touch. This simple two way switch circuit is built around CD4013 which has two independent flip flops on a single chip and each module is further equipped with a group of  pin outs assigned as data, set, reset, clock input and a couple complementary output Q and NOT Q. CD4013 is a 14 pin IC which contains two independent sets of flip flops and in our circuit we are utilizing both. Image below shows the pin diagram of the IC:

[[wysiwyg_imageupload:7507:]]

Fig. 1: Pin Diagram Of CD4013 IC


 

In the two way switch circuit diagram, Pin 3 and 11 serve as Clock input and receive clock signals generally in the form of square wave. These signals may be provided by the transistor in the form of astable multivibrator or with the help of NAND gate or by NOR gate. This input will produce effect on any of the output pin, the other being connected to Data pin. Here we will receive the input signals from touch pad. However, these signals are very weak, so we have used transistor (BC557) to amplify them. Therefore, when you touch the touch pad, you have provide a clock pulse to pin 3 and 11 which in turn provides a high transition to output pin 1 and 13. These pins further turn on the transistor which energizes the relay and the device connected through it start working. 

Pin 5 and 9 are Data pins which are generally connected to one of the output . For the purpose of lengthening, the applied input clock for square wave and for other waves may be terminated to any other logic level. For this purpose, data pins may either be connected to supply or to the ground of the circuit. In our circuit we have connected Q1(NOT) and Q2(NOT) to Data pin 5 and 9. Combination of C1, R3 is connected to pin 4 and C2, R5 are connected to pin 10 are used to provide power ‘ON’ reset.

If you want to make a touch sensor at your home than take conducting plate (it may be copper) and glue it to some non-conducting material like wood or plastic in a close proximity to each other. So when we touch the sensor with the tip of our finger, circuit starts working. You can also find a ready-made sensor available in market or you can use push to on switch.

Circuit Diagrams

Circuit-Diagram-CD-4013-Based-Two-Way-Switch

Project Components

  • Diode 1N4148
  • Relay Switch
  • Resistor
  • Transistor BC547


Filed Under: Electronic Projects
Tagged With: cd 4013, ic, switch, two way switch
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

Log in to leave a comment:

Lost your password?

Don't have an account? Register here

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Wide Bandgap Semiconductors
Moving from silicon to GaN or SiC feels like a whole new ballgame, doesn’t it? It isn’t just about faster switching; it’s about managing the layout parasitics and thermal realities that come with that speed. This month’s Tech Toolbox features a curated eBook that tackles these design hurdles head-on.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS feed: EDABOARD.com Discussions. EDABOARD.com Discussions.

  • Are you finding badly designed power supplies?
  • Choosing a Suitable Capacitor for Power Supply Smoothing
  • ADS: Large phase discrepancy between MLIN model and FEM simulation
  • Can someone explain how this electric fire works ?
  • Request for a 5W transistor controlled LED flash light controller circuit review

RSS feed: Electro-Tech-Online.com Discussions Electro-Tech-Online.com Discussions

  • 4060 counter doesn't stop ?
  • Request for a 5W transistor controlled LED flash light controller circuit review
  • My Advanced Realistic Humanoid Robots Project
  • Portable charger for my mate's new leg
  • solderless sma screw mounting RF causaliy problem

Featured Tutorials

VHDL Series (1-24)

  • VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
    VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
  • VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
    VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
  • VHDL Tutorial – 19: Designing a 4-bit binary counter using VHDL
    VHDL Tutorial – 19: Designing a 4-bit binary counter using VHDL
  • VHDL Tutorial – 20: Designing 4-bit binary-to-gray & gray-to-binary code converters
    VHDL Tutorial – 20: Designing 4-bit binary-to-gray & gray-to-binary code converters
  • VHDL Tutorial – 21: Designing an 8-bit, full-adder circuit using VHDL
    VHDL Tutorial – 21: Designing an 8-bit, full-adder circuit using VHDL
  • VHDL Tutorial – 22: Designing a 1-bit & an 8-bit comparator by using VHDL
    VHDL Tutorial – 22: Designing a 1-bit & an 8-bit comparator by using VHDL
More Tutorials >

Recent Articles

  • Teradyne launches 24-slot tester for edge AI devices
  • Stackpole adds 25 mΩ and 30 mΩ sensing values
  • Novotechnik LWX transducers provide IP67 position measurement
  • TDK varistors provide 15 kV ESD protection
  • Microchip POL-05-20S-T delivers 20 A for space processing

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Complete Sensor Guide
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Tech Terms
    • Webinars & Digital Events
  • Resources
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • White Papers
  • Guest Post Guidelines
  • Advertise
  • Subscribe