Ultrasonic ranging device
By introducing a temperature compensation module into the ultrasonic distance measuring device, selecting the appropriate ultrasonic wave speed according to the ambient temperature, the problem of distance measuring accuracy being affected by temperature is solved, the measurement accuracy is improved and safety is increased.
Patent Information
- Application Number
- CN202421370432.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2034-06-17
AI Technical Summary
The distance measurement accuracy of existing ultrasonic distance measurement devices is easily affected by ambient temperature, resulting in inaccurate measurement results.
An ultrasonic distance measurement device is designed, using a temperature compensation module to monitor the ambient temperature in real time through a temperature sensor, and select different ultrasonic wave speeds according to different temperatures for distance measurement calculation, thereby reducing the impact of temperature on distance measurement accuracy.
It effectively reduces the impact of ambient temperature on distance measurement accuracy, improves measurement accuracy, and reminds users to pay attention to safe distance through the acoustic and optical alarm module, which increases the safety and practicality of the equipment.
Smart Images

Figure CN222866871U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of distance measuring devices, in particular to an ultrasonic distance measuring device. Background Art
[0002] An ultrasonic ranging device is a device that uses the reflection principle of ultrasonic waves to measure distance. It is usually composed of a transmitter, a receiver, and a signal processing unit. With the progress of society, people are no longer restricted by traditional manual ranging methods. Ultrasonic ranging technology, as a well-known non-contact ranging method, measures the distance between the sensor and the target object by sending and receiving signals. This technology has been widely used in daily life and work.
[0003] Propagation requires a medium, and sound waves are no exception. In a series of propagation processes, the medium usually does not move with it, but will produce obvious vibrations. In fact, the characteristics of this wave are completely different from those of light waves, because it is an audible mechanical wave. At room temperature, its propagation speed reaches 340m / s, which is much slower than the above-mentioned light waves. The speed has nothing to do with the vibration frequency, but is affected by the temperature of the propagation medium. And because of its slow propagation speed and short wavelength, this characteristic can be used to improve the measurement accuracy, thereby solving the problem that the ranging accuracy of the current handheld ultrasonic ranging device is easily affected by temperature.
[0004] In view of the above problems, the present utility model document proposes an ultrasonic distance measuring device. Utility Model Content
[0005] The utility model provides an ultrasonic distance measuring device, which solves the disadvantage that the distance measuring accuracy of the ultrasonic distance measuring device convenient to be handheld and carried in the prior art is easily affected by temperature.
[0006] The utility model provides the following technical solutions:
[0007] An ultrasonic distance measuring device, comprising:
[0008] A housing, a mounting plate is fixedly arranged on the top of the housing, an ultrasonic transmitter and an ultrasonic receiver are fixedly installed on the top of the mounting plate, a development board for signal processing is arranged in the housing, a single-chip processor is plugged into the development board, and a display screen for displaying the measured distance, a switch button, and an adjustment button for adjusting the safety distance value are arranged on the front of the housing;
[0009] The sound and light alarm module is arranged on the housing and is used to detect the safety range;
[0010] The temperature compensation module is arranged on the mounting plate, so that the single chip processor can achieve the compensation effect by measuring the ambient temperature and selecting different wave speeds according to different temperatures, thereby reducing the influence of the ambient temperature on the ranging accuracy.
[0011] In a possible design, the sound and light alarm module includes an LED lamp and a buzzer fixedly arranged on one side of the outer wall of the shell, and the LED lamp and the buzzer are electrically connected to the single-chip processor.
[0012] In a possible design, the temperature compensation module includes a temperature sensor fixedly disposed on the top of the mounting plate, and the temperature sensor is electrically connected to the single-chip microcomputer processor.
[0013] In a possible design, a plurality of heat dissipation holes are provided on both sides of the shell.
[0014] In a possible design, an elastic band is fixedly provided on the back side of the shell to prevent the device from accidentally falling off.
[0015] In a possible design, a charging interface for charging an internal battery is provided at the bottom of the housing.
[0016] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit the present invention.
[0017] In this application, when in use, the user presses the switch button, the ultrasonic ranging device starts working, the single-chip processor is initialized, checks the connection status of each module, and prepares to receive and process signals, the temperature sensor measures the current ambient temperature, and transmits the data to the single-chip processor, and the single-chip processor selects the corresponding ultrasonic wave speed from the preset wave speed-temperature relationship according to the received temperature data, and performs temperature compensation;
[0018] The single-chip microcomputer processor sends instructions to the ultrasonic transmitter, and the ultrasonic transmitter transmits ultrasonic signals. The ultrasonic signals propagate in the air, and are reflected back after encountering obstacles and received by the ultrasonic receiver. The ultrasonic receiver converts the received signals into electrical signals and transmits them to the single-chip microcomputer processor. The single-chip microcomputer processor calculates the measured distance based on the time difference between the transmission and reception of the ultrasonic signals and the wave speed after temperature compensation.
[0019] The single-chip microcomputer processor transmits the calculated measured distance to the display screen, which displays the current measured distance. The single-chip microcomputer processor compares the measured distance with the safety distance value set by the user through the adjustment button. If the measured distance is less than or equal to the safety distance value, the single-chip microcomputer processor will start the sound and light alarm module, the LED light flashes, and the buzzer sounds an alarm.
[0020] The utility model has the following beneficial effects:
[0021] The utility model uses a temperature compensation module so that the ultrasonic distance measuring device can select different wave speeds according to different temperatures, thereby reducing the influence of ambient temperature on the distance measuring accuracy and improving the measurement accuracy; and when the measured distance is less than or equal to the set safety distance value, the sound and light alarm module can promptly sound an alarm to remind the user to pay attention, thereby increasing the safety and practicality of the equipment.
[0022] The utility model can measure distance accurately and stably, and has multiple functions such as sound and light alarm and temperature compensation, and is suitable for various scenes requiring distance measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the three-dimensional structure of an ultrasonic distance measuring device provided by an embodiment of the utility model;
[0024] Figure 2 A schematic diagram of the structure of an ultrasonic distance measuring device provided by an embodiment of the utility model from another perspective;
[0025] Figure 3 A schematic diagram of another perspective structure of an ultrasonic distance measuring device provided by an embodiment of the utility model;
[0026] Figure 4 A schematic diagram of the structure of a development board of an ultrasonic distance measuring device provided by an embodiment of the utility model;
[0027] Figure 5 An overall program flow chart of an ultrasonic distance measuring device provided by an embodiment of the utility model;
[0028] Figure 6 A flow chart of a temperature compensation program of an ultrasonic distance measuring device provided in an embodiment of the utility model.
[0029] Figure numerals: 1. Shell; 2. Mounting plate; 3. Ultrasonic transmitter; 4. Ultrasonic receiver; 5. Display screen; 6. Switch button; 7. Adjustment button; 8. Development board; 9. Single-chip microcomputer processor; 10. LED light; 11. Buzzer; 12. Temperature sensor; 13. Heat dissipation hole; 14. Elastic band; 15. Charging port. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0031] In the description of the present invention, it should be understood that the terms "opening", "upper", "middle", "length", "inside" and the like indicating orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0032] In order to keep the following description of the embodiments of the present invention clear and concise, the present invention omits detailed descriptions of known functions and known components.
[0033] Embodiment 1
[0034] Please refer to Figure 1-6 , an ultrasonic distance measuring device, which is used in the field of distance measuring devices, including:
[0035] Shell 1, as the external structure of the entire device, provides necessary protection and has certain waterproof and dustproof functions;
[0036] The mounting plate 2 is fixed to the top of the housing 1, on which an ultrasonic transmitter 3 and an ultrasonic receiver 4 are mounted. The ultrasonic transmitter 3 and the ultrasonic receiver 4 are used together, and the model is HC-SR04. The transmitter is responsible for sending ultrasonic signals, and the receiver is responsible for receiving reflected ultrasonic signals to realize the ranging function;
[0037] Development board 8, which is arranged inside housing 1 and used for processing received ultrasonic signals. A single-chip processor 9 is plugged into development board 8 and is responsible for controlling the operation of the entire device, including the transmission, reception, processing and display of ultrasonic signals. The model is STM32F103C8T6, which is a fully functional microcontroller with an operating voltage range of 2.0V to 3.6V, an optimal operating voltage of 3.3V, and support for power-on / power-off reset. In addition, the power consumption brought by the development board during operation is very low, and there are a variety of different modes, such as standby or shutdown, so as to meet different needs;
[0038] The display screen 5, the switch button 6 and the adjustment button 7 are all located on the front side of the housing 1. The display screen 5 is used to display the measured distance information, the switch button 6 is used to control the on / off of the device, and the adjustment button 7 is used to adjust the safety distance value. When the measured distance is less than the safety distance, the device will trigger the sound and light alarm module;
[0039] The sound and light alarm module includes an LED lamp 10 and a buzzer 11, which are fixedly arranged on one side of the outer wall of the housing 1. The LED lamp 10 and the buzzer 11 are electrically connected to the single-chip processor 9. When the measured distance is less than the safe distance, the single-chip processor 9 will control the LED lamp 10 to flash and drive the buzzer 11 to sound an alarm to remind the user. The sound and light alarm module is used to detect the safe range. The level is output according to the input and output pins of the chip. Based on this, the 9012PNP control tube is controlled to achieve the purpose of conduction. The above process is completed. After that, the sound and light alarm module can be controlled to turn the indicator light on or off. If the output of the chip is set to low, the control tube is switched to the on state, and the positive pole of the buzzer 11 is energized, and a sound is emitted at this time, and the LED lamp 10 is lit. When PB6 outputs a high level, the collector of the transistor is in the off state, the buzzer 11 does not sound, and the LED lamp 10 is off. For this design scheme, it fully utilizes the switching characteristics of the tube, and can effectively control its on or off state, thereby realizing the control of the buzzer 11;
[0040] The temperature compensation module includes a temperature sensor 12, model DS18B20, which is fixedly arranged on the top of the mounting plate 2. The temperature sensor 12 is electrically connected to the single-chip processor 9, monitors the ambient temperature in real time and transmits the temperature information to the single-chip processor 9. The single-chip processor 9 selects different wave speeds for ranging calculation according to the received temperature information to compensate for the influence of the ambient temperature on the ranging accuracy. The influence of temperature on the ultrasonic wave speed is very large. The ambient temperature information is obtained through the sensor, and then the information is read. In order to successfully obtain the temperature information, the sensor is first initialized, and the single-chip processor 9 is controlled to send a temperature conversion command to the sensor, read the temperature data and process it, and then the single-chip processor 9 selects different wave speeds according to different temperatures to achieve the compensation effect. The specific flow chart of temperature compensation is as follows: Figure 6 shown.
[0041] Embodiment 2
[0042] Improvements based on Example 1:
[0043] Please refer to Figure 1-3 A plurality of heat dissipation holes 13 are provided on both sides of the shell 1 to increase the heat dissipation performance of the device and ensure that the internal components can maintain a stable temperature during long-term operation; an elastic band 14 is fixedly provided on the back of the shell 1 to fix the device at a position to be measured to prevent the device from accidentally falling off; a charging interface 15 is provided at the bottom of the shell 1 to charge the battery inside the device. The charging interface 15 adopts a standard USB interface to facilitate users to perform charging operations.
[0044] However, as is well known to those skilled in the art, the working principles and wiring methods of the ultrasonic transmitter 3, ultrasonic receiver 4, single-chip processor 9, LED light 10, buzzer 11 and temperature sensor 12 are commonplace, and are all conventional means or common knowledge, and will not be elaborated here. Those skilled in the art can make any selections according to their needs or convenience.
[0045] The above are only specific implementations of the utility model, but the protection scope of the utility model is not limited to them. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the utility model, which should be included in the protection scope of the utility model; in the absence of conflicts, the embodiments of the utility model and the features in the embodiments can be combined with each other. Therefore, the protection scope of the utility model shall be based on the protection scope of the claims.
Claims
1. An ultrasonic distance measuring device, characterized in that: include: A housing (1), a mounting plate (2) is fixedly arranged on the top of the housing (1), an ultrasonic transmitter (3) and an ultrasonic receiver (4) are fixedly installed on the top of the mounting plate (2), a development board (8) for signal processing is arranged inside the housing (1), a single-chip processor (9) is plugged into the development board (8), and a display screen (5) for displaying a measured distance, a switch button (6), and an adjustment button (7) for adjusting a safety distance value are arranged on the front of the housing (1); An audible and visual alarm module is arranged on the housing (1) and is used to detect a safe range; The temperature compensation module is arranged on the mounting plate (2), so that the single chip processor (9) can achieve a compensation effect by selecting different wave speeds according to different temperatures through the measured ambient temperature, thereby reducing the influence of the ambient temperature on the distance measurement accuracy.
2. An ultrasonic distance measuring device according to claim 1, characterized in that: The sound and light alarm module comprises an LED lamp (10) and a buzzer (11) fixedly arranged on one side of the outer wall of the housing (1); the LED lamp (10) and the buzzer (11) are both electrically connected to the single-chip processor (9).
3. The ultrasonic distance measuring device according to claim 1, characterized in that: The temperature compensation module comprises a temperature sensor (12) fixedly arranged on the top of the mounting plate (2), and the temperature sensor (12) is electrically connected to the single-chip processor (9).
4. The ultrasonic distance measuring device according to claim 1, characterized in that: A plurality of heat dissipation holes (13) are provided on both sides of the housing (1).
5. The ultrasonic distance measuring device according to claim 1, characterized in that: An elastic band (14) is fixedly arranged on the back of the housing (1) to prevent the device from accidentally falling off.
6. The ultrasonic distance measuring device according to claim 1, characterized in that: The bottom of the housing (1) is provided with a charging interface (15) for charging the internal battery.