Door control method, device, projection equipment and storage medium
By detecting the running time and current changes when the motor is subjected to spring force, the duty cycle is increased according to the preset mapping relationship, so that the motor maintains a constant speed during the movement of the hatch of the projection equipment, solving the problem of abnormal motor noise and improving the equipment stability and user experience.
Patent Information
- Application Number
- CN202110860215.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-07-28
AI Technical Summary
In the prior art, the motor's operating speed is affected by the spring force, causing the motor to emit abnormal noises different from those when moving at a constant speed, affecting the user experience of the projection equipment.
By detecting the motor's deceleration movement under the spring force, the operating time of the hatch is obtained and the duty cycle is increased according to the preset mapping relationship, so as to accelerate the motor, maintain a constant speed of motion, and avoid abnormal noises.
It effectively avoids abnormal noises in the spring compression stage of the motor, and improves the stability and user experience of the projection equipment.
Smart Images

Figure CN115695746B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of cabin door control, and in particular relates to a cabin door control method, device, projection equipment and storage medium. Background Art
[0002] Projection equipment is a device that projects images onto a curtain wall through light. The optical machine lens is the most important component in the projection equipment. The optical machine lens needs to be treated to prevent dust. Therefore, there is a hatch in the prior art. When the optical machine is not working, the hatch is closed to hide the optical machine lens inside the machine body.
[0003] The hatch is also called a movable door body. A fixed door body is also provided in cooperation with the hatch. The hatch can move inward relative to the fixed door body. When the hatch is closed, it remains in the same plane as the fixed door body; when the hatch is open, it completely dives into one side of the fixed door body. In order to realize the display of the above two hatch states, the hatch relies on driving components such as slide rails and springs to achieve movement.
[0004] The one-way door state switching process is divided into two stages. In the first stage, the motor drives the door to move at a uniform speed on the slide rail; in the second stage, when the door is within a certain range, the spring acts and the door moves at a non-uniform speed on the slide rail. At this time, the motor speed is affected by the spring force, causing the motor to emit an abnormal sound different from that when it moves at a uniform speed. Summary of the invention
[0005] The embodiments of the present invention provide a door control method, device, projection equipment and storage medium, which can solve the problem that the motor in the prior art emits abnormal noise different from that when moving at a uniform speed.
[0006] In a first aspect, a method for controlling a hatch door is provided. The method is applied to a controller, the controller is electrically connected to a motor; the motor drives a transmission assembly to drive the hatch door to move, and a spring is provided at a connection between the transmission assembly and the hatch door; the method comprises:
[0007] During the movement of the door, when it is detected that the motor is decelerating due to the force of the spring, the first operation time of the door is obtained;
[0008] The duty cycle corresponding to the first operating time is obtained from a preset mapping relationship to control the acceleration of the motor according to the duty cycle. The preset mapping relationship represents the relationship between the door operating time and the duty cycle of the motor so as to make the motor move at a uniform speed.
[0009] Optionally, the controller detects that the motor is decelerating due to the spring force based on the running current of the motor and / or the accumulated running time of the hatch.
[0010] Optionally, after the cumulative operation time of the hatch belongs to the time range corresponding to the spring initial compression prediction point, the controller detects that the motor decelerates under the action of the spring according to the operating current.
[0011] Optionally, the endpoint values of the time range are determined by a first algorithm; the first algorithm is:
[0012] a = (1 - c) * L / v
[0013] b = (1 + d) * L / v
[0014] where a and b are the endpoint values, a < b, c is the redundancy corresponding to the endpoint value a, d is the redundancy corresponding to the endpoint value b, L is the length of the slide rail, the motor drives the transmission component to drive the hatch to slide on the slide rail; v is the sliding speed of the hatch on the slide rail when the spring is not compressed.
[0015] Optionally, the process by which the controller detects that the motor decelerates under the action of the spring according to the operating current includes:
[0016] When the continuously acquired operating currents for n consecutive times are all greater than a preset value, or when the average value of the continuously acquired operating currents for n consecutive times is greater than the preset value, it is determined that the motor decelerates under the action of the spring. The preset value is greater than the peak current value when the motor is not under the action of the spring, and n is an integer greater than 1.
[0017] Optionally, controlling the motor to accelerate according to the duty cycle includes:
[0018] Increase the torque of the motor according to the duty cycle to accelerate the motor.
[0019] Optionally, the preset mapping relationship is obtained by the following method:
[0020] Measure the force value of the spring on the motor when it is fully compressed;
[0021] Determine the duty cycle increase value of the motor according to the force value;
[0022] Fit the duty cycle increase value and the initial duty cycle value of the motor when it is not under the action of the spring with the current characteristic curve of the motor to obtain a fitting curve;
[0023] Measure the motor noise data and adjust the fitting curve through the motor noise data to obtain the preset mapping relationship.
[0024] In a second aspect, a hatch control device is provided. The hatch control device is electrically connected to the motor; the motor drives the transmission component to drive the hatch to move, and a spring is provided at the connection between the transmission component and the hatch; the device includes:
[0025] A detection module, used for obtaining a first operation time of the door when it is detected that the motor is decelerating due to the spring force during the movement of the door;
[0026] A control module is used to obtain a duty cycle corresponding to a first operating time from a preset mapping relationship to control motor acceleration according to the duty cycle. The preset mapping relationship represents the relationship between the door operating time and the duty cycle of the motor so as to make the motor move at a uniform speed.
[0027] In a third aspect, a projection device is provided, the projection device comprising: a fixed door body, a cabin door, a transmission assembly, a motor and a controller;
[0028] A motor for driving a transmission assembly;
[0029] The transmission assembly is used to drive the hatch door to perform a submerged movement relative to the fixed door body;
[0030] A spring is also provided at the connection between the transmission assembly and the hatch;
[0031] A controller electrically connected to the motor;
[0032] The controller includes a memory, a processor, and a door control program stored in the memory and running on the processor, and the door control program executes the door control method of the first aspect.
[0033] In a fourth aspect, a computer storage medium is provided, which, when executed by a processor, implements the door control method of the first aspect.
[0034] Compared with the prior art, the door control method, device, projection equipment and storage medium provided in the embodiments of the present application accelerate the motor by increasing the duty cycle according to a preset mapping relationship when the motor is decelerating under the influence of the spring force. Since the preset mapping relationship represents the relationship between the door operation time and the duty cycle of the motor for making the motor move at a uniform speed, the motor can maintain uniform motion during the spring compression stage to avoid abnormal noise from the motor, thereby solving the problem in the prior art that the motor's operating speed is affected by the spring force, causing the motor to emit abnormal noise different from that when it moves at a uniform speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 It is an axonometric view of a hatch in a hatch control method according to an embodiment of the present invention.
[0037] Figure 2 yes Figure 1 A simplified diagram of the middle door when it is in the closed state.
[0038] Figure 3 yes Figure 1 The shown cabin door is a schematic flow chart of a cabin door control method.
[0039] Figure 4 Schematic diagram of the change of the motor running current when the spring starts to be compressed in the embodiment of the present invention.
[0040] Figure 5 It is a characteristic curve and mapping relationship formed by the cumulative operating time of the hatch and the duty cycle in the embodiment of the present invention.
[0041] Figure 6 It is a schematic block diagram of a door control device according to an embodiment of the present invention.
[0042] Figure 7 It is a schematic block diagram of a controller in a projection device according to an embodiment of the present invention.
[0043] In the attached figure:
[0044] The door body 10 is fixed, the hatch 20 , the support arm 21 , the inclined slide rail 30 , the inclined slider 31 , the driving mechanism 40 , the transmission assembly 50 , the spring 51 , the vertical slide rail 60 , and the vertical slider 61 . DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.
[0047] Projection equipment has become popular in recent years because of its small size and the fact that it does not need to be fixed on the wall. In order to extend the service life of the projection equipment, the most important optical lens in the projection equipment is usually protected from dust and dust. When the projection equipment is not working, the optical lens can be hidden inside the body and covered by a protective cover.
[0048] The optical machine protection cover provided by the prior art has a complex structure and is inconvenient to operate, so there is an urgent need for a hatch structure with a simple structure that makes the overall appearance of the projection device beautiful.
[0049] Please also see Figure 1 and Figure 2 , Figure 1 is an axonometric view of the hatch 20 involved in the present invention, Figure 2 for Figure 1 A schematic diagram of the middle hatch 20 in a closed state. The hatch 20 is also called a movable door body. Correspondingly, a fixed door body 10 is also provided, and the fixed door body 10 can fix the device base. The hatch 20 is a movable component and can move relative to the fixed door body 10.
[0050] Figure 1 and Figure 2 The hatch 20 shown in the figure is in a closed state, and the hatch 20 and the fixed door body 10 are located in the same plane, so that the projection equipment has a compact structure and ensures the integrity of the appearance; when it is in an open state, the hatch 20 is parallel to the fixed door body 10 and is located between the fixed door body 10 and the equipment base. The hatch 20 can be completely blocked by the fixed door body 10, occupies a small space, and ensures the simplicity of the appearance, thereby realizing the sneaking of the hatch 20.
[0051] In order to realize the movement of the hatch 20, a driving mechanism 40 and a support arm 21 are also provided. The driving mechanism 40 can be a linear driving mechanism, and the driving mechanism 40 includes a motor (not shown), which can be a DC motor, and the motor is electrically connected to a controller (not shown), and the motor is driven and controlled by the controller. The driving mechanism 40 provides power for the movement of the hatch 20, so that the hatch 20 moves on the slide rail.
[0052] The slide rails include a vertical slide rail 60 and an inclined slide rail 30, and the vertical slide rail 60 and the inclined slide rail 30 are correspondingly configured with a vertical slider 61 and an inclined slider 31. The vertical slide rail 60 and the vertical slider 61 provide fixation and guidance for the driving mechanism 40, and realize the traction of the downward movement of the cabin door 20 by means of the transmission assembly 50, and the transmission assembly can be a rocker. The inclined slider 31 is connected to the support arm 21 to realize the sliding cooperation between the cabin door 20 and the inclined slide rail 30, and the inclined slide rail 30 controls the movement trajectory of the cabin door 20 by means of the inclined slider 31.
[0053] When the door 20 switches from the closed state to the open state, the controller controls the motor to rotate forward, so that the transmission assembly 50 moves, and the spring 51 drives the transmission assembly 50 to rotate around the hinge point between the door 20 and the transmission assembly 50, so as to realize the diving action of the door 20. Afterwards, when the transmission assembly 50 moves to a certain angle with the door 20, the spring 51 is fully restored, and the transmission assembly 50 drives the door 20 to move, so that the door 20 moves at a constant speed along the inclined slide rail 30, until the door 20 is completely moved between the fixed door body 10 and the equipment base, and is blocked by the fixed door body 10.
[0054] When the door 20 switches from the open state to the closed state, the controller drives the motor to reverse, and the transmission assembly 50 pushes the door 20 to move at a constant speed along the inclined slide rail 30. When the door 20 moves to the top of the fixed door body 10, the spring 51 is compressed, and the door 20 moves outward under the action of the spring 51, and the door 20 is pushed out to be on the same plane as the fixed door body 10.
[0055] It is understandable that, during the transition process of the door 20 switching from the closed state to the open state, the spring 51 is completely compressed and gradually expanded, and can drive the transmission assembly 50 to rotate around the hinge point between the door 20 and the transmission assembly 50, so that the transmission assembly 50 moves first. During the transition process of the door 20 switching from the open state to the closed state, the spring 51 can provide the door 20 with a force to move toward the outside.
[0056] During the entire process of the spring 51 being compressed, the motor is still running. At this time, the motor will be disturbed by the force of the spring 51 being compressed, causing the original uniform motion to be converted into non-uniform motion. Compared with the stable sound frequency emitted by the motor when it is in uniform motion, in the non-uniform motion state, especially in the process of the spring 51 before the hatch 20 approaches the closed state, the motor is subjected to a sudden change in the external force generated by the spring 51 being compressed, and a sudden sound different from that of uniform motion is emitted. This sudden sound is very obvious in a quiet environment, affecting the user experience of the projection device.
[0057] To this end, the present invention provides a hatch control method to solve the problem in the prior art that the motor's running speed is affected by the spring force, causing the motor to emit an abnormal sound different from that when it moves at a uniform speed.
[0058] Figure 3 A schematic flow chart of a hatch door control method according to a preferred embodiment of the present invention is shown. The method comprises the following steps:
[0059] Step S310, during the movement of the door, when it is detected that the motor is decelerating due to the force of the spring, a first operation time of the door is obtained;
[0060] Step S320, obtaining the duty cycle corresponding to the first operating time from a preset mapping relationship to control the acceleration of the motor according to the duty cycle, wherein the preset mapping relationship represents the relationship between the door operating time and the duty cycle of the motor so as to make the motor move at a uniform speed.
[0061] It should be noted that the one-way process of the door switching from the open state to the closed state can be roughly divided into two stages. Taking the door switching from the open state to the closed state as an example, the first stage is the stage where the motor simply drives the door to rise and move at a constant speed; the second stage is when the door reaches a certain position, the spring is compressed, the motor is compressed by the spring, the door is propped up, and the motor performs a deceleration movement stage.
[0062] In order to prevent the motor from making abnormal noises due to the compression force of the spring during the movement of the door, it is necessary to first detect and determine whether the motor is in the stage of deceleration.
[0063] In an optional example, the motor's running current can be sampled by an analog-to-digital converter to determine that the motor is decelerating due to the spring force; and / or, when the door moves to the predicted point of spring compression, it can be determined that the motor starts to decelerate. For example, the door's moving position can be detected by a position sensor, and the door's moving position can also be detected by the accumulated running time of the door.
[0064] In a specific example, when the accumulated running time of the hatch reaches the time range corresponding to the predicted point of the spring starting compression, it may be determined that the motor starts to perform deceleration motion.
[0065] In step S310, the first running time refers to the real-time accumulated running time of the hatch when the controller detects that the motor is decelerating due to the spring force. Because after this running time, the motor is continuously affected by the spring force, it is necessary to continuously intervene in the motor speed to prevent abnormal noise caused by non-uniform motion.
[0066] The above-mentioned preset mapping relationship can be a fitting curve between the cumulative operating time of the cabin door and the duty cycle, or a fitting curve between the cumulative operating time of the cabin door and the duty cycle increase value, or it can be a mapping relationship table between the cumulative operating time of the cabin door and the duty cycle / duty cycle increase value generated according to the fitting curve.
[0067] The preset mapping relationship can be obtained through testing and curve fitting before the projection equipment leaves the factory. It can be to measure the force value of the spring on the motor when it is fully compressed; determine the duty cycle that needs to be increased for the motor based on the force value; fit the duty cycle increase value and the initial value of the duty cycle when the door moves at a constant speed, that is, when the motor is not subjected to the spring force, with the current characteristic curve of the motor to obtain a fitting curve. Then, according to the measured motor noise data, the fitting curve is fine-tuned to obtain the preset mapping relationship.
[0068] Specifically, we can first use an oscilloscope to measure the operating current when the door is under full pressure and stable. Figure 4 , Figure 4 The figure shows the change of the motor running current when the spring starts to compress. The motor decelerates due to the force, which causes the running current of the motor to increase. Since the change of force must be synchronized with the change of current, the change of the force on the motor during the compression of the spring can be obtained based on the obtained running current curve.
[0069] When the spring is fully compressed, the force applied to the motor can be measured. On this basis, it is possible to measure how much duty cycle is needed to overcome the force. On the other hand, it is understandable that the force applied to the motor when the spring is not compressed is zero, so there is no need to increase the additional duty cycle. Therefore, the duty cycle increase interval can be obtained, and then the current change curve is fitted in proportion to obtain the preset curve. In subsequent experiments, different parts of the preset curve can be adjusted according to the specific noise performance to obtain the final curve.
[0070] For example, the maximum duty cycle increase of Δ can be measured, the initial duty cycle is a, and the current curve is y=kt+b. Based on the starting point of compression, the duty cycle when the spring is compressed to the maximum as the end point, and the characteristics of the current curve, a duty cycle change curve with the same characteristics as the current curve can be obtained. Finally, the duty cycle change curve is finely adjusted according to the noise performance of the motor.
[0071] See also Figure 5 , which shows the characteristic curve and mapping relationship formed by the cumulative operating time of the cabin door and the duty cycle. In this diagram, the compression time span of the entire spring is 1.1 seconds, and the duty cycle increases every 100ms. As the operating time goes by, the duty cycle gradually increases. It can be understood that as the duty cycle of the motor increases, the motor torque gradually increases, and the motor speed increases, the motor can be balanced by the force of the spring as a whole, and the cabin door returns to uniform motion. This controls the force, allowing the motor to emit a more stable and uniform sound frequency, suppressing abnormal noises, and solving the problem of abnormal noises emitted by motors in the prior art that are different from those during uniform motion, ensuring that the projection equipment will not produce abnormal noises when the cabin door state is switched, and improving the stability of the product and the comfort of the customer experience.
[0072] Therefore, according to the hatch control method of the embodiment of the present invention, when the motor is affected by the spring force to perform deceleration motion, the duty cycle is increased according to a preset mapping relationship to accelerate the motor. Since the preset mapping relationship represents the relationship between the hatch operation time and the duty cycle of the motor for making the motor perform uniform motion, the motor can maintain uniform motion during the spring compression stage to avoid abnormal noise from the motor, thereby solving the problem in the prior art that the motor's operating speed is affected by the spring force, causing the motor to emit abnormal noise different from that when it is operated at a uniform speed.
[0073] In a specific example, the controller can detect that the motor is decelerating due to the spring force based on the running current. It is understandable that during the operation of the motor, the voltage loaded on both ends of the motor is constant. The lower the motor speed, the greater the current flowing through the motor coil. When the spring is compressed, the voltage applied to the motor will not change, and the motor will inevitably decelerate due to the increased resistance, resulting in an increase in the working current. Therefore, the deceleration of the motor can be detected by the running current of the motor.
[0074] It should be noted that since the motor is controlled by PWM (Pulse Width Modulation), the data measured directly through the analog-to-digital converter fluctuates greatly. In order to improve the accuracy of the operating current, the number of collection times can be increased and the collected operating current can be filtered.
[0075] The filtering process can be to continuously obtain the operating current. When the operating currents obtained for n consecutive times are greater than the preset value, or when the average value of the operating currents obtained for n consecutive times is greater than the preset value, it is determined that the motor is decelerating due to the spring force, and the preset value is greater than the current peak value when the motor is not subjected to the spring force, and n is an integer greater than 1. Simple filtering is achieved by obtaining the operating current for n consecutive times or taking the average value after obtaining it, which eliminates accidental phenomena and improves the accuracy of current sampling. Among them, the above n is pre-set based on experimental measurement data, and can be adjusted later according to actual conditions. In this example, n can be 3.
[0076] For example, if n is 3, the controller can use the analog-to-digital converter to collect the operating current at a frequency of 10ms. When the operating current collected for three consecutive times exceeds the preset value, it means that it is not caused by a single data peak. At this time, the motor has begun to decelerate and the motor acceleration mechanism can be triggered. Optionally, the preset value can be 300 mA. Alternatively, it can also be determined based on the actual load and reference voltage.
[0077] It should also be noted that the load and voltage of the controller are certain, and the current measurement accuracy can be determined based on the acquisition accuracy of the analog-to-digital converter. For example, the reference voltage sampled by the controller through the ADC is 5v, and the acquisition accuracy of the 10-bit ADC is: 1 / 1023, so the measurement accuracy of the 10-bit analog-to-digital controller is 1 / 1023*5v=0.0049v. Assuming that the measured load resistance is 4.7Ω, the measurement accuracy of the current is about 1mA.
[0078] According to the above parameters, through multiple measurements of the operating current of the hatch in a uniform motion state, it was found that although the instantaneous current data is not stable, the total current including the fluctuating peak current does not exceed 300mA during uniform motion, and there will be an obvious voltage (current is proportional to voltage) increase after the spring is compressed, so the preset value of the current can be set to 300mA.
[0079] As another optional embodiment, the controller detects that the motor is decelerating due to the spring force based on the running current only after the accumulated running time of the door falls within the time range corresponding to the predicted point of the spring starting compression.
[0080] It is understandable that when using the operating current, the current data needs to be filtered before it can be used, but continuous filtering has a great impact on the controller performance. Therefore, the current collection and filtering can be triggered only after the cumulative running time of the hatch belongs to the time range corresponding to the spring starting compression prediction point, and the analog-to-digital converter measurement and data processing operations are only performed for a short time to avoid the hatch control affecting the controller performance.
[0081] Compared with the spring compression stage, in the first stage, the motor drives the door to move at a constant speed on the slide rail, so the moving position of the door in the slide rail can be determined based on the accumulated running time of the door. The accumulated running time is the real-time accumulated running time after the door moves from a fixed state. Furthermore, the starting compression prediction point of the spring can also be obtained by evaluating the running time of multiple tests before the projection device leaves the factory. Alternatively, the door position can also be determined by a travel sensor or the like.
[0082] Specifically, the motor speed is determined by the PWM duty cycle of the motor and the load. The duty cycle is known, and the load object is fixed as the hatch, so the motor speed can be determined. The hatch runs on a fixed slide rail, and the length of the slide rail is known. The position of the hatch can be roughly determined based on the running time.
[0083] In this embodiment, the time range corresponding to the arrival of the hatch at the predicted starting compression point of the spring can be pre-tested. In actual use, after the cumulative running time of the hatch falls within the time range corresponding to the predicted starting compression point of the spring, the controller detects that the motor decelerates under the action of the spring based on the running current.
[0084] It should also be noted that the endpoint values of the time range can be determined by the first algorithm; the first algorithm is: a = (1 - c) * L / v, b = (1 + d) * L / v, where a and b are the endpoint values, a < b, c is the redundancy corresponding to the endpoint value a, d is the redundancy corresponding to the endpoint value b, L is the length of the slide rail, and the motor drives the transmission component to drive the hatch to slide on the slide rail; v is the sliding speed of the hatch on the slide rail when the spring is not compressed. Among them, c and d can be the same or different. For example, both c and d are 0.15.
[0085] A starting compression prediction point is determined by taking a time range through the redundancy. This is mainly because the different resistances caused by the slide rail tolerance and installation error will affect the actual running time of the hatch. Therefore, an interval is taken to determine the running state of the hatch, which can reduce errors and ensure that within a reasonable range, the running position of the hatch can be roughly evaluated.
[0086] Therefore, according to the hatch control method of the embodiment of the present invention, after the cumulative running time of the hatch belongs to the time range corresponding to the starting compression prediction point of the spring, the controller detects that the motor decelerates under the action of the spring according to the running current. Thus, it avoids the influence of continuous filtering on the performance of the controller and reduces the performance occupation of the controller while ensuring the hatch control.
[0087] In the above text, in combination with Figures 1 to 5 , the hatch control method according to the embodiment of the present invention is described in detail. Next, in combination with Figure 6 , the hatch control device of the embodiment of the present invention will be described in detail.
[0088] Referring to Figure 6 , in an embodiment, the hatch control device is electrically connected to the motor; the motor drives the transmission component to drive the hatch to move, and a spring is provided at the connection between the transmission component and the hatch; the device includes:
[0089] A detection module 610, configured to obtain the first running time of the hatch when it is detected that the motor decelerates under the action of the spring during the movement of the hatch;
[0090] A control module 620, configured to obtain the duty ratio corresponding to the first running time from a preset mapping relationship, so as to control the motor to accelerate according to the duty ratio. The preset mapping relationship represents the relationship between the running time of the hatch and the duty ratio of the motor when the motor makes a uniform motion.
[0091] Optionally, in another embodiment, the detection module detects that the motor decelerates under the action of the spring according to the running current of the motor and / or the cumulative running time of the hatch.
[0092] Optionally, in another embodiment, the detection module specifically detects that the motor decelerates under the action of the spring according to the running current after the cumulative running time of the hatch door falls within the time range corresponding to the spring initial compression prediction point.
[0093] Optionally, in yet another embodiment, the endpoint values of the time range are determined by a first algorithm; the first algorithm is:
[0094] a = (1 - c) * L / v
[0095] b = (1 + d) * L / v
[0096] where a and b are endpoint values, a < b, c is the redundancy corresponding to endpoint value a, d is the redundancy corresponding to endpoint value b, L is the length of the slide rail, the motor drives the transmission component to drive the hatch door to slide on the slide rail; v is the sliding speed of the hatch door on the slide rail when the spring is not compressed.
[0097] Optionally, in yet another embodiment, the detection module is further configured to determine that the motor decelerates under the action of the spring when the running current obtained continuously for n times is greater than a preset value, or when the average value of the running current obtained continuously for n times is greater than the preset value, where the preset value is greater than the peak current value of the motor when the motor is not affected by the spring force, and n is an integer greater than 1.
[0098] Optionally, in yet another embodiment, the control module is further configured to increase the torque of the motor according to the duty cycle to accelerate the motor.
[0099] Optionally, in yet another embodiment, the preset mapping relationship is obtained by the following method:
[0100] Measure the force value of the spring on the motor when the spring is fully compressed;
[0101] Determine the duty cycle increase value of the motor according to the force value;
[0102] Fit the duty cycle increase value and the initial duty cycle value of the motor when the motor is not affected by the spring force with the current characteristic curve of the motor to obtain a fitting curve;
[0103] Measure the motor noise data, and adjust the fitting curve through the motor noise data to obtain the preset mapping relationship.
[0104] Therefore, according to the hatch door control device of the embodiment of the present invention, when the motor decelerates under the influence of the spring force, the duty cycle is increased according to the preset mapping relationship to accelerate the motor. And since the preset mapping relationship represents the relationship between the running time of the hatch door and the duty cycle of the motor for the motor to perform uniform motion, the motor can maintain uniform motion during the spring compression stage, avoiding abnormal noise of the motor, thereby solving the problem in the prior art that the abnormal noise different from that during uniform motion occurs in the motor due to the influence of the spring force on the running speed of the motor.
[0105] Please also see Figure 1 and Figure 7 ,in Figure 7 The hardware structure diagram of the controller in the projection device provided in the embodiment of the present application is shown. The controller may include a processor 701 and a memory 702 storing computer program instructions.
[0106] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0107] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.
[0108] The memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to the above aspects of the present disclosure.
[0109] The processor 701 implements any one of the door control methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .
[0110] In one example, the controller in the projection device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0111] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0112] Bus 710 includes hardware, software or both, and the parts of controller are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0113] The controller in the projection device can be based on the cabin door control method to achieve the combination Figures 1 to 6 The described hatch door control method and device.
[0114] In addition, in combination with the hatch control method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any hatch control method in the above embodiment is implemented.
[0115] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0116] It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0117] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A door control method, characterized in that: The method is applied to a controller, which is electrically connected to a motor; the motor drives a transmission component to drive the hatch to move, and a spring is arranged at the connection between the transmission component and the hatch; the method includes: During the movement of the hatch, when it is detected that the motor decelerates under the action of the spring, obtain the first running time of the hatch; Obtain the duty ratio corresponding to the first running time from a preset mapping relationship, so as to control the acceleration of the motor according to the duty ratio. The preset mapping relationship represents the relationship between the running time of the hatch and the duty ratio of the motor when the motor makes a uniform motion; Wherein, the first running time is the real-time cumulative running time of the hatch when it is detected that the motor decelerates under the action of the spring; The duty ratio corresponding to the first running time in the preset mapping relationship is greater than the duty ratio before the motor decelerates, and the duty ratio corresponding to the first running time increases as the first running time increases.
2. The door control method according to claim 1, characterized in that: The controller detects that the motor decelerates under the action of the spring according to the running current of the motor and / or the cumulative running time of the hatch.
3. The door control method according to claim 2, characterized in that: The controller detects that the motor decelerates under the action of the spring according to the running current after the cumulative running time of the hatch belongs to the time range corresponding to the spring starting compression prediction point.
4. The door control method according to claim 3, characterized in that: The end point values of the time range are determined by a first algorithm; the first algorithm is: a = (1 - c) * L / v b = (1 + d) * L / v Where a and b are end point values, a < b, c is the redundancy amount corresponding to the end point value a, d is the redundancy amount corresponding to the end point value b, L is the length of the slide rail, and the motor drives the transmission component to drive the hatch to slide on the slide rail; v is the sliding speed of the hatch on the slide rail when the spring is not compressed.
5. The door control method according to claim 2, characterized in that: The process of the controller detecting that the motor decelerates under the action of the spring according to the running current includes: When the running current obtained continuously for n times is greater than a preset value, or when the average value of the running current obtained continuously for n times is greater than a preset value, it is determined that the motor decelerates under the action of the spring. The preset value is greater than the current peak value when the motor is not under the action of the spring, and n is an integer greater than 1.
6. The door control method according to claim 1, characterized in that: Controlling the acceleration of the motor according to the duty ratio includes: Increase the torque of the motor according to the duty ratio to make the motor accelerate.
7. The hatch door control method according to any one of claims 1 to 6, characterized in that: The preset mapping relationship is obtained by the following method: Measure the force value of the spring on the motor when it is completely compressed; Determine the duty ratio increase value of the motor according to the force value; Fit the duty ratio increase value and the initial duty ratio value of the motor when it is not under the action of the spring with the current characteristic curve of the motor to obtain a fitting curve; Measure the motor noise data and adjust the fitting curve through the motor noise data to obtain the preset mapping relationship.
8. A door control device, characterized in that: The hatch control device is electrically connected to the motor; the motor drives a transmission component to drive the hatch to move, and a spring is arranged at the connection between the transmission component and the hatch; the device includes: a detection module, configured to obtain a first operation time of the cabin door when it is detected that the motor is decelerating due to the force of the spring during the movement of the cabin door; a control module, configured to obtain a duty cycle corresponding to the first operating time from a preset mapping relationship, so as to control the acceleration of the motor according to the duty cycle, wherein the preset mapping relationship represents a relationship between the operating time of the hatch and the duty cycle of the motor so as to make the motor move at a uniform speed; Wherein, the first running time is the real-time accumulated running time of the hatch when it is detected that the motor is decelerating due to the spring force; In the preset mapping relationship, the duty cycle corresponding to the first running time is greater than the duty cycle before the motor performs deceleration motion, and the duty cycle corresponding to the first running time increases as the first running time increases.
9. A projection device, characterized in that: The projection device comprises: a fixed door body, a cabin door, a transmission assembly, a motor and a controller; The motor is used to drive the transmission assembly; The transmission assembly is used to drive the cabin door to perform a submerged movement relative to the fixed door body; A spring is also provided at the connection between the transmission assembly and the cabin door; A controller, electrically connected to the motor; The controller includes a memory, a processor, and a door control program stored in the memory and running on the processor, wherein the door control program executes the door control method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: When the computer storage medium is executed by a processor, the door control method according to any one of claims 1 to 7 is implemented.
