Lamp spot position adjusting method, electronic device, readable storage medium and computer program product

By independently adjusting the optical lens through vertical deflection and horizontal rotation mechanisms, the problem of the lamp head's orientation remaining unchanged when the light spot is electrically adjusted is solved, achieving precise and flexible light spot position control to meet the needs of complex lighting scenarios.

CN122129667APending Publication Date: 2026-06-02ZHONGSHAN YANFENG LIGHTING TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHONGSHAN YANFENG LIGHTING TECH CO LTD
Filing Date
2026-01-23
Publication Date
2026-06-02

Smart Images

  • Figure CN122129667A_ABST
    Figure CN122129667A_ABST
Patent Text Reader

Abstract

This application relates to the field of lighting technology, and more particularly to a method for adjusting the position of a lamp spot, an electronic device, a readable storage medium, and a computer program product. The method obtains target projection angle parameters based on a received lamp spot adjustment command. These target projection angle parameters include projection angle parameters and projection position parameters. A vertical deflection command is obtained based on the projection angle parameters, driving a first motor in the vertical deflection mechanism to cause a first optical lens optically coupled to the light source module to deflect vertically relative to the lamp head. Furthermore, a horizontal deflection command is obtained based on the projection position parameters, driving a second motor in the horizontal rotation mechanism to cause a second optical lens optically coupled to the first optical lens to rotate around the axis of the embedded lamp. This achieves remote, flexible, and precise control of the projected light spot of the embedded lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting technology, and in particular to a method for adjusting the position of a lamp spot, electronic equipment, readable storage medium, and computer program product. Background Technology

[0002] Currently, common ceiling recessed lighting fixtures on the market are mainly divided into two categories: fixed and manually adjustable. Fixed lighting fixtures cannot be adjusted in terms of the direction and range of light after installation, which limits their application scenarios and makes it difficult to adapt to dynamic lighting needs. Although manually adjustable lighting fixtures can change the position of the light spot, they require people to climb to a high place to operate, which poses safety hazards, and the adjustment process is complicated and inefficient.

[0003] In addition, some lamps use a motor to drive the lamp head to rotate to adjust the direction of the light spot, which has a certain electric function. However, the lamp head deflects significantly during adjustment, which makes it easy for dust to accumulate on the part that protrudes from the ceiling and is difficult to clean. Furthermore, the independent control capability of the optical system is not considered, making it difficult to adjust the position of the light spot accurately and independently.

[0004] For example, Chinese patent CN222480404U discloses an adjustable-angle downlight with a speaker. This design, through a connection structure between an adapter unit, a speaker unit, and the downlight unit, allows the downlight unit to be rotated to change the illumination angle, thereby improving the lighting effect. However, this design cannot maintain the lamp's surface flush with the ceiling when adjusting the direction of the light beam.

[0005] Therefore, how to ensure that the lamp head remains facing the same direction while electrically adjusting the direction and angle of the light spot projection has become a key problem that urgently needs to be solved.

[0006] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0007] The main objective of this application is to provide a method for adjusting the position of a lamp spot, an electronic device, a readable storage medium, and a computer program product, which aims to solve the technical problem of how to keep the lamp head facing the same while electrically adjusting the projection direction and angle of the lamp spot.

[0008] To achieve the above objectives, this application proposes a method for adjusting the position of a lamp spot, applied to an embedded lamp, wherein the embedded lamp includes at least a light source module, a vertical deflection mechanism, and a horizontal rotation mechanism; the method includes:

[0009] Based on the received light spot adjustment command, the target projection angle parameters are obtained, including projection angle parameters and projection position parameters;

[0010] Based on the projection angle parameters, a vertical deflection command is obtained, driving the first motor in the vertical deflection mechanism to cause the first optical lens, which is optically coupled to the light source module, to deflect vertically relative to the lamp head; and...

[0011] The horizontal deflection command is obtained based on the projection position parameters, and the second motor in the horizontal rotation mechanism is driven to drive the second optical lens, which is optically matched with the first optical lens, to rotate around the axis of the embedded lamp.

[0012] In one embodiment, the step of obtaining a vertical deflection command based on the projection angle parameter, driving the first motor in the vertical deflection mechanism, and causing the first optical lens optically coupled to the light source module to perform a vertical deflection movement relative to the lamp head includes:

[0013] Obtain the current deflection angle parameters of the light source module;

[0014] The current deflection angle parameter and the projection angle parameter are transmitted to a preset mapping model to obtain the vertical adjustment amount, wherein the vertical adjustment amount includes the vertical rotation amount and vertical direction parameter of the first motor;

[0015] Based on the vertical adjustment amount, a vertical deflection command is generated, controlling the first motor to drive the first optical lens to deflect vertically to the target deflection angle.

[0016] In one embodiment, the step of obtaining a horizontal deflection command based on the projection position parameters, driving the second motor in the horizontal rotation mechanism, and causing the second optical lens, which optically cooperates with the first optical lens, to rotate around the axis of the embedded lamp includes:

[0017] Get the current rotation angle parameters;

[0018] The horizontal adjustment amount is calculated based on the current rotation angle parameter and the projection position parameter, wherein the horizontal adjustment amount includes the horizontal rotation amount of the second motor and the horizontal direction parameter;

[0019] A horizontal rotation command is generated based on the horizontal adjustment amount, and the second motor is controlled to drive the second optical lens to rotate to the target horizontal angle.

[0020] In one embodiment, the lamp spot position adjustment method further includes:

[0021] Based on the current deflection angle parameter, the current rotation angle parameter, the vertical adjustment amount, and the horizontal adjustment amount, the execution order of the vertical deflection command and the horizontal rotation command is determined;

[0022] According to the execution order, corresponding vertical deflection commands and horizontal rotation commands are sent to the first motor and the second motor sequentially or synchronously.

[0023] In one embodiment, the lamp spot position adjustment method further includes:

[0024] When a reset command is received, the first motor is controlled to output positive torque until the first Hall sensor signal is detected; at the same time, the second motor is controlled to output negative torque until the second Hall sensor signal is detected; wherein when the first optical lens and the second optical lens are reset, the target projection angle parameter is zero.

[0025] In one embodiment, after the step of obtaining the target projection angle parameters based on the received spot adjustment command, the method further includes:

[0026] Compare the projection angle parameter with the preset maximum projection angle threshold;

[0027] If the projection angle parameter is greater than the preset maximum projection angle threshold, the projection angle parameter is limited to the preset maximum projection angle threshold, and an alarm is generated.

[0028] When the projection angle parameter is consistent with the preset maximum projection angle threshold, the projection angle parameter is 30 degrees, and the corresponding deflection angle parameter of the light source module is 40 degrees.

[0029] In one embodiment, the embedded luminaire further includes a zoom mechanism, and the luminaire spot position adjustment method further includes:

[0030] The target optical state is determined based on the light spot adjustment command;

[0031] The target zoom voltage is determined based on the target's optical state, projection angle parameters, and projection position parameters.

[0032] A zoom control signal is generated based on the target zoom voltage.

[0033] Based on the zoom control signal, the driving chip of the zoom mechanism is driven to regulate the liquid crystal zoom lens of the zoom mechanism to perform zooming action.

[0034] In addition, to achieve the above objectives, this application also proposes an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the lamp spot position adjustment method described above.

[0035] In addition, to achieve the above objectives, this application also proposes a readable storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the lamp spot position adjustment method described above.

[0036] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the lamp spot position adjustment method described above.

[0037] One or more technical solutions proposed in this application have at least the following technical effects:

[0038] Users can remotely issue light spot adjustment commands to the embedded lights via mobile apps, remote controls, etc., to control the embedded lights to project light spots to designated positions, avoiding the dangers and inefficiencies of manual adjustment, and realizing remote control of the light spot projected by the embedded lights.

[0039] The beam adjustment command drives the first optical lens and the light source module to deflect vertically, adjusting the vertical projection angle of the beam; simultaneously, it drives the second optical lens to rotate horizontally, adjusting the horizontal orientation of the beam. The horizontal rotation of the second optical lens and the vertically deflected first optical lens form a dynamically changing refraction angle, thus precisely controlling the horizontal projection position of the beam without changing the overall orientation of the lamp head, meeting the dynamic lighting needs of different scenarios. By coordinating the vertical and horizontal projection positions of the beam, the beam projection position can be adjusted while keeping the lamp head stationary. This allows the lamp head to be completely embedded in the ceiling or wall without affecting the flexible control of the beam, while avoiding problems such as dust accumulation and difficulty in cleaning caused by exposed lamp heads.

[0040] By generating vertical deflection and horizontal rotation commands based on projection angle and position parameters, two independent optical lens systems (the first and second optical lenses) are controlled to perform movements in different dimensions. This completely decouples the adjustment of vertical deflection and horizontal rotation. It enables independent and decoupled adjustment of the light spot position in the vertical and horizontal directions, improving control precision and flexibility. It allows for precise and independent setting of the vertical landing angle and horizontal rotation angle of the light spot, overcoming the difficulty of achieving precise positioning in traditional linkage mechanisms, and meeting the needs of more complex and precise lighting scenarios. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

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

[0043] Figure 1 This is a schematic diagram of an embodiment of an embedded lamp that applies the lamp spot position adjustment method of this application;

[0044] Figure 2 This is an exploded structural diagram of an embodiment of an embedded lamp that applies the lamp spot position adjustment method of this application;

[0045] Figure 3 This is a schematic diagram of the deflection state structure of an embodiment of an embedded lamp that applies the lamp spot position adjustment method of this application;

[0046] Figure 4 This is a flowchart illustrating the first embodiment of the lamp spot position adjustment method of this application;

[0047] Figure 5 This is a flowchart illustrating an embodiment of the lamp spot position adjustment method of this application;

[0048] Figure 6 This is a flowchart illustrating the second embodiment of the lamp spot position adjustment method of this application;

[0049] Figure 7 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the lamp spot position adjustment method in this application embodiment.

[0050] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0051] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0052] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The lamp spot position adjustment method of this application is applied to recessed lamps. Please refer to [reference needed]. Figures 1 to 3 As shown.

[0054] The embedded luminaire includes at least a light source module 10, a vertical deflection mechanism 20, and a horizontal rotation mechanism 30. The vertical deflection mechanism includes at least a first motor 21, a first transmission gear set 22, and a first optical lens 23. The first motor 21 drives the first optical lens 23 and the light source module 10, optically coupled to the first optical lens 23, to deflect vertically relative to the lamp head via the first transmission gear set 22, thereby adjusting the vertical projection angle of the light spot. The horizontal rotation mechanism 30 includes at least a second motor 31, a second transmission gear set 32, and a second optical lens 33. The second motor 31 drives the second optical lens 33 to rotate around the axis of the embedded luminaire via the second transmission gear set 32. The contact surface between the first and second optical lenses is an inclined plane, and they are coupled to form a variable-angle optical refraction system. When the first optical lens 23 deflects vertically and / or the second optical lens 33 rotates horizontally, the light emitted from the light source module 10 changes angle through the refraction system, achieving a spatial shift of the light spot.

[0055] It should be noted that the execution subject of the method in the various embodiments of the lamp spot position adjustment method of this application can be a lamp spot position adjustment system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device such as a control board set in an embedded lamp that can realize the above functions. This embodiment does not specifically limit it in this way. The following uses the lamp spot position adjustment system as the execution subject as an example to describe this embodiment and the following embodiments.

[0056] Based on this, this application proposes a lamp spot position adjustment method according to the first embodiment, please refer to... Figures 4 to 5 The method for adjusting the position of the lamp spot includes steps S100 to S300:

[0057] Step S100: Based on the received spot adjustment command, obtain the target projection angle parameters, which include projection angle parameters and projection position parameters.

[0058] It should be noted that the light spot adjustment command can be sent by the user through interactive devices such as a mobile terminal APP or an infrared remote control. The light spot adjustment command can include parameters such as the vertical projection angle of the target light spot (e.g., the pitch angle relative to the mounting plane of the lamp) and the horizontal projection position (e.g., the azimuth angle centered on the lamp axis, ranging from 0° to 360°). After receiving the light spot adjustment command, the format of the light spot adjustment command can be validated first. If the command has problems such as missing parameters or incorrect format, an error message is returned to the interactive device. If the format is valid, the target projection angle parameter is extracted and converted into a recognizable numerical form. For example, the angle value is mapped to the number of pulses required for motor control, voltage signal parameters, or the rotation amount corresponding to the gear transmission ratio. At the same time, combined with the current state parameters of the embedded lamp, such as the current deflection angle of the first optical lens and the current horizontal angle of the second optical lens, preliminary adaptation is performed to ensure the accuracy and safety of subsequent adjustment actions.

[0059] In this embodiment, the projection angle parameter in the target projection angle parameter refers to the angle between the desired light spot centerline and the vertical normal of the embedded luminaire. The projection position parameter refers to the azimuth angle of the light spot centerline rotating around the axis of the embedded luminaire in the horizontal direction. This azimuth angle is based on a reference direction of the luminaire mounting plane (such as due north or a preset initial calibration direction), and its value ranges from 0° to 360°. It is used to locate the projection azimuth of the light spot in the horizontal direction. The combination of the projection angle parameter and the projection position parameter can completely define the target projection azimuth of the light spot in three-dimensional space, providing a clear and quantifiable control target for the subsequent coordinated adjustment of the vertical deflection mechanism and the horizontal rotation mechanism.

[0060] Step S200: Obtain a vertical deflection command based on the projection angle parameter, drive the first motor in the vertical deflection mechanism, and drive the first optical lens, which is optically coupled to the light source module, to deflect vertically relative to the lamp head.

[0061] In this embodiment, when obtaining the vertical deflection command, the current deflection angle parameter of the light source module can be obtained first. The current deflection angle parameter refers to the angle between the first optical lens and the vertical normal of the lamp. The current deflection angle parameter can be obtained through encoder feedback of the first motor or detection by an angle sensor. Next, based on the projection angle parameter in the target projection angle parameter, combined with the optical refractive index of the embedded lamp and the lens installation angle, the target vertical angle parameter that the first optical lens needs to achieve is determined. Then, the difference between the current deflection angle parameter and the target vertical angle parameter is calculated to obtain the vertical adjustment amount. This vertical adjustment amount includes the vertical rotation amount of the first motor (such as the number of rotations or pulses) and the vertical direction parameter (such as the rotation direction). Finally, a vertical deflection command containing a PWM control signal is generated according to the vertical adjustment amount and sent to the drive circuit of the first motor to control the first motor to drive the first optical lens to deflect to the target vertical angle through the first transmission gear set, thereby realizing the precise adjustment of the vertical projection angle of the light spot. Furthermore, during the deflection process, the current feedback signal of the first motor can be collected in real time. If an overload current is detected (such as exceeding the preset overload threshold of 1.2A), the deflection action will be immediately suspended and a fault alarm will be issued to protect the first motor and transmission mechanism from damage. After the overload is released, the user can choose to continue the unfinished deflection action or reset to the initial state according to the user's instructions.

[0062] Optionally, step S200 may include steps S210 to S230:

[0063] Step S210: Obtain the current deflection angle parameters of the light source module;

[0064] Step S220: Transmit the current deflection angle parameter and the projection angle parameter to the preset mapping model to obtain the vertical adjustment amount, wherein the vertical adjustment amount includes the vertical rotation amount and vertical direction parameter of the first motor;

[0065] Step S230: Generate a vertical deflection command based on the vertical adjustment amount, and control the first motor to drive the first optical lens to perform a vertical deflection movement to the target deflection angle.

[0066] It should be noted that the preset mapping model can be obtained through joint calibration of optical simulation and mechanical transmission experiments. For example, firstly, a mathematical model of light refraction is established based on the optical system parameters of the embedded lamp (such as the refractive index, thickness, and tilt angle of the first optical lens), and the vertical projection angle of the light spot corresponding to different deflection angles of the first optical lens is calculated; then, combined with the reduction ratio of the first motor and the first transmission gear set (e.g., 1:50, meaning that 50 rotations of the motor correspond to 1 degree deflection of the first optical lens), a mapping relationship between the motor rotation and the lens deflection angle is established; finally, the model is corrected through multiple sets of actual test data (such as the number of input motor rotation pulses, the output lens deflection angle, and the light spot projection angle) to form an accurate preset mapping model. The target deflection angle refers to the vertical deflection angle that the first optical lens and the light source module need to achieve in order to realize the desired light spot projection angle.

[0067] For example, the current deflection angle parameter (e.g., 15 degrees) and the projection angle parameter (e.g., 30 degrees) are input into the preset mapping model, and the target deflection angle corresponding to the projection angle parameter is calculated to be 40 degrees. Then, the difference between the current deflection angle and the target deflection angle is 25 degrees, and the direction is upward. Combined with the reduction ratio, it is calculated that the first motor needs to rotate 1250 pulses in the positive direction.

[0068] In this embodiment, the vertical deflection command includes parameters such as the frequency, duty cycle, and duration of the PWM signal. After receiving the command, the first motor drive circuit outputs the corresponding PWM signal to control the rotation of the first motor.

[0069] Thus, by establishing a precise mapping relationship between the current deflection angle and the target projection angle, the blindness and accumulated errors in the adjustment process are avoided, ensuring that the deflection angle of the first optical lens can accurately match the target projection angle parameters. At the same time, the vertical adjustment amount can be quickly calculated based on the preset mapping model, which can improve the adjustment response speed and make the adjustment of the vertical position of the light spot more real-time and smooth.

[0070] Step S300: Obtain a horizontal deflection command based on the projection position parameters, drive the second motor in the horizontal rotation mechanism, and drive the second optical lens, which is optically matched with the first optical lens, to rotate around the axis of the embedded lamp.

[0071] It should be noted that the projection position parameter refers to the azimuth angle of the light spot on the horizontal plane (when the lamp head is installed on the ceiling parallel to the horizontal plane) relative to the preset reference direction (such as due north or the initial alignment direction when the recessed lamp is installed), and the value ranges from 0° to 360°.

[0072] In this embodiment, when obtaining the horizontal deflection command, the current rotation angle parameters of the second optical lens can be collected first through the encoder feedback of the second motor or the angle sensor integrated into the horizontal rotation mechanism. Then, the target horizontal angle to be reached by the second optical lens is determined by combining the target projection position parameters with the characteristic parameters of the embedded lamp optical refraction system (such as the refractive index and slope angle of the second optical lens). The difference between the current rotation angle parameter and the target horizontal angle is calculated to obtain the horizontal adjustment amount, which includes the horizontal rotation amount of the second motor (such as the number of rotation pulses or rotations) and the rotation direction parameter (clockwise or counterclockwise). Subsequently, a horizontal deflection command containing a PWM control signal is generated and sent to the drive circuit of the second motor to control the second motor to drive the second optical lens to rotate around the lamp axis to the target horizontal angle through the second transmission gear set. Then, the projection position of the light spot in the horizontal direction is adjusted by cooperating with the first optical lens. Furthermore, during horizontal rotation, the operating current of the second motor can be monitored in real time. If the current value exceeds the preset overload threshold (e.g., 1.2A), the rotation action will be stopped immediately and a fault alarm message will be sent to the user interaction device. After the overload is released, the user can choose to continue the adjustment or reset to the initial horizontal angle according to the user's instructions.

[0073] Optionally, step S300 may include steps S310 to S330:

[0074] Step S310: Obtain the current rotation angle parameters;

[0075] Step S320: Calculate the horizontal adjustment amount based on the current rotation angle parameter and the projection position parameter, wherein the horizontal adjustment amount includes the horizontal rotation amount of the second motor and the horizontal direction parameter;

[0076] Step S330: Generate a horizontal rotation command based on the horizontal adjustment amount, and control the second motor to drive the second optical lens to rotate to the target rotation angle.

[0077] It should be noted that the current rotation angle parameter can be collected in real time by the encoder of the second motor, or obtained by detection elements such as Hall sensors installed on the horizontal rotation mechanism. Its value represents the current rotation angle of the second optical lens around the lamp axis. Starting from the preset reference direction (such as the initial zero position when the recessed lamp is installed), the count is accumulated clockwise or counterclockwise.

[0078] When calculating the horizontal adjustment amount, it is necessary to first convert the projection position parameters into the target rotation angle corresponding to the second optical lens based on the optical refraction model of the embedded lamp. For example, according to the inclined plane coupling relationship between the second optical lens and the first optical lens, for every 1° deviation of the horizontal projection direction of the light spot, the angle that the second optical lens needs to rotate is derived from the lens inclined plane angle (e.g., 45°) and refractive index (e.g., 1.5) through the law of refraction. Then, compare the current rotation angle with the target rotation angle. If the absolute value of the difference between the two is greater than 180°, then a shorter adjustment path (clockwise or counterclockwise) is selected to optimize the adjustment efficiency. Subsequently, combined with the reduction ratio of the second motor and the second transmission gear set (e.g., 1:60), the angle difference is converted into the horizontal rotation amount of the second motor (e.g., the number of pulses, each pulse corresponds to a motor rotation of 0.06°) and the rotation direction parameter (clockwise is marked as "+", counterclockwise is marked as "-").

[0079] The horizontal rotation command includes parameters such as the frequency, duty cycle, and duration of the PWM control signal. After receiving the horizontal rotation command, the drive circuit of the second motor drives the second motor to rotate the second optical lens to the target horizontal angle.

[0080] Thus, by collecting the current rotation angle parameters of the second optical lens and combining them with the target projection position parameters for precise calculation, an accurate horizontal adjustment amount is obtained. This ensures that the rotation angle of the second optical lens accurately maps to the horizontal projection position of the target light spot, effectively avoiding adjustment deviations or over-adjustment problems caused by a lack of real-time status feedback. Simultaneously, based on the calculated horizontal adjustment amount, a targeted horizontal rotation command is generated, enabling precise control of the rotation amount and direction of the second motor. This improves the response efficiency and control accuracy of the light spot's horizontal position adjustment, ensuring a more stable and reliable light spot adjustment process for the embedded lighting fixture in the horizontal dimension.

[0081] In the technical solution provided in this embodiment, the user can remotely issue light spot adjustment commands to the embedded lamp via a mobile APP, remote control, etc., to control the embedded lamp to project the light spot to a designated position, avoiding the danger and inefficiency of manual adjustment, and realizing remote control of the light spot projected by the embedded lamp.

[0082] The beam adjustment command drives the first optical lens and the light source module to deflect vertically, adjusting the vertical projection angle of the beam; simultaneously, it drives the second optical lens to rotate horizontally, adjusting the horizontal orientation of the beam. The horizontal rotation of the second optical lens and the vertically deflected first optical lens form a dynamically changing refraction angle, thus precisely controlling the horizontal projection position of the beam without changing the overall orientation of the lamp head, meeting the dynamic lighting needs of different scenarios. By coordinating the vertical and horizontal projection positions of the beam, the beam projection position can be adjusted while keeping the lamp head stationary. This allows the lamp head to be completely embedded in the ceiling or wall without affecting the flexible control of the beam, while avoiding problems such as dust accumulation and difficulty in cleaning caused by exposed lamp heads.

[0083] By generating vertical deflection and horizontal rotation commands based on projection angle and position parameters, two independent optical lens systems (the first and second optical lenses) are controlled to perform movements in different dimensions. This completely decouples the adjustment of vertical deflection and horizontal rotation. It enables independent and decoupled adjustment of the light spot position in the vertical and horizontal directions, improving control precision and flexibility. It allows for precise and independent setting of the vertical landing angle and horizontal rotation angle of the light spot, overcoming the difficulty of achieving precise positioning in traditional linkage mechanisms, and meeting the needs of more complex and precise lighting scenarios.

[0084] As an optional implementation, in order to ensure that mechanical interference and motion conflicts are avoided during multi-dimensional adjustment, the lamp spot position adjustment method may further include steps S410 to S420:

[0085] Step S410: Based on the current deflection angle parameter, the current rotation angle parameter, the vertical adjustment amount, and the horizontal adjustment amount, determine the execution order of the vertical deflection command and the horizontal rotation command;

[0086] Step S420: According to the execution order, send the corresponding vertical deflection command and horizontal rotation command to the first motor and the second motor sequentially or synchronously.

[0087] In this embodiment, when determining the execution order of the vertical deflection command and the horizontal rotation command, dynamic decision-making can be made by combining the interference boundary conditions of the mechanical structure and the adjustment efficiency requirements.

[0088] For example, the motion interference area between the vertical deflection mechanism and the horizontal rotation mechanism can be determined in advance through mechanical simulation. For instance, when the vertical adjustment is between 5° and 10° and the horizontal adjustment is greater than 8°, the horizontal rotation command is executed first to avoid potential intrusion into the mechanical limit area during vertical deflection. The vertical deflection action is then executed after the second optical lens has completed its positioning. Conversely, if the horizontal adjustment is less than or equal to 8° and the vertical adjustment exceeds 10°, the first motor is activated first to execute the vertical deflection command, preventing the second optical lens from being obstructed by the structure during small-angle adjustments. If the absolute values ​​of both the vertical and horizontal adjustment are less than 5°, the vertical deflection and horizontal rotation commands can be sent simultaneously. By controlling the phase difference of the PWM signal outputs of the two motor drive circuits, the movements of the two mechanisms are ensured to be independent, thereby shortening the overall adjustment time.

[0089] In addition, when executing commands sequentially, the position feedback signal of the first / second motor (such as the zero-position pulse output by the encoder) can be monitored in real time to confirm that the vertical / horizontal adjustment is completed before sending the horizontal / vertical rotation command to the second / first motor drive circuit. When executing commands synchronously, the multi-channel PWM output module of the embedded controller outputs independent control signals to the first and second motor drive circuits respectively, while monitoring the current and angle feedback of the two motors. If either motor is overloaded or out of tolerance, all commands are immediately suspended and a fault collaborative handling prompt is sent to the user interaction device.

[0090] By dynamically adjusting the execution sequence, the operational safety of the mechanical structure is ensured, the risk of mechanical interference is avoided, and the adjustment efficiency is taken into account, thereby improving the synergistic efficiency of the dual-axis adjustment and ensuring the precise positioning of the light spot.

[0091] In one feasible embodiment, the lamp spot position adjustment method further includes: when a reset command is received, controlling the first motor to output a positive torque until a first Hall sensor signal is detected; simultaneously, controlling the second motor to output a reverse torque until a second Hall sensor signal is detected; wherein when the first optical lens and the second optical lens are reset, the target projection angle parameter is zero.

[0092] It should be noted that the first Hall sensor is installed at the initial zero position of the vertical deflection mechanism (e.g., at the horizontal reference plane in the vertical direction of the first optical lens). When the first optical lens deflects to this position, the magnetic element on its surface will trigger the first Hall sensor to output a level signal, indicating that the vertical direction reset is complete. The second Hall sensor is set at the position corresponding to the preset reference direction of the horizontal rotation mechanism. When the second optical lens rotates to the initial zero position, it triggers the second Hall sensor to send a feedback signal, completing the horizontal direction reset.

[0093] The first and second optical lenses are restored to their preset initial state by the reset operation. At this time, the vertical projection angle and horizontal azimuth angle of the light spot return to the system's default zero parameters, so as to quickly restore the equipment to a safe initial state after abnormality (such as overload or adjustment error).

[0094] In addition, the motor rotation time can be monitored in real time during the reset process. If the first motor rotates forward for more than a preset timeout threshold (e.g., 10 seconds) and the first Hall sensor signal is not detected, and / or the second motor rotates in reverse for more than the same preset timeout threshold and the second Hall sensor is not triggered, the motor drive power is immediately cut off, and a "reset failed" alarm message is sent to the user interaction device. After the reset is completed, a "reset successful" status message is sent to the user interaction terminal.

[0095] Thus, this embodiment of the application eliminates the cumulative angle error that may occur during long-term use by returning the first optical lens and the second optical lens to a preset initial zero position; at the same time, it removes the optical components from the possible mechanical interference area, avoiding structural stress damage in the non-working state; in addition, after restarting or fault recovery, the embedded lamp can be quickly restored to a stable initial state by resetting to the zero position, ensuring the execution accuracy and reliability of subsequent spot adjustment commands.

[0096] In another feasible implementation, after step S100, the method may further include: comparing the projection angle parameter with a preset maximum projection angle threshold; if the projection angle parameter is greater than the preset maximum projection angle threshold, limiting the projection angle parameter to the preset maximum projection angle threshold, and generating an alarm. Wherein, when the projection angle parameter is consistent with the preset maximum projection angle threshold, the projection angle parameter is 30 degrees, and the corresponding deflection angle parameter of the light source module is 40 degrees.

[0097] In this embodiment, the setting of the preset maximum projection angle threshold takes into account the optical performance limit and mechanical structure safety boundary of the embedded lamp. The optical performance limit is related to the tilt angle of the contact surface of the first optical lens and the second optical lens.

[0098] In one embodiment, the maximum projection angle threshold is 30 degrees, and the corresponding maximum deflection angle of the light source module is 40 degrees. This means that when the projection angle exceeds 30 degrees, the deflection angle between the first optical lens and the light source module will exceed 40 degrees. At this time, the optical refraction path will experience irregular stretching distortion of the light spot shape due to the aberration effect at the lens edge, or a dark corner phenomenon with uneven light intensity distribution, affecting the uniformity of the lighting effect. On the other hand, this deflection angle is close to the mechanical limit position of the vertical deflection mechanism. If the adjustment continues beyond the threshold, it may cause overload of the meshing stress on the tooth surface of the first transmission gear set, accelerate the fatigue wear of the components, and even cause the first motor to stall.

[0099] Optionally, the generated alarm prompts can be fed back through both local and remote channels. At the local level, the red status indicator light on the embedded lighting panel can be controlled to flash continuously at a frequency of 1Hz; at the remote level, a pop-up notification containing "Projection angle exceeds limit, automatically adjusted to the maximum allowable value of 30°" can be pushed through the associated mobile APP, and / or a short beeping prompt can be emitted through the remote control.

[0100] By limiting the projection angle parameters within a safe range, the system prevents the first optical lens from deflecting beyond the mechanical structure's safety limits due to excessive projection angle parameters. This avoids collisions or jamming between the lens and other internal components of the luminaire, thus protecting the integrity of the optical components and transmission mechanism. Furthermore, by generating alarm prompts, the system promptly notifies the user of any parameter exceeding limits, ensuring the recessed luminaire operates safely and stably, extending the equipment's lifespan.

[0101] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 6 The recessed lighting fixture also includes a zoom mechanism 40. The zoom mechanism 40 is disposed on the light-emitting path of the lamp head of the recessed lighting fixture and is used to adjust the size of the light spot. The zoom mechanism 40 includes a liquid crystal zoom lens 41. By applying different voltages to the liquid crystal zoom lens 41, the arrangement state of the liquid crystal molecules is changed, thereby changing the refractive index distribution of the lens, realizing the adjustment of the beam's converging or diverging ability, and thus controlling the size of the light spot. Understandably, when the recessed lighting fixture is installed on the ceiling, the liquid crystal zoom lens 41 is parallel to the ceiling.

[0102] The lamp spot position adjustment method further includes steps S510 to S540:

[0103] Step S510: Determine the target optical state based on the light spot adjustment command;

[0104] Step S520: Determine the target zoom voltage based on the target optical state, projection angle parameters, and projection position parameters;

[0105] Step S530: Generate a zoom control signal based on the target zoom voltage.

[0106] Step S540: Based on the zoom control signal, drive the drive chip of the zoom mechanism to regulate the liquid crystal zoom lens of the zoom mechanism to perform zoom operation.

[0107] It should be noted that the target optical state refers to the focused or flooded light state that the user expects to achieve, which can be a specific light spot size parameter. The zoom function of a liquid crystal zoom lens relies on changes in the intensity of an external electric field, thereby altering its refractive index distribution and achieving continuous adjustment of the focal length. Once the target zoom voltage is determined, a corresponding driving voltage is output to the liquid crystal layer of the liquid crystal zoom lens via a zoom control signal, causing a response in the alignment of the liquid crystal molecules.

[0108] Understandably, this is because the refractive index distribution of a liquid crystal zoom lens directly determines its refractive power (converging or diverging ability) on the incident light beam. When the target optical state requires a smaller spot size, a corresponding voltage is applied to the liquid crystal zoom lens, causing the liquid crystal molecules to align in an orderly manner along the electric field direction. The refractive index in the central region of the lens is higher than that at the edges, creating a refractive effect similar to a convex lens. After convergence, the spot size of the incident light beam projected onto the illuminated surface is reduced. If the target optical state requires a larger spot size, the applied voltage is reduced, the liquid crystal molecules tend to align randomly, the refractive index distribution becomes more uniform, the refractive power weakens, or even exhibits diverging characteristics, and the spot size increases after the light beam is projected.

[0109] In this embodiment, the determination of the target zoom voltage combines projection angle parameters and projection position parameters for distance compensation. Since the spot size is positively correlated with the beam projection distance (the farther the projection distance, the larger the spot), and the target projection angle changes the actual projection distance (at a projection angle θ, the actual projection distance corresponding to the vertical installation height H is H / cosθ), the actual projection distance needs to be calculated based on the projection angle and projection position parameters. Then, combined with the spot size parameter in the target's optical state, the compensated target focal length is derived using a pre-stored "projection distance - spot size - focal length" correlation model.

[0110] The target focal length can be converted into a target zoom voltage by calling a pre-stored voltage-focal length calibration table (which is calibrated through optical testing before leaving the factory and records the optimal driving voltage for different focal lengths). A pulse width modulation (PWM) signal or analog voltage signal matching the target zoom voltage is then generated as a zoom control signal. After processing by the power amplifier circuit of the zoom mechanism drive board, it is applied to the upper and lower electrode layers of the liquid crystal zoom lens. The liquid crystal molecules deflect under the influence of the electric field, changing the refractive index distribution inside the lens. If the target spot needs to be reduced, the driving voltage is increased to make the liquid crystal molecules more ordered, reducing the equivalent focal length (making the beam more focused); if the target spot needs to be enlarged, the driving voltage is decreased to make the liquid crystal molecules more disordered, increasing the equivalent focal length (making the beam more divergent). Ultimately, this ensures that the size of the projected spot matches the target optical state.

[0111] In the technical solution provided in this embodiment, by combining the distance compensation mechanism of projection angle parameters and projection position parameters, the liquid crystal zoom lens can dynamically adapt to the spot size requirements of different projection scenarios, ensuring that the uniformity and clarity of the target spot are maintained regardless of whether the spot is projected near or far, or how the vertical deflection angle changes. Simultaneously, compared to traditional mechanical zoom structures, the liquid crystal zoom mechanism reduces adjustment errors and lifespan losses caused by gear meshing or slide rail wear, lowering maintenance costs. Furthermore, through the coordinated control of the zoom control signal and vertical deflection and horizontal rotation commands, the spot size is simultaneously optimized while adjusting the spot position, further improving the overall response speed and scene adaptability of the lighting system. Through multi-dimensional coordinated adjustment, the embedded luminaire can not only accurately position the spot but also flexibly adjust the spot shape, improving the applicability of the embedded luminaire and enabling it to adapt to diverse and high-precision lighting applications such as key lighting for museum exhibits, atmosphere creation in commercial spaces, and localized lighting in home theaters.

[0112] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the lamp spot position adjustment method in the above embodiments.

[0113] The following is for reference. Figure 7 The diagram illustrates a structural schematic of an electronic device suitable for implementing the embodiments of this application. The electronic devices in the embodiments of this application may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. It may also be an electronic device such as a control board embedded in an embedded lighting fixture capable of performing the aforementioned functions. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0114] like Figure 7As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the diagrams show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.

[0115] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0116] The electronic device provided in this application adopts the lamp spot position adjustment method in the above embodiments. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the lamp spot position adjustment method provided in the above embodiments. Furthermore, the other technical features of the electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0117] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0118] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0119] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the lamp spot position adjustment method in the above embodiments.

[0120] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having 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. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0121] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0122] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: obtain target projection angle parameters based on a received spot adjustment command, the target projection angle parameters including projection angle parameters and projection position parameters; obtain a vertical deflection command based on the projection angle parameters, drive a first motor in the vertical deflection mechanism to drive a first optical lens optically coupled to the light source module to deflect vertically relative to the lamp head; and obtain a horizontal deflection command based on the projection position parameters, drive a second motor in the horizontal rotation mechanism to drive a second optical lens optically coupled to the first optical lens to rotate around the axis of the embedded lamp.

[0123] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0125] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0126] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-described lamp spot position adjustment method. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the lamp spot position adjustment method provided in the above embodiments, and will not be repeated here.

[0127] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the lamp spot position adjustment method described above.

[0128] Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the lamp spot position adjustment method provided in the above embodiments, and will not be repeated here.

[0129] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for adjusting the position of a lamp spot, characterized in that, Applied to recessed lighting fixtures, the recessed lighting fixtures at least include a light source module, a vertical deflection mechanism, and a horizontal rotation mechanism; the method includes: Based on the received light spot adjustment command, the target projection angle parameters are obtained, including projection angle parameters and projection position parameters; Based on the projection angle parameters, a vertical deflection command is obtained, driving the first motor in the vertical deflection mechanism to cause the first optical lens, which is optically coupled to the light source module, to deflect vertically relative to the lamp head; and... The horizontal deflection command is obtained based on the projection position parameters, and the second motor in the horizontal rotation mechanism is driven to drive the second optical lens, which is optically matched with the first optical lens, to rotate around the axis of the embedded lamp.

2. The method for adjusting the position of the lamp spot as described in claim 1, characterized in that, The step of obtaining a vertical deflection command based on the projection angle parameter, driving the first motor in the vertical deflection mechanism, and causing the first optical lens optically coupled to the light source module to deflect vertically relative to the lamp head includes: Obtain the current deflection angle parameters of the light source module; The current deflection angle parameter and the projection angle parameter are transmitted to a preset mapping model to obtain the vertical adjustment amount, wherein the vertical adjustment amount includes the vertical rotation amount and vertical direction parameter of the first motor; Based on the vertical adjustment amount, a vertical deflection command is generated, controlling the first motor to drive the first optical lens to deflect vertically to the target deflection angle.

3. The method for adjusting the position of the lamp spot as described in claim 2, characterized in that, The step of obtaining a horizontal deflection command based on the projection position parameters, driving the second motor in the horizontal rotation mechanism, and causing the second optical lens, which is optically coupled with the first optical lens, to rotate around the axis of the embedded lamp includes: Get the current rotation angle parameters; The horizontal adjustment amount is calculated based on the current rotation angle parameter and the projection position parameter, wherein the horizontal adjustment amount includes the horizontal rotation amount of the second motor and the horizontal direction parameter; A horizontal rotation command is generated based on the horizontal adjustment amount, and the second motor is controlled to drive the second optical lens to rotate to the target horizontal angle.

4. The lamp spot position adjustment method as described in claim 3, characterized in that, The method for adjusting the position of the lamp spot also includes: Based on the current deflection angle parameter, the current rotation angle parameter, the vertical adjustment amount, and the horizontal adjustment amount, the execution order of the vertical deflection command and the horizontal rotation command is determined; According to the execution order, corresponding vertical deflection commands and horizontal rotation commands are sent to the first motor and the second motor sequentially or synchronously.

5. The method for adjusting the position of the lamp spot as described in claim 1, characterized in that, The method for adjusting the position of the lamp spot also includes: When a reset command is received, the first motor is controlled to output positive torque until the first Hall sensor signal is detected; at the same time, the second motor is controlled to output negative torque until the second Hall sensor signal is detected; wherein when the first optical lens and the second optical lens are reset, the target projection angle parameter is zero.

6. The method for adjusting the position of the lamp spot as described in claim 1, characterized in that, After the step of obtaining the target projection angle parameters based on the received spot adjustment command, the method further includes: Compare the projection angle parameter with the preset maximum projection angle threshold; If the projection angle parameter is greater than the preset maximum projection angle threshold, the projection angle parameter is limited to the preset maximum projection angle threshold, and an alarm is generated. When the projection angle parameter is consistent with the preset maximum projection angle threshold, the projection angle parameter is 30 degrees, and the corresponding deflection angle parameter of the light source module is 40 degrees.

7. The method for adjusting the position of the lamp spot as described in claim 1, characterized in that, The embedded luminaire further includes a zoom mechanism, and the method for adjusting the position of the luminaire spot further includes: The target optical state is determined based on the light spot adjustment command; The target zoom voltage is determined based on the target's optical state, projection angle parameters, and projection position parameters. A zoom control signal is generated based on the target zoom voltage. Based on the zoom control signal, the driving chip of the zoom mechanism is driven to regulate the liquid crystal zoom lens of the zoom mechanism to perform zooming action.

8. An electronic device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the lamp spot position adjustment method as described in any one of claims 1 to 7.

9. A readable storage medium, characterized in that, The readable storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the lamp spot position adjustment method as described in any one of claims 1 to 7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the lamp spot position adjustment method as described in any one of claims 1 to 7.