Summary of the invention
The object of the present invention is to provide a kind of video camera that under low temperature environment, can normally start and its implementation, be intended to solve the existing video camera that safety monitoring is used that is used for, under low temperature environment, have motor not start or the problem that motor is lost the step occurs.
Technical scheme of the present invention is as follows:
A kind of video camera that can normally start under low temperature environment comprises motor, also comprises:
Be used to obtain the temperature sensor of the temperature of current motor operations environment;
Be used for motor control module according to different PPS numerical control system motor startings;
Be used for the constant table of corresponding stored temperature and PPS number one by one;
Be used for obtaining and immediate two the PPS numbers of Current Temperatures from the constant table, calculate under the Current Temperatures according to looking into two PPS numbers getting then according to Current Temperatures, the microcontroller of the needed PPS number of motor,
Described motor connects the motor control module; Described motor control module connects described microcontroller, and described temperature sensor connects described microcontroller, and described microcontroller connects described constant table.
The described video camera that can normally start under low temperature environment, wherein, described temperature sensor is near described motor setting.
The described video camera that can normally start under low temperature environment wherein, is provided with a plurality of temperature values in the described constant table, and all corresponding PPS number of each temperature value.
A kind of implementation method of the video camera that can normally start under low temperature environment wherein, may further comprise the steps:
S1: the Current Temperatures that obtains motor place environment;
S2: whether judging Current Temperatures greater than zero degree, is execution in step S6 then; Otherwise execution in step S3;
S3: from the constant table, find out and the corresponding PPS numerical value of immediate two temperature values of Current Temperatures;
S4: the PPS number that calculates the Current Temperatures correspondence according to two PPS numbers that find out;
S5: utilize the PPS number of the Current Temperatures correspondence that calculates to come CD-ROM drive motor;
S6: adopt normal PPS number to come CD-ROM drive motor.
The implementation method of the described video camera that under low temperature environment, can normally start, wherein, the formula that calculates the PPS number of Current Temperatures correspondence according to two PPS numbers that find out is:
pps=?pp?–?(pt?-?ct)?*?(pp?-?np)/(?pt?-nt),
Wherein, pps is the PPS number of Current Temperatures correspondence, and ct is a current temperature value, and pt is the most close temperature value more than or equal to current temperature value, and pp is the pairing PPS number of temperature value pt; Nt is the most close temperature value less than current temperature value, and np is the pairing PPS number of temperature value nt.
The implementation method of the described video camera that can normally start under low temperature environment, wherein, the normal PPS number described in the described step S6 is the pairing PPS number when spending of 0 in the constant table.
Beneficial effect of the present invention: the present invention is by being provided with the temperature in the temperature sensor collection motor surrounding environment, and be implemented in video camera under the low temperature environment in conjunction with control corresponding software can be according to the actuating forces of the different sizes of difference control motor driving module output of temperature, motor not only can be started under low temperature environment but also avoid occurring losing the situation in step, but the working temperature of video camera is reduced to-40 ℃.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.
Referring to Fig. 1, video camera provided by the invention comprises motor, temperature sensor, microcontroller, motor control module and constant table, and described motor connects the motor control module; Described motor control module connects described microcontroller, and described temperature sensor connects described microcontroller, and described microcontroller connects described constant table.In order to make the detected temperature of temperature sensor can represent the temperature of motor operations, described temperature sensor is near described motor setting.
Described temperature sensor is used to obtain the temperature of current motor operations environment; Described motor control module is used for according to different PPS number (umber of pulse of per second) control revolution; Described constant table is used for corresponding stored temperature and PPS number one by one, is provided with a plurality of temperature values in the described constant table, and all corresponding PPS number of each temperature value; Described microcontroller is used for obtaining and immediate two the PPS numbers of Current Temperatures from the constant table according to Current Temperatures, calculates under the Current Temperatures the needed PPS number of motor according to looking into two PPS numbers getting then.
The PPS numerical table shows the umber of pulse of motor controller per second output.Described PPS number is high more, and the torsion of motor is low more, and driving force is weak more, but speed is fast; On the contrary, if described PPS number is low more, the torsion of motor is big more, and driving force is strong more, but speed is slow.
The present invention at first will be by measuring a large amount of video cameras, and each video camera is at the different temperature the highest PPS number that Danone starts of getting down from horse.The specific embodiment of the invention is:
50 of picked at random measure the highest pps number that the video camera motor initially can start under 0 ℃ ,-5 ℃ ,-10 ℃ ,-15 ℃ ,-20 ℃ ,-25 ℃ ,-30 ℃ ,-35 ℃ ,-40 ℃ all temps, with 50 video cameras from the No.1 number consecutively to No.50, measure every video camera then and have the highest pps number that motor initially can start under 9 temperature altogether at 0 ℃ ,-10 ℃ ,-15 ℃ ,-20 ℃ ,-25 ℃ ,-30 ℃ ,-35 ℃ ,-40 ℃ ,-45 ℃, concrete data see table:
? |
0℃ |
-10℃ |
-15℃ |
-20℃ |
-25℃ |
-30℃ |
-35℃ |
-40℃ |
-45℃ |
No.1 |
500 |
450 |
400 |
350 |
300 |
250 |
200 |
150 |
100 |
No.2 |
490 |
440 |
390 |
340 |
290 |
240 |
190 |
140 |
90 |
… |
… |
… |
… |
… |
… |
… |
… |
… |
… |
No.15 |
460 |
410 |
360 |
310 |
260 |
210 |
160 |
110 |
60 |
… |
… |
… |
… |
… |
… |
… |
… |
… |
… |
No.49 |
480 |
430 |
380 |
330 |
280 |
230 |
180 |
130 |
80 |
No.50 |
490 |
440 |
390 |
340 |
290 |
240 |
190 |
140 |
90 |
Minimum value |
460 |
410 |
360 |
310 |
260 |
210 |
160 |
110 |
60 |
Minimum value is illustrated in the required minimum pps number of starter at each temperature.Because the pps number is little, it is big to drive energy, so this is illustrated in these 50 video cameras the desired actuating force maximum of this video camera.
For all video cameras that guarantee ordinary production can both start at low temperatures, 30% the surplus of therefore floating downward again on the basis of minimum value obtains a general base value, and this base value is illustrated in video cameras all under this temperature and can both starts.Obtain thus: base value=minimum value/(1+30%) or base value=minimum value * (1-30%).
See table, base value adopts formula in the following table: base value=minimum value/(1+30%) try to achieve:
? |
0℃ |
-10℃ |
-15℃ |
-20℃ |
-25℃ |
-30℃ |
-35℃ |
-40℃ |
-45℃ |
Minimum value |
460 |
410 |
360 |
310 |
260 |
210 |
160 |
110 |
60 |
Base value |
353 |
315 |
276 |
238 |
200 |
161 |
123 |
84 |
46 |
The base value that obtains above as constant, is input in the constant table.The constant table is exactly a two-dimensional array, and content is the corresponding relation of temperature with the pps number.Statement below for example adopting can be provided with a two-dimensional array:
Const?int?cTemp_pps_tbl[][]?=
{
{0,?353},
{-10,?315},
{-15,?276},
{-20,?238},
{-25,?200},
{-30,?161},
{-35,?123},
{-40,?84},
{-45,?46},
};
Referring to Fig. 2, the implementation method of the video camera that can normally start under low temperature environment provided by the invention may further comprise the steps:
Step S1: the Current Temperatures that obtains motor place environment.
Step S2: whether judging Current Temperatures greater than zero degree, is execution in step S6 then; Otherwise execution in step S3.
Step S3: from the constant table, find out and the corresponding PPS numerical value of immediate two temperature values of Current Temperatures.
Step S4: the PPS number that calculates the Current Temperatures correspondence according to two PPS numbers that find out.
Step S5: utilize the PPS number of the Current Temperatures correspondence that calculates to come CD-ROM drive motor.
Step S6: adopt normal PPS number to come CD-ROM drive motor.
Wherein, two PPS numbers finding out of the basis that provides of present embodiment calculate the method for the PPS number of Current Temperatures correspondence and are:
If the variable of current temperature value is ct, in cTemp_pps_tbl constant table, find out the position of ct.The most close temperature value more than or equal to current temperature value ct is designated as pt, and the pairing PPS number scale of temperature value pt is pp; The most close temperature value less than current temperature value ct is designated as nt, and the pairing PPS number scale of temperature value nt is np.The PPS that tries to achieve the Current Temperatures correspondence according to following formula counts pps then:
pps?=?pp?–?(pt?-?ct)?*?(pp?-?np)/(?pt?-nt)
Certainly, the PPS number by the temperature value correspondence in the constant table calculates the formula of the PPS number of Current Temperatures correspondence, is not limited to formula listed among the top embodiment.
Normal PPS number described in the described step S6, pairing PPS number in the time of can being set to 0 in the constant table and spending also can be the PPS number of the PPS number of a correspondence when spending greater than 0.
Employing the present invention can select the driving force of motor automatically according to the temperature of environment, improved the step situation of losing of motor in low temperature environment.But the working temperature of video camera is reduced to-40 ℃.And traditional video camera generally can only arrive-20 ℃.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.