The clap sensor is a straightforward circuit that consists of a PC microphone, a microcontroller, and an output. The circuit design features the ATtiny84 microcontroller, chosen for familiarity with the AVR architecture and accessibility to necessary tools. The ATtiny84 is available in SOIC-14 packaging. The microphone is connected to the circuit through a tip-ring-sleeve (TRS) jack, specifically the SJ1-3533N jack from CUI Inc., which is compact and aesthetically pleasing. The sleeve conductor connects to ground, while the ring connects to V+ via a 2.2 kΩ resistor to stabilize the microphone's output signal. The tip conductor transmits the microphone's output. A 10 µF capacitor filters the power input, and an LED provides visual output, with its current-limiting resistor value of 1.5 kΩ depending on the LED specifications. The six-pin connector adjacent to the ATtiny84 is for the in-system programmer (ISP), used to load code onto the microcontroller via Atmel's AVRISP mkII. The ISP interface operates similarly to a serial peripheral interface (SPI) connection, with the microcontroller entering programming mode when the RESET pin is held low. Power connections for Vcc and GND are required, and the RESET pin must connect to Vcc through a 10 kΩ pull-up resistor to maintain a high state during operation. The microcontroller pins are labeled according to their SPI and RESET designations in the datasheet. The circuit board was designed using ExpressPCB, which, while lacking in features and using a proprietary format, is user-friendly. The two-layer board design includes red copper traces on the top layer and green traces on the bottom layer, with yellow indicating silkscreened information. The large holes accommodate standard 0.1" headers, while smaller holes fit component leads. The board includes three resistor spots sized for 1/4 W resistors and provides pin connections for V+, GND, and output. The ISP header is oriented with pin 1 at the top-left. This design does not incorporate the ISP port's pull-up resistor due to space constraints, although a 1/4 W resistor was soldered above the board to connect Vcc to the RESET pin.
The clap sensor circuit effectively utilizes a combination of components to achieve its intended functionality. The choice of the ATtiny84 microcontroller allows for efficient processing of input signals from the microphone, which captures sound and converts it into an electrical signal. The use of a TRS jack simplifies the connection of the microphone, ensuring reliable signal transmission while minimizing the footprint on the circuit board.
The 2.2 kΩ resistor connected to the ring conductor is critical for biasing the microphone, preventing the output signal from floating and ensuring a stable reading. The 10 µF capacitor serves as a power filter, smoothing out any fluctuations in the power supply that could affect the performance of the microcontroller and other components.
The incorporation of an LED provides immediate visual feedback, enhancing the user interface. The choice of a high-value current-limiting resistor is indicative of the design's consideration for power efficiency, especially when using low-current LEDs.
The ISP connector's design facilitates easy programming and debugging of the microcontroller. The AVRISP mkII programmer allows for straightforward code uploads, essential for developing and testing the circuit functionality. The design also includes provisions for a pull-up resistor on the RESET pin, which is crucial for ensuring the microcontroller operates correctly without unintended resets during normal operation.
The printed circuit board (PCB) design reflects careful planning, with the layout optimized for both component placement and signal integrity. The two-layer configuration allows for a compact design while maintaining separation between power and signal traces, reducing the likelihood of interference. The design choices made in terms of hole sizes and trace widths demonstrate a thorough understanding of standard PCB manufacturing practices, ensuring compatibility with commonly available components.
Overall, this clap sensor circuit exemplifies a well-thought-out design that balances functionality, size, and ease of use, making it a suitable project for both educational purposes and practical applications.The clap sensor is a simple circuit that incorporates a PC microphone, a microcontroller, and an output. The following diagram shows the logical circuit design: I chose the ATtiny84 microcontroller for this project because I`m familiar with the AVRarchitecture and Ihave access to the tools to use it.
The six-pin connector next to the ATtiny84 in the circuit diagram is for the in-system programmer(ISP), which is how code is loaded onto theATtiny84. I used Atmel`s AVRISPmkII to load code. The following diagram shows theISPpinout on the header: The ISP interface corresponds to a serial peripheral interface (SPI)connection; the only difference is that themicrocontroller can be put into programming mode while the RESET pin is held low.
For theATtiny84, the datasheet [PDF] gives the pin designations on page 2: I designed the circuit board using a program called ExpressPCB. It`s not the most complete design program and it uses a proprietary file format that doesn`t work with other software, but it`s very easy to use and is well-documented.
I designed the two-layer circuit board below; the red traces are the top copper layer, the green traces are the bottom copper layer, and the yellow is for silkscreened information(Idon`t print the silkscreen layer, but it`s shown below for informational purposes). The large holes fit standard 0. 1 ³ headers; they have a 1. 91 mm outer diameter and 1. 02 mm inner diameter. The small holes fit component leads; they have a 1. 42 mm outer diameter and a 0. 74 mm inner diameter. The small holes on the CPU are just through-holes that connect the bottom layer copper to the top. The three resistor spots in the bottom-left corner of the board are sized for 1/4 W resistors. The three 0. 1 ³ pins in the upper-left corner are, from top to bottom, for V+, GND, and the output. The ISPheader is oriented with pin 1 at the top-left. This design doesn`t include the ISP port`s pullup resistor. I couldn`t figure out how to fit it onto the board. If Iwas going to make another version of the board I would put a surface-mount resistor between the Vcc and RESET pins to the right of the ISPport.
I ended up using a 1/4 W resistor soldered above the board, between the Vcc trace and the through-hole connected to the RESET pin. I used instructions written by Chris 🔗 External reference
Adjust RP1 and RP2 to set the preset temperature control point. The 555 circuit is configured as a Schmitt inverter circuit that automatically controls a relay device. This forms part of the T-121 temperature control circuit, which includes a...
E Shore Technologies is a robotic solution provider company in Malaysia. The company offers robotic parts, robotic services, embedded systems, and hobby kits for the robotic market. Additionally, E Shore Technologies promotes an open-source philosophy by sharing knowledge related...
This light sensor switch circuit enables the automatic activation of a lamp when ambient light levels are low, such as during nighttime. The circuit keeps the lamp illuminated for a predetermined duration. When transistors T4 and T5 are activated,...
This schematic diagram illustrates a 555 IC water level sensor and detector alarm circuit. The circuit is powered by the emitter current of the BC109C transistor. The 555 timer operates as an astable oscillator in this configuration. Under dry...
A simple humidity tester circuit using only an LED, a transistor, and a few resistors is explained with a clear circuit schematic.
The humidity tester circuit is designed to provide a visual indication of humidity levels using basic electronic components....
When one of the normally-open switches is closed, two actions occur. First, the negative side of the relay coil connects to ground through D1, energizing the relay, which in turn activates the siren. Second, the emitter-base junction of Q1...
We use cookies to enhance your experience, analyze traffic, and serve personalized ads.
By clicking "Accept", you agree to our use of cookies.
Learn more