Level switching circuit and ultrasonic radar level switching control system and method
By using the level conversion circuit of the Darlington transistor array and dual comparator in the ADAS system, the number of components and space occupancy required for level conversion between the ultrasonic radar and the ECU is solved, and the efficient level is achieved Conversion improves the compactness and integration of the system.
Patent Information
- Application Number
- CN202410979610.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-12
AI Technical Summary
In Advanced Driver Assistance Systems (ADAS), level conversion between ultrasonic radar and electronic control unit (ECU) requires designing level conversion circuits, resulting in an increase in the number of components and board space occupancy, affecting the integration and compactness of the system sex.
Using a level conversion circuit including a Darlington transistor array and a dual comparator, multiple transmit level conversion is realized by sharing a Darlington transistor array, and high and low voltage signal conversion is processed through a dual comparator to reduce the number of devices and occupancy. area.
It effectively reduces the number of devices required for level conversion, reduces the cost, improves the compactness and integration of the circuit, and ensures level conversion performance.
Smart Images

Figure CN118944656A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a level conversion circuit, an ultrasonic radar level conversion control system and a method. Background Art
[0002] With the rapid development of the automotive industry and the continuous advancement of autonomous driving technology, advanced driver assistance systems (ADAS) have become an indispensable part of modern vehicles. In ADAS systems, ultrasonic radar, as an important sensor, is widely used in short-range obstacle detection, such as automatic parking, blind spot monitoring and other functions. Ultrasonic radar usually operates at 12V, but the microcontroller (MCU) inside the electronic control unit (ECU) that communicates with it often uses a lower voltage level, such as 3.3V or 5V. Therefore, to achieve effective communication between ultrasonic radar and ECU, it is necessary to design a level conversion circuit to match different voltage standards.
[0003] At present, there are two common level conversion schemes: one is to use LIN (Local Interconnect Network) transceiver for level conversion; the other is to use discrete transistors to build a level conversion circuit. Although both schemes can achieve the basic function of level conversion, considering that ADAS systems are usually equipped with multiple ultrasonic radars, each ultrasonic radar needs to be independently configured with a set of level conversion circuits, which not only leads to a significant increase in the number of components on the circuit board, but also occupies a large circuit board space, thus affecting the integration and compactness of the entire system.
[0004] Therefore, how to optimize circuit design, reduce the number of components, and reduce the area occupied by the circuit board while ensuring the level conversion performance has become an urgent problem to be solved in the current ADAS system design. Summary of the invention
[0005] In view of this, the present application provides a level conversion circuit, an ultrasonic radar level conversion control system and method, which aim to reduce the number of components and reduce the area occupied by the circuit board while ensuring the level conversion performance.
[0006] In a first aspect, an embodiment of the present application provides a level conversion circuit, which includes: at least one Darlington transistor array and N dual comparators; the Darlington transistor array is used to convert a low voltage signal into a high voltage signal, and the N dual comparators are used to convert a high voltage signal into a low voltage signal, where N is a positive integer greater than or equal to 1.
[0007] Optionally, the Darlington transistor array integrates six independent Darlington pair transistors, each Darlington pair consists of two transistors, wherein the collector of the first transistor is directly connected to the base of the second transistor.
[0008] Optionally, when the Darlington transistor array integrates six independent Darlington pair transistors, the number of the dual comparators is less than or equal to 3.
[0009] Optionally, the level conversion circuit further includes Q filtering circuits, the output end of the Darlington transistor array and the input ends of the N dual comparators are respectively connected to the Q filtering circuits in a one-to-one correspondence, and Q is equal to 2N or Q is equal to 2N-1.
[0010] Optionally, the filter circuit is a π-type filter circuit.
[0011] Optionally, the level conversion circuit also includes a first resistor and a second resistor, the first resistor and the second resistor are connected in series and then grounded, one end of the first resistor is connected to an input power supply, and one end of the first resistor connected to the second resistor is also connected to a ground pin of the dual comparator.
[0012] In a third aspect, an embodiment of the present application provides an ultrasonic radar level conversion control system, which includes a main control chip, a level conversion circuit introduced in any embodiment of the first aspect, and M ultrasonic radar modules; the output end of the main control chip is connected to the input end of the Darlington transistor array, and the output end of the Darlington transistor array is connected to the input end of the M ultrasonic radar modules; the output ends of the M ultrasonic radar modules are connected to the input ends of the N dual-way comparators, and the output ends of the N dual-way comparators are connected to the input end of the main control chip, where N is a positive integer greater than or equal to 1, and M is equal to 2N or M is equal to 2N-1.
[0013] Optionally, the output end of the Darlington transistor array is connected in a one-to-one correspondence with the M ultrasonic radar modules through the Q filter circuits, and Q is equal to M.
[0014] In a third aspect, an embodiment of the present application provides an ultrasonic radar level conversion method, which is applied to the ultrasonic radar level conversion circuit introduced in any implementation manner of the second aspect, and the method includes:
[0015] In response to the main control chip sending a signal to the ultrasonic radar module, the Darlington transistor array in the level conversion circuit converts the first level signal generated by the main control chip into a second level signal and sends it to the corresponding ultrasonic radar module;
[0016] In response to the main control chip receiving the return signal of the ultrasonic radar module, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal and sends it to the main control chip.
[0017] Optionally, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal, including:
[0018] The dual comparator in the level conversion circuit obtains a reference voltage; the reference voltage is provided by a voltage divider circuit consisting of a first resistor and a second resistor connected to the dual comparator;
[0019] When the third level signal of the ultrasonic radar module is greater than or equal to the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a high level;
[0020] When the third level signal of the ultrasonic radar module is less than the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a low level.
[0021] The present application provides a level conversion circuit. The level conversion circuit includes at least one Darlington transistor array and N dual comparators; the Darlington transistor array is used to convert a low voltage signal into a high voltage signal, and the N dual comparators are used to convert a high voltage signal into a low voltage signal, and N is a positive integer greater than or equal to 1. In this way, multi-channel transmission level conversion can be achieved by sharing an integrated Darlington transistor array, and N pairs of dual comparators, each pair of dual comparators can process the level conversion of 2-channel signal reception, which not only reduces the number of devices required for level conversion and reduces costs, but also effectively saves circuit board area and improves the compactness and integration of the overall circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A schematic diagram of a level conversion circuit provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of another level conversion circuit provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of another level conversion circuit provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of another level conversion circuit provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of an ultrasonic radar level conversion control system provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of another ultrasonic radar level conversion control system provided in an embodiment of the present application;
[0029] Figure 7 A flow chart of an ultrasonic radar level conversion method provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of the principle of an ultrasonic radar level conversion circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] As mentioned above, there are two common level conversion schemes: one is to use LIN (Local Interconnect Network) transceiver for level conversion; the other is to use discrete transistors to build a level conversion circuit. Although both schemes can achieve the basic function of level conversion, they each have certain limitations. Considering that ADAS systems are usually equipped with multiple ultrasonic radars, for example, 12, which are installed on the front and rear of the vehicle for all-round obstacle detection. This means that for each ultrasonic radar, the above two schemes need to independently configure a set of level conversion circuits, which not only leads to a significant increase in the number of components on the circuit board (PCB), but also occupies a large PCB space, thus affecting the integration and compactness of the entire system.
[0032] In view of this, the present application provides a level conversion circuit. The level conversion circuit includes at least one Darlington transistor array and N dual comparators; the Darlington transistor array is used to convert a low voltage signal into a high voltage signal, and the N dual comparators are used to convert a high voltage signal into a low voltage signal, where N is a positive integer greater than or equal to 1.
[0033] In this way, multi-channel transmission level conversion and N pairs of dual comparators can be realized by sharing an integrated Darlington transistor array. Each pair of dual comparators can handle the level conversion of 2 signal receptions. This not only reduces the number of devices required for level conversion and reduces costs, but also effectively saves circuit board area and improves the compactness and integration of the overall circuit.
[0034] In order to be able to understand the characteristics and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, in order to simplify the drawings, well-known structures and devices can be simplified for display. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0035] Figure 1 A schematic diagram of a level conversion circuit provided in an embodiment of the present application. Figure 1 As shown, the level conversion circuit provided in the embodiment of the present application includes: at least one Darlington transistor array 1 and N dual comparators 2 (three are used as an example in the figure); the Darlington transistor array is used to convert a low voltage signal into a high voltage signal, and the N dual comparators are used to convert a high voltage signal into a low voltage signal, where N is a positive integer greater than or equal to 1.
[0036] In this embodiment, the Darlington transistor array, also known as the Darlington Pair array, is an electronic component composed of a plurality of Darlington transistors. Inside each Darlington transistor, a plurality of transistors are cascaded through a specific connection method (such as connecting the collector of one transistor to the base of another transistor) to form a composite structure. In the Darlington transistor array, a plurality of Darlington transistors are arranged in rows or columns to form a row-column structure, thereby forming an overall array. This structure enables the array to process multiple signals simultaneously, thereby improving the integration density and efficiency of the circuit.
[0037] Darlington transistor array The Darlington array can effectively amplify the input signal to reach the target high voltage level due to its high current gain characteristics. Therefore, in this embodiment, the Darlington transistor array 1 can convert a low voltage signal into a high voltage signal. Specifically, when the input signal (usually a voltage signal) is added to the base of the first transistor in the array, the transistor will amplify it and output it to the collector. This amplified signal is then used as the input signal of the next transistor and further amplified. Through the cascade amplification of multiple transistors, a high-power signal is finally output.
[0038] In an optional embodiment, the Darlington transistor array integrates six independent Darlington pair transistors, each Darlington pair consists of two transistors, wherein the collector of the first transistor is directly connected to the base of the second transistor.
[0039] As mentioned above, the Darlington transistor array is composed of a plurality of Darlington transistors. In this embodiment, in order to further increase the integration of the circuit and reduce the occupied area of the PCB, the Darlington transistor array can integrate six independent Darlington pairs of transistors. For example, Darlington array integrated circuits ULN2003A and ULN2803A, etc. Specifically, the Darlington transistor array contains at least six independent Darlington pairs of transistors, and each Darlington pair can be used as an independent amplifier or level converter. Each Darlington pair consists of two transistors, in which the collector of the first transistor is directly connected to the base of the second transistor. This structure greatly increases the current gain (β value) of the output transistor, making the Darlington array suitable for level conversion scenarios.
[0040] This integrated Darlington array not only saves circuit board space and reduces the number of external components, but also improves the reliability and consistency of the circuit, because all Darlington pairs work under the same manufacturing process and temperature conditions, reducing the inconsistency caused by differences between components. And by processing multiple signal paths in parallel, the circuit can handle the level conversion of multiple signals at the same time, enhancing the versatility and flexibility of the circuit.
[0041] N dual comparators 2 are used to convert high voltage signals into low voltage signals, for example, to condition high voltage signals into low voltage signals suitable for processing by a microcontroller or a digital logic circuit. Each dual comparator can process two input signals at the same time and output corresponding low voltage logic signals through threshold comparison. Optionally, the dual comparator 2 can be LM7805.
[0042] In an optional embodiment, in order to ensure that the level conversion circuit maintains good performance, economy and scalability while meeting basic functions, when the Darlington transistor array integrates six independent Darlington pair transistors, the number of dual comparators is less than or equal to 3.
[0043] In this embodiment, as the number of dual comparators increases, the complexity of the circuit also increases, which not only makes the circuit board layout more difficult, but also may cause delay problems in the signal path. At the same time, more comparators mean higher manufacturing costs and potential power consumption increases. Therefore, in the application scenario of six independent Darlington pairs of transistors, no more than three dual comparators can meet the signal processing requirements. Too many comparator units may introduce unnecessary signal paths and processing delays, affecting the response speed and efficiency of the overall system.
[0044] In addition, each dual comparator processes two signals. Assuming that each Darlington pair transistor corresponds to one signal, six Darlington pairs can process six signals. In this case, three dual comparators can just process the six signals, ensuring that all signals can be processed in a timely and effective manner while avoiding waste of resources. This design also facilitates synchronous signal processing, ensuring that the response time of all signal paths is consistent, and improving the stability and reliability of the system.
[0045] In an alternative embodiment, Figure 2 Another level conversion circuit schematic diagram provided in the embodiment of the present application. Figure 2 As shown, the level conversion circuit not only includes a Darlington transistor array and N dual comparators, but also integrates Q filter circuits 3, where the number of Q has a specific relationship with N, that is, Q = 2N or Q = 2N-1. It aims to optimize signal quality, reduce noise interference, and ensure signal integrity during the level conversion process.
[0046] In this embodiment, the filter circuit is used to filter the signal output by the Darlington transistor array and the signal before the dual comparator input, remove the high-frequency noise and interference in the signal, improve the signal-to-noise ratio of the signal, ensure that the signal is not affected by external noise during the level conversion process, and maintain the integrity and accuracy of the signal. Specifically, since the dual comparator can process two-way signals, but in the actual application process, the two-way signal may not be fully used. For example, when there are 3 comparators, 6-way signals can be processed in theory. If 6-way signals are actually used, 2*3, i.e., 6 filter circuits are set, but if 5-way signals are actually used, only 2*3-1, i.e., 5 filter circuits, are needed. Therefore, the number of filter circuits is related to the number of dual comparators, ensuring that each input signal can be effectively filtered.
[0047] In this embodiment, the low voltage signal first enters the Darlington transistor array, and after amplification and level conversion, a high voltage signal is output. The high voltage signal is then sent to the corresponding filter circuit, which filters the noise of the signal to ensure the purity and stability of the signal. For each output end of the Darlington transistor array and the input end of the dual comparator, there are one or more filter circuits to optimize the signal. The high voltage signal after filtering enters N dual comparators, performs level conversion, and outputs a low voltage logic signal.
[0048] In an optional embodiment, the filter circuit used in the embodiment of the present application may be a π-type filter circuit. Figure 3 A schematic diagram of another level conversion circuit provided in an embodiment of the present application. Figure 3As shown, the level conversion circuit includes a π-type filter circuit. The π-type filter circuit is also called a PI-type filter circuit, which is composed of two capacitors and an inductor connected in series to form a shape similar to "π". The two capacitors are located on both sides of the inductor and are grounded to form a low impedance path for input and output.
[0049] In this embodiment, the π-type filter circuit can reduce the high-frequency components in the signal, narrow the frequency range of the output signal relative to the input signal, help remove noise and interference, smooth the signal, and reduce high-frequency harmonics in the output. In addition, the circuit structure of the π-type filter is relatively simple, and the design and implementation are relatively convenient. While ensuring the level conversion performance, it can reduce the cost and occupy a small PCB area.
[0050] Figure 4 A schematic diagram of another level conversion circuit provided in an embodiment of the present application. Figure 4 As shown, the level conversion circuit provided in the embodiment of the present application also includes: a first resistor R1 and a second resistor R2, the first resistor R1 and the second resistor R2 are connected in series and then grounded, one end of the first resistor R1 is connected to the input power supply VCC, and the other end of the first resistor R1 connected to the second resistor R2 is simultaneously connected to the ground pin of the dual-path comparator 2 (one path of a dual-path comparator is taken as an example in the figure, and the others are not shown).
[0051] In this embodiment, in order to further improve the anti-interference capability of the level conversion circuit, a voltage divider circuit consisting of a first resistor and a second resistor is connected to the ground pin of the comparator to adjust the threshold voltage of the comparator so that the comparator can work correctly.
[0052] In the above embodiment, the level conversion circuit can realize multi-channel transmission level conversion by sharing an integrated Darlington transistor array, and N pairs of dual-channel comparators, each pair of dual-channel comparators can process the level conversion of 2-channel signal reception, which not only reduces the number of devices required for level conversion and reduces the cost, but also effectively saves the circuit board area and improves the compactness and integration of the overall circuit.
[0053] The level conversion circuit provided in the embodiment of the present application is introduced above. The level conversion circuit is exemplarily described below in combination with a specific application scenario.
[0054] Figure 5 A schematic diagram of an ultrasonic radar level conversion control system provided in an embodiment of the present application. Figure 5 As shown, the ultrasonic radar level conversion control system includes a main control chip, the level conversion circuit described above, and M ultrasonic radar modules.
[0055] The output end of the main control chip 11 is connected to the input end of the Darlington transistor array 12, and the output end of the Darlington transistor array 12 is connected to the input end of M ultrasonic radar modules 13; the output ends of the M ultrasonic radar modules 13 are connected to the input ends of N dual-way comparators 14, and the output ends of the N dual-way comparators 14 are connected to the input end of the main control chip 11, where N is a positive integer greater than or equal to 1, and M is equal to 2N or M is equal to 2N-1.
[0056] In this embodiment, the quantitative relationship between the M ultrasonic radar modules and the N dual-channel comparators follows the principle of M=2N or M=2N-1. That is, each dual-channel comparator processes the signals of at least two ultrasonic radar modules, and the case of M=2N-1 means that some dual-channel comparators may need to process the signal of one ultrasonic radar module. The specific number of ultrasonic radar modules depends on the actual application requirements.
[0057] The main control chip 11 is the control center of the entire system, responsible for generating control signals, processing feedback information received from the ultrasonic radar module, and coordinating the operation of the entire system. The output end of the main control chip is connected to the input end of the Darlington transistor array for sending control signals.
[0058] The Darlington transistor array 12 receives the low voltage control signal from the main control chip, amplifies the signal through multiple Darlington transistors inside and converts it into a high voltage signal suitable for driving the ultrasonic radar module. The output end of the Darlington transistor array is connected to the input end of M (6 in the figure) ultrasonic radar modules.
[0059] Any one of the M ultrasonic radar modules 13 receives the high voltage signal converted by the Darlington transistor array, performs ultrasonic transmission and reception operations, and generates an echo signal. The output end of the ultrasonic radar module is connected to the input end of the N dual-channel comparators, which is used to transmit the echo signal to the comparator for level conversion and processing.
[0060] N dual-channel comparators 14 receive the echo signals generated by the ultrasonic radar module and convert the high voltage signals into low voltage logic signals that can be recognized by the main control chip. Each dual-channel comparator can process two signals, and its output end is connected to the input end of the main control chip, and the processed signals are fed back to the main control chip for further analysis and decision-making.
[0061] In an alternative embodiment, Figure 6 A schematic diagram of another ultrasonic radar level conversion control system provided in an embodiment of the present application. Figure 6 As shown, a filtering circuit is introduced in this embodiment.
[0062] In this embodiment, Q filter circuits 15 are arranged between the output end of the Darlington transistor array and the input end of the dual comparator and the ultrasonic radar module, where the number of Q is equal to M (ie, the number of ultrasonic radar modules). Figure 6 As shown, the ultrasonic radar level conversion control system includes two 6-way Darlington transistor arrays and 6 comparators, 12 π-type filter circuits and 12 ultrasonic radar modules. Among them, a 6-way Darlington transistor array and 3 comparators, 6 π-type filter circuits and 6 ultrasonic radar modules form a set of level conversion circuits, which form two sets of level conversion circuits as a whole, supporting 12-way ultrasonic radar level conversion. Specifically, the function of the filter circuit is to further purify the converted signal, remove possible noise and interference, ensure the purity and stability of the signal, and thus improve the quality of the ultrasonic radar module receiving signal.
[0063] It should be noted that the above embodiments respectively provide schematic diagrams of 6-channel and 12-channel ultrasonic radar level conversion circuits. In actual application, 4-channel, 8-channel or 10-channel level conversion circuits can also be set according to needs, and this application does not impose any restrictions on this.
[0064] The above are some specific implementation methods of the ultrasonic radar level conversion control system provided in the embodiments of the present application. Based on this, the present application also provides a corresponding method.
[0065] Figure 7 A flow chart of an ultrasonic radar level conversion method provided in an embodiment of the present application. Figure 7 As shown, the method is applied to the ultrasonic radar level conversion circuit introduced in the above embodiment, and the ultrasonic radar level conversion method may include:
[0066] S701, in response to the main control chip sending a signal to the ultrasonic radar module, the Darlington transistor array in the level conversion circuit converts the first level signal generated by the main control chip into a second level signal and sends it to the corresponding ultrasonic radar module.
[0067] Figure 8 A schematic diagram of the principle of an ultrasonic radar level conversion circuit provided in an embodiment of the present application (taking the control process of an ultrasonic radar module as an example for explanation).
[0068] Combination Figure 8As shown, in the signal sending stage, the main control chip generates a low-voltage first level signal according to the system status and requirements, which is used to start the operation of the ultrasonic radar module. The main control chip can be a microcontroller unit (MCU) or a system-on-chip (SOC). The first level signal is sent by the main control chip to the Darlington transistor array in the level conversion circuit (only one structure of ULQ2003 is shown in the figure). The array converts the low voltage signal into a high voltage second level signal suitable for driving the ultrasonic radar module through its internal multi-stage amplification characteristics, for example, converting a low voltage of 3.3V or 5V to a high voltage of 12V. The converted second level signal is sent to the corresponding ultrasonic radar module to trigger the transmission and reception process of the ultrasonic wave.
[0069] S702, in response to the main control chip receiving the return signal of the ultrasonic radar module, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal and sends it to the main control chip.
[0070] In this embodiment, in the signal receiving stage, after the ultrasonic radar module completes the reception and preliminary processing of the ultrasonic signal, it generates a high-voltage third-level signal, ready to feed back the echo information to the main control chip. The third-level signal then enters the dual-channel comparator in the level conversion circuit, which is responsible for converting the high-voltage signal into a low-voltage fourth-level signal that can be recognized by the main control chip. For example, converting a 12V high voltage into a 3.3V or 5V low voltage. The converted fourth-level signal is sent back to the main control chip, and the main control chip performs subsequent data processing and decision-making according to the signal content, such as target detection, distance measurement, etc.
[0071] In an optional embodiment, in order to enable the comparator to correctly convert the received signal into a preset voltage and improve the accuracy of the level conversion, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal, including: the dual comparator in the level conversion circuit obtains a reference voltage; the reference voltage is provided by a voltage divider circuit composed of a first resistor and a second resistor connected to the dual comparator; when the third level signal of the ultrasonic radar module is greater than or equal to the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a high level; when the third level signal of the ultrasonic radar module is less than the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a low level.
[0072] In this embodiment, see Figure 8As shown in the figure, the voltage divider circuit is composed of two resistors (R1 and R2) connected in series and connected to the power supply voltage VCC. Assume that the power supply shared with the ultrasonic radar module is 12V and the reference voltage is 6V. According to the voltage division principle, if VCC is 12V and a reference voltage of 6V is desired, the resistance values of R1 and R2 should be equal (ie, R1 = R2, for example, 10KΩ), so that the voltage after voltage division is half of VCC, that is, 6V.
[0073] When the voltage value of the third level signal is greater than or equal to 6V (i.e., the reference voltage), the dual comparator recognizes it as a high level signal and outputs a high level (such as VCC or a voltage close to VCC) as the fourth level signal, such as 3.3V or 5V. When the voltage value of the third level signal is less than 6V, the dual comparator recognizes it as a low level signal and outputs a low level (such as a ground level or a voltage close to 0V).
[0074] In this way, the ultrasonic radar level conversion circuit has good anti-interference ability for the receiving end level conversion. When the level of the radar signal line is disturbed and fluctuates, the signal waveform after interference will generally still be within the range of the height judgment threshold. In this embodiment, the third level signal of the ultrasonic radar module is accurately converted into a fourth level signal with a preset reference voltage by designing a voltage divider circuit and selecting a suitable dual-channel comparator.
[0075] In the above embodiment, while ensuring the level conversion performance, the number of components is reduced, the circuit board area is reduced, and the cost is lower. In addition, the comparator and filter circuit used can more easily cope with the test requirements such as electromagnetic compatibility and abnormal power supply.
[0076] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0077] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the ultrasonic radar level conversion control method described in any embodiment of the present application.
[0078] The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the ultrasonic radar level conversion control method described in any embodiment of the present application.
[0079] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0080] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0081] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0082] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A level conversion circuit, characterized in that: The level conversion circuit includes: at least one Darlington transistor array and N dual comparators; the Darlington transistor array is used to convert a low voltage signal into a high voltage signal, and the N dual comparators are used to convert a high voltage signal into a low voltage signal, where N is a positive integer greater than or equal to 1.
2. The level conversion circuit according to claim 1, characterized in that: The Darlington transistor array integrates at least six independent Darlington pair transistors, each Darlington pair consists of two transistors, wherein the collector of the first transistor is directly connected to the base of the second transistor.
3. The level conversion method according to claim 2, characterized in that: When the Darlington transistor array integrates six independent Darlington pair transistors, the number of the dual-path comparators is less than or equal to three.
4. The level conversion circuit according to claim 1, characterized in that: The level conversion circuit also includes Q filter circuits, the output end of the Darlington transistor array and the input ends of the N dual comparators are respectively connected to the Q filter circuits in a one-to-one correspondence, and Q is equal to 2N or Q is equal to 2N-1.
5. The level conversion circuit according to claim 4, characterized in that: The filter circuit is a π-type filter circuit.
6. The level conversion circuit according to claim 1, characterized in that: The level conversion circuit also includes: a first resistor and a second resistor, the first resistor and the second resistor are connected in series and then grounded, one end of the first resistor is connected to an input power supply, and the other end of the first resistor connected to the second resistor is simultaneously connected to a ground pin of the dual comparator.
7. An ultrasonic radar level conversion control system, characterized in that: The ultrasonic radar level conversion control system includes a main control chip, the level conversion circuit according to any one of claims 1 to 5, and M ultrasonic radar modules; the output end of the main control chip is connected to the input end of the Darlington transistor array, and the output end of the Darlington transistor array is connected to the input end of the M ultrasonic radar modules; the output ends of the M ultrasonic radar modules are connected to the input ends of the N dual-way comparators, and the output ends of the N dual-way comparators are connected to the input end of the main control chip, where N is a positive integer greater than or equal to 1, and M is equal to 2N or M is equal to 2N-1.
8. The ultrasonic radar level conversion control system according to claim 7, characterized in that: The output end of the Darlington transistor array and the input end of the dual comparator are connected in a one-to-one correspondence through the Q filter circuits and the M ultrasonic radar modules, and Q is equal to M.
9. An ultrasonic radar level conversion method, characterized in that: Applied to the ultrasonic radar level conversion circuit according to any one of claims 7 to 8, the method comprising: In response to the main control chip sending a signal to the ultrasonic radar module, the Darlington transistor array in the level conversion circuit converts the first level signal generated by the main control chip into a second level signal and sends it to the corresponding ultrasonic radar module; In response to the main control chip receiving the return signal of the ultrasonic radar module, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal and sends it to the main control chip.
10. The ultrasonic radar level conversion method according to claim 9, characterized in that: The dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a fourth level signal, including: The dual comparator in the level conversion circuit obtains a reference voltage; the reference voltage is provided by a voltage divider circuit consisting of a first resistor and a second resistor connected to the dual comparator; When the third level signal of the ultrasonic radar module is greater than or equal to the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a high level; When the third level signal of the ultrasonic radar module is less than the reference voltage, the dual comparator in the level conversion circuit converts the third level signal of the ultrasonic radar module into a low level.
