Lamp light spot adjusting method, electronic equipment, readable storage medium and computer program product
By combining the vertical deflection mechanism and the zoom mechanism, the light spot of the ceiling-mounted lamp is precisely adjusted, solving the problems of lamp head orientation deviation and light spot shape deformation, and improving the ease of use and safety of the lamp.
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-05-12
AI Technical Summary
When the position and size of the light spot are adjusted electrically, the lamp head is prone to shifting, which causes the shape of the light spot to be deformed and affects the uniformity of lighting. In addition, manual adjustment poses safety hazards and low efficiency.
It employs a vertical deflection mechanism and a zoom mechanism. The optical lens is vertically deflected by a motor, and the position and size of the light spot are adjusted by a liquid crystal zoom lens. Combined with an angle loss compensation mechanism during the light path transmission process, it ensures that the lamp head orientation remains unchanged.
It achieves precise and coordinated control of the position and size of the light spot, improving ease of use and safety, adapting to the lighting needs of different scenarios, and avoiding the safety hazards of manual operation and the deformation of the light spot shape.
Smart Images

Figure CN122015038A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lighting technology, and in particular to a method for adjusting the light spot of a lamp, electronic equipment, readable storage medium, and computer program product. Background Technology
[0002] Currently, ceiling recessed lighting fixtures on the market are mainly divided into fixed and manually adjustable types. Once fixed lighting fixtures are installed, the direction and range of illumination cannot be changed, limiting their applicability and making it difficult to meet dynamic lighting requirements. Although manually adjustable lighting fixtures allow adjustment of the light spot position, they require manual operation at height, which not only poses safety hazards but is also complex, time-consuming, and inefficient.
[0003] Furthermore, some electrically adjustable recessed lighting fixtures change the direction of the light spot by rotating the lamp head with a motor. While these fixtures offer electric control, the lamp head tends to shift noticeably during adjustment, causing dust to accumulate on the protruding part of the ceiling and making it difficult to clean. Simultaneously, the optical system lacks independence, failing to achieve precise and independent control of the light spot position. Additionally, the shift in projection angle can cause distortion of the light spot shape, disrupting the uniformity of illumination.
[0004] Chinese patent CN217441551U discloses a downlight and lighting system, which uses an angle adjustment component and a liquid crystal zoom lens module to freely adjust the size of the light spot. However, although this design can adjust the size of the light spot, it cannot adaptively adjust according to changes in the projection angle.
[0005] Therefore, how to ensure that the lamp head orientation remains constant while electrically adjusting the position and size of the light spot is a 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 light spot of a lamp, an electronic device, a readable storage medium, and a computer program product, which aims to solve the technical problem of how to electrically adjust the position and size of the light spot while keeping the lamp head orientation unchanged.
[0008] To achieve the above objectives, this application proposes a method for adjusting the light spot size of a lamp, applied to an embedded lamp. The embedded lamp includes at least a light source module, a vertical deflection mechanism, and a zoom mechanism. The method includes: acquiring target projection angle parameters and target optical state based on a received light spot adjustment command, wherein the target projection angle parameters include at least the angle of the target projection angle; driving a motor in the vertical deflection mechanism according to the target projection angle parameters, thereby causing an optical lens optically coupled to the light source module to deflect vertically relative to the lamp head; and driving a liquid crystal zoom lens in the zoom mechanism to change its optical state according to the target optical state, thereby adjusting the light spot size.
[0009] In one embodiment, the step of driving the motor in the vertical deflection mechanism according to the target projection angle parameter, thereby causing the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head, includes:
[0010] Obtain the current deflection parameters, and determine the deflection parameters to be executed based on the target projection angle parameters and the current deflection parameters;
[0011] The motor drive signal is generated according to the deflection parameters and transmitted to the motor to control the rotation direction and amount of the motor output shaft, so as to drive the optical lens and the light source module to deflect synchronously to the target deflection angle, so that the light path is emitted from the light source module and refracted by the optical lens, and then passes through the light guide and the liquid crystal zoom lens to be projected along the target projection angle, wherein the angle of the target deflection angle is greater than or equal to the angle of the target projection angle.
[0012] In one embodiment, the step of driving the liquid crystal zoom lens of the zoom mechanism to change its optical state according to the target optical state includes: acquiring the current optical state of the liquid crystal zoom lens; determining target focusing parameters based on the target optical state, the current optical state, and the target projection angle parameter; generating a corresponding voltage control signal according to the target focusing parameters, and transmitting the voltage control signal to the driving plate of the liquid crystal zoom lens to control the liquid crystal molecule arrangement state of the liquid crystal zoom lens to the target optical state.
[0013] In one embodiment, before the step of obtaining the current deflection parameter and determining the deflection parameter to be executed based on the target projection angle parameter and the current deflection parameter, the method further includes: comparing the angle of the target projection angle with a vertical deflection threshold; if the angle of the target projection angle is greater than the vertical deflection threshold, limiting the angle of the target projection angle to the vertical deflection threshold and generating an alarm. In one embodiment, the vertical deflection threshold is 30 degrees; when the angle of the target projection angle is equal to the vertical deflection threshold, the corresponding target deflection angle is 40 degrees.
[0014] In one embodiment, the step of determining the target focusing parameters based on the target optical state, the current optical state, and the target projection angle parameters includes: determining the focusing range according to the angle of the target projection angle; determining whether the target optical state is within the focusing range; if not, taking the boundary value of the focusing range as the target optical state.
[0015] In one embodiment, the lamp spot adjustment method further includes: obtaining target illumination intensity based on the spot adjustment command; determining drive current parameters of the light source module according to the target illumination intensity, the target projection angle parameter, and the target optical state; and generating a corresponding current control signal according to the drive current parameters to control the output power of the light source module.
[0016] 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 adjustment method described above.
[0017] 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 adjustment method described above.
[0018] 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 adjustment method described above.
[0019] One or more technical solutions proposed in this application have at least the following technical effects: By receiving a light spot adjustment command from the user terminal and parsing the target projection angle parameter and the target optical state, wherein the target projection angle parameter includes at least the target projection angle value, the motor in the vertical deflection mechanism is driven according to the target projection angle parameter. This drives the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head. Combined with the angle loss compensation mechanism in the optical path transmission process, this ensures that the light spot can be accurately offset to the position corresponding to the target projection angle. At the same time, the liquid crystal zoom lens in the zoom mechanism is driven according to the target optical state, and the optical state is changed by adjusting its voltage, thereby achieving continuous adjustment of the light spot size. The embodiments of this application achieve precise coordinated control of the light spot position and size, and keep the lamp head orientation unchanged while electrically adjusting the light spot position and size, which can flexibly adapt to the lighting needs of different scenarios. Users can remotely send adjustment commands through terminal devices such as mobile APP and remote control, without the need for manual operation of the lamp on site, significantly improving the convenience and safety of use. Attached Figure Description
[0020] 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.
[0021] 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.
[0022] Figure 1 This is a schematic diagram of the structure of an embodiment of an embedded lamp that applies the lamp spot adjustment method of this application; Figure 2 This is an exploded structural diagram of an embodiment of an embedded lamp that applies the lamp spot adjustment method of this application; Figure 3 This is another exploded structural diagram of an embodiment of an embedded lamp that applies the lamp spot adjustment method of this application; Figure 4 This is a flowchart illustrating the first embodiment of the lamp spot adjustment method of this application; Figure 5 This is a schematic diagram of a sub-process of an embodiment of the lamp spot adjustment method of this application; Figure 6 This is a flowchart illustrating the second embodiment of the lamp spot adjustment method of this application; Figure 7 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the lamp spot adjustment method in this application embodiment.
[0023] 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
[0024] 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.
[0025] 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.
[0026] The light spot adjustment method of this application is applied to recessed lighting fixtures. Please refer to [reference needed]. Figures 1 to 3 As shown.
[0027] The embedded luminaire includes at least a light source module 10, a vertical deflection mechanism 20, a zoom mechanism 30, and a light guide 40. The light source module 10 provides the illumination source and is located inside the lamp body of the embedded luminaire. It includes LED chips, such as COB (Chip on Board) light sources, for generating the emitted light beam. The vertical deflection mechanism 20 is connected to the light source module 10 and is used to adjust the tilt angle of the COB light source in the vertical deflection direction.
[0028] In this embodiment, the vertical deflection mechanism 20 is disposed on the light emission path of the light source module 10. The vertical deflection mechanism 20 includes a motor and an optical lens 21 driven by the motor and rotatable about a center point. The side of the optical lens 21 away from the light source module 10 is movably connected to the light guide 40. Understandably, the aforementioned center point is located on the axis of the light guide 40. The motor can be a stepper motor. The optical lens 21 is optically coupled to the light source module 10 and directly receives the emitted light beam from the light source module 10. By driving the optical lens 21 to deflect relative to the lamp head, zoom mechanism 30, and light guide 40 of the embedded lamp, the projection angle of the light path can be changed, thereby achieving the offset of the light spot in the vertical direction.
[0029] The zoom mechanism 30 is positioned along the light path of the lamp head in the recessed luminaire and is used to adjust the size of the light spot. The zoom mechanism 30 includes a liquid crystal zoom lens 31. By applying different voltages to the liquid crystal zoom lens 31, the arrangement of liquid crystal molecules is changed, thereby altering the refractive index distribution of the lens and adjusting the focusing or diverging ability of the light beam, thus controlling the size of the light spot. Understandably, when the recessed luminaire is installed on the ceiling, the liquid crystal zoom lens 31 is parallel to the ceiling.
[0030] The light-inlet side of the light guide 40 is movably connected to the light-outlet side of the optical lens 21, for example, through a flexible tube, ensuring a sealed optical path while allowing the optical lens 21 to swing vertically. The inner wall of the flexible tube connecting the light guide and the optical lens 21 is coated with a highly reflective material to reduce energy loss during light transmission. The light-outlet side of the light guide 40 is optically coupled to the light-inlet side of the liquid crystal zoom lens 31.
[0031] The embedded luminaire may also include a control module, which includes a processor, memory, and drive circuitry. The control module is electrically connected to the motor and the drive board of the liquid crystal zoom lens 31 to execute the luminaire beam adjustment method of this application. The control module may also integrate or connect to a wireless communication unit, such as a Wi-Fi, Bluetooth, or Zigbee module, with its antenna independently arranged to avoid being shielded by the luminaire's structure, for receiving beam adjustment commands from a terminal, such as a mobile app or remote control.
[0032] It should be noted that the execution subject of the method in various embodiments of the lamp spot adjustment method of this application can be a lamp spot 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 adjustment system as the execution subject as an example to describe this embodiment and the following embodiments.
[0033] Based on this, this application provides a method for adjusting the light spot of a lamp. Please refer to... Figures 4 to 5 The lamp spot adjustment method of this application includes steps S100 to S300:
[0034] Step S100: Based on the received spot adjustment command, obtain the target projection angle parameters and the target optical state.
[0035] It should be noted that the beam adjustment command is sent by the user terminal, such as a mobile app. The beam adjustment command includes at least the target projection angle parameter and the target optical state. The target projection angle parameter refers to the angle between the desired beam centerline and the vertical normal of the recessed luminaire; the target optical state refers to the desired beam size, beam shape, and / or focus parameters.
[0036] In this embodiment, after the user sets the desired beam projection angle and size via a user terminal and clicks "confirm," the user terminal packages the user-set parameters into a beam adjustment command and sends it to the embedded luminaire via wireless communication. Upon receiving the beam adjustment command, the embedded luminaire decodes it based on a preset communication protocol, such as JSON format, and extracts the target projection angle parameter and the target optical state F_target. The target projection angle parameter includes at least the target projection angle α_target. This provides a clear input target and execution basis for subsequent vertical deflection angle and focal length adjustments.
[0037] For example, assume that the angle between the center line of the light spot corresponding to the target projection angle and the vertical direction of the embedded lamp is 30 degrees; and the target optical state corresponds to a light spot diameter of 50 centimeters.
[0038] Optionally, the target optical state can be a mode code, which needs to be converted into specific physical parameters for controlling the liquid crystal zoom lens, such as the target focal length and / or drive voltage level, by looking up a pre-stored mapping table.
[0039] Step S200: Drive the motor in the vertical deflection mechanism according to the target projection angle parameter, so as to drive the optical lens optically coupled to the light source module to deflect in the vertical direction relative to the lamp head.
[0040] It should be noted that the target projection angle α_target and the current deflection angle θ_current of the optical lens can be obtained first. Then, α_target and θ_current are passed to a pre-stored optical model. Understandably, the pre-stored optical model can be a mapping function or a lookup table describing the nonlinear relationship between the vertical deflection angle θ of the optical lens and the final beam projection angle α. Based on this pre-stored optical model, the target deflection angle θ_target required to achieve α_target is obtained. Then, based on the difference between θ_target and θ_current, the rotation direction and amount of the motor output shaft are determined, thereby generating the corresponding motor drive signal.
[0041] In one feasible implementation, step S200 may include steps S210 to S220:
[0042] Step S210: Obtain the current deflection parameters, and determine the execution deflection parameters based on the target projection angle parameters and the current deflection parameters;
[0043] Step S220: Generate a motor drive signal based on the executed deflection value, and transmit the motor drive signal to the motor to control the rotation direction and amount of the motor output shaft, so as to drive the optical lens and the light source module to deflect synchronously to the target deflection angle, so that the light path is emitted from the light source module and refracted by the optical lens, and then passes through the light guide and the liquid crystal zoom lens to be projected along the target projection angle, wherein the angle of the target deflection angle is greater than or equal to the angle of the target projection angle.
[0044] It should be noted that the current deflection parameter refers to the actual deflection angle θ_current of the optical lens, which can be obtained in real time through the built-in angle sensor, or calculated based on the initial system calibration value and the number of motor rotation steps. The deflection parameter can be determined based on the difference between θ_target and θ_current, thereby generating a corresponding motor drive signal for precise control. For example, when the difference is positive, the motor is controlled to rotate forward; when the difference is negative, the motor is controlled to rotate in the reverse direction.
[0045] Since the deflection of the optical lens indirectly adjusts the beam projection angle by changing the direction of the light path incident on the light guide, the target deflection angle is greater than or equal to the target projection angle. When the target deflection angle is zero, the target deflection angle is equal to the target projection angle. The optical lens rotates around the center point located on the axis of the light guide, and its deflection angle θ_target directly affects the direction of the beam emitted to the light guide. After entering the light guide, the beam is transmitted to the zoom mechanism along the extension direction of the light guide and finally projected to form a beam spot. When the target deflection angle is not zero, the axis of the optical lens and the axis of the light guide are not on the same straight line. At this time, the beam forms a certain angle when it is incident on the light guide. After reflection or refraction by the inner wall of the light guide, the projection angle of the emitted beam will be less than the target deflection angle. By considering that the target projection angle is less than the target deflection angle, the angle loss during the light path transmission process can be compensated, ensuring that the beam spot can be accurately offset to the desired position.
[0046] Optionally, if the embedded lighting fixture only supports one swing direction, such as forward / backward or left / right swing, the current deflection parameters, target projection angle parameters, and executed deflection parameters can only include angle magnitude information. To achieve multiple swing directions for the embedded lighting fixture, the current deflection parameters, target projection angle parameters, and executed deflection parameters must also include the position information of the deflection angle. For example, the position information can be a vector direction or projection defined based on a plane coordinate system parallel to the liquid crystal zoom lens, used to determine the deflection direction of the optical lens.
[0047] For example, assuming the current deflection angle θ_current in the current deflection parameters is 15° and the corresponding coordinates of the projection are (3,4), and the target projection angle parameter requires the spot projection direction to correspond to the projection coordinates (0,5) and the target projection angle α_target to be 15°, then executing the deflection parameters requires calculating the angle difference and direction adjustment amount to determine the motor drive signal. Through vector calculation, the direction correction angle required to change the projection coordinates from (3,4) to (0,5) is found to be −30°; and through the pre-stored optical model, based on θ_current and α_target, the target deflection angle θ_target is calculated to be 18°, thus obtaining an angle correction angle of +3°. Then, the direction correction angle -30° and the angle correction angle +3° are used as the execution deflection parameters to generate the motor drive signal, driving the motor to point the optical lens axis towards the new projection direction.
[0048] Step S300: Drive the liquid crystal zoom lens of the zoom mechanism to change the optical state according to the target optical state, and adjust the spot size.
[0049] It should be noted that the optical state adjustment of a liquid crystal zoom lens depends on changes in the intensity of an applied electric field, thereby altering its refractive index distribution and achieving continuous adjustment of the focal length. Once the target optical state is determined, the system outputs a corresponding driving voltage to the liquid crystal layer, causing a response in its molecular alignment.
[0050] 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.
[0051] Optionally, step S300 may include steps S310 to S330:
[0052] Step S310: Obtain the current optical state of the liquid crystal zoom lens;
[0053] Step S320: Determine the target focusing parameters based on the target optical state, the current optical state, and the target projection angle parameters;
[0054] Step S330: Generate a corresponding voltage control signal according to the target focusing parameters, and transmit the voltage control signal to the driving plate of the liquid crystal zoom lens to control the liquid crystal molecule arrangement state of the liquid crystal zoom lens to the target optical state.
[0055] It should be noted that the current optical state can be acquired in real time through the feedback interface of the liquid crystal zoom lens driver board. The current optical state includes, but is not limited to, the currently applied driving voltage value, the corresponding equivalent focal length, and the spot diameter parameters. Alternatively, the most recent optical state record can be directly read as the current optical state.
[0056] Determining the target focusing parameters requires distance compensation in conjunction with the target projection angle parameters. 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 target projection angle. Then, combining this with the spot size parameter in the target's optical state, and using a pre-stored "projection distance - spot size - focal length" correlation model, the compensated target focal length is derived. Finally, the target focal length is mapped to the driving voltage range corresponding to the liquid crystal zoom lens, serving as the target focusing parameter.
[0057] In this embodiment, the target focal length can be converted into a precise driving voltage value 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 corresponding to different focal lengths). Subsequently, a pulse width modulation (PWM) signal or analog voltage signal matching the voltage value is generated, processed by the power amplifier circuit of the driver board, and applied to the upper and lower electrode layers of the liquid crystal zoom lens. The liquid crystal molecules are deflected under the action of the electric field, changing the refractive index distribution inside the lens. If the target light spot needs to be reduced, the driving voltage is increased to make the liquid crystal molecules more orderly, and the equivalent focal length is reduced (the beam is more focused). If the target light spot needs to be enlarged, the driving voltage is decreased to make the liquid crystal molecules more disordered, and the equivalent focal length is increased (the beam is more divergent). Finally, it is ensured that the size of the projected light spot is consistent with the target optical state.
[0058] In the technical solution provided in this embodiment, a beam adjustment command is received from the user terminal, and the target projection angle parameter and target optical state are parsed from it. The target projection angle parameter includes at least the target projection angle value. Subsequently, the motor in the vertical deflection mechanism is driven according to the target projection angle parameter, causing the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head. Combined with the angle loss compensation mechanism in the optical path transmission process, it is ensured that the beam can be accurately offset to the position corresponding to the target projection angle. At the same time, the liquid crystal zoom lens in the zoom mechanism is driven according to the target optical state, and the optical state is changed by adjusting its voltage, thereby realizing continuous adjustment of the beam size. In this process, a projection distance compensation and closed-loop feedback calibration mechanism are further introduced to effectively improve the accuracy of beam size adjustment. This method achieves precise coordinated control of beam position and size, and keeps the lamp head orientation unchanged while electrically adjusting the beam position and size, which can flexibly adapt to the lighting needs of different scenarios. Users can remotely send adjustment commands through mobile APP, remote control and other terminal devices, without the need for manual operation of the lamp on site, which significantly improves the convenience and safety of use.
[0059] As an optional implementation, to prevent the motor-driven optical lens from deflecting too much, causing the light emitted from the optical lens to be unable to enter the effective light-passing aperture of the liquid crystal zoom lens, thus resulting in truncation of the light spot or uneven brightness, steps S211 to S222 may be included before step S210:
[0060] Step S211: Compare the angle of the target projection angle with the vertical deflection threshold;
[0061] Step S222: If the angle of the target projection angle is greater than the vertical deflection threshold, the angle of the target projection angle is limited to the vertical deflection threshold, and an alarm is generated.
[0062] Specifically, the vertical deflection threshold is 30 degrees; when the angle of the target projection angle is equal to the vertical deflection threshold, the corresponding target deflection angle is 40 degrees.
[0063] It should be noted that the vertical deflection threshold is a safety angle upper limit determined during the design phase based on the maximum mechanical deflection range of the optical lens, the aperture of the light guide, and the effective imaging area of the liquid crystal zoom lens. It can be calibrated through optical simulation of the beam transmission path or actual installation testing of beam coverage. For example, if the maximum mechanical deflection angle of the optical lens is 45°, combined with the refractive loss of the internal optical path of the light guide and the effective light transmission diameter limitation of the liquid crystal zoom lens, the vertical deflection threshold can be set to 30°. The corresponding mechanical deflection angle of the optical lens, i.e., the target deflection angle, is 40°. This ensures that even at this threshold angle, the beam can still completely enter the effective imaging area of the liquid crystal zoom lens, avoiding problems such as edge truncation of the light spot, uneven brightness, or dark corners in some areas. The generated alarm prompts can be fed back to the user terminal in real time via the wireless communication unit. For example, on the mobile APP, a text prompt box containing "The target projection angle exceeds the device's safe adjustment range and has been automatically adjusted to the maximum safe angle of 30°" will pop up. In addition, it can also trigger indicator light flashing (such as a red light flashing three times consecutively) or emit a short buzzer alarm sound to remind the user.
[0064] Understandably, if the target projection angle is less than or equal to the vertical deflection threshold, the subsequent deflection control process is executed directly without triggering an alarm mechanism. At this time, the system determines that the command is within the safe operating range, and the optical lens will rotate precisely according to the target deflection angle to ensure that the light beam completely enters the effective light transmission area of the liquid crystal zoom lens, maintaining the integrity of the light spot shape and the uniformity of the brightness distribution.
[0065] Thus, this embodiment of the application compares the target projection angle with the vertical deflection threshold in real time to identify and limit deflection requests exceeding the safe range. This effectively avoids the problem of the light beam not fully covering the effective light-transmitting area of the liquid crystal zoom lens due to excessive optical lens deflection, and even avoids mechanical interference leading to mechanical damage or drive motor overload. This ensures the integrity and uniformity of the light spot while extending the equipment's lifespan and improving system stability and reliability. Simultaneously, by providing alarm information to the user terminal, users can clearly understand the reason for the adjustment limitation, improving equipment safety. This active protection mechanism not only extends the lifespan of the motor and optical components in the vertical deflection mechanism but also ensures the stable operation of the embedded lighting fixture under various adjustment scenarios.
[0066] Furthermore, to ensure that the optical state adjustment of the liquid crystal zoom lens is always within the effective working range and to avoid adjustment failure or hardware damage due to the target optical state exceeding the physical performance limit of the lens, step S320 may include steps S321 to S323:
[0067] Step S321: Determine the focusing range based on the angle of the target projection angle;
[0068] Step S322: Determine whether the optical state of the target is within the focusing range;
[0069] Step S323: If not, take the boundary value of the focusing range as the target optical state.
[0070] By combining the actual optical path transmission characteristics corresponding to the target projection angle, the effective boundary of the spot size adjustment is dynamically constrained, ensuring that the liquid crystal zoom lens can stably output a spot shape that conforms to physical laws at different projection angles. For example, when the target projection angle is 30°, the refraction loss of the beam in the light guide increases, and the effective refractive power range of the liquid crystal zoom lens will be narrowed accordingly. For example, the focusing range can be limited to a spot diameter of 5cm to 20cm. If the target spot diameter set by the user is 25cm, which exceeds the upper limit of this range, it will be adjusted to 20cm, and a prompt will be sent to the user terminal stating "The target spot size exceeds the effective adjustment range at the current projection angle and has been adjusted to the maximum safe value." This achieves both avoiding performance degradation or permanent damage to the liquid crystal layer caused by over-driving of the zoom mechanism and maximizing the satisfaction of the user's spot adjustment needs within the safe range, thus improving the robustness and reliability of zoom adjustment.
[0071] 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 lamp spot adjustment method further includes steps S410 to S430:
[0072] Step S410: Based on the light spot adjustment command, obtain the target illumination intensity;
[0073] Step S420: Determine the driving current parameters of the light source module based on the target illumination, the target projection angle parameters, and the target optical state;
[0074] Step S430: Generate a corresponding current regulation signal based on the driving current parameters to control the output power of the light source module.
[0075] It should be noted that target illumination refers to the illuminance value (unit: lux) that the user expects the illuminated area to reach. It is directly related to the output luminous flux of the light source module, and the magnitude of the luminous flux is determined by the driving current. Since the spot size (controlled by the target optical state) and the projection angle (controlled by the target projection angle parameter) affect the actual illuminance distribution of the illuminated area, under the same luminous flux, the smaller the spot area, the higher the area illuminance. Increasing the projection angle leads to increased beam divergence, which reduces the area illuminance. Therefore, the combined effect of these two factors must be considered when determining the driving current parameters.
[0076] For example, assuming the target illumination is 500 lux, the target spot diameter is 10 cm (corresponding to an area of approximately 78.5 cm²), the target projection angle θ_target = 15°, the light guide's transmission loss coefficient is 0.85, and the light source module's photoelectric conversion efficiency is 100 lm / A (100 lumens of luminous flux per ampere of current). According to the illuminance calculation formula: Illuminance = (luminous flux × transmission loss coefficient) / (spot area × cosθ_target), the required luminous flux can be derived as (500 lux × 78.5 cm² × cos15°) / 0.85 ≈ 4523 lm, resulting in a driving current of approximately 45.2 A. If the light source module's rated maximum current is 50 A, this current is within a safe range; if the target illumination is too high, causing the calculated current to exceed the rated value, the system will limit the driving current to 50 A and provide a prompt to the user terminal stating "The target illumination exceeds the device's maximum output range; it has been adjusted to maximum brightness." In addition, brightness compensation curves corresponding to different projection angles can be pre-stored to dynamically correct the driving current parameters, ensuring that the illuminance of the illuminated area remains stable near the target value when the projection angle changes.
[0077] This application provides an electronic device, including: 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 adjustment method in the above embodiments.
[0078] The following is for reference. Figure 7The 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.
[0079] like Figure 7 As 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.
[0080] 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.
[0081] The electronic device provided in this application employs the lamp spot adjustment method described 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 adjustment method provided in the above embodiments, and 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.
[0082] 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.
[0083] 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.
[0084] This application provides a readable storage medium, which is a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the lamp spot adjustment method in the above embodiments.
[0085] 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.
[0086] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0087] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: acquire target projection angle parameters and target optical state based on a received spot adjustment command, wherein the target projection angle parameters include at least the angle of the target projection angle; drive the motor in the vertical deflection mechanism according to the target projection angle parameters, thereby causing the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head; and drive the liquid crystal zoom lens of the zoom mechanism to change its optical state according to the target optical state, thereby adjusting the spot size.
[0088] 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).
[0089] 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.
[0090] 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.
[0091] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., a computer program) for executing the above-described lamp spot 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 adjustment method provided in the above embodiments, and will not be repeated here.
[0092] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the lamp spot adjustment method described above.
[0093] Compared with the prior art, the computer program product provided in this application has the same beneficial effects as the lamp spot adjustment method provided in the above embodiments, and will not be described in detail here.
[0094] 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 light spot of a lamp, 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 zoom mechanism; the method includes: Based on the received spot adjustment command, the target projection angle parameters and the target optical state are obtained, wherein the target projection angle parameters include at least the angle of the target projection angle; The motor in the vertical deflection mechanism is driven according to the target projection angle parameter, causing the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head; and, The liquid crystal zoom lens of the zoom mechanism is driven to change its optical state according to the target optical state, thereby adjusting the size of the light spot.
2. The lamp spot adjustment method as described in claim 1, characterized in that, The step of driving the motor in the vertical deflection mechanism according to the target projection angle parameter, thereby causing the optical lens optically coupled to the light source module to deflect vertically relative to the lamp head, includes: Obtain the current deflection parameters, and determine the deflection parameters to be executed based on the target projection angle parameters and the current deflection parameters; The motor drive signal is generated according to the deflection parameters and transmitted to the motor to control the rotation direction and amount of the motor output shaft, so as to drive the optical lens and the light source module to deflect synchronously to the target deflection angle, so that the light path is emitted from the light source module and refracted by the optical lens, and then passes through the light guide and the liquid crystal zoom lens to be projected along the target projection angle, wherein the angle of the target deflection angle is greater than or equal to the angle of the target projection angle.
3. The lamp spot adjustment method as described in claim 2, characterized in that, The step of driving the liquid crystal zoom lens of the zoom mechanism to change its optical state according to the target optical state includes: Obtain the current optical state of the liquid crystal zoom lens; Based on the target optical state, the current optical state, and the target projection angle parameters, determine the target focusing parameters; A corresponding voltage control signal is generated based on the target focusing parameters, and the voltage control signal is transmitted to the driving plate of the liquid crystal zoom lens to adjust the liquid crystal molecule arrangement state of the liquid crystal zoom lens to the target optical state.
4. The lamp spot adjustment method as described in claim 2, characterized in that, Before the step of obtaining the current deflection parameters and determining the deflection parameters to be executed based on the target projection angle parameters and the current deflection parameters, the method further includes: Compare the angle of the target projection angle with the vertical deflection threshold; If the angle of the target projection angle is greater than the vertical deflection threshold, the angle of the target projection angle is limited to the vertical deflection threshold, and an alarm is generated.
5. The lamp spot adjustment method as described in claim 4, characterized in that, The vertical deflection threshold is 30 degrees; when the target projection angle is equal to the vertical deflection threshold, the corresponding target deflection angle is 40 degrees.
6. The lamp spot adjustment method as described in claim 3, characterized in that, The step of determining the target focusing parameters based on the target optical state, the current optical state, and the target projection angle parameters includes: The focusing range is determined based on the angle of the target projection angle; Determine whether the optical state of the target is within the focusing range; If not, the boundary value of the focusing range shall be taken as the target optical state.
7. The lamp spot adjustment method as described in claim 3, characterized in that, The method for adjusting the light spot of the lamp also includes: Based on the light spot adjustment command, the target illumination intensity is obtained; The driving current parameters of the light source module are determined based on the target illumination intensity, the target projection angle parameters, and the target optical state. Based on the driving current parameters, a corresponding current regulation signal is generated to control the output power of the light source module.
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 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, and when the computer program is executed by a processor, it implements the steps of the lamp spot 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 adjustment method as described in any one of claims 1 to 7.