Free Trials

Download a free trial to find out which Altium software best suits your needs

How to Buy

Contact your local sales office to get started on improving your design environment

Downloads

Download the latest in PCB design and EDA software

  • PCB DESIGN SOFTWARE
  • Altium Designer

    Complete Environment for Schematic + Layout

  • CircuitStudio

    Entry Level, Professional PCB Design Tool

  • CircuitMaker

    Community Based PCB Design Tool

  • NEXUS

    Agile PCB Design For Teams

  • CLOUD PLATFORM
  • Altium 365

    Connecting PCB Design to the Manufacturing Floor

  • COMPONENT MANAGEMENT
  • Altium Concord Pro

    Complete Solution for Library Management

  • Octopart

    Extensive, Easy-to-Use Component Database

  • PRODUCT EXTENSIONS
  • PDN Analyzer

    Natural and Effortless Power Distribution Network Analysis

  • See All Extensions
  • EMBEDDED
  • TASKING

    World-Renowned Technology for Embedded Systems Development

  • TRAININGS
  • Live Courses

    Learn best practices with instructional training available worldwide

  • On-Demand Courses

    Gain comprehensive knowledge without leaving your home or office

  • ONLINE VIEWER
  • Altium 365 Viewer

    View & Share electronic designs in your browser

  • Altium Designer 20

    The most powerful, modern and easy-to-use PCB design tool for professional use

    ALTIUMLIVE

    Annual PCB Design Summit

    • Forum

      Where Altium users and enthusiasts can interact with each other

    • Blog

      Our blog about things that interest us and hopefully you too

    • Ideas

      Submit ideas and vote for new features you want in Altium tools

    • Bug Crunch

      Help make the software better by submitting bugs and voting on what's important

    • Wall

      A stream of events on AltiumLive you follow by participating in or subscribing to

    • Beta Program

      Information about participating in our Beta program and getting early access to Altium tools

    All Resources

    Explore the latest content from blog posts to social media and technical white papers gathered together for your convenience

    Downloads

    Take a look at what download options are available to best suit your needs

    How to Buy

    Contact your local sales office to get started improving your design environment

    • Documentation

      The documentation area is where you can find extensive, versioned information about our software online, for free.

    • Training & Events

      View the schedule and register for training events all around the world and online

    • Design Content

      Browse our vast library of free design content including components, templates and reference designs

    • Webinars

      Attend a live webinar online or get instant access to our on demand series of webinars

    • Support

      Get your questions answered with our variety of direct support and self-service options

    • Technical Papers

      Stay up to date with the latest technology and industry trends with our complete collection of technical white papers.

    • Video Library

      Quick and to-the-point video tutorials to get you started with Altium Designer

    PCB Layout Tips to Design a Clap Switch Circuit

    Altium Designer
    |  August 10, 2018

    Blue background of a circuit

    I’m a self-professed workaholic. On a typical workday, lunch breaks become nonexistent as I obsess on my latest project or focus on clearing my list of tasks. During my off-days, however, I move to the opposite end of the spectrum. I became the epitome of laziness as I spend the whole day unwinding.

    I become immobilized as I sink deeper into the couch while watching my favorite TV shows. In these moments, I wish I could prepare dinner with a single clap, perhaps using a clap switch circuit. Unfortunately, operating a clap switch doesn’t cause dinner to magically appear, nor it is likely to in the near future. However, clapping certainly does the trick when you need to automatically turn on a lamp.

    What is a Clap Switch?

    As the name implies, a clap switch is an electronics module that turns on an electrical load with a simple clap. This is quite useful if you need to turn on the bathroom lights in the middle of the night. Instead of fumbling around in the darkness, you can light up the bathroom with a single clap.

    The core component of the clap switch is the condenser mic. It is basically a small audio transducer that turns sound into electrical signals. Although the term ‘clap switch’ is used, the condenser mic responds to any similar sound generated that is loud enough to be picked up.

    Building a Simple Clap Switch

    The most simple and clap switch uses the 555 timer chip. The 555 timer is a well-known integrated circuit used to provide oscillation for timers or delays in electronics applications. It is relatively cheap and simple to use. In a simple clap switch circuit, the 555 timer is configured to be in the monostable mode.

    In a monostable mode, the 555 timer output asserts to a high logic state when the input is triggered with a low pulse. The output then holds itself in the high state for a certain duration, determined by the values of the resistor and capacitor (RC) that are connected to the discharge pin of the 555 timer.

    The following schematic shows a simple connection of a clap switch circuit using the 555 timer:

    Clap switch circuit with 555 timer

    Layout of a potential clap switch circuit

    In the idle state, the condenser mic doesn’t generate any voltage and has high impedance. This causes the transistor Q1 to be turned off and Vcc is observed at the collector that connects to the trigger pin of the 555 timer.

    When the condenser mic picks up an audio signal and generates a voltage larger than the base-emitter threshold of the transistor (normally 0.7 V), the transistor is turned on and current flows through the collector-emitter. The trigger pin of the 555 timer is then pulled down to low, and the output is asserted. The LED, or any external electrical load connected to the output of the 555 timer, is turned on for a specific duration before being turned off.

    PCB Layout Tips for Clap Switch

    The clap switch is a generally simple electronics circuit with mostly digital components. The following tips may help you reduce any potential problems in the PCB layout:

    • Keep trace of condenser mic short: The condenser mic produces an analog signal and it takes a relatively low voltage to trigger the 555 timer. To prevent coupling of external electrical interference into the circuit and causing a false trigger, it is best to keep the trace of the condenser mic short.
    • Consider using a mechanical relay: While the example schematic may show an LED is being used as a load, actual applications may involve a light bulb, fan or other electrical appliances that are powered by the mains voltage. In such cases, using a mechanical relay is necessary to provide electrical separation on the PCB.
    • Route traces with significant voltage away from clap switch components: To prevent the effect of electromagnetic interference from the relay, a flyback diode is connected to the coil of the relay. Any traces of medium or high voltage should also be routed far away from the clap switch components.

    Unified design environment in Altium

    Using strong PCB design software will enable you to get your devices working

    Designing a clap switch circuit is relatively simple as most of the components are readily available within CircuitStudio®’s integrated . By adhering to PCB layout principles and following guidelines for clap switch design, you can easily build a reliable clap switch for various electronics applications. To get started on designing a clap switch circuit while following best practices, talk to an expert at Altium.

    About Author

    About Author

    PCB Design Tools for Electronics Design and DFM. Information for EDA Leaders.

    most recent articles

    Back to Home