Fork me on GitHub

Project Notes

#763 74LS74 Clap Switch

Building a clap-switch circuit with electret input, 555 trigger and 74LS74 latch.

Build

Here’s a quick demo..

clip

Notes

The 74LS74 is a dual D-type flip-flop with set (PRE), reset (CLR), and clock (CLK) inputs, designed for edge-triggered operation. Each flip-flop captures the D input value on the rising edge of the clock and outputs it on Q, with the complementary output on Q̅. The asynchronous set and reset inputs allow for direct control of the output states. Operating at 5V with low power consumption and fast switching speeds, the 74LS74 is commonly used in data storage, frequency division, and state machine applications in digital circuits.

74ls74-pinout

Circuit Design

The electret mic is biased and AC-coupled with an NPN BJT. The transistor collector output will normally be pulled high until a loud enough sound is able to momentarily switch the BJT and pull the output lower. This is the signal that is fed to the 555 timer.

The 555 timer is configured in monostable mode in order to rectify the audio trigger into a clear pulse with a high time of 517ms.

The rising edge of the 555 trigger pulse will clock the 74LS74 D-latch. The output of the D-latch will toggle between high and low for each trigger input. Pushbutton S1 is wired to perform a manual clear if required (resets the output low).

bb

schematic

bb_build

Test Result

The following scope trace captures the behaviour over 3 “claps”:

  • CH1 (Yellow) - shows the AC-coupled 555 trigger input (marked TRIGGER in the schematic)
  • CH2 (Blue) - 555 output (marked PULSE in the schematic)
  • CH3 (Red) - D-latch output Q1 (marked INDICATOR on the schematic)

scope

Credits and References

About LEAP#763 CMOS/TTL74LS74555 Timer

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader