Lamp control method, device, equipment, storage medium and program product

CN121968410BActive Publication Date: 2026-09-15APUTURE IMAGING IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610429011.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-04-02
Publication Date
2026-09-15
Estimated Expiration
2046-04-02

AI Technical Summary

Technical Problem

[0004]然而,由于机械装置结构下的旋钮组件结构简单,使得旋转模式也较为单一,使用户无法区分旋钮的旋转情况,导致灯光效果的显示准确度较低

Benefits of technology

[0016]第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现第一方面中任一项所述的灯具控制方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121968410B_ABST
    Figure CN121968410B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of lamp equipment, and provides a lamp control method, device, equipment, storage medium and program product, which comprises the following steps: in a manner that a motor assembly is adopted to drive a rotary knob assembly to rotate, the rotary knob assembly is rotated to a corresponding position, a corresponding rotation effect is generated, the perception ability of a user to the rotation condition of the rotary knob assembly is improved, and therefore the accuracy of lamp display is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of lighting equipment technology, and in particular relates to lighting control methods, devices, equipment, storage media and program products. Background Technology

[0002] The lighting equipment displays different lighting effects by controlling the display of different effects through a knob.

[0003] In related technologies, a mechanical device is used to control the rotation of a knob, and different lighting effects are displayed when the knob is rotated to different angles.

[0004] However, due to the simple structure of the knob component under the mechanical device structure, the rotation mode is also relatively simple, making it impossible for users to distinguish the rotation status of the knob, resulting in low accuracy of the display of the lighting effect. Summary of the Invention

[0005] This application provides a lighting control method, device, equipment, storage medium, and program product. By using a motor assembly to drive a knob assembly to rotate, the knob assembly can produce a corresponding rotation effect when rotated to a corresponding position, thereby improving the user's perception of the knob assembly's rotation and thus improving the accuracy of the lighting display.

[0006] In a first aspect, embodiments of this application provide a lighting control method, the method being applied to a lighting device, the lighting device including a lighting assembly and a knob assembly, the knob assembly being used to control the lighting effect of the lighting device, the knob assembly including a motor assembly, the method comprising: In response to a rotation operation on the knob assembly at a first moment, a first rotational position parameter of the knob assembly at the first moment is detected; If the first rotational position parameter is detected to be within a first preset range, then the motor assembly is set to output a first torque; Based on the first torque, the motor assembly is controlled to drive the knob assembly to rotate in a first mode, thereby obtaining a first rotation effect corresponding to the knob assembly. Under the first rotation effect, the knob assembly generates a first spring resistance, the magnitude of which is controlled by the motor assembly. In response to receiving a rotation stop operation on the knob assembly, the system detects a second rotation position parameter corresponding to the knob assembly and triggers the lighting assembly to display a first display effect based on the second rotation position parameter.

[0007] In some embodiments, after controlling the motor assembly to drive the knob assembly to rotate in a first mode based on the first torque to obtain the first rotation effect corresponding to the knob assembly, the method further includes: When the knob assembly rotates to a third rotation position with the first rotation effect, and the third rotation position meets the first position condition, the motor assembly is controlled based on the second torque to drive the knob assembly to rotate in a second mode to obtain a second rotation effect, wherein the second torque is greater than the first torque.

[0008] In some embodiments, when the knob assembly is rotated to a third rotation position with the first rotation effect, and the third rotation position meets the first position condition, controlling the motor assembly to drive the knob assembly to rotate in a second mode based on the second torque to obtain the second rotation effect includes: When the knob assembly is rotated to the third rotation position, and the rotation angle between the first rotation position and the third rotation position meets the first angle condition, the second torque control motor assembly drives the knob assembly to rotate in the second mode to obtain the second rotation effect.

[0009] In some embodiments, the second torque includes a first sub-torque and a second sub-torque, and the second rotational effect includes a first sub-effect and a second sub-effect, wherein the first sub-torque corresponds to the first sub-effect and the second sub-torque corresponds to the second sub-effect; The second torque-controlled motor assembly drives the knob assembly to rotate in a second mode to achieve a second rotation effect, including: The rotation angle range corresponding to the knob assembly is divided into gears to obtain multiple rotation gears; When the motor assembly rotates to the first gear range corresponding to the i-th rotation gear, the first torque is switched to the first sub-torque; based on the first sub-torque, the motor assembly is controlled to drive the knob assembly to align with the target position of the i-th rotation gear, thereby obtaining the first sub-effect corresponding to the knob assembly, where i is a positive integer; or, when the motor assembly rotates to the second gear range corresponding to the i-th rotation gear, the first sub-torque is switched to the second sub-torque; based on the second sub-torque, the motor assembly is controlled to drive the knob assembly to rotate to the target position, thereby obtaining the first sub-effect corresponding to the knob assembly, where the first gear range and the second gear range are different.

[0010] In some embodiments, the method further includes: When the first rotational position parameter is outside the first preset range, the motor assembly is set to output a third torque, which is greater than the first torque; Based on the third torque, the motor assembly is controlled to drive the knob assembly to rotate in a third mode, thereby obtaining a third rotation effect corresponding to the knob assembly. The third rotation effect corresponds to a second spring resistance, which is greater than the first spring resistance.

[0011] In some embodiments, the third torque increases synchronously with the deviation of the first rotational position parameter from the first preset range.

[0012] In some embodiments, setting the motor assembly to output a first torque includes: Obtain the preset rotational position parameters of the motor assembly in the first mode; Obtain the position difference between the preset rotation position parameter and the first rotation position parameter; The first torque is obtained based on the product of the position difference and the preset rotation coefficient.

[0013] In some embodiments, the method further includes: The rotation coefficient increases synchronously with the offset of the first rotation position parameter based on the first preset range.

[0014] Secondly, embodiments of this application provide a lighting control device, including: The detection module is used to detect the first rotation position parameter of the knob assembly at the first moment in response to the rotation operation of the knob assembly at the first moment; The setting module is used to set the motor assembly to output a first torque when the first rotational position parameter is detected to be within a first preset range. A drive module is used to control the motor assembly to drive the knob assembly to rotate in a first mode based on the first torque, thereby obtaining a first rotation effect corresponding to the knob assembly. The knob assembly generates a first spring resistance under the first rotation effect, and the magnitude of the first spring resistance is controlled by the motor assembly. The display module is used to respond to receiving a rotation stop operation on the knob assembly, detect the second rotation position parameter corresponding to the knob assembly, and trigger the lamp assembly to display a first display effect based on the second rotation position parameter.

[0015] Thirdly, embodiments of this application provide a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the lighting control method described in any one of the first aspects above.

[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the lighting control method described in any one of the first aspects.

[0017] Fifthly, embodiments of this application provide a computer program product that, when run on a computer device, causes the computer device to execute the lighting control method described in any one of the first aspects.

[0018] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.

[0019] The beneficial effects of the technical solutions provided in this application include at least the following: By using a motor assembly to control the rotation of the knob assembly, the rotation position of the motor assembly is determined according to the corresponding rotation operation of the knob assembly. Based on the rotation position parameters, the motor assembly outputs a corresponding torque, causing it to control the knob assembly to produce a specific rotation effect. Finally, after the knob stops rotating, the corresponding display effect of the lighting equipment is displayed. In other words, by using a motor assembly to drive the knob assembly to rotate, the knob assembly can produce a corresponding rotation effect when rotated to a specific position, improving the user's perception of the knob assembly's rotation and thus enhancing the accuracy of the lighting display. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of a lighting control method provided in an embodiment of this application; Figure 2 This is a flowchart of a lighting control method provided in an embodiment of this application; Figure 3 This is a flowchart of a lighting control method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the rotation principle of the knob assembly provided in the embodiments of this application; Figure 5 This is a structural diagram of the lighting control device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0022] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0023] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0024] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0025] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0026] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0028] In related technologies, lighting equipment displays different lighting effects by controlling the rotation of knobs. The main method involves using a mechanical device to control the knob's rotation; different angles of rotation result in different lighting effects. However, due to the simple structure of the knob component within the mechanical device, the rotation pattern is relatively limited, making it difficult for users to distinguish the specific rotation angle. This leads to greater difficulty in adjusting the lighting effects, consequently reducing the accuracy and efficiency of the display.

[0029] Based on this, this application provides a lighting control method. By using a motor assembly to control the rotation of a knob assembly, the rotation position of the motor assembly is determined according to the corresponding rotation operation of the knob assembly. Then, the motor assembly outputs a corresponding torque according to the rotation position parameters corresponding to the rotation position, so that the motor assembly controls the knob assembly to produce a corresponding rotation effect according to the specified torque. Finally, after the knob stops rotating, the corresponding display effect of the lighting device is displayed. In other words, by using a motor assembly to drive the knob assembly to rotate, the knob assembly can produce a corresponding rotation effect when rotated to a corresponding position, improving the user's perception of the knob assembly's rotation and thus improving the accuracy of the lighting display.

[0030] This is illustrative; please refer to it. Figure 1 It illustrates a schematic diagram of lighting equipment control provided in an exemplary embodiment of this application, such as... Figure 1 As shown, in response to the rotation operation of the knob assembly 101 at the first moment, the first rotation position parameter of the knob assembly 101 at the first moment is determined; when the first rotation position parameter is within the first preset range, the motor assembly 103 is set to output a first torque; based on the first torque, the motor assembly 103 is controlled to drive the knob assembly 101 to rotate in a first mode to obtain the first rotation effect corresponding to the knob assembly 101. The first rotation effect refers to the feedback rebound effect of the motor assembly 103 to the knob assembly 101 during the rotation with the first torque, so that the knob assembly 101 produces a simulated spring rotation effect. At this time, if the knob assembly 101 stops rotating, the first display effect corresponding to the lighting device 102 is displayed (represented by a thin line).

[0031] The lighting control method provided in the embodiments of this application will be described in detail below. For illustrative purposes, please refer to the following: Figure 2 The diagram illustrates a flowchart of a lighting control method provided in an exemplary embodiment of this application, which includes steps 210 to 240.

[0032] Step 210: In response to the rotation operation of the knob assembly at the first moment, detect the first rotation position parameter of the knob assembly at the first moment.

[0033] The lighting equipment includes a lighting component and a knob component. The knob component is used to control the lighting effect of the lighting equipment, and the knob component contains a motor component.

[0034] In illustrative terms, lighting equipment is equipment with lighting functions, such as fill lights, light-emitting diode (LED) lights, smart bulbs, etc.

[0035] Indicatively, an electric motor assembly is a device that converts electrical energy into mechanical energy, mainly composed of a rotor and a stator. The working principle of an electric motor is based on electromagnetic induction; the torque generated by an electric current in a magnetic field drives the rotor to rotate, thereby achieving the output of mechanical energy.

[0036] The stator section is primarily used to generate a magnetic field. When the stator is energized, the current generates a magnetic field in the stator windings. The rotor then rotates within this magnetic field. The rotor in an electric motor is typically a conductive metal body connected to the power source via components such as slip rings and brushes. When current flows through the rotor, it begins to rotate due to electromagnetic force. This rotation performs work through the motor's output shaft, converting electrical energy into mechanical energy.

[0037] Optionally, the motor assembly includes either a brushed motor assembly or a brushless motor assembly.

[0038] In this type of motor assembly, mechanical commutation is achieved through brushes and a commutator. The brushes contact the rotating commutator, guiding current into the rotor coils, generating a magnetic field that interacts with the stator permanent magnets, thus driving the rotor to rotate.

[0039] The brushless motor assembly uses electronic commutation, which uses a controller (such as a pulse width modulation (PWM) controller, Hall sensor, etc.) to detect the rotor position in real time and dynamically adjust the direction of the stator winding current to make the rotor rotate continuously.

[0040] In this embodiment, a brushless motor assembly is used as an example for illustration.

[0041] The brushless motor assembly will be described in detail below.

[0042] This is an illustrative example of a brushless motor assembly that includes a rotor, a stator, and a position sensor.

[0043] The rotor contains a permanent magnet that generates a magnetic field in a fixed direction; the stator consists of three or more sets of coils connected in a star or triangle configuration, which generate a rotating magnetic field when energized; the position sensor typically uses a Hall sensor or encoder to detect the rotor's magnetic pole position in real time and provide commutation signals to the controller.

[0044] When a set of coils in the stator is energized, the magnetic field generated interacts with the magnetic field of the rotor permanent magnet (opposite poles attract, like poles repel), creating torque that drives the rotor to rotate. For example, when the stator A-phase coil is energized, it generates a N-pole magnetic field, which attracts the rotor's S-pole and simultaneously repels the rotor's N-pole, causing the rotor to rotate at a specific angle.

[0045] Based on feedback from the rotor position sensor, the controller switches the energizing state of the stator coils in a preset sequence to create a continuously rotating magnetic field. Each time the energizing phase is switched, the magnetic field rotates 60°, driving the rotor to rotate continuously.

[0046] Speed ​​regulation is achieved by adjusting the coil current using pulse width modulation (PWM) technology, thereby controlling the magnetic field strength. For example, a high duty cycle PWM signal provides stronger current, increasing torque and speed.

[0047] First, Hall effect sensors monitor the rotor's magnetic pole position in real time, outputting digital signals (e.g., 0 / 1 combinations) or analog signals (e.g., voltage changes). For example, three Hall effect sensors can output eight state combinations (000~111), corresponding to different rotor position ranges. The controller (e.g., an MCU or dedicated driver chip) receives the sensor signals, analyzes the rotor's current position and rotation direction, and determines the coil combination to be energized at the next moment based on a preset commutation table (e.g., the correspondence between Hall effect states and energized phases). The controller precisely controls the current flow and direction of each coil through an inverter bridge composed of power transistors (e.g., MOSFETs or IGBTs). For example, when the Hall effect signal is "100", the controller connects phase B input and phase A output, causing coil B to generate a north pole magnetic field and coil A to generate a south pole magnetic field, driving the rotor to rotate clockwise.

[0048] Indicatively, rotation operation refers to the action applied by the user to the knob assembly. By rotating the knob assembly, electromagnetic induction is generated, and the torque generated by the current in the magnetic field drives the rotor to rotate, thereby driving the rotation of the motor assembly. In other words, when a rotation operation is received on the knob assembly, the motor assembly is controlled to rotate to drive the rotation of the knob assembly.

[0049] Indicatively, the first rotational position parameter refers to the rotation angle of the knob assembly. By pre-setting a reference position, the first rotational position parameter of the knob assembly corresponding to the rotational operation is determined based on the reference position. For example, if the reference position is 0 degrees, and the angle difference between the first rotational position and the reference position is 30 degrees, the first rotational position parameter is determined to be 30 degrees.

[0050] Step 220: If the first rotational position parameter is detected to be within the first preset range, then the motor assembly is set to output the first torque.

[0051] Indicatively, the first preset range is a pre-defined range used to determine the range in which the knob assembly can rotate. In other words, when the knob assembly rotates within the first preset range, the lighting device can produce a corresponding display effect.

[0052] To illustrate, torque refers to the torque exerted by a motor assembly on a load, representing the magnitude of the rotational force generated by the motor's output shaft. It measures the motor assembly's ability to overcome load resistance and drive rotational motion. Therefore, the greater the torque, the heavier the load the motor assembly can handle. In a scenario where a motor assembly drives a knob assembly, a greater torque results in stronger resistance when rotating the knob assembly.

[0053] Indicatively, when the knob assembly rotates to a certain position, it generates a corresponding current, which in turn outputs a corresponding torque in the magnetic field. Therefore, the torque generated under the first rotational position parameter is set as the first torque corresponding to the motor assembly.

[0054] Step 230: Drive the knob assembly to rotate in the first mode based on the first torque control motor assembly to obtain the first rotation effect corresponding to the knob assembly.

[0055] The knob assembly generates a first spring resistance upon the first rotation, and the magnitude of the first spring resistance is controlled by the motor assembly.

[0056] Indicatively, when the current generates a first torque in the magnetic field, the rotor part of the drive motor assembly rotates. At this time, it is considered that the motor assembly is running, and the motor assembly drives the knob assembly to rotate in a first mode, thereby causing the rotating assembly to produce a first rotation effect.

[0057] Indicatively, the first rotation effect refers to the motor assembly rotating with a first torque while the motor speed is controlled by PWM speed regulation. At the same time, the current generated inside the knob assembly is monitored. When the rotational resistance of the knob assembly increases, the motor current rises. The controller reduces the PWM duty cycle to limit the current, thereby limiting the torque output and creating a simulated spring effect.

[0058] Therefore, in other words, during the rotation in the first mode, as the knob assembly rotates, the first torque increases synchronously, so that the knob assembly gradually produces a spring-like rebound effect.

[0059] Schematic illustration: During the rotation of the rotating component, a first spring resistance is generated due to mechanical friction. Step 240: In response to receiving a rotation stop operation on the knob assembly, detect the second rotation position parameter corresponding to the knob assembly, and trigger the lighting assembly to display the first display effect based on the second rotation position parameter.

[0060] Indicatively, the rotation stop operation refers to stopping the rotation of the knob assembly. Based on the rotation position corresponding to when the knob stops rotating (i.e., the second rotation position parameter), the display effect of the lighting equipment is determined.

[0061] Optionally, display effects include lighting effects, audio effects, video display effects, image display effects, etc.

[0062] Among them, lighting effects refer to the light effects produced by the light-emitting components in the lighting equipment, such as brightness, color, color temperature, and flicker frequency; audio effects refer to the audio content output when the lighting equipment is equipped with audio components (such as speakers); video display results and image display effects refer to the video content or images sent from the lighting equipment to the monitor when the lighting equipment is connected to the monitor, so that the corresponding video content or images are displayed on the monitor.

[0063] The lighting control method provided in this application uses a motor assembly to control the rotation of a knob assembly. During this process, the rotation position of the motor assembly is determined based on the corresponding rotation operation of the knob assembly. Then, the motor assembly outputs a corresponding torque based on the rotation position parameters. This allows the motor assembly to control the knob assembly to produce a corresponding rotation effect according to the specified torque. Finally, after the knob stops rotating, the corresponding display effect of the lighting device is displayed. In other words, by using a motor assembly to drive the knob assembly to rotate, the knob assembly can produce a corresponding rotation effect when rotated to a specific position, improving the user's perception of the knob assembly's rotation and thus enhancing the accuracy of the lighting display.

[0064] The following is a detailed explanation of the lighting control method; please refer to the illustrative examples. Figure 3 It illustrates a flowchart of a lighting control method provided in an exemplary embodiment of this application, that is, step 230 is followed by step 250, as follows: Figure 3 As shown, the method includes the following steps.

[0065] Step 220: If the first rotational position parameter is detected to be within the first preset range, then the motor assembly is set to output the first torque.

[0066] In some embodiments, a preset rotational position parameter corresponding to the motor assembly in a first mode is obtained; the position difference between the preset rotational position parameter and the first rotational position parameter is obtained; and a first torque is obtained based on the product of the position difference and the preset rotation coefficient.

[0067] Indicatively, the preset rotational position refers to the target position pre-set by the motor assembly in the first mode. The first torque is obtained by multiplying the position difference between the target position and the current first rotational position parameter by a pre-set rotation coefficient, as shown in Formula 1 below: Formula 1: τ=Kp*(θtarget-θcurrent) Where τ represents the first torque, Kp represents the rotation coefficient, θtarget represents the preset rotation position, and θcurrent represents the first rotation position parameter.

[0068] In some embodiments, the rotation coefficient increases synchronously with the offset of the first rotation position parameter based on a first preset range.

[0069] To illustrate, the greater the deviation of the first rotational position parameter from the first preset range, the greater the rotation coefficient will be.

[0070] Step 250: When the knob assembly rotates to the third rotation position with the first rotation effect and the third rotation position meets the first position condition, the second torque control motor assembly drives the knob assembly to rotate in the second mode to obtain the second rotation effect.

[0071] The second torque is greater than the first torque.

[0072] Indicatively, the third rotation position is used to determine the rotation of the knob assembly from the first mode to the second mode.

[0073] Therefore, the second torque is used to control the motor assembly to drive the rotating assembly to simulate a stuttering effect (also known as a ratchet effect) during rotation.

[0074] The following explanation uses a brushless motor as an example to illustrate the principle behind the stuttering effect.

[0075] The motor assembly includes a magnetic encoder and a microcontroller. The magnetic encoder detects the motor angle in real time, dividing the rotation range into multiple gears (e.g., one gear point every 45°). When the knob assembly rotates to near a gear point, the microcontroller outputs a voltage control quantity based on the position error to adjust the motor torque. When approaching the gear point, the torque is increased to simulate the resistance of a pawl sliding into a tooth groove. If the gear point is passed, the torque is adjusted in the opposite direction to simulate the bouncing sensation of a pawl pushing a ratchet.

[0076] In the process of controlling the brushless motor assembly to drive the knob assembly with the second torque, the PID algorithm is used to realize the torque output. The PID algorithm will be explained in detail below.

[0077] When the motor assembly controls the rotation of the knob assembly, the PID algorithm simulates a ratchet effect through the coordinated action of three components: proportional (P), integral (I), and derivative (D). In the proportional (P) component, the control quantity is output proportionally to the deviation between the current position and the target position of the knob assembly. As the knob rotates, the encoder detects the angular deviation in real time, and the proportional component outputs torque control based on the magnitude of the deviation; the larger the deviation, the stronger the torque, creating the effect of "the closer to the stop, the greater the resistance." In the integral (I) component, historical deviations are accumulated to eliminate minor jitter of the knob near the stop. When the knob approaches the stop, the proportional component may output insufficiently due to a small deviation, resulting in inaccurate stopping at the stop position. In the derivative (D) component, the torque is adjusted in advance based on the rate of change of deviation (rotational speed) to suppress oscillations when the knob passes the stop. When the knob rotates rapidly towards the stop, the derivative component detects a large rate of change of deviation and reduces the torque output in advance to simulate the smooth unidirectional transition of a mechanical ratchet, reducing the feeling of hesitation during rotation.

[0078] In some embodiments, when the knob assembly is rotated to a third rotation position and the rotation angle between the first rotation position and the third rotation position meets the first angle condition, the second torque control motor assembly drives the knob assembly to rotate in a second mode to obtain a second rotation effect.

[0079] Indicatively, the second torque corresponding to the motor assembly is determined based on the angular difference between the third rotational position and the first preset position.

[0080] The second torque control motor assembly drives the knob assembly to rotate in the second mode, thereby obtaining the second rotation effect of the knob assembly (including the effect of increased resistance and the effect of jamming).

[0081] In some embodiments, the second torque includes a first sub-torque and a second sub-torque, and the second rotation effect includes a first sub-effect and a second sub-effect, where the first sub-torque corresponds to the first sub-effect and the second sub-torque corresponds to the second sub-effect; the rotation angle range corresponding to the knob assembly is divided into gears to obtain multiple rotation gears; when the motor assembly rotates to the first gear range corresponding to the i-th rotation gear, the first torque is switched to the first sub-torque; based on the first sub-torque, the motor assembly is controlled to drive the knob assembly to align with the target position of the i-th rotation gear to obtain the first sub-effect corresponding to the knob assembly, where i is a positive integer; or, when the motor assembly rotates to the second gear range corresponding to the i-th rotation gear, the first sub-torque is switched to the second torque; based on the second sub-torque, the motor assembly is controlled to drive the knob assembly to rotate to the target position to obtain the first sub-effect corresponding to the knob assembly, where the first gear range and the second gear range are different.

[0082] The motor assembly includes a magnetic encoder and a microcontroller. The magnetic encoder detects the motor angle in real time, dividing the rotation range into multiple gears (e.g., one gear point every 45°). When the knob assembly rotates to near a gear point (i.e., within the first gear range), the microcontroller outputs a voltage control quantity based on the position error to adjust the motor torque. When approaching the gear point, the torque is increased (i.e., switched to the first sub-torque), simulating the resistance of the pawl sliding into the tooth groove. If it passes the gear point (i.e., within the second gear range), the torque is adjusted in the opposite direction (i.e., set to the second sub-torque), simulating the bouncing sensation of the pawl pushing the ratchet.

[0083] In some embodiments, when the first rotational position parameter is outside the first preset range, the motor assembly is set to output a third torque, which is greater than the first torque; based on the third torque, the motor assembly is controlled to drive the knob assembly to rotate in a third mode, thereby obtaining a third rotation effect corresponding to the knob assembly. The third rotation effect corresponds to a second spring resistance, which is greater than the first spring resistance.

[0084] In some embodiments, the third torque increases synchronously with the deviation of the first rotational position parameter from a first preset range.

[0085] To illustrate, taking an LED light as an example, LEDs have a corresponding dimming knob area. When the user operates within the designated rotation area, the spring mode is activated when the user rotates outside the designated area. The further away from the target area, the greater the resistance, reminding the user not to operate incorrectly.

[0086] This is illustrative; please refer to it. Figure 4 It illustrates a schematic diagram of the rotation principle of a knob assembly provided in an exemplary embodiment of this application, such as... Figure 4 As shown, the lighting system includes a host computer, a motor assembly, a pressure sensor, an encoder, and a knob assembly. The pressure sensor array is used to collect the axial pressure and radial torque of the knob; the encoder is used to detect the rotation angle of the knob; the motor assembly is used to achieve dynamic torque control through a PID algorithm and generate a PWM signal to control the rotation of the knob assembly; the host computer system enables synchronized screen display and operation feedback.

[0087] The lighting control method provided in this application uses a motor assembly to control the rotation of a knob assembly. During this process, the rotation position of the motor assembly is determined based on the corresponding rotation operation of the knob assembly. Different torques are output according to different rotation positions, resulting in different rotation effects produced by the motor assembly controlling the knob assembly under different torques. These effects include simulating spring rotation and simulating a stop effect. Finally, after the knob stops rotating, the corresponding lighting effect of the lighting device is displayed. In other words, by using a motor assembly to drive the knob assembly to rotate, different rotation effects can be produced by rotating the knob assembly to different positions, improving the user's perception of the knob assembly's rotation and thus enhancing the accuracy of the lighting display.

[0088] This is illustrative; please refer to it. Figure 5 The diagram illustrates a lighting control device provided in an exemplary embodiment of this application, wherein the lighting control device may specifically include the following modules: The detection module 510 is used to detect the first rotation position parameter of the knob assembly at the first moment in response to the rotation operation of the knob assembly at the first moment.

[0089] Setting module 520 is used to set the motor assembly to output a first torque when the first rotational position parameter is detected to be within a first preset range; Drive module 530 is used to control the motor assembly to drive the knob assembly to rotate in a first mode based on the first torque, so as to obtain a first rotation effect corresponding to the knob assembly. The knob assembly generates a first spring resistance under the first rotation effect, and the magnitude of the first spring resistance is controlled by the motor assembly. The display module 540 is configured to, in response to receiving a rotation stop operation on the knob assembly, detect a second rotation position parameter corresponding to the knob assembly, and trigger the lamp assembly to display a first display effect based on the second rotation position parameter.

[0090] Optionally, the drive module 530 is further configured to, when the motor assembly rotates to the third rotation position with the first rotation effect and the distance between the third rotation position and the first preset position reaches a preset first angle threshold, control the motor assembly based on the second torque to drive the knob assembly to rotate in the second mode to obtain the second rotation effect.

[0091] Optionally, the drive module 530 is further configured to control the motor assembly to drive the knob assembly to rotate in a second mode based on a second torque when the knob assembly rotates to a third rotation position with the first rotation effect and the third rotation position meets the first position condition, thereby obtaining a second rotation effect, wherein the second torque is greater than the first torque.

[0092] Optionally, the drive module 530 is further configured to drive the knob assembly to rotate in the second mode based on the second torque control motor assembly when the knob assembly is rotated to the third rotation position and the rotation angle between the first rotation position and the third rotation position meets the first angle condition, so as to obtain the second rotation effect.

[0093] Optionally, the second torque includes a first sub-torque and a second sub-torque, and the second rotation effect includes a first sub-effect and a second sub-effect, wherein the first sub-torque corresponds to the first sub-effect, and the second sub-torque corresponds to the second sub-effect; The drive module 530 is further configured to divide the rotation angle range corresponding to the knob assembly into multiple rotation gears; when the motor assembly rotates to the first gear range corresponding to the i-th rotation gear, switch from the first torque to the first sub-torque; based on the first sub-torque, control the motor assembly to drive the knob assembly to align with the target position of the i-th rotation gear, thereby obtaining the first sub-effect corresponding to the knob assembly, where i is a positive integer; or, when the motor assembly rotates to the second gear range corresponding to the i-th rotation gear, switch from the first sub-torque to the second sub-torque; based on the second sub-torque, control the motor assembly to drive the knob assembly to rotate to the target position, thereby obtaining the first sub-effect corresponding to the knob assembly, wherein the first gear range and the second gear range are different.

[0094] Optionally, the drive module 530 is further configured to set the motor assembly to output a third torque when the first rotational position parameter is outside the first preset range, the third torque being greater than the first torque; and control the motor assembly to drive the knob assembly to rotate in a third mode based on the third torque to obtain a third rotation effect corresponding to the knob assembly, the third rotation effect corresponding to a second spring resistance, the second spring resistance being greater than the first spring resistance.

[0095] Optionally, the third torque increases synchronously with the deviation of the first rotational position parameter from the first preset range.

[0096] Optionally, the setting module 520 is further configured to obtain a preset rotational position parameter corresponding to the motor assembly in the first mode; obtain the position difference between the preset rotational position parameter and the first rotational position parameter; and obtain the first torque based on the product of the position difference and the preset rotation coefficient.

[0097] Optionally, the rotation coefficient increases synchronously with the offset of the first rotation position parameter based on a first preset range.

[0098] The lighting control device provided in this application embodiment uses a motor assembly to control the rotation of a knob assembly. During this process, the rotation position of the motor assembly is determined based on the corresponding rotation operation of the knob assembly. Different torques are output according to different rotation positions, resulting in different rotation effects produced by the motor assembly controlling the knob assembly under different torques. These effects include simulating spring rotation and simulating a stop effect. Finally, after the knob stops rotating, the corresponding lighting effect of the lighting equipment is displayed. In other words, by using a motor assembly to drive the knob assembly to rotate, different rotation effects can be produced when the knob assembly is rotated to different positions, improving the user's perception of the knob assembly's rotation and thus enhancing the accuracy of the lighting display.

[0099] See Figure 6 This illustration shows a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 6 As shown, the computer device 1000 of this embodiment includes: at least one processor 1010 ( Figure 6 (Only one is shown in the image) a processor, a memory 1020, and a computer program 1021 stored in the memory 1020 and capable of running on at least one processor 1010. When the processor 1010 executes the computer program 1021, it implements the steps in the above-described lighting control method embodiment.

[0100] Computer device 1000 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. This terminal device may include, but is not limited to, processor 1010 and memory 1020. Those skilled in the art will understand that... Figure 6 This is merely an example of computer device 1000 and does not constitute a limitation on computer device 1000. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0101] The processor 1010 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0102] In some embodiments, memory 1020 may be an internal storage unit of computer device 1000, such as a hard disk or memory of computer device 1000. In other embodiments, memory 1020 may be an external storage device of computer device 1000, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on computer device 1000. Furthermore, memory 1020 may include both internal and external storage units of computer device 1000. Memory 1020 is used to store operating systems, applications, boot loaders, data, and other programs, such as program code for computer programs. Memory 1020 may also be used to temporarily store data that has been output or will be output.

[0103] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0104] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0105] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0106] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer devices and methods can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0107] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0108] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0109] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, swivel hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0110] The implementation of all or part of the processes in the methods of the above embodiments can also be accomplished by a computer program product. When the computer program product is run on a computer device, the computer device can implement the steps in the various method embodiments described above.

[0111] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A luminaire control method, characterized by, The method is applied to a lighting device, which includes a lighting assembly and a knob assembly. The knob assembly is used to control the lighting effect of the lighting device, and the knob assembly includes a motor assembly. The method includes: In response to a rotation operation on the knob assembly at a first moment, a first rotational position parameter of the knob assembly at the first moment is detected; If the first rotational position parameter is detected to be within a first preset range, the motor assembly is set to output a first torque; wherein, the first preset range is used to determine the range within which the knob assembly can rotate; Based on the first torque, the motor assembly is controlled to drive the knob assembly to rotate in a first mode, thereby obtaining a first rotation effect corresponding to the knob assembly. Under the first rotation effect, the knob assembly generates a first spring resistance, the magnitude of which is controlled by the motor assembly. When the knob assembly rotates to a third rotation position with the first rotation effect, and the third rotation position meets the first position condition, the motor assembly is controlled based on the second torque to drive the knob assembly to rotate in a second mode to obtain a second rotation effect, wherein the second torque is greater than the first torque; In response to receiving a rotation stop operation on the knob assembly, the system detects a second rotation position parameter corresponding to the knob assembly and triggers the lighting assembly to display a first display effect based on the second rotation position parameter. The second torque includes a first sub-torque and a second sub-torque, and the second rotation effect includes a first sub-effect and a second sub-effect. The first sub-torque corresponds to the first sub-effect, and the second sub-torque corresponds to the second sub-effect. The step of controlling the motor assembly to drive the knob assembly to rotate in a second mode based on the second torque to obtain the second rotation effect includes: dividing the rotation angle range corresponding to the knob assembly into multiple rotation gears; when the motor assembly rotates to the first gear range corresponding to the i-th rotation gear, switching from the first torque to the first sub-torque; controlling the motor assembly to drive the knob assembly to align with the target position of the i-th rotation gear based on the first sub-torque to obtain the first sub-effect corresponding to the knob assembly, where i is a positive integer; or, when the motor assembly rotates to the second gear range corresponding to the i-th rotation gear, switching from the first sub-torque to the second sub-torque; controlling the motor assembly to drive the knob assembly to rotate to the target position based on the second torque to obtain the second sub-effect corresponding to the knob assembly, where the first gear range and the second gear range are different.

2. The method of claim 1, wherein, The step of controlling the motor assembly to drive the knob assembly to rotate in a second mode based on the second torque when the knob assembly rotates to a third rotation position with the first rotation effect, and the third rotation position meets the first position condition, to obtain the second rotation effect, further includes: When the knob assembly is rotated to the third rotation position, and the rotation angle between the first rotation position and the third rotation position meets the first angle condition, the second torque control motor assembly drives the knob assembly to rotate in the second mode to obtain the second rotation effect.

3. The method according to any one of claims 1 to 2, characterized in that, The method further includes: When the first rotational position parameter is outside the first preset range, the motor assembly is set to output a third torque, which is greater than the first torque; Based on the third torque, the motor assembly is controlled to drive the knob assembly to rotate in a third mode, thereby obtaining a third rotation effect corresponding to the knob assembly. The third rotation effect corresponds to a second spring resistance, which is greater than the first spring resistance.

4. The method according to claim 3, characterized in that, The third torque increases synchronously as the deviation of the first rotational position parameter from the first preset range increases.

5. The method according to any one of claims 1 to 2, characterized in that, The setting of the motor assembly to output a first torque includes: Obtain the preset rotational position parameters of the motor assembly in the first mode; Obtain the position difference between the preset rotation position parameter and the first rotation position parameter; The first torque is obtained based on the product of the position difference and the preset rotation coefficient.

6. The method according to claim 5, characterized in that, The rotation coefficient increases synchronously as the first rotation position parameter shifts based on a first preset range.

7. A lighting control device, characterized in that, The device includes: The detection module is used to detect the first rotational position parameter of the knob assembly at the first moment in response to the rotational operation of the knob assembly at the first moment. The setting module is used to set the motor assembly to output a first torque when the first rotational position parameter is detected to be within a first preset range; wherein, the first preset range is used to determine the range of rotation of the knob assembly; A drive module is configured to control the motor assembly to drive the knob assembly to rotate in a first mode based on the first torque, thereby obtaining a first rotation effect corresponding to the knob assembly. Under the first rotation effect, the knob assembly generates a first spring resistance, the magnitude of which is controlled by the motor assembly. Furthermore, when the knob assembly rotates to a third rotation position with the first rotation effect, and the third rotation position meets a first position condition, the drive module controls the motor assembly to drive the knob assembly to rotate in a second mode based on a second torque, thereby obtaining a second rotation effect. The second torque is greater than the first torque. The display module is used to respond to receiving a rotation stop operation on the knob assembly, detect the second rotation position parameter corresponding to the knob assembly, and trigger the lamp assembly to display the first display effect based on the second rotation position parameter; The second torque includes a first sub-torque and a second sub-torque, and the second rotation effect includes a first sub-effect and a second sub-effect. The first sub-torque corresponds to the first sub-effect, and the second sub-torque corresponds to the second sub-effect. The drive module is further configured to: divide the rotation angle range corresponding to the knob assembly into multiple rotation gears; when the motor assembly rotates to the first gear range corresponding to the i-th rotation gear, switch from the first torque to the first sub-torque; control the motor assembly based on the first sub-torque to drive the knob assembly to align with the target position of the i-th rotation gear, thereby obtaining the first sub-effect corresponding to the knob assembly, where i is a positive integer; or, when the motor assembly rotates to the second gear range corresponding to the i-th rotation gear, switch from the first sub-torque to the second sub-torque; control the motor assembly based on the second sub-torque to drive the knob assembly to rotate to the target position, thereby obtaining the second sub-effect corresponding to the knob assembly, wherein the first gear range and the second gear range are different.

8. A computer device, characterized in that, The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the lighting control method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the lighting control method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes a computer program, which, when run by a computer device, causes the lighting control method as described in any one of claims 1 to 6 to be executed.

Citation Information

Patent Citations

  • Knob and control method thereof

    CN119759174A

  • Reading lamp with light brightness adjusted by knob

    CN219199071U