Every time I go home and walk up the stairs, I am always scared. The corridor lights are often broken, and no one changes the bulbs, or they are not smart enough and need to be operated manually. Especially when I get to the door to get the key, the corridor lights are off and need to be re-lit. So I imagined that if I could make a sound and light controlled corridor light by myself, and fix it on the door with mosquito nails: when someone walks through the staircase at night, when there are footsteps or other sounds, the corridor lights will automatically light up and provide lighting; when people enter the house or walk out of the apartment, the corridor lights will automatically go out after a delay of a few minutes. In the daytime, even if there is sound, the corridor lights will not light up, which can achieve the purpose of energy saving.
This sound and light controlled delay switch is not only suitable for the corridors of residential areas, but also for public places such as factories, office buildings, and teaching buildings. It has the advantages of small size, beautiful appearance, easy production, and reliable operation, and is suitable for self-made by the majority of electronics enthusiasts.
1. Working principle of the circuit
The circuit schematic diagram of the sound and light controlled delay switch is shown in the figure. The main components in the circuit are the digital integrated circuit CD4011, which contains 4 independent NAND gates D1~D4, with a simple circuit structure and high reliability.
As the name implies, the sound and light controlled delay switch uses sound to control the "opening" of the switch, and the delay switch "automatically closes" after a few minutes. Therefore, the function of the entire circuit is to process the sound signal and convert it into the switching action of the electronic switch. After clarifying the signal flow of the circuit, the circuit can be divided into several units according to the main components, and the block diagram shown in Figure 2 can be drawn.
Analyze Figure 1 in conjunction with Figure 2. The sound signal (footsteps, applause, etc.) is received by the electret microphone BM and converted into an electrical signal, which is coupled to D3 through C1 for voltage amplification. The NAND gate D3 is an amplifier circuit at this time, and the amplified signal is sent to one end of R3. R3 and R4 form a voltage divider circuit and are connected to the pin of the control gate D4 as a voice control signal. When there is a sound signal, the 10th pin of is a high level "1", and the intermediate voltage of R3 and R4 is a low level "0", that is, the pin of the control gate D4 is a low level.
In order to make the sound and light control switch disconnect during the day, a light control circuit is formed by components such as photoresistor RG, and R6 and RG form a series voltage divider circuit. When there is no ambient light at night, the resistance of the photoresistor is very large, and the voltage at both ends is high. Then the 1st foot of the NAND gate D1 is a high level "1", and it is a low level "0" through the NAND gate D1. Then it is input to the 13th foot of the control gate through the diode D1, which is also a low level "0". The sound and light control circuit has the conditions for light control. The strong environment during the day makes the resistance of RG very small. The voltage at both ends of RG is almost 0, that is, a low level "0". Then the 1st foot of the NAND gate is a low level? 0', so that the sound and light control circuit does not have the conditions for light control, and the electronic switch is in the disconnected state.
At night, when there is an external sound signal, one end of the input end of the control gate (NAND gate) D4 is low level "0", and the output is high level "1". The unidirectional thyristor is turned on and the electronic switch is closed; at the same time, C3 is charged, and C3 and R5 form a delay circuit. The delay time can be changed by changing the value of R5 or C3 to meet different delay requirements. After C3 is fully charged, it only discharges to R5. When it is discharged to a certain level, the input ends 5 and 6 of the NAND gate D2 are low level, the output is high level, and the 12th foot of the NAND gate is high level "1". At the same time, when there is no sound signal, the 13th foot of the NAND gate is also high level "1". The two input ends of the NAND gate D4 are high level, and its output is low level? 0', which turns off the unidirectional thyristor. The electronic switch is disconnected, completing a complete process from opening to closing of the electronic switch.
Diodes VD1~VD4 perform bridge rectification on the AC, turning it into pulsating DC, which is then stepped down and filtered by C4 to become the DC power supply of the circuit, supplying power to BM, IC, etc.
2. Selection of components
The CMOS digital integrated circuit is selected. CD401 1 has four independent NAND gate circuits. The internal function is shown in Figure 3. Vss is the negative pole of the power supply. VDD is the positive pole of the power supply. The thyristor T uses the imported unidirectional thyristor 1006 type of /4OOV. If the load current is large, unidirectional thyristors of specifications such as 3A, 6A, and 1OA can be selected. Its measurement method is: use the gear. Connect the red test pen to the negative pole of the thyristor and the black test pen to the positive pole. At this time, the needle has no reading, and then touch the control pole K with the black test pen. At this time, the meter has a reading. The black test pen is immediately removed. At this time, the meter still has a reading (note that the positive and negative test pens are always connected when touching the control pole), indicating that the thyristor is intact. The electret uses a small microphone used in general recorders. Its measurement method is: use the gear to connect the red test pen to the S of the shell and the black test pen to D. At this time, blow air to the electret with your mouth. If the needle swings, it means that the electret is intact. The larger the swing, the higher the sensitivity; the photoresistor is 625A type, the resistance is below 20K when there is light, and the resistance value is greater than 1OOM0 when there is no light, indicating that the component is intact. The diode uses an ordinary rectifier diode ~ 1N4007. In short, the selection of components can be flexibly mastered, and the parameters can be selected within a certain range. Other components can be marked as shown in Figure 1.
3. Installation and production
After buying electronic components, first check the materials list carefully and use a multimeter to roughly measure each component (because they have been measured before leaving the factory).
When welding, be sure to weld non-polarized resistors and capacitors first. Resistors should be installed horizontally and capacitors should be installed vertically, close to the circuit board. When welding polarized components such as electrolytic capacitors, microphones, rectifier diodes, transistors, thyristors, etc., do not install them in reverse. Pay attention to the correct polarity, otherwise the circuit will not work properly or even burn out the components.
4. Debugging
Before debugging, carefully check the soldered circuit board against the circuit diagram to avoid wrong soldering, missing soldering, short circuit, etc. After power is turned on, the human body is not allowed to touch any part of the circuit board to prevent electric shock and pay attention to safety. When using a multimeter for testing, just touch the two probes of the multimeter to the corresponding parts of the circuit board.
When debugging this circuit, please block the light of the photoresistor. Connect AB to the switch of the light, and tap the electret with your hand. The light should be on at this time. If you shine light on the photoresistor and tap the electret again, the light will not be on. This means that the photoresistor is intact, and the production is successful. If it is unsuccessful, please carefully check whether there is false wrong soldering and tin drag short circuit phenomenon.
Previous article:A must-have for night owls: DIY USB keyboard night light
Next article:Is LED lighting a "lamp" or a "lamp fixture"?
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Tips for implementing I2C with MSP
- ARM-based support for advanced video graphics capabilities on MCUs
- 12-bit ADC
- New Bluetooth TFT color screen capacitive touch electronic bracelet 10 yuan each
- Research and application of GaN materials
- What does it mean to have a window in the solder mask layer of a PCB? Reasons for having a window in the solder mask layer of a PCB
- Signal generator and DA conversion
- Use AM5728 EVM to make and download 6678 program
- Comments are rewarded | [Discovery] Enter the world of TI millimeter-wave radar and quickly acquire design skills
- 【micropython】Bluetooth module has been added to ESP32