Voltage detection circuit, motor control system and vehicle
By using a first-order RC low-pass filter circuit and a comparator in the motor control system, and adjusting the duty cycle of the PWM signal using a microcontroller, the problems of component replacement and power chip usage in the motor control system are solved, reducing costs and improving detection accuracy.
Patent Information
- Application Number
- CN202423084574.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2034-12-13
AI Technical Summary
In existing technologies for motor control systems in vehicles, when different types of voltage circuits need to be tested, it is necessary to manually disassemble the machine to replace components or use multiple power chips, resulting in high time, labor, and material costs.
A combination of a first-order RC low-pass filter circuit and a comparator is adopted. The PWM signal generated by the microcontroller is filtered and used as the reference voltage of the comparator. By modifying the duty cycle of the PWM signal, the signal sampling range of different types of voltage circuits to be detected can be adapted, reducing the need for component replacement and power supply chip usage.
This eliminates the need for manual disassembly and component replacement, reduces the use of power chips, lowers time, labor, and material costs, and improves detection accuracy.
Smart Images

Figure CN223692431U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to voltage detection technical field, specifically, relate to a kind of voltage detection circuit, motor control system and vehicle. BACKGROUND
[0002] In vehicle, motor control system needs to collect the data of various external voltage circuit to be detected, then compares the collected external data with threshold voltage by comparator, to realize the function of circuit protection and alarm function.
[0003] At present, the threshold voltage required is mainly generated by power supply chip or voltage dividing resistor, when different types of voltage circuit to be detected need to be detected, the components need to be replaced manually, which is inconvenient to replace, resulting in high time cost and labor cost, or multiple power supply chips are used to generate multiple threshold voltages, resulting in high material cost. UTILITY MODEL CONTENT
[0004] The utility model provides a kind of voltage detection circuit, motor control system and vehicle, can reduce time cost, labor cost and material cost.Specific technical solutions are as follows:
[0005] Firstly, the utility model provides a kind of voltage detection circuit, comprising: one or more first-order RC low-pass filter circuit and one or more comparators;
[0006] The single-chip microcomputer of vehicle is connected with the first input end of one or more first-order RC low-pass filter circuit and one or more comparators, the second input end of each comparator is connected with voltage circuit to be detected, and the output end of each comparator is connected with master control chip, wherein the single-chip microcomputer can output different PWM signals by modifying the duty cycle of pulse width modulation (PWM) signal.
[0007] Optionally, when the comparator is a single-channel comparator, and the number of the comparator and the first-order RC low-pass filter circuit is one, the single-chip microcomputer of vehicle is connected with the first input end of the comparator through the first-order RC low-pass filter circuit.
[0008] Optionally, the first-order RC low-pass filter circuit includes resistance and capacitance, one end of the resistance is connected with the single-chip microcomputer, the other end of the resistance is connected with the first input end of the comparator, the other end of the resistance is also connected with the capacitance, and the capacitance is grounded.
[0009] Optionally, when the comparator is a single-channel comparator, and the number of the first-order RC low-pass filter circuit and the number of the comparator is the same and multiple, the single-chip microcomputer of vehicle is connected with the first input end of each comparator through each first-order RC low-pass filter circuit.
[0010] Optionally, when the comparator is a multi-channel comparator, the number of the comparator is one, and the number of the first-order RC low-pass filter circuit is multiple, the single-chip microcomputer of the vehicle is connected with different first input ends of the comparator through each first-order RC low-pass filter circuit.
[0011] Optionally, the voltage detection circuit further comprises a comparator power supply device connected with the power supply end of the comparator.
[0012] Optionally, the resistance value of the resistor is 10kΩ, and the capacitance value of the capacitor is 4.7uF.
[0013] Optionally, the frequency of each PWM signal is 10kHz.
[0014] In a second aspect, the utility model provides a motor control system, include: printed circuit board PCB board, the PCB board is encapsulated with voltage detection circuit of any one of first aspect.
[0015] In a third aspect, the utility model provides a vehicle, include: car body, be equipped with voltage detection circuit of any one of first aspect in the car body.
[0016] From the above content, the voltage detection circuit provided by the utility model embodiment includes one or more first-order RC low-pass filter circuits and one or more comparators, the single-chip microcomputer of the vehicle is connected with the first input end of one or more comparators through one or more first-order RC low-pass filter circuits, the second input end of each comparator is connected with the voltage circuit to be detected, and the output end of each comparator is connected with the master control chip, wherein the single-chip microcomputer can output multiple PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal. Therefore, by setting the first-order RC low-pass filter circuit and the comparator, the PWM signal generated by the single-chip microcomputer is directly used as the reference voltage of the comparator after being filtered by the first-order RC low-pass filter circuit. Since the single-chip microcomputer can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when voltage detection of different types of voltage circuits to be detected is required, the signal sampling range of different types of voltage circuits to be detected can be adapted for voltage detection by only modifying the duty cycle of the PWM signal, without manually disassembling and replacing components, and without using multiple power chips, thereby reducing time cost, labor cost and material cost.
[0017] The innovation points of the utility model embodiment include:
[0018] 1. By setting up a first-order RC low-pass filter circuit and a comparator, the PWM signal generated by the microcontroller is filtered by the first-order RC low-pass filter circuit and directly used as the reference voltage of the comparator. Since the microcontroller can output different PWM signals by modifying the duty cycle of the pulse width modulation PWM signal, when it is necessary to detect voltage of different types of voltage circuits, the voltage detection can be adapted to the signal sampling range of different types of voltage circuits simply by modifying the duty cycle of the PWM signal. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power chips, thus reducing time, labor and material costs.
[0019] 2. Since the microcontroller can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator is a single-channel comparator, and the number of comparators and first-order RC low-pass filter circuits is one, and voltage detection is required for different types of voltage circuits to be detected, only the duty cycle of the PWM signal needs to be modified to adapt to the signal sampling range of different types of voltage circuits to be detected for voltage detection. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power supply chips, thus reducing time, labor and material costs.
[0020] 3. Power the comparator by setting up a comparator power supply device.
[0021] 4. When the comparator is a single-channel comparator, multiple voltage detection channels can be formed by setting the number of PWM signal outputs from the microcontroller and the number of first-order RC low-pass filter circuits to be the same as the number of comparators, and both being multiple. Multiple different PWM signals can be generated to detect voltages of different types of circuits to be detected. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power chips, thus reducing time, labor and material costs.
[0022] 5. Since the microcontroller can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator is a single-channel comparator, the number of first-order RC low-pass filter circuits is the same as the number of comparators and there are multiple of them. When it is necessary to detect voltage of different types of voltage circuits, the voltage detection can be adapted to the signal sampling range of different types of voltage circuits by setting the duty cycle of multiple different PWM signals. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power chips, thus reducing time, labor and material costs.
[0023] 6. When the comparator is a multi-channel comparator, multiple voltage detection channels can be formed by setting the number of comparators to one, setting the number of microcontroller output PWM to multiple, and setting the number of first-order RC low-pass filter circuits to multiple, so as to detect the voltage of multiple different types of voltage circuits to be detected. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power chips, thus reducing time, labor and material costs.
[0024] 7. Since the microcontroller can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator is a multi-channel comparator, the number of comparators is one, the number of first-order RC low-pass filter circuits is multiple, and voltage detection is required for different types of voltage circuits to be detected, the voltage detection can also be performed by setting the duty cycle of multiple different PWM signals to adapt the signal sampling range of different types of voltage circuits to be detected. There is no need to manually disassemble and replace components, nor is it necessary to use multiple power chips, thus reducing time, labor and material costs.
[0025] 8. Compared with the existing method of using voltage divider resistors, the voltage detection circuit provided by this utility model is not affected by the power supply of vehicle control, thus improving the detection accuracy.
[0026] 9. The motor control system uses a voltage detection circuit with a first-order RC low-pass filter and a comparator. This allows the PWM signal generated by the microcontroller to be filtered by the first-order RC low-pass filter and directly used as the reference voltage for the comparator. Since the microcontroller can output different PWM signals by modifying the duty cycle of the PWM signal, when it is necessary to detect voltage for different types of voltage circuits, the voltage detection can be adapted to the signal sampling range of different types of voltage circuits simply by modifying the duty cycle of the PWM signal. This eliminates the need for manual disassembly and component replacement, as well as the need for multiple power supply chips, thus reducing time, labor, and material costs.
[0027] 10. The vehicle uses a voltage detection circuit with a first-order RC low-pass filter and a comparator. This allows the PWM signal generated by the microcontroller to be filtered by the first-order RC low-pass filter and directly used as the reference voltage for the comparator. Since the microcontroller can output different PWM signals by modifying the duty cycle of the PWM signal, when it is necessary to detect voltage for different types of voltage circuits, the voltage detection can be adapted to the signal sampling range of different types of voltage circuits simply by modifying the duty cycle of the PWM signal. This eliminates the need for manual disassembly and component replacement, as well as the need for multiple power chips, thus reducing time, labor, and material costs.
[0028] Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time. BRIEF DESCRIPTION OF DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0030] Figure 1 A structural schematic diagram of the voltage detection circuit provided by the embodiment of the present application.
[0031] Figure 1 In the figure, 1 is a first-order RC low-pass filter circuit, 11 is a resistor, 12 is a capacitor, 2 is a comparator, 3 is a single-chip microcomputer, 4 is a voltage circuit to be detected, 5 is a main control chip, and 6 is a comparator power supply device. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0033] It should be noted that the terms "include" and "have" and any variations thereof in the embodiments of the present application and the drawings are intended to cover non-exclusive inclusion. For example, the processes, methods, systems, products or devices including a series of steps or units are not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to these processes, methods, products or devices.
[0034] The embodiment of the present application discloses a voltage detection circuit, a motor control system and a vehicle, which can reduce time cost, labor cost and material cost. The embodiments of the present application will be described in detail below.
[0035] Embodiment one
[0036] Figure 1 A structural schematic diagram of the voltage detection circuit provided by the embodiment of the present application.
[0037] Referring to Figure 1The voltage detection circuit provided by the embodiment of the utility model includes one or more first-order RC (Resistance Capacitance) low-pass filter circuits 1 and one or more comparators 2.
[0038] The single-chip microcomputer 3 of the vehicle is connected with the first input end of the one or more first-order RC low-pass filter circuits 1 and the one or more comparators 2, the second input end of each comparator 2 is connected with the voltage circuit to be detected 4, and the output end of each comparator 2 is connected with the master control chip 5, wherein the single-chip microcomputer 3 can output different PWM (Pulse Width Modulation) signals by modifying the duty cycle of the PWM signal, the master control chip 5 can be the single-chip microcomputer 3 of the vehicle, or can be a master control chip in the vehicle which can realize the circuit protection and alarm function based on the voltage detection result, and the first input end can be the in-phase input end and the second input end can be the anti-phase input end, or the first input end is the anti-phase input end and the second input end is the in-phase input end.
[0039] The frequency of each PWM signal can be 10 kHz, and the level of each PWM signal can fluctuate in the range of 0-5V.
[0040] The number of the first-order RC low-pass filter circuit 1 and the comparator 2 can be the same or different, including but not limited to the following cases:
[0041] The first case:
[0042] When the comparator 2 is a single-channel comparator and the number of the comparator 2 and the first-order RC low-pass filter circuit 1 is one, the single-chip microcomputer 3 of the vehicle is connected with the first input end of the comparator 2 through the first-order RC low-pass filter circuit 1.
[0043] Since the comparator 2 is a single-channel comparator, one comparator 2 can be connected with only one first-order RC low-pass filter circuit 1, Figure 1 The case shown in the figure is that the number of the comparator 2 and the first-order RC low-pass filter circuit 1 is one, and the working principle is as follows:
[0044] The single-chip microcomputer 3 of the vehicle outputs the PWM signal to the first-order RC low-pass filter circuit 1, the first-order RC low-pass filter circuit 1 processes the PWM signal with fluctuating level to obtain the PWM signal with constant level and inputs the PWM signal with constant level to the first input end of the comparator 2 as the reference voltage, the output voltage of the voltage circuit to be detected 4 is output to the second input end of the comparator 2, the comparator 2 compares the PWM signal with constant level and the output voltage of the voltage circuit to be detected 4, and outputs the voltage detection result to the master control chip 5, and the master control chip 5 realizes the circuit protection and alarm function based on the voltage detection result.
[0045] The comparator 2 judges whether the constant level PWM signal is greater than the output voltage of the to-be-detected voltage circuit 4, and outputs a high level if the voltage is normal, or a low level if the voltage is low.
[0046] Since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator 2 is a single-channel comparator, the number of the comparator 2 and the first-order RC low-pass filter circuit 1 is one, and voltage detection is required for different types of to-be-detected voltage circuits 4, only the duty cycle of the PWM signal needs to be modified to adapt to the signal sampling range of different types of to-be-detected voltage circuits 4 for voltage detection, without the need to manually disassemble and replace components, or use multiple power supply chips, thereby reducing time cost, labor cost, and material cost.
[0047] Referring back to Figure 1 The first-order RC low-pass filter circuit 1 includes a resistor 11 and a capacitor 12. One end of the resistor 11 is connected to the single-chip microcomputer 3, the other end of the resistor 11 is connected to the first input end of the comparator 2, and the other end of the resistor 11 is also connected to the capacitor 12, and the capacitor 12 is grounded.
[0048] For example, the resistance of the resistor is 10kΩ, and the capacitance of the capacitor is 4.7uF. The resistor with this resistance and the capacitor with this capacitance are very easy to obtain from the market, improving convenience.
[0049] Referring back to Figure 1 The comparator 2 further includes a comparator power supply device 6 connected to the power supply end of the comparator 2.
[0050] Therefore, the comparator 2 is powered by setting the comparator power supply device 6.
[0051] The second case is:
[0052] When the comparator 2 is a single-channel comparator, and the number of the first-order RC low-pass filter circuit 1 is the same as the number of the comparator 2 and both are multiple, the single-chip microcomputer 3 of the vehicle is connected to the first input end of each comparator 2 through each first-order RC low-pass filter circuit 1.
[0053] Since the comparator 2 is a single-channel comparator, one comparator 2 can only be connected to one first-order RC low-pass filter circuit 1. When the number of the first-order RC low-pass filter circuit 1 is the same as the number of the comparator 2 and both are multiple, the working principle is as follows:
[0054] The single-chip microcomputer 3 of the vehicle outputs different PWM signals to each first-order RC low-pass filter circuit 1. For each first-order RC low-pass filter circuit 1, the first-order RC low-pass filter circuit 1 processes the received PWM signal with fluctuating level to obtain a PWM signal with constant level and inputs the PWM signal with constant level to the first input end of the corresponding comparator 2 as a reference voltage. The output voltage of the to-be-detected voltage circuit 4 is output to the second input end of the comparator 2 corresponding to the first-order RC low-pass filter circuit 1. The comparator 2 corresponding to the first-order RC low-pass filter circuit 1 compares the received PWM signal with constant level and the output voltage of the to-be-detected voltage circuit 4, and outputs the voltage detection result to the master control chip 5. The master control chip 5 realizes the functions of circuit protection and alarm based on the voltage detection result. At the same time, only one first-order RC low-pass filter circuit 1 and the corresponding comparator 2 are used for voltage detection at the same time.
[0055] In the voltage detection result, each comparator 2 judges that the received PWM signal with constant level is greater than the output voltage of the to-be-detected voltage circuit 4, and outputs a high level indicating that the voltage is normal. Each comparator 2 judges that the received PWM signal with constant level is not greater than the output voltage of the to-be-detected voltage circuit 4, and outputs a low level indicating that the voltage is low.
[0056] Therefore, when the comparator 2 is a single-channel comparator, the number of PWM signal outputs of the single-chip microcomputer 3 and the number of first-order RC low-pass filter circuits 1 are set to be the same as the number of comparators 2 and are both multiple, so as to form multiple voltage detection channels. Multiple different PWM signals can be generated to detect different types of to-be-detected voltage circuits 4, without the need to manually disassemble and replace components, and multiple power supply chips are not required, thereby reducing time cost, labor cost and material cost.
[0057] At the same time, since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator 2 is a single-channel comparator, the number of first-order RC low-pass filter circuits 1 is the same as the number of comparators 2 and is multiple, and different types of to-be-detected voltage circuits 4 need to be detected, the duty cycle of multiple different PWM signals can be set to adapt to the signal sampling range of different types of to-be-detected voltage circuits 4 for voltage detection, without the need to manually disassemble and replace components, and multiple power supply chips are not required, thereby reducing time cost, labor cost and material cost.
[0058] Thirdly,
[0059] When the comparator 2 is a multi-channel comparator and the number of comparators 2 is one, the number of first-order RC low-pass filter circuits 1 is multiple, and the single-chip microcomputer 3 of the vehicle is connected to different first input ends of the comparators 2 through each first-order RC low-pass filter circuit 1.
[0060] Since the comparator 2 is a multi-channel comparator, one comparator 2 can be connected to one or more first-order RC low-pass filter circuits 1. When the number of comparators 2 is one and the number of first-order RC low-pass filter circuits 1 is multiple, the working principle is as follows:
[0061] The single-chip microcomputer 3 of the vehicle outputs different PWM signals to each first-order RC low-pass filter circuit 1. For each first-order RC low-pass filter circuit 1, the first-order RC low-pass filter circuit 1 processes the received PWM signal with a fluctuating level to obtain a PWM signal with a constant level and inputs it to the corresponding first input terminal of the comparator 2 as a reference voltage. The output voltage of the to-be-detected voltage circuit 4 is output to the second input terminal of the comparator 2. The comparator 2 compares the received PWM signal with a constant level with the output voltage of the to-be-detected voltage circuit 4 and outputs the voltage detection result to the master control chip 5. The master control chip 5 realizes the functions of circuit protection and alarm based on the voltage detection result. At the same time, only one first input terminal of the comparator 2 is used for voltage detection at the same time.
[0062] Among them, the comparator 2 judges that the received PWM signal with a constant level is greater than the output voltage of the to-be-detected voltage circuit 4, and the output voltage detection result is that the voltage is normal, that is, a high level is output. The comparator 2 judges that the received PWM signal with a constant level is not greater than the output voltage of the to-be-detected voltage circuit 4, and the output voltage detection result is that the voltage is low, that is, a low level is output.
[0063] Therefore, when the comparator 2 is a multi-channel comparator, by setting the number of comparators 2 to one, setting the single-chip microcomputer to output multiple PWM signals, and setting the number of first-order RC low-pass filter circuits 1 to multiple, multiple voltage detection channels are formed to detect different types of to-be-detected voltage circuits 4. Without manually disassembling and replacing components, multiple power supply chips are not required, and time cost, labor cost, and material cost are reduced.
[0064] At the same time, since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when the comparator 2 is a multi-channel comparator, the number of comparators 2 is one, the number of first-order RC low-pass filter circuits 1 is multiple, and different types of to-be-detected voltage circuits 4 need to be detected, different PWM signal duty cycles can be set to adapt to the signal sampling range of different types of to-be-detected voltage circuits 4 for voltage detection. Without manually disassembling and replacing components, multiple power supply chips are not required, and time cost, labor cost, and material cost are reduced.
[0065] In summary, the voltage detection circuit provided by the embodiment of the utility model includes one or more first-order RC low-pass filter circuits 1 and one or more comparators 2, the single-chip microcomputer 3 of the vehicle is connected with the first input end of the one or more comparators 2 through the one or more first-order RC low-pass filter circuits 1, the second input end of each comparator 2 is connected with the voltage circuit to be detected 4, and the output end of each comparator 2 is connected with the master control chip 5, wherein the single-chip microcomputer 3 can output multiple PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal. Thus, by setting the form of the first-order RC low-pass filter circuit 1 and the comparator 2, the PWM signal generated by the single-chip microcomputer 3 is directly used as the reference voltage of the comparator 2 after being filtered by the first-order RC low-pass filter circuit 1. Since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when voltage detection of different types of voltage circuits to be detected 4 is required, the signal sampling range of different types of voltage circuits to be detected 4 can be adapted for voltage detection only by modifying the duty cycle of the PWM signal, without the need to manually disassemble and replace components, and without the need to use multiple power supply chips, thereby reducing the time cost, labor cost and material cost.
[0066] Meanwhile, compared with the existing voltage detection circuit using a voltage dividing resistor, the voltage detection circuit provided by the utility model is not affected by the power supply of the vehicle, and the detection accuracy is improved.
[0067] Embodiment two
[0068] The embodiment of the application provides a motor control system, comprising: a PCB (Printed Circuit Board) board, and a voltage detection circuit as provided in the embodiment one is packaged on the PCB board.
[0069] Thus, the motor control system sets the form of the first-order RC low-pass filter circuit 1 and the comparator 2 through the voltage detection circuit, so that the PWM signal generated by the single-chip microcomputer 3 is directly used as the reference voltage of the comparator 2 after being filtered by the first-order RC low-pass filter circuit 1. Since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation (PWM) signal, when voltage detection of different types of voltage circuits to be detected 4 is required, the signal sampling range of different types of voltage circuits to be detected 4 can be adapted for voltage detection only by modifying the duty cycle of the PWM signal, without the need to manually disassemble and replace components, and without the need to use multiple power supply chips, thereby reducing the time cost, labor cost and material cost.
[0070] The motor control system embodiment and Figure 1The voltage detection circuit embodiment shown is an embodiment based on the same inventive concept, and relevant parts can be referred to each other. The motor control system embodiment described above corresponds to the voltage detection circuit embodiment, has the same technical effects as the voltage detection circuit embodiment, and specific descriptions refer to the voltage detection circuit embodiment.
[0071] Embodiment three
[0072] The vehicle embodiment provides a vehicle, comprising a vehicle body, and the vehicle body is provided with the voltage detection circuit provided in embodiment one.
[0073] Therefore, the vehicle sets a first-order RC low-pass filter circuit 1 and a comparator 2 in the form of the voltage detection circuit, so that the PWM signal generated by the single-chip microcomputer 3 is directly used as the reference voltage of the comparator 2 after being filtered by the first-order RC low-pass filter circuit 1. Since the single-chip microcomputer 3 can output different PWM signals by modifying the duty cycle of the pulse width modulation PWM signal, when voltage detection of different types of voltage detection circuit 4 is required, only the duty cycle of the PWM signal needs to be modified to adapt to the signal sampling range of different types of voltage detection circuit 4 for voltage detection, without the need to manually disassemble and replace components, and without the need to use multiple power supply chips, thereby reducing time cost, labor cost and material cost.
[0074] The vehicle embodiment corresponds to the voltage detection circuit embodiment, has the same technical effects as the voltage detection circuit embodiment, and specific descriptions refer to the voltage detection circuit embodiment. Figure 1 The voltage detection circuit embodiment shown is an embodiment based on the same inventive concept, and relevant parts can be referred to each other. The motor control system embodiment described above corresponds to the voltage detection circuit embodiment, has the same technical effects as the voltage detection circuit embodiment, and specific descriptions refer to the voltage detection circuit embodiment.
[0075] Those skilled in the art can understand that the drawings are only schematic diagrams of an embodiment, and the modules or flows in the drawings are not necessarily necessary for implementing the present application.
[0076] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the embodiment description, or can be correspondingly changed and located in one or more devices different from the present embodiment. The modules of the above-mentioned embodiments can be combined into one module, or can be further split into multiple sub-modules.
[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent substitutions for part of the technical features; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A voltage detection circuit, characterized by, Comprise: one or more first-order resistance-capacitance (RC) low-pass filter circuits and one or more comparators; The single-chip microcomputer of the vehicle is connected to the first input end of the one or more first-order RC low-pass filter circuits and the one or more comparators, the second input end of each comparator is connected to the voltage circuit to be detected, and the output end of each comparator is connected to the master control chip, wherein the single-chip microcomputer can output different pulse width modulation (PWM) signals by modifying the duty cycle of the PWM signal.
2. The voltage detection circuit of claim 1, wherein, When the comparator is a single-channel comparator, and the number of the comparator and the number of the first-order RC low-pass filter circuit are both one, the single-chip microcomputer of the vehicle is connected to the first input end of the comparator through the first-order RC low-pass filter circuit.
3. The voltage detection circuit of claim 2, wherein, The first-order RC low-pass filter circuit comprises a resistor and a capacitor, one end of the resistor is connected to the single-chip microcomputer, the other end of the resistor is connected to the first input end of the comparator, and the other end of the resistor is also connected to the capacitor, and the capacitor is grounded.
4. The voltage detection circuit of claim 1, wherein, When the comparator is a single-channel comparator, and the number of the first-order RC low-pass filter circuit and the number of the comparator are the same and both multiple, the single-chip microcomputer of the vehicle is connected to the first input end of each comparator through each first-order RC low-pass filter circuit.
5. The voltage detection circuit of claim 1, wherein, When the comparator is a multi-channel comparator, the number of the comparator is one, and the number of the first-order RC low-pass filter circuit is multiple, the single-chip microcomputer of the vehicle is connected to different first input ends of the comparator through each first-order RC low-pass filter circuit.
6. The voltage detection circuit of claim 2, wherein Further comprising a comparator power supply device connected to the power supply end of the comparator.
7. The voltage detection circuit of claim 3, wherein, The resistance value of the resistor is 10kΩ, and the capacitance value of the capacitor is 4.7uF.
8. The voltage detection circuit of claim 1, wherein, The frequency of each PWM signal is 10kHz.
9. An electric motor control system characterized by, Comprise: A printed circuit board (PCB) on which the voltage detection circuit of any one of claims 1-8 is packaged.
10. A vehicle characterized by comprising: Comprise: A vehicle body in which the voltage detection circuit of any one of claims 1-8 is arranged.