Views: 5 Author: Site Editor Publish Time: 2018-09-17 Origin: Site
The system selects 52 single-chip microcomputers as the core of the control system. The value of ultrasonic transducer for distance is displayed by the 4-digit common cathode digital tube. The different distances between the obstacles use the different alarm sounds of the buzzer frequency, and the ultrasonic transmission signal is composed of 52 single-chip microcomputers. The P1.0 port is sent to the ultrasonic transmitting circuit to transmit the ultrasonic wave, and the alarm system is composed of a buzzer circuit. In this design, the probe that sends and receives ultrasonic waves is separated, so that the transmission and reception signals are not aliased, thereby avoiding interference, and the reliability of the system can be well improved. The system block diagram is as follows:
Ultrasonic ranging module
The basic principle is that the ultrasonic ranging module can provide 2cm-400cm non-contact distance sensing function, the ranging accuracy can reach 3mm, and the module includes ultrasonic transmitter,receiver and control circuit. Basic working principle includes aspects:
1) Using IO port TRIG to trigger ranging, giving a high level signal is at least 10us;
2) The module automatically sends 40khz square waves to automatically detect whether there is a signal return;
3) There is a signal return and output through the IO port ECHO, the high level duration is the time from the transmission to the return of the ultrasonic wave, the test distance = (high time * sound speed)
The display module of ultrasonic sensor for distance measurement is a digital tube divided into dynamic display and static display. Here, the dynamic display is selected, and the dynamic display driver: the digital tube dynamic display interface is one of the most widely used display modes in the single-chip microcomputer, and the common pole COM of each digital tube .The strobe control circuit is added, and the bit strobe is controlled by independent I/O lines. When the MCU outputs the glyph code, all the digital tubes receive the same glyph code, but the digital tube will display the glyph, depending on In the control of the single-chip strobe COM terminal circuit of the single-chip microcomputer, we only need to turn on the control of the digital tube to be displayed, and the bit will display the glyph, and the digital tube without the strobe will not light. By controlling the COM end of each digital tube in turn, the digital tubes are controlled to display in turn, which is dynamic driving. During the rotation display process, the lighting time of each digital tube is 1~2ms. Due to the persistence of human vision and the afterglow effect of the LED, although the digital tubes are not lit at the same time, as long as the scanning speed is sufficient fast, the impression is a stable set of display data, there will be no flickering, the dynamic display is the same as the static display, which can save a lot of O ports, and lower power consumption. The alarm module controls the buzzer's chime according to the distance displayed by the distance (using the I/O port to generate a square wave of frequency).The main functions of the software design system program design are to transmit ultrasonic waves, receive ultrasonic waves, calculate measurement distance, data calculation, buzzer alarm and digital tube display main program flow chart as above. When an interrupt occurs, interrupt processing will be performed. Design interrupt processing flow chart interrupt processing flow includes alarm processing and digital tube scanning processing.
Products | About Us | News | Markets and Applications | FAQ | Contact Us