Cd4011 sound and light control circuit diagram detailed (delay switch circuit)

The CD4011 integrated circuit is a CMOS-based device that contains four independent NAND gates. Each gate has two input terminals and one output terminal. When at least one input is low (0), the output will be high (1). However, the output becomes low (0) only when both inputs are high (1). In contrast, if both inputs are low (0), the output will be high (1). This fundamental logic behavior makes the CD4011 a versatile component in digital electronics. This article provides a comprehensive guide on building a sound and light controlled delay switch using the CD4011 IC. The discussion covers the working principle, component selection, assembly, testing, troubleshooting, and maintenance of the circuit. Let’s dive into the details. **First, Understanding the Circuit's Working Principle** The schematic diagram of the sound and light controlled delay switch is illustrated in Figure 1. At the heart of the circuit is the CD4011 IC, which houses four NAND gates (VD1 to VD4). This configuration simplifies the circuit design and enhances its reliability. As the name suggests, this switch uses sound to activate the “on” state and automatically turns off after a set delay. The main function of the circuit is to trigger an electronic switch when a sound signal is detected. Once the signal path is understood, the circuit can be divided into functional blocks, as shown in Figure 2. Figure 1, combined with Figure 2, shows how the sound signal—such as footsteps or claps—is captured by an electret microphone (BM) and converted into an electrical signal. This signal is then amplified through transistor VT via coupling capacitor C1. The amplified signal is sent to the second input of NAND gate VD1. Resistors R4 and R7 provide biasing for VT, while C2 serves as a power supply filter. To ensure the switch only activates during nighttime, a light control circuit is implemented using a photoresistor (RG). When it's dark, RG has high resistance, resulting in a high voltage across it. This high level triggers the timing circuit involving resistor R8 and capacitor C3. The time constant t = 2πR8C3 determines the delay duration. Adjusting R8 or C3 allows customization of the delay time for different applications. NAND gates VD3 and VD4 form a shaping circuit that processes the square wave signal. When C3 charges to a certain level, the output from VD3 and VD4 goes high, triggering the unidirectional thyristor and closing the electronic switch. Once C3 is fully charged, it discharges through R8. When the voltage drops below a threshold, the output from the NAND gates goes low, turning off the thyristor and opening the switch. Diodes VD1–VD4 rectify the AC 220V supply, converting it into pulsating DC, which is then stepped down by resistor R1 and filtered by C2 to provide stable DC power for the microphone, transistor, and IC. **Schematic:** ![CD4011 Sound and Light Control Circuit](http://i.bosscdn.com/blog/27/49/55/7-1G2221009313R.jpg) **Board Diagrams:** ![CD4011 Sound and Light Control Circuit Board](http://i.bosscdn.com/blog/27/49/55/7-1G22210094a58.jpg) ![CD4011 Sound and Light Control Circuit Board](http://i.bosscdn.com/blog/27/49/55/7-1G222100959633.jpg) ![CD4011 Sound and Light Control Circuit Board](http://i.bosscdn.com/blog/27/49/55/7-1G22210105b23.jpg) This type of switch is ideal for replacing traditional switches in residential corridors. It ensures lights turn on automatically when someone walks by at night, providing illumination without manual operation. After a few minutes, the lights turn off automatically. During the day, even if there is noise, the lights remain off, saving energy. This circuit is also suitable for public areas like factories, offices, and schools due to its compact size, aesthetic design, and ease of construction. It is a great project for hobbyists interested in DIY electronics. **Second, Component Selection** The IC used is the CD4011, a CMOS digital IC containing four independent NAND gates. Its internal structure is shown in Figure 3. VSS is the negative power supply terminal, and VDD is the positive terminal. The unidirectional thyristor T is typically a 1A/400V model, such as the 100-6. For higher current loads, options like 3A, 6A, or 10A thyristors can be used. Electret microphones are commonly used in recorders and can be tested with a multimeter set to the R×100 range. Connecting the red lead to the outer casing and the black lead to the center, blowing into the microphone should cause the meter needle to swing. A larger swing indicates higher sensitivity. The photoresistor used is the 625A type, which has a resistance of around 20kΩ in bright light and over 100MΩ in darkness. Rectifier diodes such as 1N4001–1N4007 are used for AC-to-DC conversion. Component selection is flexible, and values can be adjusted within reasonable ranges depending on the application. **Third, Assembly and Construction** After gathering all components, use a multimeter to check their quality. When soldering, start with non-polarized components like resistors and capacitors. Place resistors horizontally and capacitors upright. Then, carefully solder polarized components such as electrolytic capacitors, microphones, diodes, transistors, and thyristors, ensuring correct polarity. Incorrect installation may damage the components or prevent the circuit from functioning. The printed circuit board layout is shown in Figure 5. **Fourth, Testing and Adjustment** Before powering up, double-check the board against the schematic to avoid errors like mis-soldering, short circuits, or missing components. Avoid touching any part of the board when powered on to prevent electric shocks. Use a multimeter to test voltages and signals safely. During testing, block the photoresistor and connect the switch to the "light" position. Tap the microphone with your hand. If the light turns on, the circuit is working. If not, check for faulty connections or incorrect component placement. **Fifth, Troubleshooting and Repair** Common issues include: 1. **No lighting at night despite sound:** Check the microphone sensitivity, C1 capacitance, and transistor biasing. 2. **Excessive sensitivity causing false triggering:** Reduce sensitivity by adjusting component values. 3. **Lighting during the day:** Inspect the photoresistor for proper placement or faults. 4. **No response to sound at night:** Test the NAND gate inputs and IC functionality. 5. **Lights stay on continuously:** Check the thyristor for breakdown. 6. **Incorrect delay time:** Adjust R8 or C3 to modify the timing. By following these steps, you can successfully build and troubleshoot a reliable sound and light controlled delay switch using the CD4011 IC.

Beam Splitter

Beam Splitter,Dichroic Beam Splitter,Optical Beam Splitter Cube,Beam Splitter Cube

Danyang Horse Optical Co., Ltd , https://www.dyhorseoptical.com

Posted on