Control method and apparatus for electric cup lid, and electronic device and storage medium

By electrically controlling the central control cup lid, and combining motor drive and pulse width modulation signal, precise motion control of the central control cup lid is achieved, which solves the problem of poor convenience of traditional mechanical structures and improves user experience and safety.

WO2025232126A1PCT designated stage Publication Date: 2025-11-13CHINA FAW CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/131530
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-06
Filing Date
2024-11-12
Publication Date
2025-11-13

AI Technical Summary

Technical Problem

Existing center console cup lids are usually traditional push-button mechanical structures that rely on manual operation, resulting in poor convenience.

Method used

The opening and closing of the central control cup lid is controlled electrically. The zero-point position and anti-pinch zone are learned through motor drive, and the movement of the cup lid is precisely controlled by pulse width modulation signal with adjustable duty cycle, which has an anti-pinch function.

Benefits of technology

It enables accurate opening and closing of the central control cup lid, improving convenience, and ensures safety through the anti-pinch function, reducing movement noise and mechanism collisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024131530_13112025_PF_FP_ABST
    Figure CN2024131530_13112025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a control method and apparatus for an electric cup lid, and an electronic device and a storage medium. The control method for an electric cup lid comprises: when an electric motor is started, controlling the electric motor to drive an electric cup lid to move in an opening direction, and determining a zero-point position and an anti-pinch area during a process in which the electric cup lid moves to the position of a hard stop point in the opening direction; and in response to an operation instruction, on the basis of a pulse width modulation signal having an adjustable duty ratio, controlling the electric motor to drive the electric cup lid to move in a specified direction. In the technical solution, the opening or closing of a central control cup lid is implemented in an electric mode, and the zero-point position and the anti-pinch area can be learned when the electric motor is started, such that the movement position of the electric cup lid is accurately known during actual operations; in addition, the electric cup lid is controlled to move in all areas by means of the pulse width modulation signal having the adjustable duty ratio, thereby enabling accurate control of the electric cup lid and ensuring safety.
Need to check novelty before this filing date? Find Prior Art

Description

Electric cup lid control method, device, electronic equipment and storage medium

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 202410548063.4, filed on May 6, 2024, entitled "Electric Cup Lid Control Method, Device, Electronic Equipment and Storage Medium". Technical Field

[0003] The present invention relates to the field of motor control technology, and in particular to an electric cup lid control method, device, electronic device and storage medium. Background Technology

[0004] With the increasing popularity and development of automobiles, improving cabin comfort and the driving experience has become increasingly important. More and more models are enhancing user driving comfort by incorporating various electric features, such as center console cup covers. Currently, center console cup covers are typically traditional push-button mechanical cup cover opening mechanisms, relying on manual operation by the user, which is not very convenient.

[0005] Summary of the Invention

[0006] This invention provides an electric cup lid control method, device, electronic device, and storage medium to accurately control the opening or closing of the central control cup lid electrically, and to ensure the safety and convenience of using the central control cup lid.

[0007] In a first aspect, embodiments of the present invention provide an electric cup lid control method, comprising:

[0008] When the motor starts, the motor is controlled to drive the electric cup lid to move in the opening direction, and the zero point position and anti-pinch area are determined during the process of the electric cup lid moving in the opening direction to the hard stop position.

[0009] In response to an operation command, the motor is controlled to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle. The specified direction is either an opening direction or a closing direction. The electric cup lid has an anti-pinch function when it moves in the anti-pinch area.

[0010] Secondly, embodiments of the present invention also provide an electric cup lid control device, comprising:

[0011] The learning module is used to control the motor to drive the electric cup lid to move in the opening direction when the motor starts, and to determine the zero point position and anti-pinch area during the process of the electric cup lid moving in the opening direction to the hard stop position.

[0012] The control module is used to respond to operation commands and control the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle. The specified direction is either an opening direction or a closing direction. The electric cup lid has an anti-pinch function when moving in the anti-pinch area.

[0013] Thirdly, embodiments of the present invention provide an electronic device, including:

[0014] One or more processors;

[0015] Storage device for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the electric cup lid control method as described in the first aspect.

[0017] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the electric cup lid control method as described in the first aspect.

[0018] This invention provides an electric cup lid control method, device, electronic device, and storage medium. The electric cup lid control method includes: when the motor starts, controlling the motor to drive the electric cup lid to move in an opening direction, and determining a zero-point position and an anti-pinch zone during the process of the electric cup lid moving in the opening direction to a hard stop position; responding to an operation command, controlling the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle, wherein the specified direction is an opening direction or a closing direction, and the electric cup lid has an anti-pinch function when moving in the anti-pinch zone. The above technical solution realizes the opening or closing of the centrally controlled cup lid through electric means. When the motor starts, the zero-point position and the anti-pinch zone can be learned, thereby accurately grasping the movement position of the electric cup lid during actual operation, and using a pulse width modulation signal with an adjustable duty cycle to control the movement of the electric cup lid in different areas, realizing accurate control of the electric cup lid and ensuring safety. Attached Figure Description

[0019] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 is a schematic diagram of an electric cup lid provided in an embodiment of the present invention;

[0021] Figure 2 is a flowchart of an electric cup lid control method provided in an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of key positions and areas during the movement of an electric cup lid according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of an electric cup lid control device provided in an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0025] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0026] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of these steps can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the steps can be rearranged. The process can be terminated when its operation is complete, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.

[0027] It should be noted that the concepts of "first" and "second" mentioned in the embodiments of the present invention are only used to distinguish different devices, modules, units or other objects, and are not used to limit the order or interdependence of the functions performed by these devices, modules, units or other objects.

[0028] Furthermore, the embodiments and features described herein can be combined with each other, provided there is no conflict.

[0029] Figure 1 is a schematic diagram of an electric cup lid provided in an embodiment of the present invention. As shown in Figure 1, the electric cup lid mainly refers to the central control cup lid installed in a vehicle. Its structure includes a cup lid plate 1, a slide rail 2, a position switch 3, a Hall element 4, a worm gear 5, a gear 6, and a motor 7. The motor mainly refers to a Hall motor, which works by detecting the position and speed of the motor rotor through Hall elements, thereby controlling the motor's operation through Hall counting. The triggering of the position switch signal, combined with the Hall signal emitted by the Hall element, can be used to perform stroke calculation, zero-point calibration, and Hall pulse calculation for the electric cup lid.

[0030] Figure 2 is a flowchart of an electric cup lid control method provided by an embodiment of the present invention. This embodiment is applicable to the control of electric cup lids in vehicles. Specifically, the electric cup lid control method can be executed by an electric cup lid control device, which can be implemented by software and / or hardware and integrated into an electronic device. The electronic device includes, but is not limited to, a controller, a microcontroller, an on-board computer, or an electronic control unit (ECU).

[0031] As shown in Figure 2, the method specifically includes the following steps:

[0032] S110. When the motor starts, control the motor to drive the electric cup lid to move in the opening direction, and determine the zero point position and anti-pinch area during the process of the electric cup lid moving in the opening direction to the hard stop position.

[0033] In this embodiment, the panel position of the electric cup lid can be self-learned, thereby calibrating the absolute position of the electric cup lid panel. Specifically, when the motor starts, the electric cup lid motor can be driven to move along the slide rail, and the entire movement stroke is calibrated during its movement to determine the zero point position and the anti-pinch zone. The zero point position can be understood as the extreme positions at both ends, and the anti-pinch zone can be understood as the area with anti-pinch function. Under normal circumstances, the anti-pinch zone is located in the middle part, and the boundary between the anti-pinch zone and the non-anti-pinch zone is the stopping point. In the non-anti-pinch zones at both ends, the electric cup lid moves at a slower speed, usually in the stage of slow start or slow stop, while in the anti-pinch zone, the electric cup lid can move at a faster speed and detect in real time whether an object is pinched or obstructing the movement of the electric cup lid. During this process, the Hall pulse signal emitted by the Hall element can be combined to accurately determine the zero point position and the anti-pinch zone.

[0034] S120. In response to the operation command, based on the pulse width modulation signal with adjustable duty cycle, the motor is controlled to drive the electric cup lid to move in a specified direction, wherein the specified direction is the opening direction or the closing direction, and the electric cup lid has an anti-pinch function when moving in the anti-pinch area.

[0035] In this embodiment, the operation command can refer to the user-input command to control the electric cup lid, such as opening or closing the electric cup lid. The operation command can be input via screen soft switch, hard switch button, remote command via mobile app, or voice, and the electric cup lid can be moved forward or backward by the motor according to the operation command. During this process, the speed of the electric cup lid can be adjusted using a pulse width modulation (PWM) signal, for example, controlling the electric cup lid to slow down and stop when it reaches a stop point, which can avoid structural noise. Furthermore, by collecting Hall pulse signals and monitoring current fluctuations during motor movement, the anti-pinch function of the electric cup lid can be implemented. In some embodiments, based on current, position switch signals, and Hall pulse signals, overcurrent protection, overload protection, and Hall reset calibration of the electric cup lid can also be implemented.

[0036] Understandably, each time the motor starts, it can learn and judge the starting current, running current, and whether the Hall effect sensor is faulty. During this period, the slow-down function and soft-stop function of the electric cup lid are turned off.

[0037] This invention provides an electric cup lid control method that electrically opens or closes the centrally controlled cup lid. When the motor starts, it learns the zero-point position and anti-pinch zone, thereby accurately controlling the movement position of the electric cup lid during actual operation. An adjustable duty cycle pulse width modulation signal controls the movement of the electric cup lid in each zone, achieving accurate control and ensuring safety. Furthermore, anti-pinch and speed adjustment effectively reduce noise during the movement of the electric cup lid and minimize collisions within the mechanism itself.

[0038] In one embodiment, determining the zero point position and the anti-pinch zone during the process of the electric cup lid moving in the opening direction to the hard stop position includes: when the electric cup lid moves in the opening direction to the hard stop position and the opening position switch is triggered before moving to the hard stop position, determining the position where the motor is in a stall state as the zero point position; determining the position where the distance from the zero point position at both ends of the motor slide rail is a specified number of Hall pulses as the slow stop point, and determining the area between the two slow stop points as the anti-pinch zone.

[0039] Figure 3 is a schematic diagram of the key positions and areas during the movement of an electric cup lid according to an embodiment of the present invention. As shown in Figure 3, taking the case where the electric cup lid moves to the left as opening and to the right as closing as an example, in the self-learning process of the electric cup lid, the zero point position and anti-pinch area of ​​the stroke are first determined. When the motor starts, for example, when the vehicle is started with one-button start, IG ON, or the engine is ignited, the motor of the electric cup lid starts. The motor can drive the electric cup lid to move in the cup lid opening direction (to the left in Figure 3) until the opening position switch is triggered, and then continue to drive the electric cup lid to the hard stop point 1, where a stall occurs and it stops moving. The opening position switch can be connected to the processor through a hardware pin, so that when it is confirmed that the current trigger is the opening position switch, it can learn that the current movement direction is the opening direction, and the zero point position is successfully learned after a stall occurs. Similarly, for the closing case, the motor can drive the electric cup lid to move to the right until the closing position switch is triggered, and then continue to drive the electric cup lid to the hard stop point 2, where a stall occurs and it stops moving, and the zero point position is successfully learned. In addition, the position of a Hall pulse at a distance of a specified number (x, where x is a positive integer) from the two extreme positions can be set as the stop point. The area between the two stop points is the anti-pinch area. The anti-pinch function is not available in the non-anti-pinch area.

[0040] In one embodiment, the method further includes: real-time monitoring of the motor's operating current; and determining that the motor is in a stalled state when the operating current is the product of the starting current and a set percentage.

[0041] Specifically, each time the motor starts, it can learn the starting current and monitor the motor's operating current in real time. When the operating current is a set percentage of the starting current (e.g., 70%), it is determined that the motor is in a stalled state, the drive of the motor is stopped, stall protection is implemented, the motor is prevented from overheating, and the motor's service life is extended.

[0042] In one embodiment, controlling the motor to drive the electric cup lid to move in a specified direction includes: controlling the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an initial duty cycle; before controlling the motor to drive the electric cup lid to move to the anti-pinch area, adjusting the duty cycle of the pulse width modulation signal according to the real-time resistance and the Hall waveform of the motor, so that the electric cup lid reaches a first speed and passes through the anti-pinch area at the first speed; after controlling the motor to drive the electric cup lid to pass through the anti-pinch area, reducing the duty cycle of the pulse width modulation signal according to the real-time resistance and the Hall waveform of the motor, so that the electric cup lid reaches a second speed and moves to the zero position in the specified direction at the second speed.

[0043] Specifically, based on self-learning, the system can generate and adjust pulse width modulation (PWM) signals according to operation commands to control the motor driving the electric cup lid in a specified direction. It also features a soft-start / soft-stop function each time the electric cup lid opens and closes. For example, when the motor starts moving, it is driven with an initial duty cycle, which can be a preset or default value. Simultaneously, the system detects the current real-time resistance and the Hall waveform emitted by the motor. Based on the real-time resistance and the motor's Hall waveform, the system ensures the motor moves at a first speed. If the real-time resistance is high, the duty cycle of the PWM signal can be gradually increased. Based on this, the speed adjustment process is completed before the electric cup lid reaches the soft-stop point (entering the anti-pinch zone), and the subsequent movement speed remains constant at the first speed. When the electric cup lid reaches another soft-stop point (moving out of the anti-pinch zone), the PWM speed adjustment function can be activated again to gradually decelerate, eventually moving slowly to the second speed. This effectively reduces the noise impact when the electric cup lid stops moving.

[0044] In one embodiment, the vehicle voltage can also be detected, and a maximum duty cycle limit can be set accordingly. The duty cycle of the pulse width modulation signal is adjusted to always be less than the maximum duty cycle limit, thereby avoiding excessive noise during the opening or closing of the electric cup lid.

[0045] In one embodiment, during the process of controlling the motor to drive the electric cup lid to move in a specified direction, the method further includes: continuing to drive the electric cup lid to move for a fixed time after triggering the corresponding position switch, and clearing the Hall count of the motor to zero.

[0046] Specifically, after the position switch is triggered, the drive continues for a fixed duration (e.g., 0.5 seconds) to ensure that the electric cup lid actually moves to the extreme positions at both ends, that is, the electric cup lid is completely closed or opened. In this case, the drive motor can be stopped and the Hall count can be cleared, which can effectively avoid Hall offset after multiple movements.

[0047] In one embodiment, during the process of controlling the motor to drive the electric cup lid to move in a specified direction, the method further includes: when the electric cup lid is in the anti-pinch area, monitoring the operating current of the motor in real time in stages; in the first stage, if the operating current exceeds a first current threshold, the anti-pinch function is triggered; in the second stage, if the operating current exceeds a second current threshold, or the current change within a unit time period exceeds a third current threshold, the anti-pinch function is triggered; wherein, the second current threshold is higher than the first current threshold, and the first current threshold is higher than the third current threshold.

[0048] Specifically, for the anti-pinch function of electric cup lids, a segmented current monitoring strategy can be adopted to address the issue of false pinching caused by excessive current fluctuations during operation. For example, the operating current can be monitored in five segments. The first four segments have relatively stable operating currents, and the anti-pinch current threshold (i.e., the first current threshold) can be uniformly set to 'a' (unit: A). If the motor's operating current exceeds 'a' in the first four segments, the anti-pinch function will be triggered. The last segment has larger operating current fluctuations, and the anti-pinch current threshold (i.e., the second current threshold) can be set to 'b' (unit: A), for example, 1.8 times 'a'. If the motor's operating current exceeds 'b' in the last segment, the anti-pinch function will be triggered. Furthermore, considering the larger anti-pinch force in the last segment, the current change over a short period (e.g., 50ms) can be compared within the last segment. If the short-term current change exceeds the third current threshold, the anti-pinch function will be triggered. The third current threshold can be set to 'c' (unit: A), where c < a < b.

[0049] Based on this, according to the motor's operating current, when an object is detected being pinched, the motor can immediately stop moving in its original direction and retract (i.e., move in the opposite direction) a certain distance. Furthermore, during the anti-pinch retraction process, the motor's operating current can also be used to monitor whether an object is pinched; if the anti-pinch mechanism is triggered again, the motor can be directly stopped. Optionally, if the anti-pinch mechanism is triggered a set number of times (e.g., 3 times) before the motor reaches its limit position, the motor can stop driving and await manual operation by the user.

[0050] In one embodiment, during the process of controlling the motor to drive the electric cup lid to move in a specified direction, the method further includes: counting the number of times the trigger switch is activated by a counter; if the cumulative number reaches a preset number, the frequent operation protection function is triggered, and the operation command is not responded to within a preset time period;

[0051] The counting of the number of times the switch is triggered using a counter includes:

[0052] If the position switch is triggered multiple times within a specified time period, and the time interval between two consecutive triggers is less than the first time interval, the count value is incremented by 1; otherwise, the count value is decremented by 1.

[0053] If the time interval between controlling the motor to drive the electric cup lid to move in two directions is less than the second time interval, the count value is incremented by 1;

[0054] If the time interval between controlling the motor to drive the electric cup lid to move in two directions is greater than the third time interval, the count value is reduced by 2;

[0055] After the frequent operation protection function is triggered, if there is no operation for a set period of time, the count value will be decremented by 2 until the count value is reduced to 0.

[0056] Specifically, the frequent operation protection function can refer to the protection function set for situations where the electric cup lid is frequently operated (such as children's unconventional operation or accidental touch by the user). After the frequent operation protection function is triggered, the user's operation can be suspended or refused.

[0057] For example, if the position switch is triggered multiple times within a specified time period, such as 15 consecutive triggers within 30 seconds, the count is incremented by 1 if the time interval between two consecutive triggers is less than the first time interval (e.g., 2 seconds); the count is decremented by 1 if the time interval between two consecutive triggers is greater than or equal to the first time interval; if the cumulative number reaches a preset number (e.g., 30 times), the system enters a frequent operation protection state and takes the first frequent operation protection measure, such as not responding to any operation command within 10 seconds.

[0058] Optionally, after the frequent operation protection function is triggered, if there is no operation for a set interval (such as every 10 seconds), the count can be decremented by 2 until it is reduced to 0.

[0059] For example, if the time interval between the electric cup lid moving in two directions is less than the second time interval (e.g., 2 seconds), and the time interval between the motor's movements in two directions is less than 2 seconds, then the count is incremented by 1; if the time interval between the movements in two directions is greater than the third time interval (e.g., 20 seconds), then the count is decremented by 2; if the interval time is within the second and third time intervals (2 seconds to 20 seconds), then the count remains unchanged; if the cumulative number of times reaches 30, then the system enters the frequent operation protection state and takes the second frequent operation protection measure, such as not responding to any operation command within 20 seconds.

[0060] Optionally, the frequent operation protection can be deactivated when the count drops to 0, IG is turned off, or the motor is powered on again.

[0061] Figure 4 is a structural schematic diagram of an electric cup lid control device provided in an embodiment of the present invention. As shown in Figure 4, the electric cup lid control device provided in this embodiment includes:

[0062] Learning module 210 is used to control the motor to drive the electric cup lid to move in the opening direction when the motor starts, and to determine the zero point position and anti-pinch area during the process of the electric cup lid moving in the opening direction to the hard stop position.

[0063] The control module 220 is used to respond to an operation command and control the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle. The specified direction is either an opening direction or a closing direction. The electric cup lid has an anti-pinch function when it moves in the anti-pinch area.

[0064] When the motor starts, the device can learn the zero position and anti-pinch zone, so as to accurately grasp the movement position of the electric cup lid during actual operation. It also uses a pulse width modulation signal with adjustable duty cycle to control the movement of the electric cup lid in different areas, so as to achieve accurate control of the electric cup lid and ensure safety.

[0065] Based on the above embodiments, the learning module 210 includes:

[0066] The zero-point learning unit is used to determine the position where the motor is in a stall state as the zero-point position when the electric cup lid moves in the opening direction to the hard stop position and the opening position switch is triggered before moving to the hard stop position.

[0067] The slow-stop anti-pinch learning unit is used to determine the position of Hall pulses at a distance of a specified number from the zero position of the slide rail at both ends of the motor as the slow-stop point, and to determine the area between the two slow-stop points as the anti-pinch area.

[0068] Based on the above embodiments, the device further includes:

[0069] The first monitoring module is used to monitor the operating current of the motor in real time;

[0070] The stall detection module is used to determine that the motor is in a stall state when the operating current is the product of the starting current and a set percentage.

[0071] Based on the above embodiments, the control module 220 includes:

[0072] An initial control unit is used to control the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an initial duty cycle.

[0073] The first speed control unit is used to increase the duty cycle of the pulse width modulation signal according to the real-time resistance and the Hall waveform of the motor before controlling the motor to drive the electric cup lid to move to the anti-pinch area, so that the electric cup lid reaches a first speed and passes through the anti-pinch area at the first speed;

[0074] The second speed control unit is used to reduce the duty cycle of the pulse width modulation signal according to the real-time resistance and the Hall waveform of the motor after controlling the motor to drive the electric cup lid through the anti-pinch area, so that the electric cup lid reaches the second speed and moves to the zero position in the specified direction at the second speed.

[0075] Based on the above embodiments, during the process of controlling the motor to drive the electric cup lid to move in the designated direction, the device further includes:

[0076] The continuation control module is used to continue driving the electric cup lid to move for a fixed time after the corresponding position switch is triggered, and to clear the Hall count of the motor to zero.

[0077] Based on the above embodiments, during the process of controlling the motor to drive the electric cup lid to move in the designated direction, the device further includes:

[0078] The second monitoring module is used to monitor the operating current of the motor in real time in stages when the electric cup lid is in the anti-pinch area;

[0079] The first trigger module is used to trigger the anti-pinch function if the operating current exceeds the first current threshold in the first stage.

[0080] In the second stage, if the operating current exceeds the second current threshold, or the current change within a unit time period exceeds the third current threshold, the second trigger module will trigger the anti-pinch function.

[0081] Among them, the second current threshold is higher than the first current threshold, and the first current threshold is higher than the third current threshold.

[0082] Based on the above embodiments, during the process of controlling the motor to drive the electric cup lid to move in the designated direction, the device further includes:

[0083] The counting module is used to count the number of times the switch is triggered via a counter.

[0084] The third trigger module is used to trigger the frequent operation protection function if the cumulative number of times reaches the preset number, and not respond to operation commands within the preset time.

[0085] Specifically, the counting module is used for:

[0086] If the position switch is triggered multiple times within a specified time period, and the time interval between two consecutive triggers is less than the first time interval, the count value is incremented by 1; otherwise, the count value is decremented by 1.

[0087] If the time interval between controlling the motor to drive the electric cup lid to move in two directions is less than the second time interval, the count value is incremented by 1;

[0088] If the time interval between controlling the motor to drive the electric cup lid to move in two directions is greater than the third time interval, the count value is reduced by 2;

[0089] After the frequent operation protection function is triggered, if there is no operation for a set period of time, the count value will be decremented by 2 until the count value is reduced to 0.

[0090] The electric cup lid control device provided in this embodiment of the invention can be used to execute the electric cup lid control method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0091] Figure 5 illustrates a schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as in-vehicle computers, ECUs, servers, blade servers, microcontrollers, and other suitable computers. The electronic device 10 can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, user equipment, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0092] As shown in Figure 5, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer programs stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0093] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, microphone, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks and wireless networks.

[0094] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above.

[0095] In some embodiments, the methods described above can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the methods described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the methods of any of the embodiments described above by any other suitable means (e.g., by means of firmware).

[0096] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0098] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device 10, which includes: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device 10. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0100] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0101] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0102] This application also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the electric cup lid control method as described in any of the above embodiments.

[0103] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0104] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for controlling an electric cup lid, characterized in that, include: When the motor starts, the motor is controlled to drive the electric cup lid to move in the opening direction, and the zero point position and anti-pinch area are determined during the process of the electric cup lid moving in the opening direction to the hard stop position. In response to an operation command, the motor is controlled to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle. The specified direction is either an opening direction or a closing direction. The electric cup lid has an anti-pinch function when it moves in the anti-pinch area.

2. The method according to claim 1, characterized in that, Determining the zero point position and anti-pinch zone during the process of the electric cup lid moving in the opening direction to the hard stop position includes: When the electric cup lid moves in the opening direction to the hard stop position and the opening position switch is triggered before it moves to the hard stop position, the position where the motor is in a stall state is determined as the zero position. The positions of Hall pulses at a distance of a specified number from the zero points at both ends of the slide rail of the motor are determined as the slow-stop points, and the area between the two slow-stop points is determined as the anti-pinch area.

3. The method according to claim 2, characterized in that, Also includes: Real-time monitoring of the motor's operating current; When the operating current is the product of the starting current and a set percentage, the motor is determined to be in a stalled state.

4. The method according to claim 1, characterized in that, Controlling the motor to drive the electric cup lid to move in a specified direction includes: Based on the pulse width modulation signal with an initial duty cycle, the motor is controlled to drive the electric cup lid to move in a specified direction; Before controlling the motor to drive the electric cup lid to move to the anti-pinch area, the duty cycle of the pulse width modulation signal is increased according to the real-time resistance and the Hall waveform of the motor, so that the electric cup lid reaches a first speed and passes through the anti-pinch area at the first speed; After the motor drives the electric cup lid through the anti-pinch area, the duty cycle of the pulse width modulation signal is reduced according to the real-time resistance and the Hall waveform of the motor, so that the electric cup lid reaches the second speed and moves to the zero position in the specified direction at the second speed.

5. The method according to claim 1, characterized in that, During the process of controlling the motor to drive the electric cup lid to move in the designated direction, the method further includes: After triggering the corresponding position switch, the electric cup lid continues to move for a fixed duration, and the Hall count of the motor is cleared to zero.

6. The method according to claim 1, characterized in that, During the process of controlling the motor to drive the electric cup lid to move in the designated direction, the method further includes: When the electric cup lid is in the anti-pinch zone, the operating current of the motor is monitored in real time in stages. In the first stage, if the operating current exceeds the first current threshold, the anti-pinch function is triggered. In the second stage, if the operating current exceeds the second current threshold, or the current change within a unit time period exceeds the third current threshold, the anti-pinch function is triggered. Among them, the second current threshold is higher than the first current threshold, and the first current threshold is higher than the third current threshold.

7. The method according to claim 1, characterized in that, During the process of controlling the motor to drive the electric cup lid to move in the designated direction, the method further includes: The number of times the switch is triggered is counted using a counter; If the cumulative number of operations reaches the preset number, the frequent operation protection function will be triggered, and the operation command will not be responded to within the preset time. The step of counting the number of times the switch is triggered using a counter includes: If the position switch is triggered multiple times within a specified time period, and the time interval between two consecutive triggers is less than the first time interval, the count value is incremented by 1; otherwise, the count value is decremented by 1. If the time interval between controlling the motor to drive the electric cup lid to move in two directions is less than the second time interval, the count value is incremented by 1; If the time interval between controlling the motor to drive the electric cup lid to move in two directions is greater than the third time interval, the count value is reduced by 2; After the frequent operation protection function is triggered, if there is no operation for a set period of time, the count value will be decremented by 2 until the count value is reduced to 0.

8. An electric cup lid control device, characterized in that, include: The learning module is used to control the motor to drive the electric cup lid to move in the opening direction when the motor starts, and to determine the zero point position and anti-pinch area during the process of the electric cup lid moving in the opening direction to the hard stop position. The control module is used to respond to operation commands and control the motor to drive the electric cup lid to move in a specified direction based on a pulse width modulation signal with an adjustable duty cycle. The specified direction is either an opening direction or a closing direction. The electric cup lid has an anti-pinch function when moving in the anti-pinch area.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the electric cup lid control method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the electric cup lid control method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Vehicle door obstacle early warning method and device, equipment, and storage medium

    CN112576134A

  • Car window control method and device, electronic equipment and storage medium

    CN116291114A

  • Control method of vehicle sliding auxiliary instrument panel, storage medium and electronic equipment

    CN117048331A

  • Anti-pinch method and device for electric tail door of vehicle, computer equipment and storage medium

    CN117703202A

  • Electric cup cover control method and device, electronic equipment and storage medium

    CN118462012A