This multifunctional window has the following 5 functions:
1. Prevent harmful gas leakage: Automatically detect the concentration of harmful gases such as gas, smoke, alcohol, etc. in the room. When the set threshold is reached, the window will be opened automatically, and ventilation such as exhaust fan or air conditioner will be started;
2. Anti-theft alarm: The pyroelectric human infrared probe detects the human body approaching from outside the window, closes the window and locks it in time, and sends out an alarm signal;
3. Anti-humidity: Automatically close the window when it rains or fogs, and the air humidity is high;
4. Automatically close the window when it is dark (can be set to ON or OFF);
5. Timer switch: Open or close the window according to the set time.
Working principle: See the attached figure for the multifunctional window circuit.
The single-chip microcomputer adopts the interrupt query working mode. The signal of the gas sensor is amplified by IC4A, which flips IC4B and isolates the high level input to N3 and N1 through the optical coupler. After inversion, N3 triggers interrupt 0. After the single-chip microcomputer finds that P31 is at a low level, it outputs the window opening instruction to P10 and P11. After isolation, Q1~Q4 drives the motor M1 to open the window; P2 port turns from high to low, Q5 is turned on, and the normally open contact of J1 is closed to start the exhaust fan or air conditioner. C2 can eliminate certain interference to avoid false triggering. To simplify the circuit, only one sensor input is drawn in the figure. P34, P35, and P37 receive signals from pyroelectric, hygroscopic, and photosensitive probes respectively. SW2 is a multi-function button. When SW1 is not pressed, SW2 is a manual window opening/closing button. Press SW1 to trigger interrupt 1 and enter the time setting mode. Each time SW2 is pressed, the setting time increases by half an hour. After stopping the button for 30 seconds, the setting ends and the timer starts working. After the anti-theft alarm is triggered, press SW2 to stop the sound of the speaker. K1 and K2 are the window opening and closing detection switches, and J2 is the window lock electromagnet coil. After the window is closed, the window is locked. LED is a multi-function indicator: after power-on, the LED lights up, indicating that it is in the initial delay (due to the initial instability of the sensor, a longer delay is required); when setting the time, each time SW2 is pressed, the LED flashes once, confirming that the key input is valid; when the gas detection is activated, the LED also lights up, and it is off at other times.
In the figure, N1 and others are triodes, N3 is a non-OR gate composed of five diodes and one triode, and the amplification and comparison of the signals of the four sensors are completed by two quad op amps. In order to ensure stable operation, the microcontroller is completely isolated from the peripheral circuit and powered separately. The entire circuit is installed in the aluminum alloy window frame, and a detection hole is opened on the outside of the window frame for the sensor. Another wire of the gas-sensitive probe is installed at the position to be detected. M1 is installed on the movable window leaf together with the mechanical transmission mechanism, and is connected to the drive circuit in a special way (the entire mechanical transmission part has been patented). In order to prevent M1 from burning due to the blockage of the mechanical part, the program needs to detect the opening and closing process of the window. When the movable window leaf is blocked, it can automatically retreat and try again. If the switch cannot be opened and closed normally after three attempts, the action stops and an alarm signal is issued. A forced reset button is added to the RST end.
Previous article:Simple flashing light working on AC power
Next article:[Photo] Precision single-supply light detection circuit design
Recommended ReadingLatest update time:2024-11-16 19:46
- Popular Resources
- Popular amplifiers
- Learning MCU Technology from Scratch (Liu Jianqing)
- Wireless doorbell alarm based on AT89C2051 single chip microcomputer
- Infrared remote control LED electronic clock using real-time clock chip DS1302+AT89C2051
- Infrared remote control LED electronic clock using real-time clock chip DS1302+AT89C2051.rar
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- WiFi indoor positioning technology and its evolution that has triggered the Internet of Things application
- Help: Does anyone have a power supply design that complies with industry design standards IEC61010, IEC60950?
- [Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] + Development Board Firmware Upgrade
- Assembly Language (4th Edition)
- Gaoyun FPGA GW1N-4B Marquee Experiment
- Tell us your tips on using KICAD
- Python is now officially the second most popular programming language
- Number monitoring of moving objects
- The role of capacitors
- MSP430 MCU Development Record (19)