Detection circuit connected to brush DC motor and motor rotation information detection method
阅读说明:本技术 连接到有刷直流电机的检测电路和电机旋转信息检测方法 (Detection circuit connected to brush DC motor and motor rotation information detection method ) 是由 村田勉 于 2019-07-09 设计创作,主要内容包括:本发明涉及一种连接到有刷直流电机的检测电路和一种用于检测有刷直流电机的旋转信息的方法。本技术的各种实施方案可以检测换向器的切换,并且利用指示切换的信号来确定电机的转速和/或旋转信息。在一个实施方案中,装置包括彼此串联连接的ADC、差值电路、绝对值电路和比较器。(The present invention relates to a detection circuit connected to a brushed dc motor and a method for detecting rotation information of a brushed dc motor. Various embodiments of the present technology may detect a switch of the commutator and utilize the signal indicative of the switch to determine the rotational speed and/or rotational information of the motor. In one embodiment, an apparatus includes an ADC, a difference circuit, an absolute value circuit, and a comparator connected in series with each other.)
1. A detection circuit connected to a brushed dc motor, the detection circuit comprising:
a differential amplifier configured to detect a current of the brushed DC motor and generate an analog signal proportional to the current;
an analog-to-digital converter (ADC) connected to the differential amplifier and configured to convert the analog signal to a first digital signal; and
a digital circuit connected to the ADC and comprising:
a difference circuit configured to:
receiving the first digital signal; and
calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal;
an absolute value circuit connected to the difference circuit and configured to calculate an absolute value of the second digital signal; and
a comparator circuit connected to the absolute value circuit and configured to:
comparing the calculated absolute value with a predetermined threshold; and
a comparator output is generated based on the comparison.
2. The detection circuit of claim 1, further characterized in that the detection circuit comprises a reference voltage generator circuit connected to the non-inverting terminal of the differential amplifier and configured to generate a reference voltage.
3. The detection circuit of claim 1, wherein the difference circuit further comprises a delay register configured to store the previous first digital signal.
4. The detection circuit of claim 1, wherein the digital circuit further comprises a register coupled to the comparator and configured to store the predetermined threshold.
5. The detection circuit of claim 1, further characterized in that the detection circuit comprises a sense resistor comprising a first end and a second end; and wherein:
the first end is connected to the brushed DC motor and the inverting terminal of the differential amplifier; and is
The second end is connected to the non-inverting terminal of the differential amplifier and ground.
6. The detection circuit of claim 1, wherein:
the comparator circuit generates a HIGH comparator output if the calculated absolute value is greater than the predetermined threshold;
the comparator circuit generates a LOW comparator output if the calculated absolute value is less than the predetermined threshold; and is
The HIGH comparator output represents the switching contact of the brush from one commutator to a different commutator.
7. The detection circuit of claim 1, wherein the predetermined threshold is selected based on a signal level indicative of switching of the brushed dc motor.
8. A method for detecting rotational information of a brushed dc motor, the method comprising:
detecting a current of the brushed direct current motor, wherein the brushed direct current motor comprises a plurality of commutators;
generating an analog signal proportional to the detected current;
converting the analog signal to a first digital signal;
calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal;
calculating an absolute value of the second digital signal;
comparing the calculated absolute value with a predetermined threshold; and is
Generating an output based on the comparison, wherein the output indicates a switch from one commutator to a different commutator of the brushed DC motor.
9. The method of claim 8, further characterized by comprising analyzing the output to determine a rotational speed of the brushed dc motor.
10. The method of claim 8, further characterized by comprising analyzing the output to determine a total number of revolutions of the brushed dc motor over a period of time.
Technical Field
The present invention relates to a detection circuit connected to a brushed dc motor and a method for detecting rotation information of a brushed dc motor.
Background
Brushed dc motors are used in a variety of applications, such as in automobiles. In automotive applications, brushed dc motors may be used to control the position of the side view mirrors, up/down position and control of the windows, position of the seats, optical axis of the headlights, etc. Accordingly, it is desirable to detect rotational information of a motor to improve the performance of the motor and/or to provide improved motor control.
Disclosure of Invention
The present invention relates to a detection circuit connected to a brushed dc motor and a method for detecting rotation information of a brushed dc motor.
The invention solves the technical problem that the conventional detection circuit for detecting the rotation information of the brushed direct current motor realizes a technology called ripple detection. However, this technique produces results that are affected by noise, which can affect the accuracy of the detected rotation information.
Various embodiments of the present technology may detect a switch of the commutator and utilize the signal indicative of the switch to determine the rotational speed and/or rotational information of the motor. In one embodiment, the detection circuit includes an ADC, a difference circuit, an absolute value circuit, and a comparator connected in series with each other.
According to one aspect, a detection circuit connected to a brushed dc motor includes: a differential amplifier configured to detect a current of the brushed dc motor and generate an analog signal proportional to the current; an analog-to-digital converter (ADC) connected to the differential amplifier and configured to convert the analog signal to a first digital signal; and a digital circuit connected to the ADC and including: a difference circuit configured to: receiving a first digital signal; and calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal; an absolute value circuit connected to the difference circuit and configured to calculate an absolute value of the second digital signal; and a comparator circuit connected to the absolute value circuit and configured to: comparing the calculated absolute value with a predetermined threshold; and generating a comparator output based on the comparison.
In one embodiment, the detection circuit further comprises a reference voltage generator circuit connected to the non-inverting terminal of the differential amplifier and configured to generate a reference voltage.
In one embodiment, the difference circuit further comprises a delay register configured to store the previous first digital signal.
In one embodiment, the digital circuit further comprises a register coupled to the comparator and configured to store the predetermined threshold.
In one embodiment, the detection circuit further comprises a sense resistor comprising a first end and a second end; and wherein: the first end is connected to the brush direct current motor and the inverting terminal of the differential amplifier; and a second end is connected to the non-inverting terminal of the differential amplifier and ground.
In one embodiment, the comparator circuit generates a HIGH comparator output if the calculated absolute value is greater than a predetermined threshold; if the calculated absolute value is less than a predetermined threshold, the comparator circuit generates a LOW comparator output; and the HIGH comparator output indicates the switching contact of the brush from one commutator to the other.
In one embodiment, the predetermined threshold is selected based on a signal level indicative of switching of the brushed dc motor.
According to another aspect, a method for detecting rotation information of a brushed dc motor includes: detecting a current of a brushed direct current motor, wherein the brushed direct current motor comprises a plurality of commutators; generating an analog signal proportional to the detected current; converting the analog signal into a first digital signal; calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal; calculating an absolute value of the second digital signal; comparing the calculated absolute value with a predetermined threshold; and generating an output based on the comparison, wherein the output indicates a switch from one commutator to a different commutator of the brushed dc motor.
In one operation, the method further includes analyzing the output to determine a rotational speed of the brushed dc motor.
In one operation, the method further includes analyzing the output to determine a total number of revolutions of the brushed dc motor over a period of time.
A technical effect achieved by the present invention is to provide a detection circuit that detects rotation information of a brushed dc motor based on a comparator output that responds to changes in motor current, which improves the accuracy of the detected rotation information and the overall performance and control of the motor.
Drawings
The present technology may be more fully understood with reference to the detailed description when considered in conjunction with the following exemplary figures. In the following drawings, like elements and steps in the various figures are referred to by like reference numerals throughout.
FIG. 1 is a block diagram of a brushed DC motor system in accordance with an exemplary embodiment of the present technique;
FIG. 2A is a motor current waveform in accordance with an exemplary embodiment of the present technique;
FIG. 2B is an output waveform of a differential amplifier in accordance with an exemplary embodiment of the present technique;
FIG. 2C is an output waveform of a comparator in accordance with an exemplary embodiment of the present technique; and is
Fig. 3 representatively illustrates a brushed dc motor in accordance with an exemplary embodiment of the present technique.
Detailed Description
The present techniques may be described in terms of functional block components and various processing steps. Such functional blocks may be realized by any number of components configured to perform the specified functions and achieve the various results. For example, the present techniques may employ various motors, microcontrollers, drive circuits, amplifiers, signal converters, comparators, and the like, which may perform various functions. Further, the present techniques may be implemented in connection with any number of systems, such as automation, robotics, Computer Numerical Control (CNC) machines, etc., and the systems described are merely exemplary applications for the techniques.
Methods and apparatus for rotation detection of a brushed dc motor according to various aspects of the present technique may operate with any suitable system, such as an automotive system. Referring to fig. 1, an exemplary brushed
The
In an alternative embodiment, the
The
Referring back to fig. 1, the
The
According to an exemplary embodiment, the
Reference
ADC130 converts the analog signal to a digital signal and generates an ADC output SN(where N is the sample number). In an exemplary embodiment, the ADC130 is connected to the output terminals of the
The
The
According to an exemplary embodiment, the
In operation, and with reference to fig. 1-3, as the
Depending on the automotive application, the rotational speed and/or rotational information of the
In the foregoing description, the technology has been described with reference to specific exemplary embodiments. The particular embodiments shown and described are illustrative of the technology and its best mode and are not intended to otherwise limit the scope of the technology in any way. Indeed, for the sake of brevity, conventional manufacturing, connecting, fabrication, and other functional aspects of the methods and systems may not be described in detail. Furthermore, the connecting lines shown in the various figures are intended to represent example functional relationships and/or steps between the various elements. There may be many alternative or additional functional relationships or physical connections in a practical system.
The described techniques have been described with reference to specific exemplary embodiments. However, various modifications and changes may be made without departing from the scope of the present technology. The specification and figures are to be regarded in an illustrative rather than a restrictive manner, and all such modifications are intended to be included within the scope of present technology. Accordingly, the scope of the described technology should be determined by the general embodiments described and their legal equivalents, rather than by merely the specific examples described above. For example, the steps recited in any method or process embodiment may be performed in any order, unless explicitly stated otherwise, and are not limited to the exact order provided in the specific examples. Additionally, the components and/or elements recited in any apparatus embodiment may be assembled or otherwise operationally configured in a variety of permutations to produce substantially the same result as the present technique and are therefore not limited to the specific configuration set forth in the specific example.
Benefits, other advantages, and solutions to problems have been described above with regard to specific embodiments. However, any benefit, advantage, solution to problem or any element that may cause any particular benefit, advantage, or solution to occur or to become more pronounced are not to be construed as a critical, required, or essential feature or element.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, composition, or apparatus that comprises a list of elements does not include only those elements recited, but may include other elements not expressly listed or inherent to such process, method, article, composition, or apparatus. Other combinations and/or modifications of the above-described structures, arrangements, applications, proportions, elements, materials or components used in the practice of the present technology, in addition to those not specifically recited, may be varied or otherwise particularly adapted to specific environments, manufacturing specifications, design parameters or other operating requirements without departing from the general principles thereof.
The present technology has been described above in connection with exemplary embodiments. However, changes and modifications may be made to the exemplary embodiments without departing from the scope of the present techniques. These and other changes or modifications are intended to be included within the scope of the present technology, as set forth in the following claims.
According to one aspect, a detection circuit connected to a brushed dc motor includes: a differential amplifier configured to detect a current of the brushed dc motor and generate an analog signal proportional to the current; an analog-to-digital converter (ADC) connected to the differential amplifier and configured to convert the analog signal to a first digital signal; and a digital circuit connected to the ADC and including: a difference circuit configured to: receiving a first digital signal; and calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal; an absolute value circuit connected to the difference circuit and configured to calculate an absolute value of the second digital signal; and a comparator circuit connected to the absolute value circuit and configured to: comparing the calculated absolute value with a predetermined threshold; and generating a comparator output based on the comparison.
In one embodiment, the detection circuit further comprises a reference voltage generator circuit connected to the non-inverting terminal of the differential amplifier and configured to generate a reference voltage.
In one embodiment, a reference voltage generator circuit includes: a first resistor connected in series with a second resistor; and an operational amplifier connected to the first resistor and the second resistor.
In one embodiment, the difference circuit further comprises a delay register configured to store the previous first digital signal.
In one embodiment, the digital circuit further comprises a register coupled to the comparator and configured to store the predetermined threshold.
In one embodiment, the detection circuit further comprises a sense resistor comprising a first end and a second end; and wherein: the first end is connected to the brush direct current motor and the inverting terminal of the differential amplifier; and a second end is connected to the non-inverting terminal of the differential amplifier and ground.
In one embodiment, the comparator circuit generates a HIGH comparator output if the calculated absolute value is greater than a predetermined threshold.
In one embodiment, the comparator circuit generates a LOW comparator output if the calculated absolute value is less than a predetermined threshold.
In one embodiment, the HIGH comparator output represents the switching contact of the brush from one commutator to another.
In one embodiment, the predetermined threshold is selected based on a signal level indicative of switching of the brushed dc motor.
According to another aspect, a method for detecting rotation information of a brushed dc motor having a plurality of commutators includes: detecting the current of the brushed direct current motor; generating an analog signal proportional to the detected current; converting the analog signal into a first digital signal; calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal; calculating an absolute value of the second digital signal; comparing the calculated absolute value with a predetermined threshold; and generating an output based on the comparison, wherein the output indicates a switch from one commutator to a different commutator of the brushed dc motor.
In one operation, the method further includes analyzing the output to determine a rotational speed of the brushed dc motor.
In one operation, the method further includes analyzing the output to determine a total number of revolutions of the brushed dc motor over a period of time.
According to yet another aspect, a brushed dc motor system includes: a drive circuit; a brushed DC motor connected to and controlled by the drive circuit, wherein the brushed DC motor includes a plurality of commutators; a detection circuit connected to the brushed DC motor and including: a differential amplifier configured to detect a current of the brushed dc motor and generate an analog signal proportional to the current; an analog-to-digital converter (ADC) connected to the differential amplifier and configured to convert the analog signal to a first digital signal; a difference circuit, the difference circuit comprising: an arithmetic circuit configured to: receiving a first digital signal; and calculating a second digital signal, wherein the second digital signal is a difference of the first digital signal and a previous first digital signal; a register connected to the arithmetic circuit and configured to store a previous digital signal; an absolute value circuit connected to the difference circuit and configured to calculate an absolute value of the second digital signal; and a comparator circuit connected at a first terminal to the absolute value circuit and configured to: comparing the calculated absolute value with a predetermined threshold; and generating a comparator output based on the comparison; and a microcontroller connected to the detection circuit and configured to analyze the comparator output to determine at least one of: the rotating speed of the brushed direct current motor; and the total number of revolutions of the brushed dc motor over a period of time.
In one embodiment, the comparator circuit generates a HIGH comparator output if the calculated absolute value is greater than a predetermined threshold.
In one embodiment, the comparator circuit generates a LOW comparator output if the calculated absolute value is less than a predetermined threshold.
In one embodiment, the HIGH comparator output represents a switching contact of a brush from a first commutator of the plurality of commutators to a second commutator of the plurality of commutators.
In one embodiment, the brushed dc motor system further includes a reference voltage generator circuit connected to the non-inverting terminal of the differential amplifier and including: a first resistor connected in series with a second resistor; and an operational amplifier connected to the first resistor and the second resistor.
In one embodiment, the predetermined threshold is selected based on a signal level indicative of switching of the brushed dc motor.
In one embodiment, the microcontroller is further coupled to the drive circuit and configured to provide a feedback signal to the drive circuit, wherein the feedback signal controls at least one of a rotational speed and a rotational direction of the brushed dc motor.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:电动汽车用减小电枢反应畸变的电机