CN108050924A - A kind of accurate judgement method of potentiometer gear - Google Patents
A kind of accurate judgement method of potentiometer gear Download PDFInfo
- Publication number
- CN108050924A CN108050924A CN201711269757.0A CN201711269757A CN108050924A CN 108050924 A CN108050924 A CN 108050924A CN 201711269757 A CN201711269757 A CN 201711269757A CN 108050924 A CN108050924 A CN 108050924A
- Authority
- CN
- China
- Prior art keywords
- gear
- limit value
- potentiometer
- speed
- bound limit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B7/00—Measuring arrangements characterised by the use of electric or magnetic techniques
- G01B7/003—Measuring arrangements characterised by the use of electric or magnetic techniques for measuring position, not involving coordinate determination
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Adjustable Resistors (AREA)
Abstract
The present invention provides a kind of accurate judgement method of potentiometer gear, and the method step is specific as follows:The resistance value information of potentiometer is converted into AD values by microcontroller;AD peaks are carried out by gear division according to gear demand, and determine the lower bound limit value b of each gear1With upper bound limit value b2;According to the lower bound limit value b of each gear1With upper bound limit value b2Determine the corresponding original speed position of the AD values of acquisition;After original speed position determines, by the AD values of acquisition and the lower bound limit value b1With upper bound limit value b2It is respectively compared, and buffer value t is set1And t2;If the AD values of acquisition are in b1‑t1To b2+t2Between when, determine that actual-gear is consistent with original speed position;If the AD values of signal picker acquisition are less than b1‑t1Or more than b2+t2When, then original speed position is redefined according to S300, and repeat step S400 to determine actual-gear.The present invention provides the accurate judgement method of potentiometer gear, is judged by two-stage gear, realizes the precise positioning to potentiometer gear.
Description
Technical field
The present invention relates to potentiometer gears to identify control field, more particularly to a kind of accurate judgement side of potentiometer gear
Method.
Background technology
Potentiometer is that there are three the resistive elements that exit, resistance value can be adjusted by certain changing rule for tool.Potentiometer is usual
It is made of resistive element and moveable brush, when brush is moved along resistive element, is obtained in output terminal with displacement into certain
The resistance value or voltage of relation.
At present, potentiometer manufacturer is because process issues, and precision can only accomplish positive and negative 20%, if required precision is more
It is high, it is necessary to especially select and management and control.When potentiometer fit structure does gear, different gears often mean that different temperature or
Person's rotating speed, usually increases gear precision by increasing structure stuck point, and the increase of stuck point causes potentiometer structure to become complicated.And
When the gear signal collector of potentiometer is between different stalls, due to voltage change or gear signal collector in itself
There are the reason for certain volume, be easy to causeing gear signal not determined, and toggled between adjacent gear positions.Work as shelves
When position signal can not obtain determining, erroneous judgement can be caused to the program according to gear signal.
The content of the invention
To solve the problems, such as to mention in above-mentioned background technology, the present invention provides a kind of accurate judgement side of potentiometer gear
Method, the method step are specific as follows:
The resistance value information of potentiometer is converted into AD values by S100, microcontroller;
S200, AD peaks are carried out by gear division according to gear demand, and determines the lower bound limit value b of each gear1With it is upper
Boundary value b2;
S300, the lower bound limit value b according to each gear1With upper bound limit value b2Determine the corresponding original speed position of the AD values of acquisition;
After S400, original speed position determine, by the AD values of acquisition and the lower bound limit value b1With upper bound limit value b2It is respectively compared,
And buffer value t is set1And t2;
If the AD values of acquisition are in b1-t1To b2+t2Between when, determine that actual-gear is consistent with original speed position;
If the AD values of signal picker acquisition are less than b1-t1Or more than b2+t2When, then initial shelves are redefined according to S300
Position, and step S400 is repeated to determine actual-gear.
Further, the buffer value t1And t2It is identical.
Further, the buffer value t1And t2AD value ranges 1~4.
Further, when the resolution ratio of AD is 8, AD peaks are 256;When gear is divided into 8 grades by microcontroller, lower bound
Limit value b1With upper bound limit value b2Definite gear bands 1 are as follows:
First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;The
Six grades:161-192;Seventh speed:193-225;Eighth speed:226-256.
Further, the buffer value t1And t2It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2It determines
Gear bands 2 it is as follows:
First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;The
Six grades:157-195;Seventh speed:189-228;Eighth speed:222-256.
Further, two pins of the full resistance value of the potentiometer are connected respectively with VCC and GND;The shifting of the potentiometer
Dynamic foot is connected with I/O port of the microcontroller with AD functions.
The accurate judgement method of potentiometer gear provided by the invention, microcontroller are judged by two-stage gear, solve current potential
When the gear signal collector of device is between different stalls, due to voltage change or gear signal collector, there are one in itself
The reason for determining volume, caused by gear signal can not be determined, make to toggle between adjacent gear positions, gear signal can not obtain
To it is definite the problem of, realize the precise positioning to potentiometer gear.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the accurate judgement method flow diagram of potentiometer gear provided by the invention;
Fig. 2 is the circuit connection diagram of potentiometer total head foot and mobile foot.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without creative efforts belong to the scope of protection of the invention.
In the description of the present invention, it is necessary to explanation, term " " center ", " longitudinal direction ", " transverse direction ", " on ", " under ",
The orientation or position relationship of the instructions such as "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outer " are
Based on orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description rather than instruction or dark
Show that signified device or element there must be specific orientation, with specific azimuth configuration and operation, thus it is it is not intended that right
The limitation of the present invention.In addition, term " first ", " second " and similar word be only used for description purpose, and it is not intended that
Instruction implies relative importance." connection " the either similar word such as " connected " and non-limiting connection with physics or machinery,
But electrical connection, light connects etc. can be included, it is either directly or indirect.
The embodiment of the present invention provides a kind of accurate judgement method of potentiometer gear, and the method step is specific as follows:
The resistance value information of potentiometer is converted into AD values by S100, microcontroller;
S200, AD peaks are carried out by gear division according to gear demand, and determines the lower bound limit value b of each gear1With it is upper
Boundary value b2;
S300, the lower bound limit value b according to each gear1With upper bound limit value b2Determine the corresponding original speed position of the AD values of acquisition;
After S400, original speed position determine, by the AD values of acquisition and the lower bound limit value b1With upper bound limit value b2It is respectively compared,
And buffer value t is set1And t2;
If the AD values of acquisition are in b1-t1To b2+t2Between when, determine that actual-gear is consistent with original speed position;
If the AD values of signal picker acquisition are less than b1-t1Or more than b2+t2When, then initial shelves are redefined according to S300
Position, and step S400 is repeated to determine actual-gear.
Preferably, the buffer value t1And t2It is identical.
Preferably, the buffer value t1And t2AD value ranges 1~4.
Preferably, when the resolution ratio of AD is 8, AD peaks are 256;When gear is divided into 8 grades by microcontroller, Lower Limits
Value b1With upper bound limit value b2Definite gear bands 1 are as follows:
First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;The
Six grades:161-192;Seventh speed:193-225;Eighth speed:226-256.
Preferably, the buffer value t1And t2It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2Definite
Gear bands 2 are as follows:
First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;The
Six grades:157-195;Seventh speed:189-228;Eighth speed:222-256.
Preferably, two pins of the full resistance value of the potentiometer are connected respectively with VCC and GND;The movement of the potentiometer
Foot is connected with I/O port of the microcontroller with AD functions.
The present invention provides specific examples below:
Embodiment 1
The resistance value information of potentiometer is converted into AD values by S100, microcontroller;
S200, gear is arranged to 8 grades;Lower bound limit value b1With upper bound limit value b2Definite gear bands 1 are as follows;
First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;The
Six grades:161-192;Seventh speed:193-225;Eighth speed:226-256.
The buffer value t1And t2It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2Definite gear model
It is as follows to enclose 2:
First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;The
Six grades:157-195;Seventh speed:189-228;Eighth speed:222-256.
When the AD values of acquisition are 15, microcontroller judges that gear is in first grade, and when AD values are changed to 34, program thinks
Gear does not have altered, and it is first grade to determine actual-gear at this time.
Embodiment 2
The resistance value information of potentiometer is converted into AD values by S100, microcontroller;
S200, gear is arranged to 8 grades;Lower bound limit value b1With upper bound limit value b2Definite gear bands 1 are as follows;
First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;The
Six grades:161-192;Seventh speed:193-225;Eighth speed:226-256.
The buffer value t1And t2It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2Definite gear model
It is as follows to enclose 2:
First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;The
Six grades:157-195;Seventh speed:189-228;Eighth speed:222-256.
When the AD values of acquisition are 15, microcontroller judges that gear is in first grade, when AD values are changed to 36, beyond first
The gear bands 2 (i.e. 0-35) of shelves, program think to need to repartition gear, and microcontroller is carried out according to the gear of gear bands 1
Selection since 36 in the range of 33-64, so microcontroller determines to be currently in second gear, determines actual-gear for the at this time
Two grades.
After gear confirms, program needs to carry out gear judgement according to gear bands 2, ripple between AD values either 34 or 36
When dynamic, microcontroller has been assert in second gear, so microcontroller judges that gear is constantly in second gear.Thus can to avoid because
The gear switch problem brought for power supply ripple fluctuation or AD sampling precisions.
Embodiment 3
The resistance value information of potentiometer is converted into AD values by S100, microcontroller;
S200, gear is arranged to 8 grades;Lower bound limit value b1With upper bound limit value b2Definite gear bands 1 are as follows;
First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;The
Six grades:161-192;Seventh speed:193-225;Eighth speed:226-256.
The buffer value t1And t2It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2Definite gear model
It is as follows to enclose 2:
First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;The
Six grades:157-195;Seventh speed:189-228;Eighth speed:222-256.
When the AD values of acquisition are 68, microcontroller judges that gear is in third gear, when AD values are changed to 60, beyond the 3rd
The gear bands 2 (i.e. 61-99) of shelves, program think to need to repartition gear, and microcontroller is carried out according to the gear of gear bands 1
Selection since 60 in the range of 33-64, so microcontroller determines to be currently in second gear, determines actual-gear for the at this time
Two grades.
After gear confirms, program needs to carry out gear judgement according to gear bands 2, ripple between AD values either 65 or 64
When dynamic, microcontroller has been assert in second gear, so microcontroller judges that gear is constantly in second gear.Thus can to avoid because
The gear switch problem brought for power supply ripple fluctuation or AD sampling precisions.
The accurate judgement method of potentiometer gear provided by the invention, microcontroller are judged by two-stage gear, solve current potential
When the gear signal collector of device is between different stalls, due to voltage change or gear signal collector, there are one in itself
The reason for determining volume, caused by gear signal can not be determined, make to toggle between adjacent gear positions, gear signal can not obtain
To it is definite the problem of, realize the precise positioning to potentiometer gear.
When it is implemented, as shown in Fig. 2, two pins of the full resistance value of potentiometer are connected respectively with VCC and GND;Potentiometer
Mobile foot be connected with I/O port of the microcontroller with AD functions;By said structure design, the error of potentiometer in itself can be evaded
The influence brought, it is only necessary to accurately judge the angle of potentiometer in itself.
Although more herein used the terms such as potentiometer, microcontroller, AD values and I/O port, it is not precluded from making
With the possibility of other terms.The use of these items is only for more easily describe and explain the essence of the present invention;It
Be construed to any one of the additional limitations and all disagreed with spirit of the present invention.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical characteristic into
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from various embodiments of the present invention technology
The scope of scheme.
Claims (6)
- A kind of 1. accurate judgement method of potentiometer gear, it is characterised in that:The method step is specific as follows:The resistance value information of potentiometer is converted into AD values by S100, microcontroller;S200, AD peaks are carried out by gear division according to gear demand, and determines the lower bound limit value b of each gear1With upper bound limit value b2;S300, the lower bound limit value b according to each gear1With upper bound limit value b2Determine the corresponding original speed position of the AD values of acquisition;After S400, original speed position determine, by the AD values of acquisition and the lower bound limit value b1With upper bound limit value b2It is respectively compared, and sets Put buffer value t1And t2;If the AD values of acquisition are in b1-t1To b2+t2Between when, determine that actual-gear is consistent with original speed position;If the AD values of signal picker acquisition are less than b1-t1Or more than b2+t2When, then original speed position is redefined according to S300, and Step S400 is repeated to determine actual-gear.
- 2. the accurate judgement method of potentiometer gear according to claim 1, it is characterised in that:The buffer value t1And t2 It is identical.
- 3. the accurate judgement method of potentiometer gear according to claim 2, it is characterised in that:The buffer value t1And t2 AD value ranges 1~4.
- 4. the accurate judgement method of potentiometer gear according to claim 1, it is characterised in that:The resolution ratio of AD is 8 When, AD peaks are 256;When gear is divided into 8 grades by microcontroller, lower bound limit value b1With upper bound limit value b2Definite gear bands 1 It is as follows:First grade:0-32;Second gear:33-64;Third gear:65-96;Fourth speed:97-128;Fifth speed:129-160;6th Shelves:161-192;Seventh speed:193-225;Eighth speed:226-256.
- 5. the accurate judgement method of potentiometer gear according to claim 4, it is characterised in that:The buffer value t1And t2 It is arranged to 3 AD values;Lower bound limit value b1-t1With upper bound limit value b2+t2Definite gear bands 2 are as follows:First grade:0-35;Second gear:29-66;Third gear:61-99;Fourth speed:93-131;Fifth speed:125-163;6th Shelves:157-195;Seventh speed:189-228;Eighth speed:222-256.
- 6. according to the accurate judgement method of claim 1-5 any one of them potentiometer gears, it is characterised in that:The current potential Two pins of the full resistance value of device are connected respectively with VCC and GND;The mobile foot of the potentiometer and I/O port of the microcontroller with AD functions Connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711269757.0A CN108050924A (en) | 2017-12-05 | 2017-12-05 | A kind of accurate judgement method of potentiometer gear |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711269757.0A CN108050924A (en) | 2017-12-05 | 2017-12-05 | A kind of accurate judgement method of potentiometer gear |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108050924A true CN108050924A (en) | 2018-05-18 |
Family
ID=62122055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711269757.0A Pending CN108050924A (en) | 2017-12-05 | 2017-12-05 | A kind of accurate judgement method of potentiometer gear |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108050924A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112629147A (en) * | 2020-12-23 | 2021-04-09 | 湖北美的电冰箱有限公司 | Temperature adjustment control method and device for refrigeration equipment and refrigeration equipment |
CN112824923A (en) * | 2019-11-21 | 2021-05-21 | 芜湖美的厨卫电器制造有限公司 | Potentiometer resistance value interval updating method of electrical equipment and electrical equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103323235A (en) * | 2013-06-14 | 2013-09-25 | 安徽华菱汽车有限公司 | Gearbox synchronizer gear-shifting testing table |
CN104101752A (en) * | 2014-07-16 | 2014-10-15 | 佛山市顺德区美的电热电器制造有限公司 | Gear adjusting method and gear adjusting device |
CN204372139U (en) * | 2014-12-31 | 2015-06-03 | 东风汽车公司 | Mechanical electronic mode Gear-shift switch assembly |
-
2017
- 2017-12-05 CN CN201711269757.0A patent/CN108050924A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103323235A (en) * | 2013-06-14 | 2013-09-25 | 安徽华菱汽车有限公司 | Gearbox synchronizer gear-shifting testing table |
CN104101752A (en) * | 2014-07-16 | 2014-10-15 | 佛山市顺德区美的电热电器制造有限公司 | Gear adjusting method and gear adjusting device |
CN204372139U (en) * | 2014-12-31 | 2015-06-03 | 东风汽车公司 | Mechanical electronic mode Gear-shift switch assembly |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112824923A (en) * | 2019-11-21 | 2021-05-21 | 芜湖美的厨卫电器制造有限公司 | Potentiometer resistance value interval updating method of electrical equipment and electrical equipment |
CN112629147A (en) * | 2020-12-23 | 2021-04-09 | 湖北美的电冰箱有限公司 | Temperature adjustment control method and device for refrigeration equipment and refrigeration equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108050924A (en) | A kind of accurate judgement method of potentiometer gear | |
CN209541678U (en) | A kind of ball screw assembly, Simple measurement device | |
US2572545A (en) | Variable impedance device | |
CN103577019B (en) | Input equipment | |
CN105644380A (en) | Calculation method and system for remainder range of electric automobile | |
CN103439662A (en) | Low-cost battery electricity quantity detection circuit | |
CN205941595U (en) | Aerovane | |
CN102426852B (en) | Method and system for reading information of storage array unit | |
CN202119393U (en) | Digital display portable testing device of steering engine | |
DE2656304C3 (en) | Electronic switch | |
CN104599902B (en) | The modified time relay | |
CN111948422A (en) | Adjustable motor rotating speed measuring device and measuring method thereof | |
CN103926441B (en) | Novel voltage divider | |
CN110007249A (en) | A kind of LED light driving power test method, apparatus and system | |
CN103673859A (en) | Displacement sensor | |
CN208672792U (en) | A kind of portable type current transformer on-site calibrator | |
CN106370321B (en) | A kind of measuring device of contact type measurement revolving part temperature | |
CN203881406U (en) | Liquid level measurement instrument based on constant flow source | |
CN111443456A (en) | Multiplying power feedback lens based on capacitive grating device | |
CN208092159U (en) | A kind of exclusion quality detection device | |
CN206709930U (en) | The double float level meters of intelligence | |
CN205197189U (en) | Plate holder degree of holding controlling means is gathered around to well back group machine | |
CN105150720A (en) | Multifunctional plotting board | |
CN105807833A (en) | Chip parameter setting module and method and charging circuit of lithium battery charging chip | |
CN205537527U (en) | B ultrasonic probe range display circuit arrangement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180518 |