Bicycle lamp control method and system, intelligent terminal and storage medium

By using the rotation of the bicycle handlebars and sensing ambient light intensity and vehicle speed, the illumination angle and mode of the bicycle lights are dynamically adjusted, solving the problem of blind spots when turning and improving riding safety and comfort.

CN121106545APending Publication Date: 2025-12-12NINGBO XINGMAN SPORTS EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511392401.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Blind spots caused by delayed headlight illumination when a bicycle is turning can affect riding safety.

Method used

By responding to the rotation of the bicycle handlebars to obtain the steering angle, the illumination angle of the headlight assembly is adjusted, and the lighting mode, including flashing mode and constant light mode, is dynamically adjusted in combination with ambient light intensity and vehicle speed to optimize headlight control.

Benefits of technology

It improves the visibility and safety of bicycles in complex lighting conditions, reduces the manual operation burden on riders, and enhances lighting efficiency and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121106545A_ABST
    Figure CN121106545A_ABST
Patent Text Reader

Abstract

The invention relates to a bicycle lamp control method and system, an intelligent terminal and a storage medium, and relates to the technical field of bicycle lamp control, and the method comprises the following steps: responding to a rotation operation of a bicycle handlebar, and obtaining a steering angle of the bicycle handlebar; generating an irradiation angle of a vehicle lamp assembly according to the steering angle, wherein the vehicle lamp assembly comprises a left handle lamp and a right handle lamp; acquiring ambient light intensity; under the condition that the ambient light intensity is larger than a first light intensity threshold value, the lighting mode of the vehicle lamp assembly is set to be a flickering mode; under the condition that the environment light intensity is not larger than the first light intensity threshold value, the lighting mode of the vehicle lamp assembly is set to be a long-lighting mode; and the vehicle lamp assembly is controlled to work according to the illumination angle and the illumination mode. The bicycle lamp has the effect of improving the lighting effect of the bicycle lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of bicycle light control technology, and in particular to a bicycle light control method, system, smart terminal and storage medium. Background Technology

[0002] Bicycles are a convenient means of transportation. To ensure safety when riding bicycles at night, lights are usually installed on them to provide illumination.

[0003] The technology involves installing lights directly in front of the bicycle. When the ambient light intensity is detected to be lower than a preset level, the lights will automatically turn on to illuminate the front of the bicycle.

[0004] Regarding the aforementioned technologies, when a bicycle turns, the time required for the bicycle to turn in the desired direction causes a delay in illuminating the road after the turn, which interferes with the rider's experience. Summary of the Invention

[0005] To improve the lighting effect of bicycle lights, this application provides a control method, system, smart terminal, and storage medium for bicycle lights.

[0006] Firstly, this application provides a method for controlling bicycle lights, employing the following technical solution: A method for controlling bicycle lights includes: In response to the rotation of the bicycle handlebars, the steering angle of the bicycle handlebars is obtained; The illumination angle of the headlight assembly is generated based on the steering angle, and the headlight assembly includes a left handlebar light and a right handlebar light; Obtain ambient light intensity; When the ambient light intensity is greater than a first light intensity threshold, the lighting mode of the vehicle headlight assembly is set to a flashing mode; When the ambient light intensity is not greater than the first light intensity threshold, the lighting mode of the vehicle headlight assembly is set to always-on mode. The vehicle headlight assembly is controlled to operate according to the illumination angle and the lighting mode.

[0007] By adopting the above technical solution, the steering angle is obtained in response to the rotation of the bicycle handlebars, and the illumination angle of the light assembly is generated based on the steering angle. This allows the illumination direction of the left and right handlebar lights to automatically adjust with the steering of the bicycle handlebars, thereby providing more accurate lighting coverage when turning, avoiding blind spots, and improving riding safety. Simultaneously, by acquiring the ambient light intensity and setting the lighting mode to flashing mode when the ambient light intensity is above a first light intensity threshold, and to constant-on mode when it is below the first light intensity threshold, the lights can intelligently switch modes according to ambient light conditions. In sufficient light, flashing enhances the warning effect, while constant-on provides stable illumination in insufficient light, effectively improving the visibility and safety of the bicycle in complex lighting environments. This method integrates dual control of steering angle and ambient light intensity, realizing the automation and intelligence of bicycle lighting, reducing the rider's manual operation burden, and improving the riding experience.

[0008] Optionally, a first ambient light intensity and a second ambient light intensity are extracted from the ambient light intensity. The first ambient light intensity is obtained by a photosensitive sensor located at the left end of the bicycle handlebars, and the second ambient light intensity is obtained by a photosensitive sensor located at the right end of the bicycle handlebars. Get real-time vehicle speed; When the real-time vehicle speed is greater than a preset vehicle speed, the smaller value between the first ambient light intensity and the second ambient light intensity is determined to obtain the smaller ambient light intensity; the target handlebar light corresponding to the smaller ambient light intensity is determined; a first angle is generated based on the real-time vehicle speed; and the target handlebar light is controlled to illuminate according to the first angle. When the real-time vehicle speed is not greater than the preset vehicle speed, a second angle is generated based on the real-time vehicle speed; the headlight assembly is then controlled to illuminate the vehicle according to the second angle.

[0009] By employing the above technical solution, the first and second ambient light intensities obtained from the left and right photosensitive sensors are extracted from the ambient light intensity, and the real-time vehicle speed is acquired, further optimizing the headlight control. When the real-time vehicle speed is greater than the preset speed, the target handlebar light corresponding to the lower ambient light intensity is identified, and a first angle is generated based on the real-time vehicle speed to control the target handlebar light's illumination. This allows the headlight to prioritize illuminating the side with weaker ambient light intensity during high-speed riding, enhancing illumination and warning of potential obstacles and improving driving safety. When the real-time vehicle speed is not greater than the preset speed, a second angle is generated based on the real-time vehicle speed to control the illumination of the entire headlight assembly, providing uniform illumination at low speeds, adapting to urban or congested road conditions. By combining the differences in vehicle speed and ambient light intensity, dynamic adjustment of the headlight illumination is achieved, improving lighting efficiency and adaptability to different riding scenarios.

[0010] Optionally, the intensity variation of the ambient light intensity can be obtained; If the ambient light intensity is less than the second light intensity threshold when the light intensity changes by increasing over time, then the lighting mode is set to a flashing mode. If the ambient light intensity is not less than the second light intensity threshold, then the lighting mode is set to always-on mode; If the light intensity decreases over time, the lighting mode is set to a constant-on mode.

[0011] By employing the above technical solution, the lighting mode settings are further refined by acquiring data on ambient light intensity variations. When the light intensity increases over time, a flashing or constant-on mode is set based on a comparison between the ambient light intensity and a second light intensity threshold. This allows the headlights to cope with gradually brightening environments, avoiding energy waste or insufficient visibility caused by premature mode switching. When the light intensity decreases over time, a constant-on mode is directly set to ensure continuous illumination when light weakens, guaranteeing riding safety. By considering the temporal trend of light intensity changes, this method makes lighting mode switching smoother and more intelligent, reducing interference from frequent mode changes and improving the reliability and environmental adaptability of the headlight system.

[0012] Optionally, the tilt angle of the bicycle handlebars can be obtained; When the tilt angle is greater than a preset angle, a high handle light and a low handle light are determined from the left handle light and the right handle light, wherein the horizontal height of the high handle light is greater than the horizontal height of the low handle light; Set the lighting mode of the high-position handle light to flashing mode; Rotate the low-position handle light so that the low-position lighting direction points towards the vehicle seat; Set the lighting mode of the low-position handle light to always-on mode.

[0013] By employing the aforementioned technical solution, the tilt angle of the bicycle handlebars is acquired, and when the tilt angle exceeds a preset angle, the high-position handlebar light and the low-position handlebar light are distinguished to further optimize lighting control. At large tilt angles (such as uphill or downhill), the high-position handlebar light is set to a flashing mode to enhance warning effectiveness and improve the bicycle's visibility on inclined surfaces. Simultaneously, the low-position handlebar light is rotated to point its low-level illumination towards the saddle and provides a constant-on mode, offering stable localized lighting for the rider and preventing safety hazards caused by darkness in the saddle area. This method ensures that the lighting adaptively adjusts when the bicycle is tilted, meeting both warning needs and providing necessary localized lighting, thus improving safety and comfort when riding on complex terrain.

[0014] Optionally, the ambient light intensity at the high position corresponding to the high-position handle light can be obtained; In response to the detection of increased ambient light intensity at the high position, the working status of the high-position handle light is detected; When the working state indicates normal operation, the high-position handle light is controlled to rotate circumferentially along its high-position lighting direction. During the rotation of the high-position handle light, the lighting mode of the high-position handle light is set to flashing mode; If the high-position handle light is not detected to be off within a preset time period, the lighting mode of the low-position handle light will be set to flashing mode.

[0015] By adopting the above technical solution, the responsiveness of the vehicle lighting system is further enhanced by acquiring the ambient light intensity corresponding to the high-position handlebar light and detecting its working status. When the ambient light intensity increases, the working status of the high-position handlebar light is detected. During normal operation, its illumination direction is controlled to rotate circumferentially and set to flashing mode. This helps to improve the warning effect through dynamic flashing in sudden strong light environments (such as oncoming headlights). If the high-position handlebar light is not detected to be off within a preset time, the low-position handlebar light is set to flashing mode, forming a dual warning mechanism to ensure that even if the high-position light fails, the low-position light can still provide backup warning. This method improves the sensitivity and reliability of the vehicle lighting system to environmental changes, enhancing the safety of riding at night or in low-light environments.

[0016] Optionally, when the working state of the low-position handle light indicates that it is not working, the high-position lighting direction of the high-position handle light is adjusted to point towards the vehicle seat; In response to detecting that the ambient light intensity is greater than a third light intensity threshold, the light source is obtained; Based on the light source, adjust the direction of the high-level lighting to point towards the light source; In response to the detection that the ambient light intensity continues to increase and the increase duration reaches a preset maximum value, the high-position handle light's high-position illumination direction is adjusted to point towards the vehicle seat.

[0017] By adopting the above technical solution, the lighting efficiency is further optimized by adjusting the direction of the high-position handlebar light when the low-position handlebar light is not in operation and adjusting the lighting according to the light source. When the low-position handlebar light is not in operation, the high-position handlebar light's high-position lighting direction is adjusted to point towards the seat, ensuring that the seat area is always illuminated and avoiding local darkness. In response to ambient light intensity exceeding a third light intensity threshold, the light source is obtained and the high-position lighting direction is adjusted to point towards the light source, which helps to cope with strong light interference (such as vehicle headlights) and reduce glare through directional lighting. When the ambient light intensity continues to increase and reaches its maximum duration, the high-position lighting direction is adjusted back to point towards the seat, avoiding energy waste caused by excessive adjustment. This method achieves intelligent adjustment of the lighting direction, improves lighting targeting and energy utilization efficiency, and enhances riding comfort.

[0018] Optionally, the operating mode of the vehicle lighting assembly during a historical time period can be obtained; Obtain the current time and the corresponding future time; Within the historical time period, determine the historical moment corresponding to the future moment; Based on the described working mode and the described historical time, determine the target working mode; The operation of the vehicle lighting assembly is adjusted according to the target operating mode.

[0019] By employing the aforementioned technical solution, the operating modes of the vehicle's lighting components are acquired over historical periods and combined with current and future data to predict and adjust the lighting operation. Based on the operating modes of historical moments corresponding to future moments, a target operating mode is determined, and the lighting components are adjusted accordingly. This allows the lighting system to learn the rider's habitual patterns (such as daily commuting routes), automatically predict lighting needs, and achieve personalized control. For example, it can switch modes in advance in frequently used tunnels or nighttime sections, reducing manual intervention. Driven by historical data, the lighting control is more intelligent and energy-efficient, avoiding unnecessary mode switching, extending battery life, and improving riding convenience and safety.

[0020] Secondly, this application provides a control system for a bicycle light, which adopts the following technical solution: A control system for bicycle lights, comprising: The acquisition module is used to acquire rotation operation and ambient light intensity; A memory for storing the program for the control method of the bicycle lights; The processor and the program in the memory can be loaded and executed by the processor to implement the control method of the bicycle light.

[0021] By adopting the above technical solution, the steering angle is obtained in response to the rotation of the bicycle handlebars, and the illumination angle of the light assembly is generated based on the steering angle. This allows the illumination direction of the left and right handlebar lights to automatically adjust with the steering of the bicycle handlebars, thereby providing more accurate lighting coverage when turning, avoiding blind spots, and improving riding safety. Simultaneously, by acquiring the ambient light intensity and setting the lighting mode to flashing mode when the ambient light intensity is above a first light intensity threshold, and to constant-on mode when it is below the first light intensity threshold, the lights can intelligently switch modes according to ambient light conditions. In sufficient light, flashing enhances the warning effect, while constant-on provides stable illumination in insufficient light, effectively improving the visibility and safety of the bicycle in complex lighting environments. This method integrates dual control of steering angle and ambient light intensity, realizing the automation and intelligence of bicycle lighting, reducing the rider's manual operation burden, and improving the riding experience.

[0022] Thirdly, this application provides a smart terminal, which adopts the following technical solution: A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the method described in any of the above-mentioned embodiments.

[0023] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, which facilitates improving the lighting effect of bicycle lights, and adopts the following technical solution: A computer-readable storage medium storing a computer program that can be loaded by a processor and executed any of the above-described methods for controlling bicycle lights.

[0024] In summary, this application includes at least one of the following beneficial technical effects: 1. By acquiring the steering angle in response to the rotation of the bicycle handlebars and generating the illumination angle of the headlight assembly based on the steering angle, the illumination direction of the left and right handlebar lights can be automatically adjusted according to the steering of the bicycle handlebars. This provides more accurate lighting coverage when turning, avoids blind spots, and improves riding safety. Simultaneously, by acquiring the ambient light intensity and setting the lighting mode to flashing mode when the ambient light intensity is above a first light intensity threshold and to constant-on mode when it is below the first light intensity threshold, the headlights can intelligently switch modes according to ambient light conditions. In sufficient light, flashing enhances the warning effect, while constant-on provides stable illumination in insufficient light, effectively improving the visibility and safety of the bicycle in complex lighting environments. This method integrates dual control of steering angle and ambient light intensity, realizing the automation and intelligence of bicycle headlight lighting, reducing the rider's manual operation burden, and improving the riding experience. 2. By extracting the first and second ambient light intensities obtained from the left and right photosensitive sensors, and acquiring the real-time vehicle speed, the headlight control is further optimized. When the real-time vehicle speed is greater than the preset speed, the target handlebar light corresponding to the lower ambient light intensity is identified, and a first angle is generated based on the real-time vehicle speed to control the target handlebar light's illumination. This allows the headlight to prioritize illuminating the side with weaker ambient light intensity during high-speed riding, enhancing illumination and warning of potential obstacles and improving driving safety. When the real-time vehicle speed is not greater than the preset speed, a second angle is generated based on the real-time vehicle speed to control the illumination of the entire headlight assembly, providing uniform illumination at low speeds, adapting to urban or congested road conditions. By combining the differences in vehicle speed and ambient light intensity, dynamic adjustment of the headlight illumination is achieved, improving lighting efficiency and adaptability to different riding scenarios. 3. By acquiring data on ambient light intensity variations, the lighting mode settings can be further refined. When the light intensity increases over time, a flashing or constant-on mode is set based on a comparison between the ambient light intensity and a second light intensity threshold. This allows the headlights to adapt to gradually brightening environments, avoiding energy waste or insufficient visibility caused by premature mode switching. When the light intensity decreases over time, a constant-on mode is directly set to ensure continuous illumination even when light levels are low, guaranteeing riding safety. By considering the temporal trend of light intensity changes, this method makes lighting mode switching smoother and more intelligent, reducing interference from frequent mode changes and improving the reliability and environmental adaptability of the headlight system. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating a method for controlling a bicycle light according to an embodiment of this application.

[0026] Figure 2 This is a schematic flowchart of a bicycle light illumination method based on vehicle speed provided in an embodiment of this application.

[0027] Figure 3 This is a schematic flowchart of a bicycle lamp lighting method based on light intensity variation provided in an embodiment of this application.

[0028] Figure 4 This is a flowchart illustrating a bicycle light control method based on tilt state provided in an embodiment of this application.

[0029] Figure 5 This is a flowchart illustrating a second method for controlling bicycle lights based on tilt state, provided in an embodiment of this application.

[0030] Figure 6 This is a flowchart illustrating a third method for controlling bicycle lights based on tilt state, as provided in an embodiment of this application.

[0031] Figure 7 This is a flowchart illustrating a pre-operation method for a vehicle lighting assembly provided in an embodiment of this application.

[0032] Figure 8 This is a schematic diagram of the structure of a bicycle light control system provided in an embodiment of this application. Detailed Implementation

[0033] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figure 1 To be continued Figure 8 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.

[0034] This application discloses a method for controlling bicycle lights. (Refer to...) Figure 1 The method includes: Step S101: In response to the rotation operation of the bicycle handlebars, obtain the steering angle of the bicycle handlebars.

[0035] Turning refers to the operation of turning the bicycle handlebars. The handlebars are horizontal bars or specially shaped rods located at the front of the bicycle, used by the rider to control direction, support the body, and mount various control components. Optionally, turning operations include left-turning and right-turning operations. A left-turn operation controls the bicycle to turn left, and a right-turning operation controls the bicycle to turn right.

[0036] Steering angle refers to the angle through which the bicycle handlebars are turned. For example, if the steering angle is 0, it means that the bicycle handlebars are not being turned and the bicycle is moving in a straight line. If the steering angle is greater than 0, it means that the bicycle handlebars are being turned to the right. If the steering angle is less than 0, it means that the bicycle handlebars are being turned to the left.

[0037] Furthermore, the rotation angle of most bicycle handlebars is limited; for example, the rotation angle range is [-60°, 60°].

[0038] An angle sensor is also installed inside the bicycle handlebars to measure the rotation angle of the handlebars.

[0039] Step S102: Generate the illumination angle of the headlight assembly based on the steering angle. The headlight assembly includes a left handlebar light and a right handlebar light.

[0040] The lighting components can be lamps, flashlights, etc. The left handlebar light can be located at the far left end of the left handlebar or on the left brake lever. Similarly, the right handlebar light can be located at the far right end of the right handlebar or on the right brake lever.

[0041] The illumination angle refers to the horizontal angle through which the headlight assembly rotates on the horizontal plane. For example, the illumination angle refers to the headlight assembly rotating 20° to the right on the horizontal plane. The illumination angle includes the left and right illumination angles of the left handlebar light. Since the headlight assembly itself is on the handlebars, and the handlebars have already rotated a certain angle, a specific frame of reference is defined, and the illumination angle refers to the angle of rotation of the headlight assembly relative to the handlebars.

[0042] Optionally, let the steering angle be α. For the left handlebar light, when the steering angle is positive, the illumination angle β1 = k1(α1-α) + b1, where α1 is the maximum critical angle, b1 is a preset angle, and k1 is a preset positive number, for example, α1 is 20 degrees, k1 is 0.35, and b1 is 5 degrees. When the steering angle is negative, the illumination angle β1 = -k1(α2-α) + b1, where α2 is the minimum critical angle, for example, α2 is -20 degrees. On the other hand, for the right handlebar light, when the steering angle is positive, the illumination angle β2 = -k1(α1-α) - b1. When the steering angle is negative, the illumination angle β2 = -k1(α2-α) - b1.

[0043] Furthermore, if the rotation angle is greater than the maximum critical angle or less than the minimum critical angle, the irradiation angle is set to 0.

[0044] In practice, bicycle handlebars inevitably vibrate during riding. To reduce the impact of this vibration on the light assembly, the illumination angle is set to 0 when the rotation angle is less than the maximum trigger angle and greater than the minimum trigger angle. Optionally, the maximum trigger angle is 5 degrees and the minimum trigger angle is -5 degrees. Therefore, the above formula is only used for calculation when the rotation angle falls within the range [-20 degrees, -5°] or the range [5°, 20°]; otherwise, the illumination angle is set to 0.

[0045] During a bicycle ride, the user observes the road conditions before turning. However, in low-light conditions, this can make it difficult for the user to determine the road conditions in time, potentially affecting their riding safety. Therefore, the illumination angle set in this step can provide some illumination to the road after the turn, allowing the user to obtain road condition information.

[0046] Step S103: Obtain ambient light intensity.

[0047] Ambient light intensity refers to the light intensity of the external environment in which the bicycle is located.

[0048] Optionally, a photosensor is installed on the bicycle handlebars, which can detect the ambient light intensity. For example, the photosensor is positioned at the front of the bicycle handlebars.

[0049] It should be noted that multiple photosensors can be set. In this case, the ambient light intensity is the average of the readings from all the photosensors.

[0050] Step S104: When the ambient light intensity is greater than the first light intensity threshold, set the lighting mode of the vehicle headlight assembly to flashing mode.

[0051] The first light intensity threshold is a preset empirical value, and relevant personnel can adjust the specific value of the first light intensity threshold according to actual needs. For example, the range of the first light intensity threshold is 120 Lux to 200 Lux.

[0052] The flashing mode refers to the headlight assembly emitting light at a preset frequency, causing the light emitted by the headlight assembly to produce a flashing effect.

[0053] If the ambient light intensity exceeds the first light intensity threshold, it is assumed that the bicycle is being illuminated by high beams. In this case, the lighting mode of the bicycle light assembly needs to be set to flashing mode to remind the target vehicle to turn off its high beams.

[0054] Step S105: When the ambient light intensity is not greater than the first light intensity threshold, set the lighting mode of the vehicle headlight assembly to constant light mode.

[0055] The flashing mode refers to the headlight assembly emitting light continuously.

[0056] If the ambient light intensity is no greater than the first light intensity threshold, it is assumed that the bicycle is riding normally on the road, and the lighting mode of the bicycle light assembly is set to the constant-on mode to provide continuous and stable lighting.

[0057] Step S106: Control the operation of the vehicle headlight assembly according to the illumination angle and lighting mode.

[0058] In summary, by acquiring the steering angle in response to the rotation of the bicycle handlebars and generating the illumination angle of the headlight assembly based on this angle, the illumination direction of the left and right handlebar lights can automatically adjust with the steering of the bicycle handlebars. This provides more accurate lighting coverage when turning, avoids blind spots, and improves riding safety. Simultaneously, by acquiring the ambient light intensity and setting the lighting mode to flashing mode when the ambient light intensity is above a first light intensity threshold and to constant light mode when it is below the first light intensity threshold, the headlights can intelligently switch modes according to ambient light conditions. In sufficient light, flashing enhances the warning effect, while constant light provides stable illumination in insufficient light, effectively improving the visibility and safety of the bicycle in complex lighting environments. This method integrates dual control of steering angle and ambient light intensity, achieving automation and intelligence in headlight illumination, reducing the rider's manual operation burden, and improving the riding experience.

[0059] This application discloses a bicycle light illumination method based on vehicle speed. (Refer to...) Figure 2 The method includes: Step S201: Extract the first ambient light intensity and the second ambient light intensity from the ambient light intensity. The first ambient light intensity is obtained by a photosensitive sensor located at the left end of the bicycle handlebars, and the second ambient light intensity is obtained by a photosensitive sensor located at the right end of the bicycle handlebars.

[0060] Optionally, multiple photosensitive sensors can be installed on the left end of the bicycle handlebars, and the first ambient light intensity is the average value of the photosensitive sensor readings on the left end of the bicycle handlebars.

[0061] Optionally, multiple photosensitive sensors can be installed on the right end of the bicycle handlebars, and the second ambient light intensity is the average value of the photosensitive sensor readings on the right end of the bicycle handlebars.

[0062] Step S202: Obtain real-time vehicle speed.

[0063] Real-time speed refers to the speed at which a bicycle is moving.

[0064] For example, the rotational speed of the bicycle wheels is obtained. Based on the rotational speed and the circumference of the wheels, the real-time speed is calculated.

[0065] Step S203: When the real-time vehicle speed is greater than the preset vehicle speed, determine the smaller value between the first ambient light intensity and the second ambient light intensity to obtain the smaller ambient light intensity value.

[0066] The preset speed is a pre-defined empirical value, and technicians can adjust the specific value of the preset speed according to actual needs. For example, the preset speed range is 20km / h to 25km / h.

[0067] The smaller ambient light intensity value is the smaller of the first ambient light intensity and the second ambient light intensity.

[0068] Step S204: Determine the target handle light corresponding to the smaller ambient light intensity.

[0069] If the minimum ambient light intensity is the first ambient light intensity, then the target handle light is the left handle light; If the minimum ambient light intensity is the first ambient light intensity, then the target handle light is the right handle light.

[0070] Step S205: Generate the first angle based on the real-time vehicle speed.

[0071] The first angle refers to the angle through which the target's handle light's illumination direction rotates in the vertical plane. The first angle can also be considered as the angle between the target's handle light's illumination direction and the horizontal plane.

[0072] Optionally, a first angle corresponding to the real-time vehicle speed is determined from a preset angle database, wherein the first angle and the real-time vehicle speed are negatively correlated. That is, the higher the real-time vehicle speed, the smaller the first angle, and the farther the target handlebar light can illuminate.

[0073] Step S206: Control the target to illuminate the handle light at the first angle.

[0074] When controlling the target handlebar light to illuminate at the first angle, since the ambient light intensity on one side of the target handlebar light is relatively low, it is necessary to control the target handlebar light separately to enhance the illumination and warning of potential obstacles and improve driving safety.

[0075] Step S207: If the real-time vehicle speed is not greater than the preset vehicle speed, generate a second angle based on the real-time vehicle speed.

[0076] The second angle refers to the angle through which the illumination direction of the headlight assembly rotates in the vertical plane. The second angle can also be considered as the angle between the illumination direction of the headlight assembly and the horizontal plane.

[0077] The second angle is generated in a similar way to the first angle; the second angle corresponding to the real-time vehicle speed can be determined directly from a preset angle database.

[0078] Step S208: Control the headlight assembly to illuminate at the second angle.

[0079] Optionally, the left and right handlebar lights can be controlled to illuminate at a second angle.

[0080] By employing the above technical solution, the first and second ambient light intensities obtained from the left and right photosensitive sensors are extracted from the ambient light intensity, and the real-time vehicle speed is acquired, further optimizing the headlight control. When the real-time vehicle speed is greater than the preset speed, the target handlebar light corresponding to the lower ambient light intensity is identified, and a first angle is generated based on the real-time vehicle speed to control the target handlebar light's illumination. This allows the headlight to prioritize illuminating the side with weaker ambient light intensity during high-speed riding, enhancing illumination and warning of potential obstacles and improving driving safety. When the real-time vehicle speed is not greater than the preset speed, a second angle is generated based on the real-time vehicle speed to control the illumination of the entire headlight assembly, providing uniform illumination at low speeds, adapting to urban or congested road conditions. By combining the differences in vehicle speed and ambient light intensity, dynamic adjustment of the headlight illumination is achieved, improving lighting efficiency and adaptability to different riding scenarios.

[0081] This application discloses a bicycle lamp illumination method based on light intensity changes. (Refer to...) Figure 3 The method includes: Step S301: Obtain the changes in ambient light intensity.

[0082] The light intensity variation is used to describe how ambient light intensity changes over time. Optionally, the light intensity variation can be a curve showing the change of ambient light intensity over time, or an array of ambient light intensities sorted chronologically.

[0083] Step S302: If the ambient light intensity is less than the second light intensity threshold when the light intensity changes with time, the lighting mode is set to flashing mode.

[0084] The second light intensity threshold is a preset empirical value, which can be adjusted by technicians according to actual needs. For example, the range of the second light intensity threshold is 80 Lux to 150 Lux.

[0085] When the light intensity increases over time, it indicates that the bicycle is approaching the light source. At this time, there may be pedestrians or drivers near the light source. Therefore, this step will put the bicycle headlight assembly into flashing mode to alert pedestrians and drivers near the light source.

[0086] Step S303: If the ambient light intensity is not less than the second light intensity threshold, then set the lighting mode to always-on mode.

[0087] Once the ambient light intensity is detected to be no less than the second light intensity threshold, it indicates that the bicycle has entered the illumination range of the light source, and therefore, the headlight assembly no longer needs to flash.

[0088] Step S304: If the light intensity decreases over time, the lighting mode is set to constant light mode.

[0089] When the light intensity decreases over time, it indicates that the bicycle is moving away from the light source. Therefore, the headlight assembly needs stable and continuous illumination, so the lighting mode is set to always-on mode.

[0090] By employing the above technical solution, the lighting mode settings are further refined by acquiring data on ambient light intensity variations. When the light intensity increases over time, a flashing or constant-on mode is set based on a comparison between the ambient light intensity and a second light intensity threshold. This allows the headlights to cope with gradually brightening environments, avoiding energy waste or insufficient visibility caused by premature mode switching. When the light intensity decreases over time, a constant-on mode is directly set to ensure continuous illumination when light weakens, guaranteeing riding safety. By considering the temporal trend of light intensity changes, this method makes lighting mode switching smoother and more intelligent, reducing interference from frequent mode changes and improving the reliability and environmental adaptability of the headlight system.

[0091] This application discloses a method for controlling bicycle lights based on tilt status. (Refer to...) Figure 4 The method includes: Step S401: Obtain the tilt angle of the bicycle handlebars.

[0092] The tilt angle refers to the angle at which the bicycle handlebars tilt upwards relative to a reference horizontal plane.

[0093] Optionally, an accelerometer or gyroscope can be installed inside the bicycle handlebars to obtain the tilt angle.

[0094] Step S402: When the tilt angle is greater than the preset angle, determine the high handle light and the low handle light from the left handle light and the right handle light, and the horizontal height of the high handle light is greater than the horizontal height of the low handle light.

[0095] The preset angle is a pre-defined empirical value, which technicians can adjust according to actual conditions. For example, the preset angle is 30 degrees.

[0096] For example, when the bicycle is leaning to the right at a certain angle, the left handlebar light is used as the high-position handlebar light, and the right handlebar light is used as the low-position handlebar light. When the bicycle is leaning to the left at a certain angle, the right handlebar light is used as the high-position handlebar light, and the left handlebar light is used as the low-position handlebar light.

[0097] Step S403: Set the lighting mode of the high-position handle light to flashing mode.

[0098] If the tilt angle is greater than the preset angle, it indicates that the bicycle may have tipped over. Therefore, setting the high handlebar light to a flashing mode can make the high handlebar more noticeable to other pedestrians so that the user can get help in time.

[0099] Step S404: Rotate the low-position handle light to point it toward the seat.

[0100] Step S405: Set the lighting mode of the low-position handle light to always-on mode.

[0101] Rotate the low-position handlebar light so that the low-position lighting direction is towards the seat, and set the low-position handlebar light lighting mode to constant on mode so that the low-position handlebar light can illuminate the user and help the user determine the current situation.

[0102] By employing the aforementioned technical solution, the tilt angle of the bicycle handlebars is acquired, and when the tilt angle exceeds a preset angle, the high-position handlebar light and the low-position handlebar light are distinguished to further optimize lighting control. At large tilt angles (such as uphill or downhill), the high-position handlebar light is set to a flashing mode to enhance warning effectiveness and improve the bicycle's visibility on inclined surfaces. Simultaneously, the low-position handlebar light is rotated to point its low-level illumination towards the saddle and provides a constant-on mode, offering stable localized lighting for the rider and preventing safety hazards caused by darkness in the saddle area. This method ensures that the lighting adaptively adjusts when the bicycle is tilted, meeting both warning needs and providing necessary localized lighting, thus improving safety and comfort when riding on complex terrain.

[0103] This application discloses a second method for controlling bicycle lights based on tilt status. (Refer to...) Figure 5 The method includes: Step S501: Obtain the ambient light intensity of the high-position handle light.

[0104] Optionally, when the high-position handlebar light is the left handlebar light, the high-position ambient light intensity is the first ambient light intensity. When the high-position handlebar light is the right handlebar light, the high-position ambient light intensity is the second ambient light intensity.

[0105] Step S502: In response to the detection of increased ambient light intensity at the high position, the working status of the high position handle light is detected.

[0106] Optionally, the operating status includes at least one of the following: output power of the high-position handle light, actual brightness, whether it is lit or not, and whether it is powered on.

[0107] Step S503: When the working state indicates normal operation, control the high-position handle light to rotate along the circumference to adjust the high-position lighting direction.

[0108] When the working status indicates normal operation, the high-position handlebar light can be controlled to rotate in a circle, increasing the probability that people around can see the bicycle and provide assistance to the user.

[0109] Step S504: During the rotation of the high-position handle light, set the lighting mode of the high-position handle light to flashing mode.

[0110] Setting the high-position handle light to a flashing mode during rotation helps people in the vicinity to spot the user.

[0111] Step S505: If the high-position handle light is not detected to be off within the preset time, the lighting mode of the low-position handle light is set to flashing mode.

[0112] The preset duration is a pre-defined empirical value, which technicians can adjust according to actual needs. For example, the preset duration is 30 minutes.

[0113] If the high-position handle light is not detected to be off within a preset time period, the low-position handle light will be set to flashing mode to further increase the probability of people in the vicinity discovering the user.

[0114] By adopting the above technical solution, the responsiveness of the vehicle lighting system is further enhanced by acquiring the ambient light intensity corresponding to the high-position handlebar light and detecting its working status. When the ambient light intensity increases, the working status of the high-position handlebar light is detected. During normal operation, its illumination direction is controlled to rotate circumferentially and set to flashing mode. This helps to improve the warning effect through dynamic flashing in sudden strong light environments (such as oncoming headlights). If the high-position handlebar light is not detected to be off within a preset time, the low-position handlebar light is set to flashing mode, forming a dual warning mechanism to ensure that even if the high-position light fails, the low-position light can still provide backup warning. This method improves the sensitivity and reliability of the vehicle lighting system to environmental changes, enhancing the safety of riding at night or in low-light environments.

[0115] This application discloses a third method for controlling bicycle lights based on tilt status. (Refer to...) Figure 6 The method includes: Step S601: When the low-position handlebar light is inactive, adjust the high-position handlebar light's high-position illumination direction to point towards the vehicle seat.

[0116] When the low-position handlebar light is not in operation, the high-position handlebar light takes over its function, illuminating the direction pointing towards the seat.

[0117] Step S602: In response to detecting that the ambient light intensity is greater than the third light intensity threshold, obtain the light source.

[0118] The third light intensity threshold is a preset empirical value, and technicians can adjust the specific value of the third light intensity threshold according to actual needs.

[0119] The light source refers to the location of the light source. For example, the light source is determined by the location of a photosensor that detects ambient light intensity exceeding a third light intensity threshold.

[0120] Step S603: Adjust the direction of the high-level lighting to point towards the light source, based on the light source.

[0121] After detecting that the ambient light intensity is greater than the third light intensity threshold, it can be assumed that other people are approaching the user. Therefore, the high-level lighting direction is adjusted to point towards the light source to attract the attention of other people.

[0122] Step S604: In response to the detection that the ambient light intensity continues to increase and the increase duration reaches a preset maximum value, the high-position handle light's high-position illumination direction is adjusted to point towards the vehicle seat.

[0123] The maximum duration is a preset empirical value, which technicians can adjust according to actual conditions. For example, the maximum duration is 2 minutes.

[0124] If the ambient light intensity is detected to be continuously increasing and the duration of the increase reaches the preset maximum value, it indicates that the high-mounted handle light has attracted the attention of other people. Therefore, the high-mounted handle light's high-position illumination direction is adjusted to point towards the vehicle seat so that other people can observe the user's current situation.

[0125] By adopting the above technical solution, the lighting efficiency is further optimized by adjusting the direction of the high-position handlebar light when the low-position handlebar light is not in operation and adjusting the lighting according to the light source. When the low-position handlebar light is not in operation, the high-position handlebar light's high-position lighting direction is adjusted to point towards the seat, ensuring that the seat area is always illuminated and avoiding local darkness. In response to ambient light intensity exceeding a third light intensity threshold, the light source is obtained and the high-position lighting direction is adjusted to point towards the light source, which helps to cope with strong light interference (such as vehicle headlights) and reduce glare through directional lighting. When the ambient light intensity continues to increase and reaches its maximum duration, the high-position lighting direction is adjusted back to point towards the seat, avoiding energy waste caused by excessive adjustment. This method achieves intelligent adjustment of the lighting direction, improves lighting targeting and energy utilization efficiency, and enhances riding comfort.

[0126] This application discloses a pre-operation method for a vehicle lighting assembly. (Refer to...) Figure 7 The method includes: Step S701: Obtain the operating mode of the vehicle headlight assembly during a historical period.

[0127] The operating mode is used to indicate how the operating parameters of the vehicle lighting components change over time within a historical period. The operating parameters include at least one of the following: operating current, operating voltage, and output power.

[0128] Step S702: Obtain the current time and the corresponding future time.

[0129] The future time will be after the current time, and the difference between the future time and the current time will be less than a preset time difference. For example, if the current time is 17:00, then the future time will be 17:05.

[0130] Step S703: Determine the historical moment corresponding to the future moment within the future time period.

[0131] Historical moments and future moments are the same, but the time periods are different.

[0132] For example, if the future time is 17:05, then the historical time can be 17:05 within the historical time period.

[0133] Step S704: Determine the target working method based on the working method and historical time.

[0134] Optionally, the target operating mode can be determined within the operating mode based on the historical time. For example, if the historical time is 17:05, then the output power of the headlight assembly can be determined to be 50W within the operating mode based on the historical time.

[0135] Step S705: Adjust the operation of the headlight assembly according to the target operating mode.

[0136] Optionally, the headlight assembly can be adjusted to the target operating mode.

[0137] By employing the aforementioned technical solution, the operating modes of the vehicle's lighting components are acquired over historical periods and combined with current and future data to predict and adjust the lighting operation. Based on the operating modes of historical moments corresponding to future moments, a target operating mode is determined, and the lighting components are adjusted accordingly. This allows the lighting system to learn the rider's habitual patterns (such as daily commuting routes), automatically predict lighting needs, and achieve personalized control. For example, it can switch modes in advance in frequently used tunnels or nighttime sections, reducing manual intervention. Driven by historical data, the lighting control is more intelligent and energy-efficient, avoiding unnecessary mode switching, extending battery life, and improving riding convenience and safety.

[0138] Based on the same inventive concept, embodiments of this application provide a control system for a bicycle light, comprising: Acquisition module 801 is used to acquire rotation operation and ambient light intensity; Memory 802 is used to store the program for the control method of the bicycle light; The processor 803 can load and execute the program in the memory to implement the control method for the bicycle lights.

[0139] In summary, by acquiring the steering angle in response to the rotation of the bicycle handlebars and generating the illumination angle of the headlight assembly based on this angle, the illumination direction of the left and right handlebar lights can automatically adjust with the steering of the bicycle handlebars. This provides more accurate lighting coverage when turning, avoids blind spots, and improves riding safety. Simultaneously, by acquiring the ambient light intensity and setting the lighting mode to flashing mode when the ambient light intensity is above a first light intensity threshold and to constant light mode when it is below the first light intensity threshold, the headlights can intelligently switch modes according to ambient light conditions. In sufficient light, flashing enhances the warning effect, while constant light provides stable illumination in insufficient light, effectively improving the visibility and safety of the bicycle in complex lighting environments. This method integrates dual control of steering angle and ambient light intensity, achieving automation and intelligence in headlight illumination, reducing the rider's manual operation burden, and improving the riding experience.

[0140] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0141] This application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed to control a bicycle light.

[0142] Computer storage media include, for example, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media that can store program code.

[0143] Based on the same inventive concept, embodiments of this application provide a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute a method for controlling bicycle lights.

[0144] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0145] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.

Claims

1. A method for controlling a bicycle light, characterized in that, include: In response to the rotation of the bicycle handlebars, the steering angle of the bicycle handlebars is obtained; The illumination angle of the headlight assembly is generated based on the steering angle, and the headlight assembly includes a left handlebar light and a right handlebar light; Obtain ambient light intensity; When the ambient light intensity is greater than a first light intensity threshold, the lighting mode of the vehicle headlight assembly is set to a flashing mode; When the ambient light intensity is not greater than the first light intensity threshold, the lighting mode of the vehicle headlight assembly is set to always-on mode. The vehicle headlight assembly is controlled to operate according to the illumination angle and the lighting mode.

2. The method for controlling bicycle lights according to claim 1, characterized in that, The method further includes: The first ambient light intensity and the second ambient light intensity are extracted from the ambient light intensity. The first ambient light intensity is obtained by a photosensitive sensor located at the left end of the bicycle handlebars, and the second ambient light intensity is obtained by a photosensitive sensor located at the right end of the bicycle handlebars. Get real-time vehicle speed; When the real-time vehicle speed is greater than a preset vehicle speed, the smaller value between the first ambient light intensity and the second ambient light intensity is determined to obtain the smaller ambient light intensity; the target handlebar light corresponding to the smaller ambient light intensity is determined; a first angle is generated based on the real-time vehicle speed; and the target handlebar light is controlled to illuminate according to the first angle. When the real-time vehicle speed is not greater than the preset vehicle speed, a second angle is generated based on the real-time vehicle speed; the headlight assembly is then controlled to illuminate the vehicle according to the second angle.

3. The method for controlling bicycle lights according to claim 2, characterized in that, The method further includes: The changes in ambient light intensity are obtained; If the ambient light intensity is less than the second light intensity threshold when the light intensity changes by increasing over time, then the lighting mode is set to a flashing mode. If the ambient light intensity is not less than the second light intensity threshold, then the lighting mode is set to always-on mode; If the light intensity decreases over time, the lighting mode is set to a constant-on mode.

4. The method for controlling bicycle lights according to claim 1, characterized in that, The method further includes: Obtain the tilt angle of the bicycle handlebars; When the tilt angle is greater than a preset angle, a high handle light and a low handle light are determined from the left handle light and the right handle light, wherein the horizontal height of the high handle light is greater than the horizontal height of the low handle light; Set the lighting mode of the high-position handle light to flashing mode; Rotate the low-position handle light so that the low-position lighting direction points towards the vehicle seat; Set the lighting mode of the low-position handle light to always-on mode.

5. The method for controlling bicycle lights according to claim 4, characterized in that, The method further includes: Obtain the ambient light intensity at the high position corresponding to the high position handle light; In response to the detection of increased ambient light intensity at the high position, the working status of the high-position handle light is detected; When the working state indicates normal operation, the high-position handle light is controlled to rotate circumferentially along its high-position lighting direction. During the rotation of the high-position handle light, the lighting mode of the high-position handle light is set to flashing mode; If the high-position handle light is not detected to be off within a preset time period, the lighting mode of the low-position handle light will be set to flashing mode.

6. The method for controlling bicycle lights according to claim 4, characterized in that, The method further includes: When the low-position handlebar light is in a non-operating state, adjust the high-position handlebar light's high-position illumination direction to point towards the vehicle seat; In response to detecting that the ambient light intensity is greater than a third light intensity threshold, the light source is obtained; Based on the light source, adjust the direction of the high-level lighting to point towards the light source; In response to the detection that the ambient light intensity continues to increase and the increase duration reaches a preset maximum value, the high-position handle light's high-position illumination direction is adjusted to point towards the vehicle seat.

7. The method for controlling bicycle lights according to claim 1, characterized in that, The method further includes: Obtain the operating mode of the vehicle lighting assembly during a historical period; Obtain the current time and the corresponding future time; Within the historical time period, determine the historical moment corresponding to the future moment; Based on the described working mode and the described historical time, determine the target working mode; The operation of the vehicle lighting assembly is adjusted according to the target operating mode.

8. A control system for a bicycle light, characterized in that, The system is used to perform the bicycle light control method as described in any one of claims 1 to 7, including: The acquisition module is used to acquire rotation operation and ambient light intensity; A memory for storing the program for the control method of the bicycle lights; The processor and the program in the memory can be loaded and executed by the processor to implement the control method of the bicycle light.

9. A smart terminal, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer program is stored that can be loaded by a processor and execute the method as described in any one of claims 1 to 7.