The content of the invention
In view of this, a kind of motor magnet ring polarity detection circuit and system are embodiments provided, how to solve
Realize detecting the problem of motor magnet ring polarity exactly.
According in a first aspect, embodiments provide a kind of motor magnet ring polarity detection circuit, including:
Hall acquisition module, for gathering the power information of vehicle power;Division module, is connected to the pole of Hall acquisition module
Property collection point, for carrying out partial pressure to the current potential of polarity collection point the polar voltages after partial pressure are obtained;Reference voltage module, connection
To vehicle power, for generating reference voltage according to the voltage of vehicle power;First comparator, its input is respectively connecting to point
Polar voltages and reference voltage are compared the ratio obtained for characterizing motor magnet ring polarity by die block and reference voltage module
Relatively result.
Alternatively, Hall acquisition module includes:For the first pull-up resistor for being connected serially between vehicle power and ground and suddenly
The series connection node of that device, the first pull-up resistor and Hall device is polarity collection point.
Alternatively, reference voltage module includes:For the second pull-up resistor and the confession that are connected serially between vehicle power and ground
Electric unit;Second pull-up resistor and the first pull-up resistor have identical resistance;Power supply unit is used to provide dc source;Second
The connecting node output reference voltage of pull-up resistor and power supply unit.
Alternatively, power supply unit includes:The transistor and reference resistance being sequentially connected in series between the second pull-up resistor and ground;
Second comparator, its first input end is used to be connected to dc source, and its second input is connected to transistor and reference resistance
Between, its output end is connected to the control end of transistor.
Alternatively, power supply unit also includes:Regulating resistor, first for being connected to dc source and the second comparator is defeated
Enter between end, for the current potential that adjustment is input into the first input end of the second comparator.
Alternatively, division module includes:The first resistor and second resistance being connected serially between polarity collection point and ground, first
The voltage of the connecting node output of resistance and second resistance is polar voltages.
Alternatively, also include between the second pull-up resistor and first comparator:3rd resistor and the 4th resistance;3rd resistor
And the 4th resistance be sequentially connected in series between the second pull-up resistor and ground, the connecting node of 3rd resistor and the 4th resistance is connected to
The input of one comparator.
Alternatively, first resistor and 3rd resistor have identical resistance;Second resistance and the 4th resistance have identical
Resistance.
According in a first aspect, embodiments provide a kind of motor magnet ring polarity detection system, including:
The motor magnet ring polarity detection circuit that above-described embodiment is provided;Controller, is connected to the output end of first comparator,
Judge to obtain the polarity of motor magnet ring for receiving comparative result.
Technical solution of the present invention, has the advantage that:
Motor magnet ring polarity detection circuit provided in an embodiment of the present invention and system, because reference voltage module is connected to car
Power supply is carried, according to the voltage of vehicle power reference voltage is generated, the reference voltage is compared as the benchmark of polar voltages
Compared with, so that reference voltage can follow the fluctuation of vehicle carried power voltage and change, then so that as the ginseng of benchmark
Examining voltage can be adaptively adjusted.Relative to the mode of reference voltage fixed in prior art, can reduce because of vehicle mounted electric
Source voltage pulsation and the systematic error that causes, it is achieved thereby that more precisely detecting motor magnet ring polarity.
Used as optional technical scheme, the second pull-up resistor and the first pull-up resistor have identical resistance, so as to so that
Second pull-up resistor of reference voltage module is carrying out being depressured the reference voltage and the first pull-up electricity that obtain to vehicle carried power voltage
Resistance is carrying out being depressured the voltage for obtaining polarity collection point quite to vehicle carried power voltage, so that reference voltage being capable of self adaptation
Ground adjustment, so that reference voltage is suitable with the voltage of polarity collection point.
Used as optional technical scheme, first resistor and 3rd resistor have an identical resistance, second resistance and the 4th electric
Resistance has identical resistance, so that being separately input into the polarity collection point voltage and reference voltage tool at first comparator two ends
There is suitable peripheral circuit environment, systematic error can be more effectively reduced then, improve reference voltage and follow vehicle power
The adaptivity of voltage change.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those skilled in the art are not having
Have and make the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
As long as additionally, technical characteristic involved in invention described below different embodiments non-structure each other
Just can be combined with each other into conflict.
In order to realize detecting motor magnet ring polarity exactly, present embodiment discloses a kind of motor magnet ring Check up polarity is electric
Road, refer to Fig. 1, be the detection circuit structure schematic diagram, and the motor magnet ring polarity detection circuit includes:Hall acquisition module 1,
Division module 2, reference voltage module 3 and first comparator 4, wherein:
Hall acquisition module 1 is used to gather the power information of vehicle power.In a particular embodiment, Hall acquisition module 1 can
To be realized using currently existing scheme, for example, Hall acquisition module 1 can include:For being connected serially to vehicle power VBatWith ground it
Between the first pull-up resistor R1 and Hall device, the first pull-up resistor R1 and Hall device series connection node be polarity collection point Q, lead to
Often, the current potential that can gather polarity collection point Q obtains polar voltages, then, by the polar voltages and reference voltage or base
Quasi- voltage is compared detection and obtains motor magnet ring polarity (S poles or N poles).
Division module 2 is connected to the polarity collection point Q of Hall acquisition module 1, for carrying out to the current potential of polarity collection point Q
Partial pressure obtains polar voltages V after partial pressureQ.The operating voltage of vehicle power is 12V or so (changing between 9V~16V), and is led to
Often the operating voltage of chip and electronic devices and components (such as single-chip microcomputer) is 5V, therefore, it is to reduce vehicle power because of overtension
The damage caused to chip, can carry out partial pressure and obtain the polarity after partial pressure by 2 pairs of polar voltages for collecting of division module
Voltage VQ。
Reference voltage module 3 is used to be connected to vehicle power, for generating reference voltage according to the voltage of vehicle power
Vref.In the present embodiment, by vehicle power VBatTo generate reference voltage VrefSuch that it is able to so that in vehicle carried power voltage ripple
When dynamic, the reference voltage V of generationrefAlso the fluctuation of vehicle carried power voltage can be followed and is adaptively adjusted.
First comparator 4 its input is respectively connecting to division module 2 and reference voltage module 3, to polar voltages VQWith
Reference voltage VrefIt is compared the comparative result obtained for characterizing motor magnet ring polarity.In the present embodiment, compare by first
Device 4 is to polar voltages VQWith reference voltage VrefIt is compared, after the comparison, the output high level of first comparator 4 or low electricity
Flat, the high level and low level characterize the polarity (N poles or S poles) of motor magnet ring.In a particular embodiment, first comparator 4
Normal phase input end can be input into polar voltages VQ, inverting input input reference voltage Vref;Can also first comparator 4
Normal phase input end input reference voltage Vref, inverting input input polar voltages VQ.It should be noted that in normal phase input end
When replacing with the input voltage of inverting input, the motor magnet ring that the high level and low level that first comparator 4 is exported is characterized
Polarity also can replace, specifically, hereafter will be described in an illustrative manner.
In a particular embodiment, reference voltage module 3 includes:For being connected serially to vehicle power VBatAnd ground between second
Pull-up resistor R2 and power supply unit 31.Wherein, the second pull-up resistor R2 and the first pull-up resistor R1 have identical resistance, so as to
So that vehicle power VBatBy the pressure drop of the second pull-up resistor R2 and vehicle power VBatBy the pressure drop of the first pull-up resistor R1
It is identical.Power supply unit 31 is used to provide the connecting node O output reference of dc source, the second pull-up resistor R2 and power supply unit 31
Voltage.It should be noted that in the present embodiment, there is the second pull-up resistor R2 and the first pull-up resistor R1 identical resistance to be can
To allow certain error to exist, the error can determine according to specific required precision.
In a particular embodiment, power supply unit 31 includes:The crystal being sequentially connected in series between the second pull-up resistor R2 and ground
Pipe T1 and reference resistance Rref;Second comparator 32, its first input end is used to be connected to dc source VCC, its second input
It is connected to transistor T1 and reference resistance RrefBetween, its output end is connected to the control end of transistor T1.It should be noted that
In an alternate embodiment of the invention, technical staff can also suitably increase as needed some current limiting devices, such as in the second comparator
Current-limiting resistance can be increased between 32 output end and the control end of transistor T1, to limit the electricity for flowing through transistor T1 control ends
Stream.
In order to realize adjusting the size of the voltage that power supply unit 31 is provided, in an alternate embodiment of the invention, power supply unit 31 is also
Including regulating resistor, for being connected between dc source and the first input end of the second comparator 32, for adjusting to second
The current potential of the first input end input of comparator 32.Specifically, regulating resistor can using two different resistances (certainly, according to
Needs can also be identical resistance) mode of series connection to be realizing partial pressure.
In a particular embodiment, division module 2 includes:Be connected serially to first resistor R21 between polarity collection point Q and ground and
The voltage of the connecting node output of second resistance R22, first resistor R21 and second resistance R22 is polar voltages VQ。
In order to realize that the voltage provided power supply unit 31 carries out partial pressure, in a particular embodiment, the second pull-up resistor R2
Also include and first comparator 4 between:3rd resistor R31 and the 4th resistance R32, wherein, 3rd resistor R31 and the 4th resistance
R32 is sequentially connected in series between the second pull-up resistor R2 and ground, and the connecting node of 3rd resistor R31 and the 4th resistance R32 is connected to
The input of first comparator 4.
In order that the input voltage of 4 two inputs of first comparator has suitable peripheral circuit, optional real
In applying example, first resistor R21 and 3rd resistor R31 have identical resistance, and second resistance R22 and the 4th resistance R32 have phase
Same resistance.It should be noted that in the present embodiment, it is alleged with identical resistance, it is not definitely equal, it should be understood that to permit
Perhaps certain error is present, and specific error size can determine according to required precision.
The present embodiment also discloses a kind of motor magnet ring polarity detection system, refer to Fig. 2, is that the detecting system structure is former
Reason figure, the motor magnet ring polarity detection system includes motor magnet ring polarity detection circuit and controller disclosed in above-described embodiment,
Wherein, controller is connected to the output end of first comparator 4, judges to obtain the polarity of motor magnet ring for receiving comparative result.
It should be noted that in a particular embodiment, technical staff can also in systems increase as needed corresponding components and parts (example
Such as resistance), to carry out overvoltage, overcurrent protection to motor magnet ring polarity detection system.
For ease of it will be appreciated by those skilled in the art that hereafter to the motor magnet ring polarity detection circuit/system of above-described embodiment
Operation principle be briefly described.It should be noted that the numerical value in following examples is merely illustrative description, it is impossible to be interpreted as
The whole of technical scheme, can not think that concrete numerical value is construed as limiting to technical scheme.
Fig. 3 is refer to, the part signal stream of motor magnet ring polarity detection circuit disclosed in above-described embodiment is illustrated, with suddenly
Your device is to illustrate as a example by HAL575, vehicle power VBatFlow through the first pull-up resistor R1 and polarity collection point Q places branch road
Electric current IhollFor two intervals:When motor magnet ring polarity is N poles, electric current IhollFor low current, in 5~6.9mA of interval;Work as electricity
When machine magnet ring polarity is S poles, electric current IhollFor high current, in 12~17mA of interval.This two different interval electric currents are being passed through
Also two different interval polar voltages V can be formed after division module 2Q, specifically, polarity when motor magnet ring polarity is S poles
Voltage VQPolar voltages V being higher than when motor magnet ring polarity is N polesQ;Therefore, by first comparator 4 by polar voltages VQWith
Reference voltage compares, it can be determined that go out polar voltages VQBelong to higher interval voltage, or relatively low interval voltage, so as to sentence
Break and motor magnet ring polarity.
In order that first comparator 4 can distinguish polar voltages VQBelong between high voltage region, or between low-voltage area,
The reference voltage V of the input of first comparator 4refShould be between polar voltages VQMaximum and polar voltages V between low-voltage areaQIt is high
Between the minimum of a value of voltage range, then, it is desirable to flow through the reference current of the second pull-up resistor R2 and connecting node O place branch road
IrefShould be between reference current IhollThe interval maximum of low current and electric current IhollBetween the interval minimum of a value of high current, for example
Between 6.9~12mA of interval.In order to reduce because of systematic error caused by the factors such as current deviation, in a preferred embodiment, reference
Electric current IrefElectric current I should be elected ashollThe interval maximum of low current and electric current IhollCentre between the interval minimum of a value of high current
Value, such as (6.9+12)/2mA, so as to improve the reliability of system.In a particular embodiment, can be by adjusting with reference to electricity
The parameter of each components and parts is realizing reference current I in die block 3refThe adjustment of size, is limited to the restriction of length, concrete adjustment side
Formula cannot be exhaustive, will not be described here.
It should be noted that in a particular embodiment:
(1) when the normal phase input end of first comparator 4 is input into polar voltages VQ, inverting input input reference voltage Vref
When.When polar voltages VQMore than reference voltage VrefWhen, the output end of first comparator 4 output high level illustrates polar voltages VQ
Between high voltage region, so as to judge that motor magnet ring polarity is S poles;Conversely, the output end of first comparator 4 output low level, explanation
Polar voltages VQBetween low-voltage area, so as to judge that motor magnet ring polarity is N poles.
(2) when the inverting input of first comparator 4 is input into polar voltages VQ, normal phase input end input reference voltage Vref
When.When polar voltages VQMore than reference voltage VrefWhen, the output end of first comparator 4 output low level illustrates polar voltages VQ
Between low-voltage area, so as to judge that motor magnet ring polarity is N poles;Conversely, the output end of first comparator 4 output high level, explanation
Polar voltages VQBetween high voltage region, so as to judge that motor magnet ring polarity is S poles.
Motor magnet ring polarity detection circuit provided in an embodiment of the present invention and system, because reference voltage module is connected to car
Power supply is carried, according to the voltage of vehicle power reference voltage is generated, the reference voltage is compared as the benchmark of polar voltages
Compared with, so that reference voltage can follow the fluctuation of vehicle carried power voltage and change, then so that as the ginseng of benchmark
Examining voltage can be adaptively adjusted.Relative to the mode of reference voltage fixed in prior art, can reduce because of vehicle mounted electric
Source voltage pulsation and the systematic error that causes, it is achieved thereby that more precisely detecting motor magnet ring polarity.
Used as optional technical scheme, the second pull-up resistor and the first pull-up resistor have identical resistance, so as to so that
Second pull-up resistor of reference voltage module is carrying out being depressured the reference voltage and the first pull-up electricity that obtain to vehicle carried power voltage
Resistance is carrying out being depressured the voltage for obtaining polarity collection point quite to vehicle carried power voltage, so that reference voltage being capable of self adaptation
Ground adjustment, so that reference voltage is suitable with the voltage of polarity collection point.
Used as optional technical scheme, first resistor and 3rd resistor have an identical resistance, second resistance and the 4th electric
Resistance has identical resistance, so that being separately input into the polarity collection point voltage and reference voltage tool at first comparator two ends
There is suitable peripheral circuit environment, systematic error can be more effectively reduced then, improve reference voltage and follow vehicle power
The adaptivity of voltage change.
Obviously, above-described embodiment is only intended to clearly illustrate example, and not to the restriction of embodiment.It is right
For those of ordinary skill in the art, can also make on the basis of the above description other multi-forms change or
Change.There is no need to be exhaustive to all of embodiment.And the obvious change thus extended out or
Among changing still in the protection domain of the invention.