Bar motion control method, device, equipment and storage medium

The Hall sensor collects position information and adjusts the force output of the motor, which solves the problem of unstable running speed of the car bar, achieves more stable bar movement, and improves riding comfort.

CN112596550BActive Publication Date: 2024-11-08IMS AUTOMOTIVE ELECTRONIC CONTROLING SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011593617.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2024-11-08
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

In the existing car bar motion control system, the motor output force is constant, resulting in unstable bar running speed, which in turn affects comfort.

Method used

The Hall sensor collects the position information of the bar body, and outputs different duty cycle signals to the motor according to different position information, so that it outputs different forces, thereby improving the stability of the bar movement.

Benefits of technology

It effectively improves the operating stability of the bar, avoids the problem of running too fast or too slow, and improves riding comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112596550B_ABST
    Figure CN112596550B_ABST
Patent Text Reader

Abstract

The present invention discloses a bar motion control method, device, equipment and computer storage medium. The bar motion control method is applied to a bar motion control system; the bar motion control system includes a bar body, a motor and a Hall sensor, the motor drives the bar body to move; the Hall sensor is used to collect the position information of the bar body; this scheme obtains different position information of the bar body collected by the Hall sensor; outputs different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move, thereby improving the stability of the bar operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to a car bar motion control technology, and more particularly to a bar motion control method, device, equipment and storage medium. Background Art

[0002] At present, cars are not just a means of transportation. With the progress of society, people have higher and higher requirements for the comfort of cars. For example, concierge cars, high-end business cars, and travel RVs are designed to provide a comfortable ride. Now many business cars or travel RVs are equipped with car bars. In the prior art, the force output by the motor is constant, which causes the running speed of the car bar to be unstable during the entire operation process, thereby causing the bar to operate unstable. Summary of the invention

[0003] The present invention provides a bar motion control method, device, equipment and storage medium, which can realize real-time adjustment and output of different duty cycle signals to motor output different forces according to different position information of the bar, thereby improving the operation stability of the bar.

[0004] In a first aspect, an embodiment of the present invention provides a bar motion control method, which is applied to a bar motion control system; the bar motion control system includes a bar body, a motor and a Hall sensor, the motor drives the bar body to move; the Hall sensor is used to collect position information of the bar body; the method includes:

[0005] Acquire different position information of the bar counter body collected by the Hall sensor;

[0006] Different duty cycle signals are output to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move.

[0007] Optionally, outputting different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move includes:

[0008] Outputting different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range;

[0009] Outputting a second preset duty cycle signal to the motor according to the second position information to output a first preset force to drive the bar body to leave the preset joint point;

[0010] Different third duty cycle signals are output to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range.

[0011] Optionally, the Hall sensor is also used to collect start and stop information of the motor;

[0012] Outputting a second preset duty cycle signal according to the second position information until the motor outputs a first preset force to drive the bar body to leave the preset joint point includes:

[0013] Determine whether the position information of the bar counter collected by the Hall sensor is at the second position;

[0014] If yes, obtaining the start / stop information of the first motor collected by the Hall sensor;

[0015] If the start / stop information of the first motor is greater than the preset time, a fourth preset duty cycle signal is output to the motor to output a second preset force to drive the bar body to leave the preset joint point; wherein the second preset force is greater than the first preset force;

[0016] The ratio of the second preset force to the first preset force is a first ratio.

[0017] Optionally, the third position includes a third position first sub-stage;

[0018] Before outputting different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range; further comprising:

[0019] Determine whether the position information of the bar counter collected by the Hall sensor is in the first sub-stage of the third position;

[0020] If yes, obtaining the start / stop information of the second motor collected by the Hall sensor;

[0021] If the second motor start / stop information is greater than the preset time, a fifth preset duty cycle signal is output to the motor to output a third preset force to drive the bar body to leave the third position in the first sub-stage;

[0022] If the second motor start / stop information is less than the preset time, a sixth preset duty cycle signal is output to the motor to output a fourth preset force to drive the bar body to leave the third position in the first sub-stage;

[0023] Among them, the third preset force is greater than the fourth preset force; the ratio of the fourth preset force to the third preset force is a second ratio, and the second ratio is smaller than the first ratio.

[0024] In a second aspect, an embodiment of the present invention further provides a bar motion control device, the bar motion control device comprising:

[0025] Position information acquisition module: used to obtain different position information of the bar counter collected by the Hall sensor;

[0026] Different signal output modules: used to output different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move.

[0027] Optional, different signal output modules include:

[0028] A first output unit: used for outputting different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range;

[0029] The second output unit is used to output a second preset duty cycle signal to the motor according to the second position information to output a first preset force to drive the bar body to leave the preset joint point;

[0030] The third output unit is used to output different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range.

[0031] Optionally, the different signal output modules further include:

[0032] A first judging unit: used for judging whether the position information of the bar counter collected by the Hall sensor is at the second position;

[0033] A first start / stop information acquisition unit: configured to acquire the start / stop information of the first motor acquired by the Hall sensor when the position information of the bar body acquired by the Hall sensor is at the second position;

[0034] The fourth output unit is used to output a fourth preset duty cycle signal to the motor to output a second preset force to make the bar body leave the preset connection point when the start and stop information of the motor is greater than the preset time; wherein the second preset force is greater than the first preset force; and the ratio of the second preset force to the first preset force is a first ratio.

[0035] Optionally, the third position includes a third position first sub-stage; and the different signal output module further includes:

[0036] A second judgment unit: used for judging whether the position information of the bar counter collected by the Hall sensor is in the first sub-stage of the third position;

[0037] A second start-stop information acquisition unit: used to acquire the start-stop information of the second motor acquired by the Hall sensor when the position information of the bar counter acquired by the Hall sensor is in the first sub-stage of the third position;

[0038] The fifth output unit is used for outputting a fifth preset duty cycle signal to the motor to output a third preset force to drive the bar body to leave the first sub-stage of the third position when the start / stop information of the second motor is greater than the preset time;

[0039] The sixth output unit is used for outputting a sixth preset duty cycle signal to the motor to output a fourth preset force to drive the bar body to leave the first sub-stage of the third position when the start / stop information of the second motor is less than the preset time;

[0040] Wherein, the third preset force is greater than the fourth preset force;

[0041] The ratio of the fourth preset force to the third preset force is a second ratio;

[0042] Wherein, the second ratio is smaller than the first ratio.

[0043] In a third aspect, an embodiment of the present invention further provides a bar motion control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the bar motion control method as described in the first aspect above when executing the program.

[0044] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the bar motion control method as described in the first aspect above.

[0045] The bar motion control system in the present invention includes a bar body, a motor and a Hall sensor, wherein the motor drives the bar body to move; the Hall sensor is used to collect position information of the bar body; this scheme obtains different position information of the bar body collected by the Hall sensor; and outputs different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move, thereby improving the stability of the bar operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a flow chart of a bar motion control method provided by Embodiment 1 of the present invention;

[0047] Figure 2 is a flow chart of another bar motion control method provided by the first embodiment of the present invention;

[0048] Figure 3 is a flow chart of another bar motion control method provided by the first embodiment of the present invention;

[0049] Figure 4 It is a structural schematic diagram of a bar motion control device provided by Embodiment 2 of the present invention;

[0050] Figure 5 It is a schematic diagram of the structure of a bar motion control device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0051] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0052] Embodiment 1

[0053] Figure 1 This is a flow chart of a bar motion control method provided in Embodiment 1 of the present invention. This embodiment is applicable to bar motion situations. The method can be executed by a bar motion control device and specifically includes the following steps:

[0054] S110, obtaining different position information of the bar counter collected by the Hall sensor.

[0055] Among them, the bar motion control method is applied to the in-vehicle bar motion control system in the car; the bar motion control system includes a bar body, a motor and a Hall sensor, and the in-car bar body includes a rolling door, a lifting structure and a transmission structure; two sliders are arranged on the lifting structure, and the lifting structure moves on the transmission mechanism (for example: a guide rail structure); the motor drives the rolling door to move horizontally, and the motor drives the lifting structure to move up and down perpendicular to the movement direction of the rolling door. The actual movement of the bar body can be divided into three processes: first, the motor drives the rolling door to open from closed to 2 / 3 of the total length of the bar body; then the motor drives the moving slider in the lifting structure to move to contact with the static slider, and finally, the motor drives the rolling door to open completely, and the motor drives the moving slider and the static slider in the lifting structure to move to the specified height together. In the actual bar motion control process, the Hall sensor will collect the positions of the rolling door and the lifting structure in real time during each movement process.

[0056] S120, outputting different duty cycle signals to the motor according to different position information so that the motor outputs different forces to drive the bar body to move.

[0057] Among them, the Hall sensor collects different position information of the rolling door and the lifting structure. Specifically, the Hall sensor collects the specific positions of the three movement processes of the bar body, and outputs different duty cycle signals to the motor. The motor outputs different torques according to different duty cycle signals to output different forces to the rolling door and the lifting structure, thereby realizing the smooth operation of the bar body and avoiding the problem of unstable operation caused by the bar body running too fast or too slow during the entire operation process.

[0058] On the basis of the above embodiment, further optimization is performed, in different stages of the movement of the bar body, different duty cycle signals are output to the motor so that the motor outputs different forces to overcome the resistance of the bar body at different stages; at the same time, in the second movement process, it is determined whether there is a load, and different duty cycle signals are adaptively output to the motor according to the presence or absence of the load so that the motor adjusts the output force; Figure 2 is a flow chart of another bar motion control method provided by the first embodiment of the present invention; Figure 2 As shown, the method includes:

[0059] S210, obtaining different position information of the bar counter collected by the Hall sensor.

[0060] S220. Output different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range.

[0061] Specifically, in the process of the motor driving the rolling shutter door to open from closed to 2 / 3 of the total length of the bar body, each position of the rolling shutter door in the process of moving to 2 / 3 of the total length of the bar body belongs to the first position, and the Hall sensor collects different first position information of the rolling shutter door in real time during the movement to 2 / 3 of the total length of the bar body, and outputs different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to overcome the resistance of the rolling shutter door in the movement process of 2 / 3 of the total length of the bar body. Exemplarily, the rolling shutter door outputs different duty cycle signals of 40%, 50%, and 60% respectively from being completely closed to moving to 1 / 4, 1 / 3, and 2 / 3 of the total length of the bar body; the rolling shutter door gradually increases the duty cycle signal from the beginning of the movement to increase the force output by the motor to overcome the resistance of the rolling shutter door within the first position range.

[0062] S230: Determine whether the position information of the bar counter collected by the Hall sensor is at the second position.

[0063] Among them, during the second movement of the bar body, the motor drives the moving slider in the lifting structure to move until it contacts the static slider; first determine whether the position information of the bar body collected by the Hall sensor is in the position where the motor drives the moving slider in the lifting structure to move to contact the static slider.

[0064] S240: If yes, obtain the start / stop information of the first motor collected by the Hall sensor;

[0065] S250, if the start / stop information of the first motor is greater than the preset time, output a fourth preset duty cycle signal to the motor to output a second preset force to drive the bar body to leave the preset joint point;

[0066] Among them, the preset connection point is the position where the movable slider moves to the contact position with the static slider during the second movement of the bar body; because during the second movement, the motor drives the movable slider in the lifting structure to move to the contact position with the static slider; the force output by the motor needs to overcome the static friction between the movable slider and the static slider. When the Hall sensor collects the start and stop information of the motor for a period greater than the preset time, for example, the preset time is 30ms, that is, when the motor is always in a stopped state, it is judged that the force output by the motor is insufficient to overcome the static friction, and it is judged that the load on the bar body is increased. At this time, a larger fourth preset duty cycle signal needs to be output to the motor to output a larger second preset force to overcome the static friction between the movable slider and the static slider, so that the movable slider and the static slider slide together after contacting.

[0067] S260: If the start / stop information of the first motor is less than the preset time, a second preset duty cycle signal is output according to the second position information to the motor to output a first preset force to make the bar body leave the preset connection point.

[0068] Among them, when the Hall sensor collects the start and stop information of the motor which is less than the preset time, it is judged that no load is added to the bar body, and directly outputs the second preset duty cycle signal to the motor to output the first preset force. The first preset force can overcome the static friction between the moving slider and the static slider during the second movement of the bar body, without overcoming the gravity of the load. The first preset force is less than the second preset force, and the ratio of the second preset force to the first preset force is the first ratio, that is, when the load is increased, a duty cycle signal with a certain increase is output to overcome the gravity of the load.

[0069] It should be noted that, since the bar body needs to overcome the larger static friction between the moving slider and the static slider during the second movement, compared with overcoming the resistance during the movement of the rolling door during the first movement, a larger second preset duty cycle signal needs to be output; illustratively, when the moving slider moves to the contact point with the static slider, an 80% duty cycle signal is output.

[0070] S270. Output different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range.

[0071] Among them, during the third movement of the bar body, the motor drives the rolling door to open completely, and the motor drives the moving slider and the static slider in the lifting structure to move to a specified height together. Each position in this process is the third position. Different third duty cycle signals are output to the motor according to different third position information so that the motor outputs different forces to overcome the resistance of the rolling door to fully open and the resistance of the moving slider and the static slider to slide together driven by the motor. In this way, when the present technical solution determines that the bar body is in the second position, it will determine whether there is a load according to the start and stop information of the motor, and according to the presence or absence of load, it will output different duty cycle signals so that the motor outputs different forces to adapt to the operation of the bar body in different occasions; at the same time, different duty cycle signals are output in real time at each movement stage of the bar body to adjust the smooth operation of the bar body.

[0072] Based on the above embodiment, further optimization is performed, in the third movement process of the bar body, the third position of the bar body includes a third position first sub-stage and a third position second sub-stage; in the third position first sub-stage, it is determined whether there is a load, and different duty cycle signals are output according to whether there is a load; Figure 3 is a flow chart of another bar motion control method provided by Embodiment 3 of the present invention;

[0073] S310, obtaining different position information of the bar counter collected by the Hall sensor;

[0074] S320, outputting different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range;

[0075] S330, determining whether the position information of the bar counter collected by the Hall sensor is at the second position;

[0076] S340: If yes, obtain the start / stop information of the first motor collected by the Hall sensor;

[0077] S350: if the start / stop information of the first motor is greater than the preset time, output a fourth preset duty cycle signal to the motor to output a second preset force to make the bar body leave the preset joint point;

[0078] Wherein, the second preset force is greater than the first preset force;

[0079] The ratio of the second preset force to the first preset force is a first ratio.

[0080] S360: If the start / stop information of the first motor is less than the preset time, a second preset duty cycle signal is output according to the second position information to the motor to output a first preset force to make the bar body leave the preset connection point.

[0081] S370, determining whether the position information of the bar counter collected by the Hall sensor is in the first sub-stage of the third position;

[0082] Among them, during the third movement of the bar body, the third position includes the first sub-stage of the third position and the second sub-stage of the third position; the first sub-stage of the third position is the buffer stage from the second position to the third position, which can be understood as the initial position of the moving slider and the static slider moving together, and the second sub-stage of the third position is the smooth movement stage in which the motor drives the rolling door to be fully opened, and the motor drives the moving slider and the static slider in the lifting structure to move together to the specified height; the Hall sensor determines whether the position information of the bar body is the initial position of the moving slider and the static slider moving together.

[0083] S380: If yes, obtain the start / stop information of the second motor collected by the Hall sensor;

[0084] S390, if the second motor start / stop information is greater than the preset time, output a fifth preset duty cycle signal to the motor to output a third preset force to enable the bar body to leave the third position in the first sub-stage;

[0085] S400, if the second motor start-stop information is less than the preset time; output the sixth preset duty cycle signal to the motor to output the fourth preset force to make the bar body leave the third position in the first sub-stage; wherein the third preset force is greater than the fourth preset force;

[0086] Among them, at the first sub-stage of the third position, that is, the initial position where the moving slider and the static slider move together, it is also first determined whether there is a load at this position according to the start and stop information of the motor, and when it is determined that there is a load, the fifth preset duty cycle signal is output in the first sub-stage of the third position to make the motor output the third preset force; when it is determined that there is no load, the sixth preset duty cycle signal is output to make the motor output the fourth preset force; the fourth preset force is greater than the third preset force; the ratio of the fourth preset force to the third preset force is the second ratio, so that the duty cycle signal with an increase of the second ratio is output in the first sub-stage of the third position to overcome the sliding friction of the initial movement of the moving slider and the static slider together when the load is increased. Among them, it can be understood that the second ratio is smaller than the first ratio, and when there is a load, the resistance to be overcome in the first sub-stage of the third position is smaller than the resistance to be overcome at the second position, which can ensure that the bar body smoothly transitions from the second position to the third position when the load is increased.

[0087] Embodiment 2

[0088] The bar motion control device provided in the second embodiment of the present invention can execute the bar motion control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 4Schematic diagram of the structure of a bar motion control device provided by Embodiment 2 of the present invention. Figure 4 As shown, the bar motion control device includes:

[0089] Position information acquisition module 10: used to obtain different position information of the bar counter collected by the Hall sensor;

[0090] Different signal output modules 20: used to output different duty cycle signals to the motor according to different position information so that the motor outputs different forces to drive the bar body to move.

[0091] Optional, different signal output modules include:

[0092] The first output unit is used to output different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range;

[0093] The second output unit is used to output a second preset duty cycle signal to the motor according to the second position information to output a first preset force to drive the bar body to leave the preset joint point;

[0094] The third output unit is used to output different third duty cycle signals to the motor according to different third position information so that the motor can output different forces to drive the bar body to move within the third position range.

[0095] Optionally, different signal output modules also include:

[0096] A first judging unit: used to judge whether the position information of the bar counter collected by the Hall sensor is at the second position;

[0097] A first start-stop information acquisition unit: used for acquiring the start-stop information of the first motor acquired by the Hall sensor when the position information of the bar body acquired by the Hall sensor is at the second position;

[0098] The fourth output unit: when the start and stop information of the motor is greater than the preset time, outputs the fourth preset duty cycle signal to the motor to output the second preset force to drive the bar body to leave the preset connection point; wherein the second preset force is greater than the first preset force; the ratio of the second preset force to the first preset force is the first ratio.

[0099] Optionally, the third position includes a third position first sub-stage and a third position second sub-stage; and the different signal output modules further include:

[0100] The second judgment unit is used to judge whether the position information of the bar body collected by the Hall sensor is in the first sub-stage of the third position;

[0101] A second start-stop information acquisition unit: used to acquire the start-stop information of the second motor acquired by the Hall sensor when the position information of the bar counter acquired by the Hall sensor is in the first sub-stage of the third position;

[0102] The fifth output unit is used for outputting a fifth preset duty cycle signal to the motor to output a third preset force to make the bar body leave the first sub-stage of the third position when the start / stop information of the second motor is greater than the preset time;

[0103] The sixth output unit is used for outputting a sixth preset duty cycle signal to the motor to output a fourth preset force to make the bar body leave the third position in the first sub-stage when the start / stop information of the motor is less than the preset time;

[0104] Wherein, the third preset force is greater than the fourth preset force;

[0105] The ratio of the fourth preset force to the third preset force is a second ratio;

[0106] The second ratio is smaller than the first ratio.

[0107] Embodiment 3

[0108] Figure 5 A schematic diagram of the structure of a bar motion control device provided in Embodiment 3 of the present invention is shown in FIG. Figure 5 As shown, the device includes a processor 70, a memory 71, an input device 72 and an output device 73; wherein the number of the processor 70 can be one or more, Figure 5 A processor 70 is taken as an example; the processor 70, memory 71, input device 72 and output device 73 in the device can be connected via a bus or other means, and Figure C takes the connection via a bus as an example.

[0109] The memory 71 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the bar motion control method in the embodiment of the present invention. The processor 70 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 71, that is, realizing the above-mentioned bar motion control method.

[0110] The memory 71 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 71 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 71 may further include a memory remotely arranged relative to the processor 70, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0111] The input device 72 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 73 may include a display device such as a display screen.

[0112] Embodiment 4

[0113] Embodiment 4 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a bar motion control method when executed by a computer processor, the method comprising:

[0114] Obtain different position information of the bar counter collected by the Hall sensor;

[0115] Different duty cycle signals are output to the motor according to different position information so that the motor can output different forces to drive the bar body to move.

[0116] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention, whose computer executable instructions are not limited to the method operations described above, can also execute related operations in the bar motion control method provided by any embodiment of the present invention.

[0117] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0118] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0119] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A bar motion control method, characterized in that: Applied to a bar motion control system; the bar motion control system comprises a bar body, a motor and a Hall sensor, the motor drives the bar body to move; the Hall sensor is used to collect the position information of the bar body; The bar motion control method comprises: Acquire different position information of the bar counter body collected by the Hall sensor; Outputting different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move; Outputting different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move, including: Outputting different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range; Outputting a second preset duty cycle signal to the motor according to the second position information to output a first preset force to drive the bar body to leave the preset joint point; Outputting different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range; The bar body includes: a rolling door and a lifting structure; the lifting structure includes: a moving slider and a static slider; The preset joint point is the position where the movable slider moves to contact the static slider during the second movement of the bar body: The motor drives the rolling door to open from closed to a position at 2 / 3 of the total length of the bar body, and each position during the process of the rolling door moving to 2 / 3 of the total length of the bar body belongs to the first position; The motor drives the movable slider in the lifting structure to move until it contacts the static slider, and each position belongs to the second position; The motor drives the rolling door to fully open, and the motor drives the moving slider and the static slider in the lifting structure to move together to a specified height. Each position in this process is the third position; The Hall sensor is also used to collect start and stop information of the motor; Outputting a second preset duty cycle signal according to the second position information until the motor outputs a first preset force to drive the bar body to leave the preset joint point also includes: Determine whether the position information of the bar counter collected by the Hall sensor is at the second position; If yes, obtaining the start / stop information of the first motor collected by the Hall sensor; If the start / stop information of the first motor is greater than the preset time, a fourth preset duty cycle signal is output to the motor to output a second preset force to drive the bar body to leave the preset joint point; wherein the second preset force is greater than the first preset force; If the start and stop information of the first motor is less than the preset time, a second preset duty cycle signal is output according to the second position information to the motor to output a first preset force to make the bar body leave the preset connection point; the ratio of the second preset force to the first preset force is a first ratio.

2. The bar motion control method according to claim 1, characterized in that: The third position includes a third position first sub-stage; Before outputting different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range; further comprising: Determining whether the position information of the bar counter collected by the Hall sensor is in the first sub-stage of the third position; If yes, obtaining the start / stop information of the second motor collected by the Hall sensor; If the second motor start / stop information is greater than the preset time, a fifth preset duty cycle signal is output to the motor to output a third preset force to drive the bar body to leave the third position in the first sub-stage; If the second motor start / stop information is less than the preset time, a sixth preset duty cycle signal is output to the motor to output a fourth preset force to drive the bar body to leave the third position in the first sub-stage; Among them, the third preset force is greater than the fourth preset force; the ratio of the fourth preset force to the third preset force is a second ratio, and the second ratio is smaller than the first ratio.

3. A bar motion control device, characterized in that: include: Position information acquisition module: used to obtain different position information of the bar counter collected by the Hall sensor; Different signal output modules: used to output different duty cycle signals to the motor according to the different position information so that the motor outputs different forces to drive the bar body to move; The different signal output modules include: A first output unit: used for outputting different first duty cycle signals to the motor according to different first position information so that the motor outputs different forces to drive the bar body to move within the first position range; The second output unit is used to output a second preset duty cycle signal to the motor according to the second position information to output a first preset force to drive the bar body to leave the preset joint point; A third output unit: used for outputting different third duty cycle signals to the motor according to different third position information so that the motor outputs different forces to drive the bar body to move within the third position range; The bar body includes: a rolling door and a lifting structure; the lifting structure includes: a moving slider and a static slider; The preset joint point is the position where the movable slider moves to contact the static slider during the second movement of the bar body: The motor drives the rolling door to open from closed to a position at 2 / 3 of the total length of the bar body, and each position during the process of the rolling door moving to 2 / 3 of the total length of the bar body belongs to the first position; The motor drives the movable slider in the lifting structure to move until it contacts the static slider, and each position belongs to the second position; The motor drives the rolling door to fully open, and the motor drives the moving slider and the static slider in the lifting structure to move together to a specified height. Each position in this process is the third position; The different signal output modules also include: A first judging unit: used for judging whether the position information of the bar counter collected by the Hall sensor is at the second position; A first start / stop information acquisition unit: configured to acquire the start / stop information of the first motor acquired by the Hall sensor when the position information of the bar body acquired by the Hall sensor is at the second position; The fourth output unit is used for outputting a fourth preset duty cycle signal to the motor to output a second preset force to make the bar body leave the preset joint point when the start / stop information of the first motor is greater than a preset time; wherein the second preset force is greater than the first preset force; and the ratio of the second preset force to the first preset force is a first ratio; When the start / stop information of the first motor is less than a preset time, the second output unit outputs a second preset duty cycle signal to the motor according to the second position information to output a first preset force to make the bar body leave the preset connection point.

4. The bar motion control device according to claim 3, characterized in that: The third position includes a third position first sub-stage; the different signal output module also includes: A second judgment unit: used for judging whether the position information of the bar counter collected by the Hall sensor is in the first sub-stage of the third position; A second start / stop information acquisition unit: configured to acquire the start / stop information of the second motor acquired by the Hall sensor when the position information of the bar body acquired by the Hall sensor is in the first sub-stage of the third position; The fifth output unit is used for outputting a fifth preset duty cycle signal to the motor to output a third preset force to drive the bar body to leave the first sub-stage of the third position when the start / stop information of the second motor is greater than the preset time; The sixth output unit is used for outputting a sixth preset duty cycle signal to the motor to output a fourth preset force to drive the bar body to leave the first sub-stage of the third position when the start / stop information of the second motor is less than the preset time; Wherein, the third preset force is greater than the fourth preset force; The ratio of the fourth preset force to the third preset force is a second ratio; Wherein, the second ratio is smaller than the first ratio.

5. A bar motion control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the bar motion control method as described in any one of claims 1-2 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the bar motion control method as described in any one of claims 1-2 is implemented.