The content of the invention
It is a primary object of the present invention to provide a kind of control method and device of gondola water faucet drive mechanism, it is intended to solve existing
The relatively complicated technical problem of gondola water faucet position adjustments.
To achieve the above object, the present invention provides a kind of control method of gondola water faucet drive mechanism, and the drive mechanism includes
First driving means and the second drive device being fixedly installed in first driving means, described in first driving means driving
First rotation with surface of the second drive device, the second drive device driving are fixedly installed in second drive device
Gondola water faucet in the second rotation with surface intersected with first plane, the control method of the gondola water faucet drive mechanism includes as follows
Step:
Control the first driving means that second drive device is moved into first position;
Control second drive device that the article is moved into the second place;
Obtain the first driving ginseng that second drive device is moved to the first position by the first driving means
Number;
Obtain the second driving parameter that the article is moved to the second place by second drive device;
Described first driving parameter and the described second driving parameter are formed into driving file, and stored;The driving
File is used for when calling and running the driving file, and second drive device is moved to institute by the first driving means
First position is stated, while the gondola water faucet is moved to the second place by second drive device.
Preferably, second drive device is moved to the first position by the acquisition first driving means
The specific steps of first driving parameter include:
Obtain the rotation step number of the stepper motor of the first driving means.
Preferably, second driving for obtaining second drive device and the article being moved to the second place
The specific steps of parameter include:
Obtain the rotation step number of the stepper motor of second drive device.
Preferably, second drive device is moved to the step of first position in the control first driving means
Before rapid, in addition to:
Initialize the first driving means and second drive device.
In addition, to achieve these goals, the present invention also provides a kind of control device of gondola water faucet drive mechanism, the driving
Mechanism includes first driving means and the second drive device being fixedly installed in first driving means, the first driving means
The first rotation with surface of second drive device is driven, the second drive device driving is fixedly installed in described second and driven
Gondola water faucet on dynamic device is in the second rotation with surface intersected with first plane, the control device of the gondola water faucet drive mechanism
Including:
First control module, for controlling the first driving means that second drive device is moved into first
Put;
Second control module, for controlling second drive device that the article is moved into the second place;
First acquisition module, second drive device is moved to described first for obtaining the first driving means
First driving parameter of position;
Second acquisition module, the article is moved to the of the second place for obtaining second drive device
Two driving parameters;
Processing module, for the described first driving parameter and the described second driving parameter to be formed into driving file, and carry out
Storage;The driving file is used for when calling and running the driving file, and the first driving means are driven described second
Dynamic device is moved to the first position, while the gondola water faucet is moved to the second place by second drive device.
Preferably, first acquisition module is specifically used for the rotation step for obtaining the stepper motor of the first driving means
Number.
Preferably, second acquisition module is specifically used for the rotation step for obtaining the stepper motor of second drive device
Number.
Preferably, the control device of the gondola water faucet drive mechanism also includes initialization module, for initializing described first
Drive device and second drive device.
The control method and device of the gondola water faucet drive mechanism of the present invention, by recording the rotation step number of stepper motor, with reality
Now to the record of gondola water faucet activation point, and quick regulating key is set, it is simple to operate to realize the quick regulation to gondola water faucet position
It is convenient.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In order to meet difference of the different people to gondola water faucet locational requirement, the present invention provides a kind of gondola water faucet drive mechanism and control
The control box of the driving structure, the drive device include first driving means and are fixedly installed in first driving means
Second drive device, the first driving means include stepper motor, the first driving dress with second drive device
The first rotation with surface for driving second drive device is put, the second drive device driving is fixedly installed in described second
Gondola water faucet in drive device in the second rotation with surface intersected with first plane, wherein it is preferred to, first plane
(horizontal plane) is vertical with second plane (vertical plane).The control box (as described in Figure 1), which is provided with, to be used to control described the
First knob 150 of one drive device, the second knob 250 for controlling second drive device and several quick regulations are pressed
Key 350.
Based on above-mentioned drive mechanism and control box, the present invention provides a kind of control method of gondola water faucet drive mechanism, reference picture
2, in one embodiment, the control method of the gondola water faucet drive mechanism comprises the following steps:
Step S10, control the first driving means that second drive device is moved into first position.
Specifically, in the present embodiment, user controls the first driving means by described in by adjusting the first knob 150
Second drive device is moved to first position, namely by adjusting the first knob 150 to adjust second drive device in water
Square upward position, and then adjust the position of the gondola water faucet in the horizontal direction.
Step S20, control second drive device that the article is moved into the second place.
Specifically, in the present embodiment, user controls the first driving means by described in by adjusting the first knob 150
Second drive device is moved to first position, namely by adjusting the first knob 150 to adjust the gondola water faucet in the vertical direction
Position, and then adjust the height of the gondola water faucet.
Step S30, second drive device is moved to the first position by the first driving means the is obtained
One driving parameter.
In the present embodiment, second drive device is moved to described first by the acquisition first driving means
The specific steps of first driving parameter of position include:Obtain the rotation step number of the stepper motor of the first driving means.
Specifically, in the present embodiment, by obtain the first driving means stepper motor rotation step number to remember
Record the information of the first position.
Step S40, the second driving ginseng that the article is moved to the second place by second drive device is obtained
Number.
In the present embodiment, it is described obtain second drive device and the article be moved to the second place the
The specific steps of two driving parameters include:Obtain the rotation step number of the stepper motor of second drive device.
Specifically, in the present embodiment, by obtain second drive device stepper motor rotation step number to remember
Record the information of the second place.
Step S50, the described first driving parameter and the described second driving parameter are formed into driving file, and stored,
The driving file is used for when calling and running the driving file, and the first driving means are by second drive device
The first position is moved to, while the gondola water faucet is moved to the second place by second drive device.
Specifically, after driving file is formed, that is, the setting of the quick driving of the corresponding second place is completed, when the flower
Spill when being not in the second place, the shortcut key of the corresponding second place of triggering, you can by the gondola water faucet quick regulation to institute
The second place is stated, it is simple to operate.
The application is described in detail in conjunction with practical operation:Dispatched from the factory in intelligent electric regulation gondola water faucet drive device or be
When system resets, parameter can be all zeroed by stepper motor, i.e., gondola water faucet upper-lower position is in topmost, and left rotation and right rotation position is interposition
Put.Working station indicator lights red light after user's power-on, adjusts left and right adjusting knob (i.e. above-mentioned first knob
150), to adjust the position of the gondola water faucet in the horizontal direction, after regulation in place, then upper and lower adjusting knob (i.e. above-mentioned second is passed through
Knob 250) the regulation gondola water faucet in the vertical direction position.When regulation terminates, user pins corresponding quick regulating key
3505 seconds, indicator lamp amber light fast blink was set, 12 set indicator lamp green light often bright 3 seconds after 2 seconds, represent customer parameter (on i.e.
State the first driving parameter and the second driving parameter) memory is completed, namely the first quick shaping modes are provided with.12 during this
Indicator lamp is set, and amber light flicker represents stepper motor rotation and represents to have run to specified location when amber light is changed into green light, green after 3 seconds
Lamp extinguishes.
The control method of the gondola water faucet drive mechanism of the present invention, by recording the rotation step number of stepper motor, to realize to flower
The record of activation point is spilt, and quick regulating key is set, it is simple to operate to realize the quick regulation to gondola water faucet position.
Further, reference picture 3, Fig. 3 are the flow of another embodiment of the control method of gondola water faucet drive mechanism of the present invention
Figure.
Based on above-described embodiment, in the present embodiment, described second is driven in the control first driving means
Device was moved to before the step of first position, in addition to:
Step S60, the first driving means and second drive device are initialized, by the first driving means
Being initialized with second drive device so that parameter can be all zeroed by stepper motor, i.e., gondola water faucet upper-lower position is in topmost,
Left rotation and right rotation position is centre position, and then ensures the accuracy when carrying out quick regulation and setting.
The present invention provides a kind of control device of gondola water faucet drive mechanism, and reference picture 4, in one embodiment, the gondola water faucet are driven
The control device of motivation structure includes:
First control module 100, for controlling the first driving means that second drive device is moved into first
Position.
Specifically, in the present embodiment, user controls the first driving means by described in by adjusting the first knob 150
Second drive device is moved to first position, namely by adjusting the first knob 150 to adjust second drive device in water
Square upward position, and then adjust the position of the gondola water faucet in the horizontal direction.
Second control module 200, for controlling second drive device that the article is moved into the second place.
Specifically, in the present embodiment, user controls the first driving means by described in by adjusting the first knob 150
Second drive device is moved to first position, namely by adjusting the first knob 15 to adjust the gondola water faucet in the vertical direction
Position, and then adjust the height of the gondola water faucet.
First acquisition module 300, it is moved to for obtaining the first driving means by second drive device described
First driving parameter of first position.In the present embodiment, first acquisition module 300 is specifically used for obtaining first drive
The rotation step number of the stepper motor of dynamic device.
Specifically, in the present embodiment, by obtain the first driving means stepper motor rotation step number to remember
Record the information of the first position.
Second acquisition module 400, the article is moved to the second place for obtaining second drive device
Second driving parameter.In the present embodiment, second acquisition module 400 is specifically used for obtaining second drive device
The rotation step number of stepper motor.
Specifically, in the present embodiment, by obtain second drive device stepper motor rotation step number to remember
Record the information of the second place.
Processing module 500, for the described first driving parameter and the described second driving parameter to be formed into driving file, go forward side by side
Row storage;The driving file is used for when calling and running the driving file, and the first driving means are by described second
Drive device is moved to the first position, while the gondola water faucet is moved to the second place by second drive device.
Specifically, after driving file is formed, that is, the setting of the quick driving of the corresponding second place is completed, when the flower
Spill when being not in the second place, the shortcut key of the corresponding second place of triggering, you can by the gondola water faucet quick regulation to institute
The second place is stated, it is simple to operate.
The application is described in detail in conjunction with practical operation:Dispatched from the factory in intelligent electric regulation gondola water faucet drive device or be
When system resets, parameter can be all zeroed by stepper motor, i.e., gondola water faucet upper-lower position is in topmost, and left rotation and right rotation position is interposition
Put.Working station indicator lights red light after user's power-on, adjusts left and right adjusting knob (i.e. above-mentioned first knob
150), to adjust the position of the gondola water faucet in the horizontal direction, after regulation in place, then upper and lower adjusting knob (i.e. above-mentioned second is passed through
Knob 250) the regulation gondola water faucet in the vertical direction position.When regulation terminates, user pins corresponding quick regulating key
3505 seconds, indicator lamp amber light fast blink was set, 12 set indicator lamp green light often bright 3 seconds after 2 seconds, represent customer parameter (on i.e.
State the first driving parameter and the second driving parameter) memory is completed, namely the first quick shaping modes are provided with.12 during this
Indicator lamp is set, and amber light flicker represents stepper motor rotation and represents to have run to specified location when amber light is changed into green light, green after 3 seconds
Lamp extinguishes.
The control device of the gondola water faucet drive mechanism of the present invention, by recording the rotation step number of stepper motor, to realize to flower
The record of activation point is spilt, and quick regulating key is set, it is simple to operate to realize the quick regulation to gondola water faucet position.
Further, reference picture 5, the framework signal of another embodiment of the control device of gondola water faucet drive mechanism of the present invention
Figure.
Based on above-described embodiment, in the present embodiment, the control device of the gondola water faucet drive mechanism also includes initialization mould
Block 600, for initializing the first driving means and second drive device, to cause stepper motor all to return parameter
Zero, i.e. gondola water faucet upper-lower position is in topmost, and left rotation and right rotation position is centre position, and then ensures to set in the quick regulation of progress
When accuracy.
In summary, the control method and device of gondola water faucet drive mechanism of the invention, by the rotation for recording stepper motor
Step number, to realize the record to gondola water faucet activation point, and quick regulating key is set, to realize the quick tune to gondola water faucet position
Section, it is simple to operate.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.