0. Introduction
Intelligent anti-theft system has become an essential part of warehouse management. Digitalization, wirelessization and integration are the technical development trends of anti-theft systems. For this reason, modern anti-theft systems widely use infrared as sensor signals. Since infrared is invisible light, it has strong concealment and confidentiality. The anti-theft system based on infrared sensor signals has a simple structure and accurate and timely alarm, making it the best choice for security defense. This design mainly designs the basic functions of the intelligent warehouse anti-theft system, which can make judgments on the detected signals in different time periods and realize corresponding functions.
1. System solution
The system requires the following features:
1. The anti-theft system is in anti-theft state during the period from 18:00 to 08:00. When someone enters, an audible and visual alarm is issued and the entry time is recorded;
2. The anti-theft system is in the state of detecting the number of people during the time period of 08:00-18:00. Every time a person enters, it is counted once. When the upper limit of the number of people is reached, an alarm is issued;
3. The anti-theft system is in light control state during the period from 19:00 to 06:00. When it detects someone entering, the light will be turned on, and when no one is there, the light will be turned off.
The intelligent warehouse anti-theft system consists of five units: MCU, infrared signal detection, keyboard control, display unit, and sound and light alarm. The system block diagram is shown in Figure 1.
Figure 1 System Block Diagram
2. System Hardware
2.1 Main Control MCU
MCU is the control unit of the system, which completes the processing of input signals such as infrared and keyboard, and sends corresponding instructions to output units such as display, sound and light. MCU uses the single-chip microcomputer AT89S52, which is a low-power, high-performance 8-bit microcontroller with 8k in-system programmable Flash memory to meet the storage needs of user code.
2.2 Infrared signal detection unit
The detection unit uses a human infrared sensing module as a sensor to input alarm signals. The module has a long straight-line detection distance, a wide range, and relatively stable operation. When equipped with a Fresnel lens, the sensor's detection radius can reach 15m. The focal length of the Fresnel lens is generally around 5cm. When in use, adjust the distance between the Fresnel lens and the sensor according to actual conditions. Generally, fix the lens 1~5cm in front of the sensor.
The human infrared sensing module is shown in Figure 2. Pin 1 is connected to the negative pole of the power supply, and pin 3 is connected to the positive pole of the power supply. The power supply is 6~9V DC voltage; pin 2 outputs an alarm signal, the signal amplitude is about 4~6V, high level is effective, the horizontal sensing angle is 90~140 degrees, the vertical sensing angle is 15~30 degrees, the sensing distance is 0.5~15m, W1 can adjust the sensitivity, and W2 can adjust the output delay within the range of 5-120S.
Figure 2 Human infrared sensing module
After power-on, if someone moves in the sensing area, the module will have continuous pulse output until the person leaves the sensing area and stops outputting after a delay of a certain period of time.
2.3 Sound and light alarm unit
This unit uses a red LED and a blue LED to simulate a warning light, and a passive buzzer to simulate a siren. The effects of the warning light and siren are realized through programming. When there is an alarm signal, the microcontroller sends a command to drive the light-emitting tube and buzzer to realize the alarm function. Another LED realizes the lighting function.
2.4 Keyboard control unit
The keyboard control unit uses 8 independent keys to input data, which can adjust the time, set the upper limit of the number of alarms and release the alarm, thus realizing the human-computer interaction function of the system.
2.5 Display Unit
Considering that the amount of alarm information is not very large, the 8-bit common anode LED digital tube can fully meet the needs. The digital tube is cheap and flexible to program. The dynamic display method can also save the I/O port line of the microcontroller. The system diagram is shown in Figure 3.
Figure 3 System circuit diagram
3. System software
When the system is working, the main program is responsible for various initialization operations of the system, checks whether the hardware circuit is normal, and sets the timer. The specific process is shown in Figure 4.
Figure 4 Main program flow chart
When the system is working, if the infrared sensor detects someone approaching, a high-level alarm signal will be generated and input to the main control chip. The main program will jump to the corresponding functional area by querying the current time: if it is in the first period, the microcontroller will issue a command to realize the sound and light alarm and record the current time; if it is in the second period, the number of people passing by will be counted; if it is in the third period, the lighting system will be controlled to turn on and turn off the lighting system after the person leaves. The infrared signal judgment subroutine and the timing interruption process are shown in Figure 5.
Figure 5 Infrared signal judgment subroutine and timing interrupt flow
Conclusion
This paper uses a method that combines pyroelectric infrared sensors with single-chip microcomputers to design an intelligent warehouse anti-theft system, and installs it in key warehouses. After actual testing, the system has the advantages of simple structure, low cost, timely and accurate alarm, and good concealment and confidentiality. It can be used in warehouses, shops, homes and property management.
Previous article:Space vector control variable frequency power supply based on 68HC908MR16 single chip microcomputer
Next article:Using DSP to control high power factor PWM rectifier
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- 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
- PCB drawing process shortcut keys
- How to start power supply design
- Has anyone tried the baud rate adaptation of LIN communication?
- Analog Electronics Design
- Will adding a nonlinear link to the RC bridge sine wave oscillation circuit cause waveform distortion?
- Introduction to TI_DSP link command file (*.cmd)
- [N32L43x Review] 2. Turn on the lights, blink, blink, blink...
- EEWORLD University Hall - Talking about the development creativity of electronic products and using network resources to help development
- The output of the op amp in the active integrator circuit oscillates. What should I do?
- Developing Minitel Applications with ESP32 and MicroPython