Electricity brings economic benefits to human beings and is convenient and environmentally friendly, but we should save electricity, pay attention to safety, and prevent fires. Energy saving is a major issue to reduce costs and improve economic benefits. Paying attention to safety when using electricity and preventing fires are issues we need to pay attention to at all times. According to some social phenomena that cause fires, an energy-saving power-off protection circuit based on a single-chip microcomputer is designed.
1 Hardware structure design
The hardware circuit is shown in Figure 1. S1 is a manual power switch; S2 is closed when pressed and disconnected when released; when S2 is pressed, the microcontroller starts running, and after about 2 seconds, KM is closed, and AC 220 V can continuously power the electrical equipment. After 5 minutes of power supply, the microcontroller controls the power supply according to the information detected by the sensor; when a certain sensor detects information that makes P1.1 high, P1.0 outputs a 5 V high level to pin 3 of U4, while pin 2 of U4 is only 1.5 V, so that pin 1 of U4 outputs a high level to turn on VT1 and VT2, so that the 12 V DC power supply can power the coil of relay JZC-36F, and KM is closed, so that AC 220 V can normally power the electrical equipment. When the sensor detects the information that makes P1.1 a low level, after a delay of 1 minute, P1.1 is detected again. If P1.1 is a low level for 5 consecutive minutes, P1.0 outputs a low level to pin 3 of U4, and pin 1 of U4 outputs a low level to the base of VT1. VT1 is cut off, VT2 is cut off, the coil of relay JZC-36F is de-energized, KM is disconnected, and the AC 220 V power supply is cut off.
VD3 and VD4 are isolation diodes for line-OR operation, VD2 is a protection diode, VD1 is used to raise the emitter potential of VT1, and VT2 must use a high-power transistor, such as the JE9051 silicon medium-power transistor. In order to make the relay operate reliably, two power supplies, +5 V and +12 V, are designed in the circuit. The models or parameters of the components are shown in Table 1.
2 Sensor signal processing circuit
The sensor signal processing circuit is shown in Figure 2. The human infrared sensor is used to detect infrared rays of a specific wavelength emitted by the human body, and to perform non-contact detection at a long distance. Its operating voltage is 3 to 15 V. When a human body enters the sensor sensing area, the sensor receives a human infrared signal with a frequency of 0.1 to 8 Hz, and pin 2 outputs a weak AC signal.
The output signal of the sensor pin 2 is amplified in two stages and then output from pin 1 of U6. The signal amplitude is 0.5-5 V and the DC component is 3 V. U7, D5, D6, R14, R15, R16, and R17 form a dual-gate voltage comparator. If there is no signal output from pin 1 of U6, pin 2 of U7 is 3.3 V, pin 3 of U7 is 2.7 V, and pin 1 of U7 outputs a low level. When the output of pin 1 of U6 is greater than 4 V or less than 2 V, pin 1 of U7 outputs a high level to the CPU.
3 Software Design
The program flow chart is shown in Figure 3. When it is necessary to turn on the electrical equipment, press S2 for about two seconds to start the single-chip microcomputer, make P1.0 high, and close KM to continuously power the electrical equipment; make P1.1 high, and set P1.1 to input state. Start to detect P1.1 after 5 minutes. If P1.1 is high, make P1.0 high, assign R0 to 05H, and return to detect P1.1 again; if P1.1 is low, delay 1 minute, if R0 minus 1 is not 0, return to detect P1.1 again, if R0 minus 1 is 0, make P1.0 low, and cut off the power supply of the electrical equipment.
The reference source program is as follows:
4 Application Examples
The following example illustrates the application of this design. In a home, according to the structure of the living room, find a suitable location and install the actual circuit shown in Figure 1 in a closed box, which should be both convenient to operate and beautiful. S1 in Figure 1 can be replaced by the user's main power switch, and 4 to 6 human infrared sensors can be installed to detect whether there is anyone in the living room from different directions. The power supply of all electrical equipment in the living room except lighting is output from the AC 220 V output terminal in Figure 1. In this way, after the electrical equipment in the living room is started, if there is no one in the living room for 5 consecutive minutes, the power supply of the living room area will be automatically cut off, which not only saves electricity, but also prolongs the use time of electrical equipment, and can effectively prevent the occurrence of electrical fires.
5 Conclusion
The innovation of this article is to design a low-cost energy-saving and power-off protection circuit that can effectively save electricity, extend the service life of electrical equipment, and prevent electrical fires. It can be used at home, in offices, student dormitories, etc., and is easy to install and debug. A large number of practical uses have proved that as long as the sensor is installed in a suitable position, the design can work reliably to achieve the purpose of energy saving and power-off protection. However, different sensors are used for different control purposes. The signal output by the sensor is weak and must be amplified by two stages and a dual-gate voltage comparator. The pulse signal sent to P1.1 should be a strong pulse signal.
Previous article:DC-DC power supply drives PA to improve transmission efficiency of WCDMA mobile phones
Next article:Research on Voltage Flicker Measurement Based on LabWindows /CVI
- 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
- AM335x Evaluation Board Quick Test (1)
- [TI mmWave Radar Review] Introduction to Sensor Management Module
- The relationship between FPGA memories
- How to choose a wireless communication module with long distance and fast speed?
- Survival rules for electronic engineers in the workplace, every word is true!
- [Project source code] [Modelsim FAQ] No error but always shows Loading
- DB HiTek Completes Global Shutter and SPAD Technology Development to Further Expand Image Sensors
- 【XMC4800 Relax EtherCAT Kit Review】+ Getting Started with DAVE, Modbus Bus Comprehensive Application
- STM32F767 DAC output problem
- Celebrating the Golden 50th Anniversary of the Microprocessor