Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

Toggle switch using CD4017

By Ashutosh Bhatt

This circuit will help you to control two devices with the help of a switch. If you "on" the first device then second device remain "off", and if you "on" the second device the first device will become "off". Therefore you can control both the devices with the help of single switch.

The toggle switch circuit is built around CD4017 which is a CMOS decade counter/ Divider. Used in many applications like binary counter/decoder, frequency division, divide by N counting, Alarm system etc.

[[wysiwyg_imageupload:8572:]]

Fig. 1: Prototype Of Toggle Switch Circuit On Breadboard


 

CD4017 is a 16 pin IC which includes 3 input- Clock, Reset and Clock inhibit. And 10 output Q0- Q9. Pin 16 is for power supply and pin 8 is used for ground. Pin configuration of IC is show below-

Pin Diagram Of CD4017 Ic

Fig. 2: Pin Diagram Of CD4017 IC

In this circuit, counter advances by one count when positive clock signal is applied at pin 14. When you want to switch off the counter then make pin 13 high. If pin 13 is high, it will ignore the clock pulse no matter how many times you press the switch, thus counter will not advance. In our circuit we have grounded pin 13. In this reset pin 15 clears the counter to zero and counting again starts from zero.

In this circuit, we are using CD4017 in Toggle mode. When power supply is given to the circuit and switch is pressed once, CD4017 decade counter pin 14 provides a clock for the working of IC1. Here after receiving the clock input CD4017 starts its counter from zero and it advances one by one each time pin 14 goes high. When the counter reaches the ninth output, it goes back to zero and the counter starts again. As the count progresses, respective pin goes high to provide the output. Like, first pin 3 would provide the output as it represents zero (Q0).. Then second is pin 2 which represents one (Q1). Similarly, pin four represents two (Q2) and so on. CD4017 will count up to nine then it will restart again.

We have grounded the Clock inhibit pin so that IC can run freely. In this, Reset pin 15 is shorted with pin 4 (Q2) output and because of that IC1 will toggle between Q0 and Q1 outputs. When Clock input pin 14 receives positive pulse, first output Q0 will go high which will be indicated by LED2. At this time LED1 and relay will be in “off” position.

When pin 14receives another pulse through switch, the second output goes high and first will become low. At this time LED1 would glow and transistor will conduct, hence turning on the relay. When another pulse is applied then again LED2 glows. In this, counter does not advance because we have connected the Reset pin to Q2 output. 

Circuit Diagrams

Circuit-Diagram-Toggle-switch-CD4017

Project Components

  • Capacitor
  • Diode 1N4001
  • LED
  • Relay Switch
  • Resistor
  • Transistor BC547

Project Video


Filed Under: Electronic Projects
Tagged With: cd 4017, ic, switch, toggle switch
 

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



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

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!


Featured Tutorials

  • Designing Gate Driver Circuit and Switching Mechanism for Modified Sine Wave Inverter – (Part 9/17)
  • Completing Modified Sine Wave Inverter Design with Full Bridge Circuit and Step Up Transformer – (Part 10/17)
  • Designing an Offline UPS – Part (12 /17)
  • How to reduce Switching Time of a Relay – (Part 15/17)
  • Testing MOSFET – (Part 16/17)
  • Driving High Side MOSFET using Bootstrap Circuitry – (Part 17/17)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • MicroPython – I2C protocol in ESP8266 and ESP3
  • New automotive radar sensor enables reliable in-cabin monitoring system
  • TI breaks ground on 300-mm semiconductor wafer-fabrication plants in Texas
  • New wireless AR Smart Viewer reference design
  • Infineon launches scalable and wireless charging platform with configurable controllers

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd ldr led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • What's the deal with all these "MPPT" IC's with no current sense?
  • Photovoltaic MOSFET Drivers - Voltage Rating
  • Impedance requirement for SDRAM signals
  • A circuit that can adjust a resistance and probing a voltage node
  • A analogue circuit that spit out the resistance desired

RSS Electro-Tech-Online.com Discussions

  • IRS2453 the H circuit
  • Ampro 16mm Stylist projector woes.
  • How to quickly estimate lead acid battery capacity ?
  • Finally switched to Linux.
  • Multistage BJT amplifier
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media 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 WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering