An intelligent simulation candle lamp control method, device, equipment and medium

By generating multi-frequency superimposed periodic pulsation signals and spatial disturbance signals, and combining them with brightness parameter processing, the flame dynamics and spatial distribution of a candle lamp are accurately simulated. This solves the problem of unnatural flame simulation effects in existing technologies and achieves realistic flame simulation and stable brightness control.

CN122179946APending Publication Date: 2026-06-09GUANGZHOU PANYU TARGET CASTING & LIGHTING

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU PANYU TARGET CASTING & LIGHTING
Filing Date
2026-03-26
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

The existing simulated candle lamps lack naturalness in their flame simulation effects, making it difficult to realistically reproduce the changes in brightness and dynamic characteristics of natural flames.

Method used

By generating a multi-frequency superimposed periodic pulsation signal and a spatial perturbation signal based on LED coordinates, and combining brightness parameters and brightness limitation processing, the dynamic pulsation pattern and spatial distribution characteristics of the flame are accurately simulated, thereby achieving differentiated brightness control of the LED lamp.

Benefits of technology

It improves the realism and control reliability of simulated candle flames, ensures the stability and rationality of LED light brightness output, and enhances the fidelity and immersiveness of flame effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122179946A_ABST
    Figure CN122179946A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of data processing, and discloses a kind of intelligent simulation candle lamp control method, device, equipment and medium, the method includes: based on global time signal generation multi-frequency superimposed periodic pulsation signal;Based on the coordinate information of each LED generates spatial disturbance signal;According to the reference brightness parameter and pulsation response parameter of each LED belonging to flame area, superimpose periodic pulsation signal and spatial disturbance signal, obtain original brightness value;According to original brightness value and the brightness limiting parameter of each LED belonging to flame area is clamped and handled, obtains stable combustion control signal and sends to corresponding LED to make it execute, completes control operation.The application can improve the authenticity of LED lamp brightness output, so that the flame simulation effect of intelligent simulation candle lamp is more natural.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, device, equipment and medium for controlling an intelligent simulation candle lamp. Background Technology

[0002] Currently, the main uses of artificial candles on the market are focused on basic decorative lighting and atmosphere creation, such as as home decorations, table decorations, or auxiliary props for holiday celebrations. They provide a safe and smokeless alternative light source by simulating the appearance of flames. Among existing artificial candle technologies, CN106764915A discloses a simulated three-dimensional flame lamp. The control module outputs simulated PWM control signals according to a certain timing sequence. On the lamp board, corresponding LED beads are lit to simulate multiple continuous dynamic flame patterns in the horizontal direction. The simulation of the flame burning effect is achieved by using a preset cyclic flashing program or a fixed PWM dimming mode. This control method results in an overly regular light effect, making it difficult to realistically reproduce the random flashing and dynamic changes present in natural flames. The visual simulation degree still needs to be improved.

[0003] Therefore, how to provide an intelligent simulated candle lamp that can realistically reproduce the changes in brightness of a natural flame has become an urgent problem to be solved. Summary of the Invention

[0004] This application provides a method, device, equipment, and medium for controlling an intelligent simulated candle lamp. It can generate a multi-frequency superimposed periodic pulsation signal based on a global time signal, thereby accurately simulating the natural dynamic pulsation pattern of a flame. Combined with a spatial disturbance signal generated based on the coordinate information of each LED, it can achieve differentiated brightness changes for LEDs at different locations, closely matching the real spatial distribution characteristics of a flame. Furthermore, by superimposing the periodic pulsation signal and the spatial disturbance signal according to the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the original brightness value is obtained. This accurately matches the combustion brightness characteristics of different flame regions. Finally, by clamping the brightness limit parameters of the corresponding region, a combustion control signal is obtained and used to drive the LED lamp. This ensures the stability and rationality of the LED lamp's brightness output, and makes the flame simulation effect of the intelligent simulated candle lamp more realistic and natural, improving the fidelity and control reliability of the intelligent simulated candle lamp's flame effect.

[0005] In a first aspect, embodiments of this application provide an intelligent simulation candle lamp control method, the method comprising: Generate a periodic pulsating signal with multiple frequencies superimposed based on the global time signal; Spatial disturbance signals are generated based on the coordinate information of each LED; Based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the periodic pulsation signal and spatial disturbance signal are superimposed to obtain the original brightness value; Clamping is performed based on the original brightness value and the brightness limit parameters of the flame area to which each LED belongs, to obtain a stable combustion control signal, which is then sent to the corresponding LED to execute and complete the control operation.

[0006] Furthermore, generating a multi-frequency superimposed periodic pulsating signal based on the global time signal includes: A second-level time signal is obtained by converting the global time signal. Obtain the first frequency, the second frequency, the third frequency, the first amplitude, the second amplitude, and the third amplitude; Based on the first frequency, second frequency, third frequency, first amplitude, second amplitude, third amplitude, and second-level time signal, a sine wave is calculated to generate a periodic pulsating signal with multiple frequencies superimposed.

[0007] Furthermore, a spatial perturbation signal is generated based on the coordinate information of each LED, including: Based on the coordinate information of each LED, the horizontal coordinate and vertical coordinate of each LED are obtained. The noise x-coordinate and noise y-coordinate are obtained by linearly combining the x-coordinate and y-coordinate of each LED with the second-level time signal. The spatial disturbance signal is generated by calculating the noise abscissa and ordinate based on the simplified Berlin noise function.

[0008] Furthermore, the method also includes: Obtain the total ignition time, and calculate the ignition progress coefficient based on the cumulative ignition time and the total ignition time. Based on the preset center point at the bottom of the LED array as the flame diffusion origin, the normalized distance from each LED to the flame diffusion origin and the diffusion wavefront based on the change of the ignition progress coefficient are calculated to obtain the ignition diffusion factor of each LED. The stage brightness control signal is calculated based on the ignition progress coefficient and ignition diffusion factor and then sent to the corresponding LED to execute it.

[0009] Furthermore, the method also includes: Obtain the light-out stage and calculate the brightness decay coefficient based on the light-out stage; the light-out stage includes the decay stage, the struggle stage, and the ember stage; The effective attenuation coefficient is calculated based on the flame region and brightness attenuation coefficient of each LED.

[0010] Furthermore, the method also includes: If the light-off phase is the struggling phase, then a struggling flashing signal is calculated based on the brightness attenuation coefficient and the spatial disturbance signal and sent to the corresponding LED to make it execute.

[0011] Furthermore, the method also includes: If the light-off stage is the ember stage, then maintain the stable combustion control signal of the preset flame area at the bottom of the LED array, stop the stable combustion control signal of other flame areas, until the brightness attenuation coefficient is less than the preset shutdown threshold, then send a complete extinguishing signal to each LED and make it execute.

[0012] Furthermore, the method also includes: Acquire motion data from motion sensors; Determine if the moving data exceeds a preset voltage threshold; If so, a gradual lighting signal is sent to each LED and the LED is activated.

[0013] Furthermore, the method also includes: Acquire sound pressure data from the acoustic sensor; Determine if the sound pressure data is greater than the preset sound pressure threshold; If so, a diffusion lighting signal is sent to each LED and it is activated.

[0014] Furthermore, the method also includes: Acquire brightness data from the photosensor; Determine if the brightness data is less than a preset brightness threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

[0015] Furthermore, the method also includes: Acquire temperature data from the temperature sensor; Determine if the temperature data is greater than the preset temperature threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

[0016] Furthermore, the method also includes: Acquire touch duration data from the touch sensor; If the touch duration is less than 1 second, it is determined to be a short press, and a scene switching signal is sent to each LED to execute it; If the touch duration is greater than 3 seconds, it is determined to be a long press, and a brightness adjustment signal is sent to each LED to make it execute.

[0017] Furthermore, the method also includes: The audio signal sent by the audio module is acquired, and time-domain calculations are performed on the audio signal to obtain the time-domain audio frame. Frequency domain calculations are performed on the time-domain audio frames to obtain spectral features; these spectral features are then mapped to flame color data and sent to each LED for execution.

[0018] Furthermore, the method also includes: The beat interval is obtained by calculating the autocorrelation function based on the time-domain audio frames; The BPM value is calculated based on the beat interval; The flame frequency signal is obtained based on the BPM value, and the flame frequency signal is sent to each LED to make it execute.

[0019] Furthermore, the method also includes: Chord features are extracted from time-domain audio frames to obtain a set of spectral amplitudes and pitches; Based on the spectral amplitude and pitch set, the chord type identifier corresponding to the current audio frame is obtained; Based on the preset chord color mapping library and the chord type identifier, the flame color data is obtained and sent to each LED to execute.

[0020] Furthermore, the method also includes: By connecting to the smart home module through the developer platform, user commands are sent to the smart home module, enabling the smart home module to obtain and analyze the user commands to obtain control commands. In response to control commands, execute the corresponding control operations.

[0021] Secondly, embodiments of this application provide an intelligent simulated candle lamp control device, the device comprising: The lighting control module is used to generate a multi-frequency superimposed periodic pulsation signal based on a global time signal; generate a spatial disturbance signal based on the coordinate information of each LED; superimpose the periodic pulsation signal and the spatial disturbance signal according to the reference brightness parameters and pulsation response parameters of the flame area to which each LED belongs to obtain the original brightness value; perform clamping processing according to the original brightness value and the brightness limit parameters of the flame area to which each LED belongs to obtain a stable combustion control signal and send it to the corresponding LED to execute, thus completing the control operation.

[0022] Furthermore, the device also includes motion sensors; The lighting control module is specifically used to acquire motion data from the motion sensor; determine whether the motion data exceeds a preset voltage threshold; if so, it sends a gradual lighting signal to each LED and enables it to perform the operation.

[0023] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the steps of an intelligent simulation candle lamp control method as described in any of the above embodiments.

[0024] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of an intelligent simulation candle lamp control method as described in any of the above embodiments.

[0025] In summary, compared with the prior art, the beneficial effects of the technical solution provided in this application include at least the following: This application provides an intelligent simulated candle lamp control method that can generate a multi-frequency superimposed periodic pulsation signal based on a global time signal, thereby accurately simulating the natural dynamic pulsation pattern of a flame. Combined with a spatial disturbance signal generated based on the coordinate information of each LED, it can achieve differentiated brightness changes of LEDs at different positions, closely matching the real spatial distribution characteristics of a flame. Then, based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the periodic pulsation signal and the spatial disturbance signal are superimposed to obtain the original brightness value, which can accurately match the combustion brightness characteristics of different flame regions. Finally, the combustion control signal is obtained by clamping the brightness limit parameters of the corresponding region and driving the LED to execute. This method not only ensures the stability and rationality of the LED brightness output, but also makes the flame simulation effect of the intelligent simulated candle lamp more realistic and natural, improving the fidelity and control reliability of the flame effect of the intelligent simulated candle lamp. Attached Figure Description

[0026] Figure 1 A flowchart of an intelligent simulation candle lamp control method provided as an exemplary embodiment of this application.

[0027] Figure 2 This is a structural diagram of an intelligent simulation candle lamp control device provided as an exemplary embodiment of this application. Detailed Implementation

[0028] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0029] Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0030] Please see Figure 1This application provides an intelligent simulation candle lamp control method, which specifically includes the following steps: Step S1: Generate a periodic pulsating signal with multiple frequencies superimposed based on the global time signal.

[0031] In some embodiments, generating a multi-frequency superimposed periodic pulsating signal based on a global time signal includes: A second-level time signal is obtained by converting the global time signal. Obtain the first frequency, the second frequency, the third frequency, the first amplitude, the second amplitude, and the third amplitude; Based on the first frequency, second frequency, third frequency, first amplitude, second amplitude, third amplitude, and second-level time signal, a sine wave is calculated to generate a periodic pulsating signal with multiple frequencies superimposed.

[0032] In some feasible implementations, this application obtains a global time signal t and converts it into a second-level time signal t_sec. It obtains a first frequency f1, a second frequency f2, a third frequency f3, a first amplitude A1, a second amplitude A2, and a third amplitude A3, calculates their sinusoidal superposition value, and obtains a multi-frequency superimposed periodic pulsating signal M(t).

[0033] Among them, a periodic pulsating signal with multiple frequencies superimposed is generated based on the global time signal. This global time signal can provide a unified and dynamically changing basic rhythm for all LEDs, avoiding the problem of stiff and unnatural light flickering caused by a single frequency signal, and laying a solid foundation for simulating the dynamic characteristics of real flames.

[0034] Step S2: Generate a spatial disturbance signal based on the coordinate information of each LED.

[0035] In some embodiments, a spatial perturbation signal is generated based on the coordinate information of each LED, including: Based on the coordinate information of each LED, the horizontal coordinate and vertical coordinate of each LED are obtained. The noise x-coordinate and noise y-coordinate are obtained by linearly combining the x-coordinate and y-coordinate of each LED with the second-level time signal. The spatial disturbance signal is generated by calculating the noise abscissa and ordinate based on the simplified Berlin noise function.

[0036] In some feasible implementations, this application linearly combines the horizontal and vertical coordinates of each LED with a second-level time signal to generate noise horizontal coordinate noise_x and noise vertical coordinate noise_y. The simplified Perlin noise function perlin_simple is then called and scaled to obtain the spatial disturbance signal, i.e., the noise value representing the spatial disturbance.

[0037] Among them, spatial disturbance signals are generated based on the coordinate information of each LED, which can give each LED unique brightness change details according to the positional differences of different LEDs, so that LEDs in different positions present differentiated combustion states, breaking the uniformity of the lighting effect and simulating the randomness and diversity of flame jumping in different areas of a real flame.

[0038] Step S3: Based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the periodic pulsation signal and spatial disturbance signal are superimposed to obtain the original brightness value.

[0039] In one feasible implementation, this application can calculate the 8-bit PWM raw brightness value pwm_value based on the region from the region divider, base_pwm, weight, min_pwm, max_pwm from the region parameter configuration library, the periodic pulsation signal M(t) from the main pulsation signal generator, and the spatial disturbance signal noise from the spatial noise generator.

[0040] The original brightness value is obtained by superimposing periodic pulsation signals and spatial disturbance signals based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs. This enables precise matching of the brightness characteristics of different flame regions, allowing different regions such as the core combustion zone and the edge flame zone to present brightness levels and response speeds that conform to real flames, thereby improving the realism of flame simulation.

[0041] Step S4: Clamping is performed based on the original brightness value and the brightness limit parameters of the flame area to which each LED belongs, to obtain a stable combustion control signal and send it to the corresponding LED to execute, thus completing the control operation.

[0042] The clamping calculation can be performed as follows: brightness = CLAMP(297.0, 180, 255) = 255. This function is called to perform area clamping. Clamping based on the original brightness value and the brightness limit parameters of the flame region to which each LED belongs effectively limits the fluctuation range of LED brightness, avoiding the adverse effects of sudden brightness changes on the visual experience. It also prevents excessive brightness from damaging LED devices or insufficient brightness from affecting the display effect, ensuring the reliability of the stable combustion control signal. This achieves precise and stable control of the LED flame simulation light, improving the presentation quality and control accuracy of the flame simulation light, meeting the synchronous and coordinated control requirements of large-scale LED arrays, and adapting to various application scenarios.

[0043] In existing simulated candle technology, the flame burning effect is mostly simulated by a preset cyclic flashing program or a fixed PWM dimming mode. This control method results in an overly regular light effect, making it difficult to realistically reproduce the random flashing and dynamic changes present in natural flames. However, this application adjusts the basic brightness parameters of each LED based on the periodic pulsation signal and the spatial disturbance signal. It not only adjusts the start-stop function of the LED beads, but also adjusts the brightness of each LED, making the burning effect of the simulated candle more realistic, reducing the artificiality caused by regular light, and making the user more immersive.

[0044] The intelligent simulated candle lamp control method provided in the above embodiments can generate a multi-frequency superimposed periodic pulsation signal based on a global time signal, thereby accurately simulating the natural dynamic pulsation pattern of a flame. Combined with a spatial disturbance signal generated based on the coordinate information of each LED, it can realize differentiated brightness changes of LEDs at different positions, closely matching the real spatial distribution characteristics of a flame. Then, based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the periodic pulsation signal and the spatial disturbance signal are superimposed to obtain the original brightness value, which can accurately match the combustion brightness characteristics of different flame regions. Finally, the combustion control signal is obtained by clamping the brightness limit parameters of the corresponding region and driving the LED to execute. This not only ensures the stability and rationality of the LED brightness output, but also makes the flame simulation effect of the intelligent simulated candle lamp more realistic and natural, improving the fidelity and control reliability of the flame effect of the intelligent simulated candle lamp.

[0045] In some feasible implementations, this application can use white LEDs, with an external red lampshade to simulate the color of the flame; the flickering of the flame is achieved by illuminating different LED positions; the inner and outer flames are represented by setting different brightness levels for the LEDs at different positions, and then using the red lampshade. This application can also use multi-color LEDs, i.e., LEDs with multiple colors, whose color and brightness can change, displaying the color of the flame without the need for an external red lampshade.

[0046] In some feasible implementations, this solution can obtain LED matrix layout parameters (8 columns × 14 rows, 112 LEDs) and coordinate definition rules ((x, y), where x is the column index and y is the row index, with y increasing from bottom to top); obtain the LED row index y and execute the get_region(y) function. Based on the vertical layering strategy, determine the flame region identifier to which y belongs; and set the corresponding reference brightness parameters, pulse response parameters, and brightness clamping range for that region based on the flame region identifier.

[0047] The LED matrix, composed of 112 LEDs, provides ample pixel support for the precise rendering of the flame effect. Compared to a smaller number of LEDs, 112 LEDs can achieve more delicate flame detail, effectively avoiding problems such as blurring and layering caused by excessive pixel spacing, significantly improving the fineness and completeness of the flame effect. Furthermore, the rational layout of the 112 LEDs, combined with the vertical layering strategy, allows for more precise mapping of flame areas to each LED. This ensures that the baseline brightness parameters, pulse response parameters, and brightness clamping range set based on the flame area markings are accurately applied to each LED, guaranteeing a natural transition and distinct layers in the flame effect across different areas, more closely resembling the actual combustion pattern of a flame. Furthermore, the configuration of 112 LEDs not only meets the visual presentation requirements of the flame effect but also avoids resource waste and increased control complexity due to an excessive number of LEDs, achieving a balance between visual effect and control efficiency. Combined with clear LED matrix layout parameters and coordinate definition rules, the accuracy of LED matrix flame effect control is further improved. By obtaining the LED row index and executing the get_region function, precise positioning and targeted control of the flame area can be achieved, flexibly adapting to the needs of different scenarios, reducing control complexity, and minimizing resource consumption, which is conducive to the practical promotion and application of the solution.

[0048] In some embodiments, the method further includes: Obtain the total ignition time, and calculate the ignition progress coefficient based on the cumulative ignition time and the total ignition time. Based on the preset center point at the bottom of the LED array as the flame diffusion origin, the normalized distance from each LED to the flame diffusion origin and the diffusion wavefront based on the change of the ignition progress coefficient are calculated to obtain the ignition diffusion factor of each LED. The stage brightness control signal is calculated based on the ignition progress coefficient and ignition diffusion factor and then sent to the corresponding LED to execute it.

[0049] The preset center point can be set by the factory setup personnel, and is usually set in the center of the bottom row of LEDs.

[0050] The ignition progress coefficient is obtained by calculating the total ignition time and the cumulative ignition time. The normalized distance and diffusion wavefront are calculated using the preset center point at the bottom of the LED array as the origin of flame diffusion, thereby obtaining the corresponding ignition diffusion factor. This enables dynamic and gradient precise control of the LED array brightness, so that the light emission effect of the LED array presents a gradual transition effect that is highly consistent with the flame diffusion, effectively improving the smoothness and visual hierarchy of the light display. At the same time, the unified calculation logic simplifies the control process and enhances the stability and response speed of the light control.

[0051] In some feasible implementations, this application can obtain the system status identifier, ignition start time, and current time; calculate the elapsed time based on the above data, and then calculate the global ignition progress coefficient alpha = elapsed / T (T is the total ignition time); if alpha >= 1.0, then the state switching instruction STATE_NORMAL is obtained.

[0052] Further, obtain the LED coordinates (x, y) and ignition progress coefficient alpha; calculate the normalized weighted distance from the LED to the center of the flame; calculate the current diffusion wavefront wave_front based on alpha; if distance <= wave_front, calculate a spread_factor that decays with distance (and add random perturbation); otherwise, spread_factor = 0.

[0053] Further, obtain the ignition diffusion factor spread, ignition progress coefficient alpha, and normal_brightness (the brightness of the LED in a stable combustion state); if alpha < 0.1, calculate the weak basic brightness in the preheating stage; otherwise, calculate the ignition brightness: brightness = normal_brightness * alpha * spread; apply the minimum glow limit to ensure that the ignited area is not completely dark, and obtain the PWM brightness value (i.e., the stage brightness control signal).

[0054] In some embodiments, the method further includes: Obtain the light-out stage and calculate the brightness decay coefficient based on the light-out stage; the light-out stage includes the decay stage, the struggle stage, and the ember stage; The effective attenuation coefficient is calculated based on the flame region and brightness attenuation coefficient of each LED.

[0055] By subdividing the light-extinguishing stage into a decay stage, a struggling stage, and an ember stage, this method achieves refined, layered control of the simulated LED flame extinguishing process. This solves the problems of stiff simulation effects and a lack of realistic dynamic changes in flame extinction found in traditional light-extinguishing controls, significantly improving the realism and immersiveness of LED flame simulation and better meeting the high-quality requirements of various scenarios. Furthermore, by calculating the effective decay coefficient based on the flame region of the LED and its brightness decay coefficient, differentiated control of different flame regions is achieved, avoiding problems such as poor brightness uniformity and inconsistent regional control during the overall extinguishing process, further enhancing the layering and realism of the flame simulation.

[0056] In some embodiments, the method further includes: If the light-off phase is the struggling phase, then a struggling flashing signal is calculated based on the brightness attenuation coefficient and the spatial disturbance signal and sent to the corresponding LED to make it execute.

[0057] In some embodiments, the method further includes: If the light-off stage is the ember stage, then maintain the stable combustion control signal of the preset flame area at the bottom of the LED array, stop the stable combustion control signal of other flame areas, until the brightness attenuation coefficient is less than the preset shutdown threshold, then send a complete extinguishing signal to each LED and make it execute.

[0058] The preset flame area can be freely divided according to the characteristics of flame combustion, and may include a flame core area, a flame body area, and a flame edge area. The preset shut-off threshold can be set by the candle at the factory or by the user according to the desired burning time.

[0059] In particular, the introduction of spatial disturbance signals for flashing control during the struggling phase can accurately simulate the unstable struggling state of a flame before it is extinguished. During the ember phase, the preset flame area at the bottom is kept burning stably while other areas are gradually extinguished until the brightness decay coefficient reaches the preset shutdown threshold and the flame is completely extinguished. This not only restores the natural process of real flame embers remaining and slowly extinguishing, but also effectively reduces the energy consumption of LEDs, extends the lifespan of the LED array, improves the reliability, practicality, and economy of the entire control scheme, and broadens the application scope of the technical solution.

[0060] In one feasible implementation, this application can obtain the STATE_EXTINGUISHING status flag, the current off phase, and the time increment delta_time; update the global brightness attenuation coefficient beta and the phase internal parameters (struggle_timer, struggle_intensity) according to the current phase (DECAY, STRUGGLE, EMBER); and update the phase when the phase transition conditions are met.

[0061] Furthermore, obtain the region and brightness attenuation coefficient beta; find the region brightness attenuation coefficient region_factor based on the region (slowest in the core area and fastest in the edge area); calculate the effective attenuation: effective_beta=beta*region_factor, and perform upper limit clamping.

[0062] Furthermore, obtain the phase, struggle_intensity, effective_beta, normal_brightness, and the global clock t and the (x,y) of the LED driving loop; if phase==PHASE_STRUGGLE: generate pseudo-random numbers using coordinates and time, and calculate the struggle effect multiplier struggle; if phase==PHASE_EMBER: determine the LED position, apply ember luminescence calculation only to a few bottom rows, and set the brightness of other rows to zero; other stages: struggle=1.0; calculate the final brightness: brightness=normal_brightness*effective_beta*struggle (with additional coefficients in the ember stage); obtain the final PWM brightness and send it to the LED.

[0063] In some embodiments, the method further includes: Acquire motion data from motion sensors; Determine if the moving data exceeds a preset voltage threshold; If so, a gradual lighting signal is sent to each LED and the LED is activated.

[0064] Through the collaborative work of motion sensors, intelligent and user-friendly control of LED lighting is achieved, effectively solving the technical problems of high energy consumption, slow response, and limited user experience in traditional LED lighting control. Motion sensors can accurately capture movement signals and dynamically adjust LED lighting accordingly. The initial trigger's gradual lighting design avoids visual stimulation and improves comfort, while continuous movement simulates the effect of wind blowing a candle flame, enriching the lighting presentation and enhancing the atmosphere of the scene. Compared to traditional fixed brightness control, it is more practical and aesthetically pleasing. The energy-saving mode in the absence of movement can significantly reduce energy consumption and extend LED lifespan while ensuring basic lighting, aligning with energy conservation and environmental protection trends. Furthermore, real-time processing and judgment of movement data ensure timely and accurate LED response, reducing false triggers and missed triggers, improving the reliability of the control scheme, and making it widely applicable to various lighting scenarios. The simple control logic reduces production costs and maintenance difficulty.

[0065] In one feasible implementation, the preset voltage threshold can be 0.7V. When a moving target is detected, the output signal voltage exceeds this threshold, and movement data including the type, state, and duration of movement is transmitted. A microcontroller serves as the core control unit, efficiently processing sensor data and precisely controlling the LED light group; the LED light group is linearly arranged and supports independent brightness and color adjustment. After acquiring movement data, if the movement data exceeds the 0.7V threshold, a gradual lighting signal is sent, controlling all LED beads to gradually brighten to 50% brightness within 1 second, balancing lighting needs and energy saving. When continuous movement is detected, a built-in algorithm controls the LED light group to simulate the effect of wind blowing a candle flame, randomly generating position offset commands for 5 to 10 LED beads, with an offset range of 1 to 3 bead spacings and brightness fluctuations of 45% to 55%, enhancing the atmosphere of the scene. If the PIR motion sensor does not detect a movement signal for 30 seconds, the LED brightness is reduced to 20% to enter energy-saving mode, reducing power consumption by 60% compared to normal.

[0066] In some embodiments, the method further includes: Acquire sound pressure data from the acoustic sensor; Determine if the sound pressure data is greater than the preset sound pressure threshold; If so, a diffusion lighting signal is sent to each LED and it is activated.

[0067] This system, through the use of acoustic sensors, enables intelligent and scenario-based control of LED lights based on sound signals. This enriches the control dimensions and presentation effects of LED lights, effectively solving the technical shortcomings of traditional LED light control methods, such as limited functionality, poor interactivity, and inability to dynamically adjust to the sound environment. The acoustic sensors accurately capture sound pressure data, sound frequency, and specific sound patterns, acquiring and judging this data in real time to trigger different LED effects, linking the light with the sound environment and enhancing the user experience and enjoyment. It can generate effects such as traveling wave diffusion, blowing and swaying, and music frequency-grouped brightness control, adaptable to various scenarios and meeting diverse user needs. Compared to traditional control methods, it is more flexible and practical. Acoustic triggering enables contactless control, improving ease of use. Precise threshold and frequency recognition settings prevent false triggering, ensuring the reliability of the control scheme. While enriching the effects, it does not increase hardware costs excessively. The control logic is simple, facilitating mass production and promotion, and can be widely applied to various lighting scenarios, expanding the application range of simulated candles.

[0068] Specifically, the preset sound pressure threshold can be 65 decibels, which serves as an intermediate value between quiet and noisy, avoiding the problem of excessively high false triggering frequency due to an excessively low threshold and insensitive triggering due to an excessively high threshold.

[0069] In one feasible implementation, a microphone acoustic sensor is used as the sound detection component, with a preset sound pressure level threshold of 65 dB and a preset specific frequency recognition range: 1000-1500 Hz for clapping sounds and 800-1200 Hz for blowing sounds, ensuring accurate identification of the target sound. A microcontroller is used as the core to efficiently process data such as sound type, sound pressure level, frequency, and sound mode transmitted by the sensor, providing a basis for lighting control. The LED light group is arranged in a matrix, supporting independent brightness and color adjustment. When the sound pressure level is greater than 65 dB, a diffusion lighting signal is sent, controlling the light group to diffuse outwards in a traveling wave from the center at a diffusion speed of 8 LEDs per second, with brightness gradually increasing from 30% to 70%. When a blowing sound of 800-1200 Hz is detected, the top two rows of LEDs in the light group are controlled to perform a swaying effect, with brightness randomly fluctuating between 40% and 60% at a frequency of 3-5 times per second. When a continuous music signal is detected, FFT frequency analysis is initiated, dividing the music frequency into 8 frequency bands. The brightness of the corresponding column is controlled according to the signal strength of each frequency band: 20% to 40% for low frequency band, 40% to 60% for mid frequency band, and 60% to 80% for high frequency band, so as to realize the linkage between light and music.

[0070] In some embodiments, the method further includes: Acquire brightness data from the photosensor; Determine if the brightness data is less than a preset brightness threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

[0071] Through the collaborative work of photosensitive sensors, adaptive adjustment of LED light brightness and color temperature is achieved, effectively solving the technical problems of traditional LED lights, such as fixed brightness, inability to adapt to different ambient lighting conditions, insufficient comfort, and unreasonable energy consumption. The photosensitive sensors can accurately collect ambient brightness data, judge in real time, and automatically adjust LED brightness and color temperature according to different brightness ranges, ensuring the light always adapts to the ambient lighting and avoiding energy waste and visual fatigue caused by insufficient brightness in dark environments or excessive brightness in bright environments. The warm yellow temperature in dark environments and the natural white temperature in bright environments conform to human visual habits, improving user comfort and scene adaptability, making it more user-friendly and practical than traditional fixed modes. Adaptive adjustment can dynamically adjust energy consumption, reducing energy consumption and extending LED lifespan while ensuring lighting needs are met, aligning with the trend of energy conservation and environmental protection.

[0072] The preset brightness threshold can be 50 lux, which makes it less tiring for the eyes and adds to the atmosphere of the environment.

[0073] In one feasible implementation, a photosensitive sensor is used as the ambient brightness detection component, which can accurately collect and transmit ambient brightness data from 0 to 65535 lux in real time. A microcontroller is used as the core, and its built-in analog-to-digital converter module can accurately process the brightness data. Three preset brightness threshold ranges are defined: below 50 lux, 50 to 200 lux, and above 200 lux, corresponding to different LED brightness standards. Simultaneously, preset color temperature adjustment standards are defined: 2200 Kelvin warm yellow for dark environments and 4000 Kelvin natural white for bright environments. After the photosensitive sensor transmits the brightness data, the system determines in real time whether the brightness is below 50 lux and controls the LED to adjust to 80% brightness, switching to 2200 Kelvin warm yellow; when the brightness is between 50 and 200 lux, it adjusts to 50% brightness with dynamic color temperature transition; and when the brightness is above 200 lux, it adjusts to 20% brightness and switches to 4000 Kelvin natural white.

[0074] In some embodiments, the method further includes: Acquire temperature data from the temperature sensor; Determine if the temperature data is greater than the preset temperature threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

[0075] Through the collaborative operation of temperature sensors, adaptive temperature control and thermal management of LED lights are achieved, effectively solving the technical problems of traditional LEDs, such as lack of overheat protection, susceptibility to damage at high temperatures, safety hazards, and short lifespan. Temperature sensors accurately collect data on the LED light group and ambient temperature. The system makes real-time judgments and executes corresponding safety strategies based on different temperature ranges, achieving dynamic thermal management. This avoids performance degradation, damage, and safety risks caused by high-temperature LED operation, ensuring safe and stable equipment operation. Under normal temperatures, the system maintains normal operation, balancing illumination and energy saving; in the medium-temperature range, brightness is reduced to decrease heat generation and slow temperature rise; in the high-temperature range, overheat protection is triggered and the system gradually shuts down, enhancing safety. Real-time temperature data acquisition and transmission allow users to easily monitor equipment status, facilitate maintenance, and extend the lifespan of the simulated candles.

[0076] The preset temperature threshold can be 60 degrees Celsius. When the device temperature exceeds 60 degrees Celsius, it is very easy to cause danger. Therefore, this application is designed to quickly adjust the temperature of the simulated candle when it reaches 60 degrees Celsius to ensure the safety of the user.

[0077] In one feasible implementation, a temperature sensor is used as the detection component to capture real-time changes in the LED light group and ambient temperature, and transmits the temperature data, including temperature type, value, and operating status, to the system. A microcontroller is used as the core to quickly analyze and judge the temperature data, and three preset temperature threshold ranges and corresponding safety strategies can be implemented. After the temperature sensor transmits the data, the system makes real-time judgments: below 45 degrees Celsius, it maintains normal operating brightness; between 45 and 60 degrees Celsius, it sends an adjustment signal to reduce the LED brightness by 30% to reduce heat generation; above 60 degrees Celsius, it triggers overheat protection, controlling the LED to gradually turn off within 2 seconds to avoid safety accidents.

[0078] In some embodiments, the method further includes: Acquire touch duration data from the touch sensor; If the touch duration is less than 1 second, it is determined to be a short press, and a scene switching signal is sent to each LED to execute it; If the touch duration is greater than 3 seconds, it is determined to be a long press, and a brightness adjustment signal is sent to each LED to make it execute.

[0079] Through the collaborative work of touch sensors, diverse touch-interactive control of LED lights is achieved, effectively solving the technical problems of traditional LED lighting control, such as cumbersome operation, poor interactivity, inconvenience, and insufficient scene adaptability. The touch sensors can accurately collect user touch duration and touch pattern data, thereby determining the touch type and executing corresponding control commands. This provides users with diverse interaction methods, such as short presses to switch scenes, long presses to adjust brightness, and double-clicks to enter sound and light linkage modes, significantly improving operational convenience and flexibility. Diverse interaction modes can adapt to different scenes and needs. Preset scenes meet personalized lighting requirements, brightness adjustment achieves precise control, and sound and light linkage enriches lighting effects, making it more user-friendly and practical compared to traditional control methods. Touch interaction requires no additional components, has a simple structure, and is intuitive to operate, lowering the operational threshold. Furthermore, the sensors are sensitive and accurate in recognition, avoiding misoperation and ensuring control reliability.

[0080] In one feasible implementation, a touch sensor is used to accurately collect touch duration and touch count data, precisely distinguishing three touch modes. A microcontroller is used as the core to quickly analyze and determine the touch data, with preset judgment criteria: touch duration less than 1 second is a short press, greater than 3 seconds is a long press, and the interval between two touches is less than 500 milliseconds for a double tap, corresponding to preset control commands. Furthermore, three preset scenes are provided: candlelight, breathing, and rainbow, with brightness adjustment cycling from 20% to 100%, adjusting in 10% increments. When a user touches the sensor, if the module determines it's a short press, it switches scenes, cycling in a preset order with a smooth 1-second transition; if it's a long press, it enters a brightness adjustment cycle, adjusting by 10% every 500 milliseconds, restarting from 20% after reaching 100%; if it's a double tap, it enters a sound and light linkage mode.

[0081] In one feasible implementation, after receiving data transmitted from each sensor, the system combines a preset scene fusion control matrix and priority arbitration logic to achieve adaptive switching and precise control of LED scenes. The scene fusion control matrix includes three preset scenes, with the warm candlelight mode as the default scene. When the ambient brightness detected by the photosensitive sensor is below 100 lux and the PIR motion sensor does not detect any motion for one minute, the system automatically switches to this mode. At this time, each LED in the LED group flashes randomly and independently, with the brightness maintained between 70 and 90 lux and the color temperature adjusted to a warm yellow of 2200 Kelvin. At the same time, the brightness of the bottom row of the LED group is higher than that of the top row, thereby simulating the visual effect of a real burning candle and creating a warm atmosphere.

[0082] Furthermore, the Party Response mode is triggered when the microphone acoustic sensor continuously detects a sound pressure level higher than 70 decibels and the PIR motion sensor detects frequent activity. Once in this mode, the color of the LED lights changes with the rhythm of the sound, using the HSV color space to achieve rich color switching. At the same time, the lights are grouped into eight columns, each column corresponding to a different sound frequency band, and a spark effect is enabled, randomly highlighting individual LED beads to create a lively party atmosphere.

[0083] Furthermore, the safety monitoring mode is triggered when the temperature sensor detects a temperature higher than 50 degrees Celsius or the microphone acoustic sensor detects an abnormal sound. If it is a temperature alarm, the two rows of LEDs on the top of the light group will be controlled to flash red and yellow alternately. If it is an abnormal sound, the LED group will be controlled to emit a blue pulse to promptly remind the user of potential safety hazards.

[0084] Furthermore, the priority arbitration logic clarifies the execution priority of various control commands. Safety is the first priority; when the temperature sensor detects a temperature higher than 60 degrees Celsius, regardless of the current scene or control state, a brightness adjustment signal will be forcibly sent to reduce the brightness of the LED lights, ensuring safe operation of the device. Interaction is the second priority; when the touch sensor detects user touch input, the touch control command will receive priority for 30 seconds, during which the corresponding touch control operation will be executed first. Environment is the third priority; based on the combined detection results of the photosensitive sensor and the PIR motion sensor, it is determined whether to switch to the corresponding environmental adaptation scene. Audio is the fourth priority; based on the sound signal detected by the microphone acoustic sensor, background responsive lighting effects are executed to ensure that various control commands are executed in an orderly manner, avoiding control conflicts, while taking into account user interaction experience, environmental adaptability, and device operational safety.

[0085] In some embodiments, the method further includes: The audio signal sent by the audio module is acquired, and time-domain calculations are performed on the audio signal to obtain the time-domain audio frame. Frequency domain calculations are performed on the time-domain audio frames to obtain spectral features; these spectral features are then mapped to flame color data and sent to each LED for execution.

[0086] In some embodiments, the method further includes: The beat interval is obtained by calculating the autocorrelation function based on the time-domain audio frames; The BPM value is calculated based on the beat interval; The flame frequency signal is obtained based on the BPM value, and the flame frequency signal is sent to each LED to make it execute.

[0087] In some embodiments, the method further includes: Chord features are extracted from time-domain audio frames to obtain a set of spectral amplitudes and pitches; Based on the spectral amplitude and pitch set, the chord type identifier corresponding to the current audio frame is obtained; Based on the preset chord color mapping library and the chord type identifier, the flame color data is obtained and sent to each LED to execute.

[0088] In one feasible implementation, the audio signal acquisition process employs preset sampling settings, with the sampling rate set to 44.1 kHz to achieve CD-level sound quality, a bit depth of 16 bits, and a buffer size of 1024 samples, corresponding to a real-time time of approximately 23 milliseconds. This ensures the timeliness and accuracy of audio signal acquisition, laying the foundation for subsequent signal processing.

[0089] Furthermore, after the audio signal is acquired, it enters the preprocessing stage. The preprocessed audio signal will then undergo a multi-dimensional feature extraction process. This process covers the comprehensive extraction of time-domain features, frequency-domain features, and beat and rhythm features. Among them, time-domain features are obtained through direct waveform analysis, including the melody intensity zero-crossing rate and peak factor. The melody intensity is calculated using the root mean square energy method. The calculation process involves averaging the squared values ​​of the audio signal samples and then taking the square root. Its mapping relationship with the LED flame effect is that the higher the melody intensity, the higher the overall brightness of the flame. The zero-crossing rate is the ratio of the number of times the statistical audio signal crosses the zero point to the time window. A high zero-crossing rate corresponds to an increase in the flame flickering frequency. The peak factor is the ratio of the peak amplitude to the root mean square energy. A high peak factor can enhance the contrast of the flame flickering.

[0090] Furthermore, the frequency domain characteristics were obtained through spectrum analysis. First, a 1024-point Fast Fourier Transform was performed on the preprocessed audio signal to obtain 512 frequency components, covering a frequency range of 0 to 22.05 kHz. Then, the spectrum was divided into eight Mel frequency bands using a Mel filter bank, each corresponding to an LED. The first band corresponds to the low-frequency region of 0 to 250 Hz and is associated with the bottom LED, while the eighth band corresponds to the high-frequency region of 4 kHz to 22 kHz and is associated with the top LED. The brightness of each LED is determined by the energy of the corresponding frequency band. The centroid of the spectrum was calculated by dividing the sum of the products of each frequency component and its amplitude by the sum of the amplitudes. Its position directly maps to the flame color, with low frequencies corresponding to red-orange tones and high frequencies corresponding to blue-white tones. The spectral flatness is the ratio of the geometric mean to the arithmetic mean of the amplitudes of each frequency component. Low flatness indicates that the flame exhibits regular jumping when there is a clear main melody, while high flatness indicates that the flame exhibits random flickering when there is white noise. The beat and rhythm features are extracted using a specialized beat detection algorithm. This algorithm first calculates the difference in the spectrum between adjacent frames, i.e., the spectral flux. Then, it applies the autocorrelation function to find the periodicity of the signal and calculates the number of beats per minute based on the beat interval. The number of beats per minute is directly mapped to the basic frequency of the flame's movement. At the same time, it uses the energy envelope to find the signal peak to achieve strong beat detection. When a strong beat is triggered, a spark effect is activated, controlling multiple random LED beads to shine brightly, enhancing the dynamic feel of the flame effect.

[0091] Furthermore, after feature extraction, the multi-dimensional audio features are mapped to LED flame control parameters using a pre-defined nonlinear mapping model. This model comprises four parts: flame jumping frequency mapping, flame amplitude mapping, color spectrum mapping, and spatial distribution mapping. The flame jumping frequency mapping uses 2 Hz as the base frequency of natural candlelight, enhanced by audio features. The flame jumping frequency is equal to 2 plus the product of a first coefficient and the melody intensity, plus the product of a second coefficient and the zero-crossing rate. The first coefficient is set to 0.3, and the second coefficient is set to 0.1, both of which are adjustable parameters. The flame jumping frequency is limited to the range of 2 to 10 Hz to avoid excessively rapid jumping that could cause visual fatigue for the user.

[0092] Furthermore, the flame amplitude mapping uses 30% of the brightness change as the base amplitude and is adjusted through a dynamic enhancement formula. The dynamic enhancement formula is: the flame amplitude equals 0.3 plus the product of the third coefficient and 1 minus the difference in spectral flatness plus the product of the fourth coefficient and the peak factor. The third coefficient is 0.4 and the fourth coefficient is 0.3. At the same time, the flame amplitude is limited to the range of 0.1 to 0.9 to avoid the situation of LEDs being completely black or overexposed.

[0093] Furthermore, the color spectrum mapping is based on the HSV color space. The hue mapping formula is hue equal to 0.1 plus the product of 0.6 and the normalized value of the spectral centroid, corresponding to a color range from orange through yellow and white to blue. The saturation mapping formula is saturation equal to 0.7 plus the product of 0.3 and 1 minus the difference in spectral flatness. The purer the melody, the higher the saturation. When there is more noise, the color tends to be white. The brightness mapping is determined by the product of the basic brightness, the melody intensity, and the dynamic coefficient.

[0094] Furthermore, the spatial distribution mapping is designed for LED light groups. In terms of vertical distribution, the brightness factor of each row is calculated using an exponential function. This function can be the negative first power of the natural exponent multiplied by the absolute value of the difference between the row number and the center row, and then multiplied by the attenuation coefficient. The attenuation coefficient is controlled by the centroid of the spectrum. When low frequencies are dominant, the attenuation is slower, and the flame exhibits a high and stable state. When high frequencies are dominant, the attenuation is faster, and the flame exhibits a low and fluctuating state. In terms of horizontal distribution, the intensity of each column is the product of the energy of the corresponding Mel frequency band and the spatial diffusion factor. The spatial diffusion factor is used to simulate the flow of hot air, and random perturbations are added to enhance the realism of the flame effect.

[0095] Furthermore, to ensure real-time synchronization and smooth presentation of the LED flame effect and audio signal, the system employs a dedicated dynamic response algorithm, comprising three parts: real-time processing pipeline smooth transition processing and music genre adaptation. The real-time processing pipeline executes sequentially according to the order of audio input frame feature extraction, mapping, and LED update calculation. Each frame has a duration of 23 milliseconds, with the overall latency controlled within 30 milliseconds, ensuring synchronization between visual presentation and audio signal. Smooth transition processing avoids abrupt changes in the LED flame effect, employing an exponential smoothing algorithm. Specifically, the current control value equals the product of the first coefficient and the newly calculated value, plus 1, minus the product of the first coefficient and the previous control value. The first coefficient for brightness adjustment is set to 0.8 for fast response, while the first coefficient for color adjustment is set to 0.3 for a slow transition, ensuring smooth effect switching. The music genre adaptation is achieved through a dedicated function. This function determines the current music genre based on the extracted audio features. If the audio features show a low spectral centroid and a low zero-crossing rate, it is determined to be classical or jazz music, and a soft gradation mode is activated to achieve a soft gradation in the flame effect. If the audio features show a high zero-crossing rate and a high peak factor, it is determined to be rock or electronic music, and a dynamic mode is activated to achieve a strong response in the flame effect. If the audio features show a high spectral flatness, it is determined to be ambient or new age music, and an ambient mode is activated to achieve a random pulsation in the flame effect.

[0096] In a feasible implementation, the present application can also perform four functions: harmony analysis, melody tracking, rhythm synchronization special effects, and multi-candle synchronization. Harmony analysis accurately identifies audio chords through a chord recognition algorithm. Different chords trigger corresponding color themes. The C major key corresponds to warm colors, and the A minor key corresponds to cool colors, echoing the emotional tone of the harmony with colors. Melody tracking can extract the main melody line of the audio. When the main melody ascends, the LED flames spread upward, the brightness at the top of the lamp group increases, and the brightness at the bottom decreases; when the main melody descends, the flames contract downward, the brightness at the top decreases, and the brightness at the bottom remains stable, restoring the natural characteristics of the flames. Rhythm synchronization special effects achieve precise synchronization of the flames with the audio rhythm. Using a four-beat cycle logic, a breathing effect with brightness fluctuations is completed every measure. At the same time, the drum beats are detected, and a spark splash special effect is triggered for each strong beat to enhance the rhythm impact.

[0097] In some embodiments, the synchronization of multiple candles can achieve multi-device linkage through WiFi to ensure consistent effects and support stereo separation control. The left channel controls the LED devices on the left, and the right channel controls the devices on the right to enhance the immersion. To verify the practicality of the solution, the adaptation effects are tested in combination with three typical music types: classical piano music, electronic dance music, and vocal songs. When playing classical piano music, the gentle main melody controls the central column of the lamp group to present stable orange flames, and the high-pitched ornamentation notes trigger brief blue flashes at the top. The chord progression带动整体色调缓慢渐变。播放电子舞曲时,重低音鼓点控制底部呈现红色脉冲,高频合成器触发顶部蓝色快速闪烁,Build-up部分亮度渐增、颜色向白色过渡,Drop部分触发全矩阵爆发式闪光。播放人声歌曲时,主唱声线控制中央列火焰跟随旋律起伏,辅音或齿音触发随机小火花,和声部分控制周边列补充色调,丰富视觉层次。该映射模型将音频物理特征自然转换为视觉效果,既保留火焰物理真实性,又实现音乐与灯光的艺术融合,精准传递音频情感与节奏,提升用户双重体验。

[0098] It should be noted that there is an unclear part in the original text of item "带动整体色调缓慢渐变", which may need further clarification for a more accurate translation. The above translation is based on the existing text as much as possible.In some feasible implementations, this embodiment may include an intelligent decision-making algorithm, which comprises three parts: decision weight allocation, decision scoring mechanism, and final decision logic, to achieve precise lighting decisions in different scenarios. The decision weight allocation adopts a dynamic weighting system, adjusting the importance of each sensor and related factors according to different scenarios. In the default daily home mode, the photosensor weight accounts for 40%, with ambient brightness being the primary basis for lighting decisions; the PIR sensor weight accounts for 35%, with human activity being a key factor in the decision; the time factor weight accounts for 15%, taking into account the user's sleep patterns; and the sound sensor and temperature sensor weight each account for 5%, used for auxiliary verification and safety monitoring, respectively. In the nighttime sleep mode, the time range is set from 11 PM to 6 AM the next day. In this mode, the PIR sensor weight increases to 50%, focusing on nighttime human activity; the photosensor weight is 20%, ensuring low-light illumination to avoid affecting sleep; the sound sensor weight is 20%, preventing accidental lighting triggering; and the time factor weight is 10%, emphasizing energy saving at night. The party entertainment mode is automatically triggered when multiple people are detected. In this mode, the weight of the sound sensor is increased to 40%, focusing on responding to lively environmental conditions; the weight of the PIR sensor is 30%, which can adapt to multi-person moving scenarios; the weight of the light sensor is 20%, which appropriately reduces the impact of ambient light on decision-making; and the weight of manual priority is 10%, allowing users to manually adjust the lighting status and improve the flexibility of use.

[0099] In the decision-making scoring mechanism, the system calculates a comprehensive score for each brightness state of the LED, including off, low light, medium brightness, and full brightness. The score calculation is based on the weighted configuration of the current scenario mode, and the scores of each sensor and related factors are weighted and summed according to their corresponding weights. The scoring of each sensor follows clear rules: the score of the photosensitive sensor increases as the ambient brightness decreases, and the darker the environment, the higher the score for recommending that the lighting be turned on; the PIR sensor scores the highest when it first detects human movement, and then gradually decreases over time; the time factor score is higher between 6 pm and 10 pm, and lower during late night; the sound sensor scores higher when the ambient volume is moderate, and lower when the environment is quiet or too noisy, ensuring that the scoring closely matches the actual use scenario.

[0100] The final decision-making logic follows a fixed set of steps. First, the system collects current data from all sensors to ensure data integrity and real-time performance. Then, it identifies the current scene mode, automatically matching it to daily home, nighttime sleep, or social entertainment modes. Next, it loads the corresponding mode's weight configuration to provide a basis for scoring calculations. Then, it calculates the comprehensive score for each brightness state to determine the suitability of each state. Next, it applies safety restrictions, prioritizing the safety of the lighting fixtures, such as triggering overheat protection. Then, it selects the brightness state with the highest comprehensive score as the final decision result. Subsequently, it controls the LED lights to smoothly transition to the new brightness state, avoiding visual discomfort caused by sudden brightness changes. Finally, it records the decision result for subsequent learning and optimization to improve decision accuracy.

[0101] This embodiment can also be equipped with intelligent optimization and learning functions to further improve the system's adaptability and intelligence. The habit learning algorithm records user usage patterns, including the times users typically turn lights on and off, preferred brightness levels, and lighting responses to different activities. After a week of learning, the system's decisions will better align with individual user habits, improving the user experience. The self-correction function allows the system to record and analyze sensor data after an automatic decision, and fine-tune the weighting parameters of each sensor to prevent similar misjudgments in the future. The seasonal and weather adaptation function adjusts the decision logic based on seasons, weather, and holidays. In winter, when it gets dark earlier, the system turns on the lights earlier; on rainy days, it increases the weighting of the photosensor; and on special holidays, it adopts different operating modes to ensure the system adapts to various environmental changes.

[0102] Energy-saving optimization strategies are a crucial component of this embodiment, reducing energy consumption through various methods. The gradual shutdown strategy activates upon detecting user absence, immediately maintaining the current brightness to prevent frequent switching during brief absences; after 3 minutes, the brightness is reduced to 50%, after 10 minutes to 20%, and if no human activity is detected after 30 minutes, the light is completely turned off, maximizing energy savings. The low-light standby function activates before the light is completely turned off, adjusting the brightness to 1%, consuming almost no power, while quickly responding to the next human activity and serving as a location indicator for easy identification. The adaptive sensitivity function adjusts the PIR sensor sensitivity based on user usage frequency, increasing sensitivity during high-activity periods to ensure accurate detection of human activity; reducing sensitivity during late-night hours to prevent false lighting triggers; and entering deep sleep mode when the system is unattended for extended periods, further reducing energy consumption.

[0103] To address various special circumstances, this embodiment incorporates specialized processing logic to ensure system stability and reliability. Temporary absence detection utilizes multi-sensor collaboration. When the PIR sensor does not detect human movement, the sound sensor detects a sudden silence, and the light sensor detects no change in ambient brightness, and the duration is short (less than five minutes), the system maintains illumination. If the duration is longer (greater than thirty minutes), the system gradually dims the lights until they are turned off to avoid energy waste. The pet interference filtering function distinguishes between human and small animal activity. While small animals may trigger the PIR sensor, their movement patterns differ from humans, and they do not trigger the sound sensor. The system, combined with a habit learning function, can identify and ignore pet activity, preventing accidental lighting triggers. Safety is prioritized throughout the entire system operation. Safety is always the top priority. Lights are immediately reduced in case of overheating, turned off immediately in case of circuit malfunction, and enter a safety mode when sensors fail. After power is restored, a conservative lighting strategy is adopted to mitigate various safety hazards.

[0104] In some embodiments, the method further includes: By connecting to the smart home module through the developer platform, user commands are sent to the smart home module, enabling the smart home module to obtain and analyze the user commands to obtain control commands. In response to control commands, execute the corresponding control operations.

[0105] In some feasible implementations, an LED candle control solution that can interface with multiple smart ecosystems is provided. By adapting to mainstream smart ecosystems, diverse control is achieved. Combined with key functions that enhance user experience and multi-scenario applications, this enables intelligent, convenient, and scenario-based control of the LED candle, improving product adaptability and user satisfaction. This LED candle can seamlessly interface with multiple mainstream smart ecosystems. The interface methods, executable operations, and response logic for each ecosystem have been optimized to ensure stable linkage and timely response.

[0106] In some embodiments, access is achieved via the HomeKit accessory protocol, allowing users to directly add LED candle devices through the iPhone Home app. Once connected, various operations are possible, including basic controls such as on / off switching, brightness adjustment, and color temperature adjustment; one-click invocation of preset scenes; and automated control based on time, location, and the status of other devices. When a user issues a "Romantic Mode" command via Hey Siri, the LED candle will respond in a series of actions: gradually adjusting the brightness to a suitable, soft level, setting the color temperature to a warm yellow, activating the slow-breathing flame effect, and maintaining this state until the next control command is received. In automated scenes, when the sun sets, the LED candle will first check the indoor light level. If the environment is dim, it will automatically turn on to a suitable brightness and adjust the onset time according to the season—earlier in winter and later in summer—to adapt to the different lighting characteristics of each season.

[0107] In some embodiments, access is achieved through the Mi Home IoT Developer Platform, supporting both Wi-Fi Direct and Bluetooth Mesh connection methods. Users can control the LED candles directly via the Mi Home APP or via voice control through Xiao Ai (Xiaomi's AI assistant), and it also supports intelligent linkage with other Xiaomi smart devices. When a user issues a "movie mode" command via Xiao Ai, the LED candle brightness drops to a safe lighting level, and a micro-flicker effect is activated to simulate a real flame. In a cinema setting, automatic group control is implemented: the candles on both sides of the sofa are adjusted to a suitable brightness, the candles behind the TV are dimmed, and candles in other areas are turned off, catering to the needs of a movie-watching scenario. When the Mi Home human sensor detects movement, the LED candles respond accordingly based on the current mode. In night mode, detecting the action of getting up activates a dim light guide; in security mode, detecting a stranger triggers a rapid flashing alarm; and in daily mode, detecting a user returning home gradually brightens the candles at the door to welcome the user.

[0108] In some embodiments, access is achieved through an IoT platform, supporting multiple control methods such as voice control via APP scanning. Users can control the system via Tmall Genie, or operate it through Taobao or Alipay mini-programs, while also supporting special functions integrated with shopping scenarios. When a user issues a candlelight dinner command via Tmall Genie, the LED candles initiate a romantic sequence, with all candles gradually brightening to a suitable brightness, adjusting the color temperature to a warm yellow, and activating a two-person dance effect to make two clusters of flames alternately jump. When background music plays, the lights will subtly adjust their brightness in rhythm with the music, creating a romantic atmosphere. In shopping-related scenarios, when the countdown to the Double Eleven shopping festival begins, the LED candles flash in a breathing pattern to remind users, flash rapidly during the purchase to create a sense of tension, and flash in a colored pattern to celebrate a successful purchase.

[0109] In some embodiments, access is achieved through the Huawei Smart Life APP, supporting one-touch transfer and distributed linkage functions. Users can quickly control the device by touching the NFC tag with their mobile phone, supporting multi-device scene linkage, and can also achieve intelligent scene control by combining Huawei Health data. When a user touches the NFC tag with their mobile phone to trigger reading mode, the LED candle brightness is adjusted to a sufficient but not glaring level, the color temperature is adjusted to be close to natural light, the flame effect switches to a stable mode, and a reading timer is started, reminding the user to rest after one hour. When the Huawei Band detects that the user has fallen asleep, the LED candle enters the sleep aid stage, with the brightness decreasing by a certain amount every ten minutes, the color temperature gradually warming up, and the flame flickering gradually slowing down. After the user is completely asleep, all candles are automatically turned off, leaving only the low-light night light function to help the user sleep.

[0110] In some embodiments, access is achieved through the Tuya IoT development platform, supporting multi-brand device interaction. Users can control the LED candles via the Tuya Smart APP, enabling interaction with smart devices from different brands, and also providing energy consumption statistics and management functions. When the "away from home" mode is triggered, the LED candles will first check if all candles are turned off. If any candles are not turned off, a reminder will be sent remotely to the user. Users can set up a simulated "at home" mode, randomly turning on and off candles in different rooms to simulate the activity of someone at home, improving home security. In terms of energy consumption optimization, the LED candles can track daily and monthly electricity consumption and provide users with energy-saving suggestions, guiding them to adjust brightness, set a low-light mode in the early morning, and automatically turn off when no one is home, thus achieving energy saving and consumption reduction.

[0111] To further enhance the user experience, this embodiment includes several key functions. The intelligent scene memory function allows LED candles to remember the optimal settings for different scenes. After a user manually sets the brightness and color temperature for a specific scene for the first time, the system records the scene information. The next time a similar scene is encountered, the system automatically recommends the corresponding mode. After user confirmation, the optimal settings can be restored with a single click. Simultaneously, the system continuously optimizes the recommended parameters based on subsequent user adjustments, forming a personalized scene library. The multi-device spatial collaboration function enables intelligent coordination between multiple LED candles. The brightness and effect of each candle are adjusted according to different scenes. In a home theater scene, candles in different locations exhibit differentiated brightness and synchronized subtle flickering. In a friend's gathering scene, all candles take turns changing colors and flash collectively in rhythm with the music, creating a suitable atmosphere.

[0112] The emotional interactive feedback function enhances the user experience through multi-dimensional feedback. Visually, it flashes once quickly to confirm the received command, displays a breathing light effect during execution, gradually changes to the target state after successful execution, and flashes red to remind users of errors. Audio feedback is achieved through a smart speaker, providing corresponding voice prompts when switching between on / off operations or when the battery is low. When touch functionality is available, touch sensing and long-press adjustments provide vibration feedback to indicate the operation status. Seamless switching ensures real-time synchronization of user status across platforms, supports local control even when offline, maintains a short command response time, and automatically restores the state before power failure after power restoration, ensuring consistent usage. A guest-friendly design generates a control QR code valid for 24 hours, providing temporary control permissions to visitors. Guest mode only allows on / off brightness adjustment functions and does not allow modification of system settings. A simple operation guide is provided upon first use, balancing convenience and security.

[0113] This embodiment combines various practical application scenarios to verify the practicality and adaptability of LED candles. In a birthday surprise scenario, family members can remotely trigger and control the LED candles via a mobile app. The LED candles enter a standby state in advance and maintain a dim light display. At the surprise moment, the birthday song plays while the candles flash rhythmically in a color cycle. The central candle maintains the highest brightness to simulate a birthday candle effect. When a blowing sound or voice command is detected, the candles simulate being blown out, with only a dim light remaining as a notification. In a holiday decoration scenario, the system can automatically identify the holiday based on the date and switch to the corresponding theme. The Spring Festival mode presents a festive and rapid flashing effect of alternating gold and red, maintaining a special mode all night on New Year's Eve. The Christmas mode implements a three-color cycle of red, green, and white, with the candles divided into three groups corresponding to different colors, simulating the random flashing of falling snowflakes. The Valentine's Day mode presents pink and red heart-shaped patterns, achieving a synchronized heartbeat effect with two flames.

[0114] In the healthy living scenario, the morning wake-up function, combined with a smart alarm clock, gradually increases brightness from the lowest level to a suitable level 30 minutes in advance, with the color temperature gradually changing from warm yellow to natural white, helping users wake up gently. The work focus mode, combined with the Pomodoro Technique, maintains stable lighting during the 25-minute work period and reminds users to rest with a gentle breathing effect during the 5-minute break. The evening relaxation mode, combined with a meditation app, adjusts the brightness and rhythm of the candle according to the guided words, helping users relax and fall asleep. In the safety protection scenario, the simulated home function can automatically simulate home activities when the owner is away, randomly turning on and off candles in different rooms at specific times at night, simulating daily activities through brightness changes. The security alarm function, combined with the security system, flashes red rapidly when an anomaly is detected, and provides supplemental lighting when viewed through a camera. The elderly care function can automatically light up the path when getting up at night, issue a reminder when prolonged stillness is detected, and remind the user of medication in a special flashing pattern, comprehensively ensuring the safety of the elderly.

[0115] Please see Figure 2Another embodiment of this application provides an intelligent simulated candle lamp control device, the device comprising: The lighting control module is used to generate a multi-frequency superimposed periodic pulsation signal based on a global time signal; generate a spatial disturbance signal based on the coordinate information of each LED; superimpose the periodic pulsation signal and the spatial disturbance signal according to the reference brightness parameters and pulsation response parameters of the flame area to which each LED belongs to obtain the original brightness value; perform clamping processing according to the original brightness value and the brightness limit parameters of the flame area to which each LED belongs to obtain a stable combustion control signal and send it to the corresponding LED to execute, thus completing the control operation.

[0116] In some embodiments, the device further includes a motion sensor; The lighting control module is specifically used to acquire motion data from the motion sensor; determine whether the motion data exceeds a preset voltage threshold; if so, it sends a gradual lighting signal to each LED and enables it to perform the operation.

[0117] The specific limitations of the intelligent simulated candle lamp control device provided in this embodiment can be found in the embodiment of the intelligent simulated candle lamp control method described above, and will not be repeated here. Each module in the above-described intelligent simulated candle lamp control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0118] This application provides a computer device that may include a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it causes the processor to perform the steps of a smart simulated candle lamp control method as described in any of the above embodiments.

[0119] The working process, working details and technical effects of the computer device provided in this embodiment can be found in the embodiment of an intelligent simulation candle lamp control method described above, and will not be repeated here.

[0120] This application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the steps of a smart simulation candle lamp control method as described in any of the above embodiments. The computer-readable storage medium refers to a data storage medium, which may include, but is not limited to, floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or Memory Sticks. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0121] The working process, working details, and technical effects of the computer-readable storage medium provided in this embodiment can be found in the embodiment of an intelligent simulation candle lamp control method described above, and will not be repeated here.

[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for controlling an intelligent simulated candle lamp, characterized in that, The method includes: Generate a periodic pulsating signal with multiple frequencies superimposed based on the global time signal; Spatial disturbance signals are generated based on the coordinate information of each LED; Based on the reference brightness parameters and pulsation response parameters of the flame region to which each LED belongs, the periodic pulsation signal and the spatial disturbance signal are superimposed to obtain the original brightness value; Based on the original brightness value and the brightness limit parameters of the flame area to which each LED belongs, clamping processing is performed to obtain a stable combustion control signal, which is then sent to the corresponding LED to execute and complete the control operation.

2. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The generation of a multi-frequency superimposed periodic pulsating signal based on a global time signal includes: A second-level time signal is obtained by converting the global time signal. Obtain the first frequency, the second frequency, the third frequency, the first amplitude, the second amplitude, and the third amplitude; Based on the first frequency, the second frequency, the third frequency, the first amplitude, the second amplitude, the third amplitude, and the second-level time signal, a sine wave is calculated to generate a periodic pulsating signal with multiple frequencies superimposed.

3. The intelligent simulation candle lamp control method according to claim 2, characterized in that, The generation of spatial disturbance signals based on the coordinate information of each LED includes: Based on the coordinate information of each LED, the horizontal coordinate and vertical coordinate of each LED are obtained. The noise horizontal coordinate and noise vertical coordinate are obtained by linearly combining the horizontal coordinate of each LED, the vertical coordinate of each LED, and the second-level time signal. The spatial disturbance signal is generated by calculating the noise abscissa and ordinate based on the simplified Berlin noise function.

4. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Obtain the total ignition time, and calculate the ignition progress coefficient based on the cumulative ignition time and the total ignition time. Based on the preset center point at the bottom of the LED array as the flame diffusion origin, the normalized distance from each LED to the flame diffusion origin and the diffusion wavefront based on the change of the ignition progress coefficient are calculated to obtain the ignition diffusion factor of each LED. The stage brightness control signal is calculated based on the ignition progress coefficient and the ignition diffusion factor and then sent to the corresponding LED to execute it.

5. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: The light-out stage is obtained, and the brightness attenuation coefficient is obtained based on the light-out stage; the light-out stage includes an attenuation stage, a struggling stage, and an ember stage; The effective attenuation coefficient is calculated based on the flame region to which each LED belongs and the brightness attenuation coefficient.

6. The intelligent simulation candle lamp control method according to claim 5, characterized in that, The method further includes: If the light-off stage is the struggling stage, then a struggling flashing signal is calculated based on the brightness attenuation coefficient and the spatial disturbance signal and sent to the corresponding LED to make it execute.

7. The intelligent simulation candle lamp control method according to claim 6, characterized in that, The method further includes: If the light-extinguishing stage is the ember stage, then the stable combustion control signal of the preset flame area at the bottom of the LED array is maintained, and the stable combustion control signal of other flame areas is stopped until the brightness attenuation coefficient is less than the preset shutdown threshold. Then, a complete extinguishing signal is sent to each LED and it is executed.

8. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Acquire motion data from motion sensors; Determine whether the moving data is greater than a preset voltage threshold; If so, a gradual lighting signal is sent to each LED and the LED is activated.

9. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Acquire sound pressure data from the acoustic sensor; Determine whether the sound pressure data is greater than a preset sound pressure threshold; If so, a diffusion lighting signal is sent to each LED and it is activated.

10. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Acquire brightness data from the photosensor; Determine whether the brightness data is less than a preset brightness threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

11. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Acquire temperature data from the temperature sensor; Determine whether the temperature data is greater than a preset temperature threshold; If so, a brightness adjustment signal is sent to each LED and the LED is activated.

12. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: Acquire touch duration data from the touch sensor; If the touch duration data is less than 1 second, it is determined to be a short press, and a scene switching signal is sent to each LED to execute it; If the touch duration data is greater than 3 seconds, it is determined to be a long press, and a brightness adjustment signal is sent to each LED to make it execute.

13. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: The audio signal sent by the audio module is acquired, and time-domain calculations are performed on the audio signal to obtain a time-domain audio frame; The time-domain audio frame is calculated in the frequency domain to obtain spectral features; the spectral features are mapped to flame color data and sent to each LED to execute.

14. The intelligent simulation candle lamp control method according to claim 13, characterized in that, The method further includes: The time-domain audio frame is used to calculate the autocorrelation function to obtain the beat interval; The BPM value is calculated based on the stated beat interval; The flame frequency signal is obtained based on the BPM value, and the flame frequency signal is sent to each LED to enable its execution.

15. The intelligent simulation candle lamp control method according to claim 11, characterized in that, The method further includes: Chord features are extracted from the time-domain audio frames to obtain a set of spectral amplitudes and pitches; Based on the set of spectral amplitude and pitch, the chord type identifier corresponding to the current audio frame is obtained; The flame color data is obtained by matching the preset chord color mapping library with the chord type identifier and then sent to each LED to execute.

16. The intelligent simulation candle lamp control method according to claim 1, characterized in that, The method further includes: The developer platform connects to the smart home module, sending user commands to the smart home module; enabling the smart home module to receive and analyze the user commands to obtain control commands. In response to the control command, the corresponding control operation is executed.

17. A smart simulated candle lamp control device, characterized in that, The device includes: The lighting control module is used to generate a multi-frequency superimposed periodic pulsation signal based on a global time signal; generate a spatial disturbance signal based on the coordinate information of each LED; superimpose the periodic pulsation signal and the spatial disturbance signal according to the reference brightness parameters and pulsation response parameters of the flame area to which each LED belongs to obtain the original brightness value; perform clamping processing according to the original brightness value and the brightness limit parameters of the flame area to which each LED belongs to obtain a stable combustion control signal and send it to the corresponding LED to execute, thus completing the control operation.

18. The intelligent simulation candle lamp control device according to claim 17, characterized in that, The device also includes a motion sensor; The lighting control module is specifically used to acquire motion data from the motion sensor; determine whether the motion data is greater than a preset voltage threshold; if so, send a gradual lighting signal to each LED and make it execute.

19. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the intelligent simulation candle lamp control method as described in any one of claims 1 to 16.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the intelligent simulation candle lamp control method as described in any one of claims 1 to 16.