Engineers Garage

  • Electronics Projects and Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • 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
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Controlling appliance by sound using counter (CD4017) and optocoupler

By Ashutosh Bhatt August 7, 2010

Activation and control of appliances through sound has always been fascinating. Imagine entering your room and switching on your lights/fan with sound of your flick. The circuit based project described here can be used to alternately switch on and off an electrical appliance. The idea is to take sonic input through a condenser mic and control the appliance at the output through a relay. The input is amplified for better sensitivity and supplied to a counter. This counter is configured to give alternate high and low pulses to the relay which in turn controls the device connected to it.

In this project, the condenser mic converts the sound signal sensed from the surroundings and converts them into the weak electrical signals and the transistor amplifying circuit amplifies the weak signals. Refer sound amplifier circuit for more details.

The circuit uses an optocoupler IC 4N350 to provide pulses to the counter IC 4017. An optocoupler is a 6 pin IC which contains a led, optically coupled to a phototransistor.


 

The 4017 is a decade counter IC. The output pin Q0 is connected to a red LED. Pin 2, which is the output Q1 is connected to relay  as shown in the figure. The appliance is connected between the NC and common pins of the relay. The output Q3, pin 7 is connected to the reset pin 15 of the IC.

When power is switched on and there is no sound signal, the output of the amplifier is low and hence the optocoupler is in the off state. Since there is no pulse at pin 14, the default output pin 3 is in the high state, thereby glowing the red LED to indicate the off state of the appliance. Since pin 2, which is the output Q1 is low, the relay are energized as current flows from Vcc. As a result the common pin gets connected to the NO pin, there by switching off the electric appliance. 
Whenever a small sound is produced by clapping or otherwise, the sound signals are converted into electrical pulses by the condenser mic. These pulses are amplified by the amplified unit. When the amplified signals are fed to the optocoupler the LED inside gets biased thereby turning on the phototransistor and producing a pulse. This pulse is used as a clock source for the IC 4017. As soon as the first pulse comes the output, Q1 becomes high and Q0 becomes low. The red LED glows off. The high output at pin 2, will de-energize the relay coil. The common pin of the relay will connect to the NC pin and the device will switch on.
Now when once again sound is produced, the second pulse will come to the counter IC, the output Q2, which is at pin 7 will become high. As pin seven is connected to the reset pin, the IC 4017 will come back to its original state and the output Q0 will become high. The red LED will glow and the device will be switched off.

Circuit Diagrams

Circuit-Diagram-Controlling-appliance-sound-counter-CD4017-optocoupler

Project Components

  • Capacitor
  • Condenser Microphone
  • IC 4N35 Optocoupler
  • Relay Switch
  • Resistor
  • Transistor BC547


Filed Under: Electronic Projects
Tagged With: 4017, 4n30, ic, relay
 

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

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

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 EDABOARD.com Discussions

  • Engineer's own PCB layout software guide?
  • Zeropole...
  • I think i have devised a new type of "super_transformer" for the Electricity grid?
  • Does mobility carrier ratio changes with Wn? (0.18um) inverter design
  • Antiparallel Schottky Diodes VDI-Load Pull

RSS Electro-Tech-Online.com Discussions

  • Lightbox circuit
  • I want to make a CRT with some modifications But i have no Idea where to start
  • Kawai KDP 80 Electronic Piano Dead
  • LT3511 Isolated Flyback Converter
  • Funny Images Thread!

Featured – Designing of Audio Amplifiers part 9 series

  • Basics of Audio Amplifier – 1/9
  • Designing 250 Milli Watt Audio Power Amplifier – 2/9
  • Designing 1 Watt Audio Power Amplifier – 3/9
  • Designing a Bass Boost Amplifier – 4/9
  • Designing a 6 Watt Car Audio Amplifier – 5/9
  • Design a low power amplifier for headphones- 6/9

Recent Articles

  • ITG Electronics releases gate drive transformers with 200 – 450 V DC capability
  • Stackpole introduces HCJ jumpers with 70.7 amp continuous current capability
  • Infineon releases MCU with 128K flash and multi-sense capabilities
  • ST introduces 600V GaN gate drivers with 300 ns start-up time
  • ABLIC releases S-19116 automotive voltage detector with 6.8ÎĽs response time

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • 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 © 2025 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

Search Engineers Garage

  • Electronics Projects and Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • 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
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe