introduction
As the number of cars in our country increases sharply year by year, the number of parking spaces and parking lots cannot keep up with the pace of growth. More and more people are worried about how to park. The increasingly crowded parking environment requires people to become more proficient in car parking technology, which increases people's stress outside of work and reduces people's quality of life. Therefore, how to solve the inconvenience during parking, eliminate safety hazards, and quickly, accurately and safely park the car in the appropriate location has gradually attracted people's attention.
1 Working principle and function of the system
The intelligent parking system can be divided into a control part and a signal detection part.
The signal detection part includes obstacle detection module, light source detection module and speed detection module; the control part includes controller module and motor control module. The block diagram of the basic module of the intelligent parking system is shown in Figure 1.
Figure 1 Basic block diagram of intelligent parking system
The working principle of the system is as follows: after the car is started, the speed of the car is detected through the Hall sensor A44E, and the car is intelligently limited. The car avoids obstacles through the infrared photoelectric sensor while the car is traveling. The garage system sends a light source indication signal, and the photosensitive transistor receives the garage signal. Instruction information to park the car after arriving at the designated garage.
1.1 Minimum system design of microcontroller
AT89C52 is a type of 51 series microcontroller. It is a low-power, high-performance, CMOS 8-bit microcontroller. It contains 8KB of rewritable FLASH read-only program memory and 256B of random access data memory (RAM). Produced by ATMEL company using high-density, non-volatile storage technology, it is compatible with the standard MCS-51 instruction system. It has a built-in general-purpose 8-bit central processor and FLASH storage unit, and there is ROM/EPROM on the chip. Therefore, this chip consists of The minimum system is simple and reliable, as long as the microcontroller is connected to the clock circuit and reset circuit.
1.2 Obstacle avoidance circuit design
Infrared photoelectric sensors have many characteristics such as non-contact, fast response, reliable performance, small size, and light installation. Therefore, they are widely used in industrial automation devices and smart cars. The photoelectric obstacle avoidance sensor used in this design is HS0038B. The working principle of the infrared photoelectric receiving circuit is: when receiving a pulse modulated signal with a carrier frequency of 38kHz, first, the infrared sensitive element in HS0038B converts the pulse modulated infrared light signal into electrical The signal is then amplified by the preamplifier and automatic gain control circuit, and then filtered by the band-pass filter. The filtered signal is demodulated by the demodulation circuit, and finally the output circuit reversely amplifies and outputs a low level. ; When no carrier signal is received, the circuit outputs high level. The infrared transmitting circuit uses a 555 timing circuit to generate a square wave to modulate the infrared transmitting tube.
1.3 A44E speed measurement circuit design
The main function of the Hall sensor A44E in the speed measurement system is to collect wheel speed. Every time the wheel rotates once, the magnet passes through the A44E once, and the third pin of the A44E outputs a pulse signal. The period of the pulse signal has the following relationship with the motor speed:
In the formula: n is the motor speed; P is the number of pulses for one revolution of the motor; T is the period of the output square wave signal.
The pulse signal is used as the external interrupt signal of the microcontroller AT89C52 and is input from the P3.2 port.
1.4 Motor drive circuit design
The action execution unit is two decelerated DC motors that drive the left and right wheels of the car. By controlling their speed, the motion state of the car is controlled. However, the control signal sent by the action control unit is very weak and cannot directly drive the DC motor. It must be matched with a reasonably designed drive circuit. The commonly used drive circuit is H bridge. During the design process, it was discovered that due to the inconsistent turn-on and turn-off times of the triodes, the H-bridge built with triodes often experienced micro-short circuits when the motor current was commutating, causing serious heating of the triodes and causing great fluctuations in the power supply of the entire circuit. , very power-consuming. Therefore, this design finally adopted the integrated H-bridge L298. In addition, during the design process, it was found that the reverse electromotive force generated by the rotation of the motor would seriously affect the output state of the sensor, sending erroneous path information to the processor, causing the car to frequently An error occurs. Therefore, this design uses a dual power supply, that is, the sensor and the chip share a set of power supplies, and the motor has a dedicated power supply. The transmission of the intermediate signal uses a 4N25 optocoupler circuit for electrical isolation.
1.5 Light source guidance circuit design
This design uses a phototransistor as the light source detection sensor because its photosensitive voltage changes significantly (the voltage value changes around 60~100mV) and is cheap. The light source guidance module needs to install three photosensitive transistors in front of the car. It uses the light source signal from the garage to guide the car to the designated garage for parking. LM324 is used as the core amplifier component of the light source guidance module to amplify the signal.
1.6 Parking lot system design
In order to better complete the car obstacle avoidance, light source guidance and storage process, the design of the parking lot system is also very important. The parking system design diagram is shown in Figure 2.
Figure 2 Parking lot system design diagram
2 Software design
System software design is carried out under the Keil C51 integrated development environment. The software mainly includes the system main program, obstacle avoidance subprogram, light source guidance subprogram and speed measurement and speed limiting subprogram, etc. The overall process of the parking system is shown in Figure 3, and the flow chart of the obstacle avoidance program and the light source guidance program are shown in Figures 4 and 5 respectively. The design idea of the speed measurement and speed limit circuit software is to convert the time of each lap into speed, and then compare it with the set speed. If the measured speed is greater than the set value, the motor is controlled to decelerate to the set value; if the measured speed is less than the set value value, the motor is controlled to accelerate to the set value and the intelligent speed limit of the car is completed.
Figure 3 Overall flow chart of the intelligent parking system
3. Testing and connection of each module
Connections of each module: the left-turn input terminal of the car servo is connected to P3.4; the right-turn input terminal of the car servo is connected to P3.5; the forward input terminal of the car drive motor is connected to P3.6; the backward input terminal of the car drive motor is connected to P3.7; The left sensor output terminal of the photoelectric obstacle avoidance module is connected to P1.0; the right sensor output terminal of the photoelectric obstacle avoidance module is connected to P1.1; the left sensor output terminal of the light source guidance module is connected to P1.2; the middle sensor output terminal of the light source guidance module is connected to P1.3; The right sensor output terminal of the light source guidance module is connected to P1.4.
Overall test of the car: Place the car at the entrance of the parking lot, turn on the power of the car, and turn on the light source power supply corresponding to the garage position in the garage. The car avoids obstacles and passes through the downhill area of the parking lot, reaches the front of the designated garage, relies on the light source to guide it into the garage, and parks. .
Figure 4 Obstacle avoidance program flow chart
Figure 5 Light source guidance program flow chart
4 Conclusion
The intelligent parking system designed in this article can realize the function of automatically driving a car into a designated parking space in the laboratory. Park the car at the entrance of the parking lot, and then the car owner can leave the car. At this time, the car can lead the car into the parking lot according to the vehicle induction signal (light source guidance signal) in the parking lot, thereby realizing the automatic parking process.
Previous article:Design of digital capacitance meter using AT89C2051 microcontroller
Next article:Detailed explanation of the internal system structure and functions of STC89C52RC microcontroller
Recommended ReadingLatest update time:2024-11-16 11:50
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Why can't the segment code LCD screen be lit up when driving with STML152?
- Disassembling Nokia Bluetooth Headset BH501 from over 10 years ago
- Analysis of the types of pads and design standards in PCB design
- The pitfalls encountered when playing with TMS320F28379D
- Add RTT log output to common projects. Simple configuration. It is very easy to use.
- The control motor is found to have insufficient stroke. Please provide a solution.
- [Flower carving DIY] Interesting and fun music visualization series project (27) - Magnetic stirring LED water rotating lamp
- Failed to import brd file into AD
- Confirm that your personal information is correct
- STM32F407VET6 Another question about PWM wave