A lamp cap of a simulated electronic candle and a random brightness control method
By using light diffusers and flame films in the electronic candle head, combined with microprocessor-controlled brightness and random brightness algorithms for each LED, the problems of rigid light sources and dark areas in traditional electronic candle heads are solved, achieving a more realistic flame simulation effect.
Patent Information
- Application Number
- CN202311356296.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-10-19
AI Technical Summary
The light emitted by the lamp head of traditional electronic candles is rather rigid and cannot reproduce the color changes and flickering sensation of a real flame. In addition, there are obvious dark areas between the lamp beads, resulting in poor simulation.
It uses light diffusers and flame color films to simulate the flame color changes of real flames, and uses a microprocessor to control the brightness of each LED, combined with a random brightness control algorithm to simulate the flickering effect of the flame.
The simulation effect of the flame color and brightness of the simulated electronic candle head has been improved, and the dark areas between the LED beads have been eliminated, making the lamp head more closely resemble the visual experience of a real flame.
Smart Images

Figure CN117515455B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of daily necessities, in particular to a lamp holder of a simulated electronic candle and a random brightness control method. BACKGROUND
[0002] With the progress of people's living standards, in order to pursue a comfortable and elegant living space, candles have not only been used as a lighting tool, but also have been used to change the indoor environment.
[0003] Traditional candles are ignited by open flames, which can generate a large amount of heat, and are easy to tip over and ignite flammable materials, which has certain safety hazards. A large amount of black smoke generated during combustion can cause environmental pollution, and the molten wax liquid can burn the user. The light intensity, service life, etc. are usually difficult to meet the actual needs.
[0004] Therefore, electronic candles are increasingly used. Electronic candles use electronic light sources to simulate the effect of real candle lighting. Such electronic candles include a lamp holder shaped like a flame, a light source (usually an LED) arranged in the lamp holder, a base, and a power supply circuit and power supply arranged in the base to power the light source. However, the light emitted by the lamp holder of the current electronic candle is rigid and cannot reproduce the flame color change and jumping feeling of a real flame. It is obvious that the point light source emitted by the lamp beads in the electronic candle lamp holder and the adjacent lamp beads have obvious dark areas, which cannot achieve the simulation effect. SUMMARY
[0005] In view of the problems in the prior art, the present application provides a lamp holder of a simulated electronic candle, comprising:
[0006] A lamp bead fixing member, wherein a plurality of lamp beads and a microprocessor are integrated on the lamp bead fixing member, and the microprocessor is connected to each of the lamp beads;
[0007] A light diffusion member, wherein the light diffusion member is arranged outside the lamp bead fixing member;
[0008] A flame color film is further arranged between the light diffusion member and the lamp bead fixing member;
[0009] An outer shell, wherein a cavity for accommodating the light diffusion member and the lamp bead fixing member is arranged in the outer shell.
[0010] Preferably, the flame color film comprises a flame core area and an outer flame area with color gradient transition.
[0011] Preferably, a plurality of groups of lamp beads are symmetrically arranged on both sides of the lamp bead fixing member from bottom to top.
[0012] Preferably, a plurality of lamp beads and a microprocessor are integrated on both sides of the lamp bead fixing member.
[0013] the pins of the microprocessor of one face correspond to the cathodes of the lamp beads of the same face respectively, and the pins of the microprocessor of the other face correspond to the cathodes of the lamp beads of the same face through a resistor respectively;
[0014] the anodes of the lamp beads are connected to an external power supply, and the ground terminals of the microprocessors are grounded.
[0015] Preferably, the light diffusion member is a hollow cylinder, and the outer surface of the light diffusion member is a prismatic surface.
[0016] Preferably, the lamp beads of each face are arranged at equal intervals.
[0017] Preferably, the lamp bead fixing member is a reverse T-shaped.
[0018] The application further provides a random brightness control method applied to the lamp holder, and the random brightness control method comprises the following steps for each lamp bead in the lamp holder:
[0019] S1. Acquiring a count value based on the current time at the first running and saving the count value;
[0020] S2. Controlling the count value to decrease by one, and generating a random number when the count value decreases to zero, starting to decrease the random number and creating an increasing variable;
[0021] S3. Acquiring a fixed value corresponding to each lamp bead and an upper limit of the increasing variable;
[0022] S4. Saving the increasing value of the increasing variable when the random number decreases to zero, and processing the brightness control value according to the count value, the increasing value and the fixed value corresponding to each lamp bead, and judging whether the brightness control value is less than the increasing value:
[0023] If yes, controlling the brightness of the lamp bead according to the brightness control value, saving the brightness control value as the count value, and returning to step S2;
[0024] If no, controlling the lamp bead to be extinguished, and returning to step S2.
[0025] Preferably, step S4 comprises:
[0026] S41. Saving the increasing value of the increasing variable when the random number decreases to zero, and calculating the sum of the count value and the increasing value as an intermediate calculation value;
[0027] S42. Performing an or operation between the intermediate calculation value and the fixed value to obtain the brightness control value, and judging whether the brightness control value is less than the increasing value:
[0028] If yes, the luminance of the lamp bead is controlled according to the luminance control value, then the luminance control value is saved as the count value, and then the step S2 is returned;
[0029] If no, the lamp bead is controlled to be turned off, and then the step S2 is returned.
[0030] The technical scheme has the following advantages or beneficial effects:
[0031] 1) The flame color film is used to restore the different flame colors of the inner and outer flames in the real flame, the light diffusion member is used to eliminate the dark area between the lamp beads in the traditional electronic candle lamp holder, and the simulation effect is improved.
[0032] 2) The random luminance control algorithm is used to control the luminance of each lamp bead individually, the upper limit of the corresponding self-increment variable of each lamp bead is used to limit the random luminance range of each lamp bead, each lamp bead emits random luminance in the set range, the jumping of the flame is simulated, and the simulation effect is improved. BRIEF DESCRIPTION OF DRAWINGS
[0033] Figure 1 In a preferred embodiment of the present application, an exploded view of a lamp holder simulating an electronic candle is provided.
[0034] Figure 2 In a preferred embodiment of the present application, a cross-sectional structure schematic diagram of a lamp holder simulating an electronic candle is provided.
[0035] Figure 3 In a preferred embodiment of the present application, a structure schematic diagram of the front and back of the lamp bead fixing member is provided.
[0036] Figure 4 In a preferred embodiment of the present application, an equivalent circuit diagram of the front and back of the lamp bead fixing member is provided.
[0037] Figure 5 In a preferred embodiment of the present application, a flowchart of a random luminance control method is provided.
[0038] Figure 6 In a preferred embodiment of the present application, a sub-flowchart of step S4 is provided. DETAILED DESCRIPTION
[0039] The present application will be described in detail below in conjunction with the drawings and specific embodiments. The present application is not limited to this embodiment, and other embodiments can also belong to the scope of the present application as long as they meet the main idea of the present application.
[0040] In a preferred embodiment of the present application, based on the above-mentioned problems existing in the prior art, a lamp holder simulating an electronic candle is provided, such as Figure 1 and Figure 2As shown, comprising:
[0041] The lamp bead fixing part 1 is integrated with a plurality of lamp beads 11.
[0042] The light diffusion part 2 is sleeved outside the lamp bead fixing part 1.
[0043] The light diffusion part 2 and the lamp bead fixing part 1 are further provided with a flame color film 3.
[0044] The shell 4 is internally provided with a cavity for accommodating the light diffusion part 2 and the lamp bead fixing part 1.
[0045] In the preferred embodiment of the present application, the light diffusion part 2 is a hollow prism.
[0046] Specifically, in the present embodiment, the existing electronic candle uses electronic light source to simulate the effect of real candle lighting. The electronic candle includes a lamp head made in the shape of flame, a light source (generally using LED) arranged in the lamp head, a base, and a power supply circuit and power supply arranged in the base for powering the light source. However, the light emitted by the lamp head of the current electronic candle is relatively rigid, and it can be obviously felt that there is a dark area between the light source and the adjacent lamp beads in the lamp head of the electronic candle, which cannot achieve the simulation effect.
[0047] Therefore, in the lamp head of the simulation electronic candle provided by the present application, the light diffusion part 2 is a hollow prism sleeved outside the lamp bead fixing part 1. In the traditional lamp head, when the lamp beads are lit, it can be obviously seen that the light source emits light in the form of points. After the light diffusion part 2 is sleeved, the light emitted by the lamp beads is diffused, so that the dark area between the adjacent lamp beads is eliminated. In addition, since the lamp bead fixing part 1 is a flat structure, the light brightness and effect of the two sides of the lamp bead fixing part 1 are not as good as those of the two sides directly opposite the lamp bead fixing part. After the cylindrical light diffusion part 2 is sleeved, the light brightness and effect of the two sides can also be improved, and from various angles, good effects can be observed. In addition, the light diffusion part 2 is a hollow prism, and the prismatic surface of the surface can further increase the light diffusion area to make the light more uniform, and the perception is closer to the light emitting effect of the real flame, improving the realism. The shell 4 of the lamp head can be made in the shape of simulated flame to improve the simulation effect.
[0048] In the preferred embodiment of the present application, the flame color film 3 includes a flame core area and an outer flame area with color gradient transition from bottom to top.
[0049] Specifically, in the present embodiment, in order to make the lamp head closer to the effect of real flame, a layer of flame color film 3 is further sleeved outside the lamp bead fixing part 1. Figure 1The thin film outside the lamp bead fixing part is not marked, and the flame color film 3 is divided into a flame core area and an outer flame area; the flame color of the flame core area and the outer flame area can be set according to the simulated flame, when the lamp head is used as a candle, the flame core area is coated with dark yellow, and the outer flame area is set to light yellow which gradually fades, and the color gradually changes in the middle of the flame core area and the outer flame area to simulate the flame color of a real flame; in addition, the flame core area of the lamp head can also be coated with blue pigment to simulate a blue flame.
[0050] In the preferred embodiment of the present application, the lamp bead fixing part 1 is symmetrically arranged with multiple groups of lamp beads 11 from bottom to top on both sides.
[0051] In the preferred embodiment of the present application, the lamp bead fixing part 1 is inverted T-shaped,
[0052] In the preferred embodiment of the present application, the lamp beads 11 on each side are arranged at equal intervals
[0053] Specifically, in the embodiment, the lamp bead fixing part 1 can adopt a PCB board, and multiple lamp beads 11 are integrated on both sides of the PCB board, the lamp beads 11 on both sides are symmetrical and the intervals between adjacent lamp beads 11 are equal, and in the embodiment, a total of 8 lamp beads 11 are provided, and 4 lamp beads 11 are provided on both sides of the lamp bead fixing part 1 and symmetrically arranged, as shown in FIG. Figure 3 from bottom to top, arranged at equal intervals and divided into four layers to simulate a real flame (flame core, inner flame, outer flame and outermost flame);
[0054] The lamp bead fixing part 1 adopts an inverted T-shaped shape, and the length of the two arms of the T-shaped part is equal to the widest part of the inner wall of the shell 4, thereby achieving better fixing effect.
[0055] In another embodiment, a roll-shaped LED light strip can be used as the lamp bead fixing part 1 as a light source, and since the roll-shaped LED light strip has more LED lamp beads and high density, the presentation effect is better than the integrated lamp bead mode on the PCB board, but the cost and process preparation are also increased, but in the actual production process, the integrated lamp bead mode on the PCB board is more practical in consideration of the cost and process difficulty.
[0056] In the preferred embodiment of the present application, one microprocessor 12 is integrated on one side of the lamp bead fixing part 1.
[0057] The control pins of the microprocessor 12 are respectively connected to the cathodes of the lamp beads 11 on the same side, and the control pins of the microprocessor 12 are respectively connected to the cathodes of the lamp beads 11 on the other side through a resistor R.
[0058] The anode of each lamp bead 11 is connected to an external power supply VCC, the ground of each microprocessor 12 is grounded, and the power supply pin of the microprocessor 12 is grounded through a capacitor C and connected to the power supply VCC.
[0059] Specifically, in the embodiment, as shown in Figure 4 the lamp bead fixing part 1 is divided into two surfaces, one surface is integrated with a microprocessor 12 and directly connected between each lamp bead 11 (identified as LED5, LED6, LED7, LED8 in the figure) on the same surface, and the microprocessor 12 is connected to each lamp bead 11 (identified as LED1, LED2, LED3, LED4 in the figure) at a symmetrical position on the other surface through a resistor R;
[0060] Each lamp bead 11 is independently connected to the microprocessor 12, which can realize independent control of each lamp bead 11 and avoid the situation that a lamp bead failure leads to all lamp bead failures in the traditional lamp head using a series connection mode;
[0061] The size of the lamp head mainly depends on the width of the lamp bead fixing part, in order to reduce the size of the lamp head, one of the implementation manners is that the lamp bead fixing part 1 adopts a multi-layer board stacking design and layered wiring, which avoids too many wirings on the same layer board to cause intersection, reduces the wiring difficulty, and at the same time can reduce the width of the PCB board, so as to complete the wiring on a very small PCB board and reduce the size of the lamp bead fixing part 1 to reduce the size of the lamp head.
[0062] In the preferred embodiment of the present application, the bottom of the shell 4 is connected to the external candle body through a simulated wick.
[0063] In the preferred embodiment of the present application, the simulated wick adopts a hollow cotton thread.
[0064] Specifically, in the embodiment, the lamp head is mounted on the candle body, and the traditional electronic candle adopts a common black plastic wick to fixedly connect the lamp head and the candle body, which can realize the fixing effect, but the relative position between the lamp head and the candle body is always fixed due to the hardness of the plastic, which feels particularly rigid and rigid from the perspective, and the hollow cotton swab is replaced for the traditional wick in the embodiment, and the power supply line connected between the battery of the candle body and the lamp bead fixing part passes through the hollow cotton thread; the hardness of the hollow cotton swab is lower than that of the plastic, so that there is a slight shaking during the movement and use of the candle body, which is closer to the slight shaking effect of the real candle, and improves the simulation effect.
[0065] The present application also provides a random brightness control method applied to the lamp head, and for each lamp bead in the lamp head, the random brightness control method comprises the following steps as shown in Figure 5
[0066] Step S1, obtaining a count value based on current time at first running and saving;
[0067] Step S2, controlling the count value to decrease by one, and generating a random number when the count value decreases to zero, starting to decrease and creating an increasing variable;
[0068] Step S3, obtaining a fixed value corresponding to each lamp bead and an upper limit of the increasing variable;
[0069] Step S4, saving the increasing value of the increasing variable when the random number decreases to zero, and processing a brightness control value according to the count value, the increasing value and the fixed value, and judging whether the brightness control value is less than the increasing value:
[0070] If yes, controlling the brightness of the lamp bead according to the brightness control value, saving the brightness control value as the count value, and returning to step S2;
[0071] If no, controlling the lamp bead to be off, and returning to step S2.
[0072] Specifically, in the embodiment, the first counter and the second counter connected with the microprocessor are integrated on the lamp bead fixing member, the brightness of each lamp bead is independently controlled by running the random brightness algorithm in the microprocessor, the random brightness range of each lamp bead is controlled by the upper limit of the corresponding increasing variable of each lamp bead, each lamp bead emits random brightness in the set range to simulate the jumping of the flickering flame, and the simulation effect is improved.
[0073] In the preferred embodiment of the present application, step S4 includes: Figure 6 as shown in the figure, including:
[0074] Step S41, calculating the sum of the count value and the increasing value as an intermediate calculation value;
[0075] Step S42, performing or operation between the intermediate calculation value and the fixed value to obtain the brightness control value, and judging whether the brightness control value is less than the increasing value:
[0076] If yes, controlling the brightness of the lamp bead according to the brightness control value, saving the brightness control value as the count value, and returning to step S2;
[0077] If no, controlling the lamp bead to be off, and returning to step S2.
[0078] Specifically, by default, the count value in the first counter is based on the current time, and when the light head is started for the first time to run the random brightness algorithm, the count value in the first counter is a 16-bit binary number based on the current time, which is saved, and then the first counter is controlled to start decreasing from the current count value, and when it is decreased to zero, a random number with random changes is generated and saved to the second counter to start decreasing, and at the same time, a self-incrementing variable starting from zero is created (preferably, the value of each increment is 1), and when the random number saved in the second counter is decreased to zero, the current increment value of the self-incrementing variable is output and saved, and then the saved count value in the first counter is added to the current increment value to obtain an intermediate calculation value, and then the intermediate calculation value is or operated with the fixed value corresponding to each lamp bead to obtain the brightness control value of the lamp bead to control the brightness of the lamp bead, and then the brightness control value is saved to the first counter as the count value for the next round of lamp bead brightness control. The count value in the first counter read in the subsequent lamp bead brightness control process is all the random brightness control value calculated in the last round.
[0079] In the embodiment, the lamp bead fixing member in the light head is integrated with four groups of lamp groups from bottom to top, and each group of lamp beads includes two lamp beads symmetrically arranged on the two sides of the lamp bead fixing member. Therefore, for better control effect, each group of lamp beads is controlled by using the same brightness control value (of course, different brightness control values can also be calculated for each lamp bead to control it individually). Through the random brightness control algorithm, the brightness calculated by each group of lamp beads in each round is different, so that the real flame jumping can be simulated, and the simulation effect is improved.
[0080] Specifically, the four groups of lamp beads from bottom to top represent the flame core, inner flame, outer flame, and outermost flame, so the random brightness range of each group of lamp beads needs to be different. In the embodiment, the brightness of each lamp bead is divided into 0-255 brightness levels. The flame core at the lowermost layer needs to be kept on, so the corresponding random brightness range is preferably 155-255. The corresponding random brightness range of the inner flame is preferably 0-255. The corresponding random brightness range of the outer flame is preferably 0-205. The corresponding random brightness range of the flame is preferably 0-155. Because the corresponding random brightness ranges of the lamp beads in each group need to be different, the upper limit of the corresponding self-incrementing variable of each group of lamp beads needs to be pre-configured to limit the corresponding random brightness range of each group of lamp beads. After the brightness control value is calculated in each round of brightness control process, it needs to be compared with the self-incrementing variable. When the brightness control value is less than the increment value of the self-incrementing variable, it is regarded as valid data to control the brightness of the lamp bead, otherwise, it is invalid to control the lamp bead to be extinguished.
[0081] Taking the lamp bead corresponding to the inner flame as an example, the upper limit of the corresponding self-increment variable is set to 255 (the self-increment variable is an 8-bit binary, and the corresponding maximum decimal number is 255, and the self-increment is restarted from 0 after reaching 255), and the brightness control value is always less than the self-increment value, and the corresponding decimal range of the self-increment value is 0-255, so the brightness of the lamp bead corresponding to the inner flame will never exceed 255;
[0082] For the lamp bead corresponding to the flame core, a comparison process needs to be added, in addition to setting the upper limit of the corresponding self-increment variable to 255, the obtained brightness control value also needs to be greater than the preset lower limit of the brightness (here, 155), so as to ensure that the brightness of the lamp bead is between 155-255;
[0083] In the embodiment, the count value stored in the first counter is a 16-bit binary number, and the intermediate calculation value (a 16-bit binary number) obtained by adding the count value and the self-increment value (an 8-bit binary number) may exceed 255 when converted to a decimal number, so the calculated random brightness control value (also a 16-bit binary number) needs to be converted to a decimal number and further compared with the upper limit of the corresponding self-increment variable, so that the random brightness control value is limited in the corresponding random brightness range, so the upper limit of the corresponding self-increment variable of each lamp bead needs to be configured according to the actual random brightness range of the lamp bead, and the lower limit needs to be additionally configured when necessary.
[0084] When the lamp head starts to work, each lamp bead randomly emits light according to the random brightness control value calculated in real time according to the preset random brightness control algorithm, and the brightness of each lamp bead is different in each round of light emission, and the interval time between adjacent two control processes (i.e., the time when the second counter is decremented to 0) is also different, avoiding the traditional rigid and repeated light emission mode of the lamp head, and achieving the effect of simulating a flame.
[0085] The above is only the preferred embodiment of the present application, and does not limit the implementation and protection scope of the present application, and those skilled in the art should be able to realize that any equivalent replacement and obvious change obtained by applying the contents of the specification and drawings should be included in the protection scope of the present application.
Claims
1. A random brightness control method, characterized by, The application relates to a lamp cap applied to a simulated electronic candle, and the lamp cap comprises the following parts: a lamp bead fixing part, wherein a plurality of lamp beads are integrated on the lamp bead fixing part; a light diffusion part, wherein the light diffusion part is sleeved outside the lamp bead fixing part, and a flame color film is arranged between the light diffusion part and the lamp bead fixing part; an outer shell, wherein a cavity for accommodating the light diffusion part and the lamp bead fixing part is arranged in the outer shell; for each lamp bead in the lamp cap, the random brightness control method comprises the following steps: step S1: obtaining a count value based on the current time at the first running and saving the count value; step S2: controlling the count value to be self-decreased, generating a random number when the count value is self-decreased to zero, starting self-decrement and creating a self-increment variable; step S3: obtaining a fixed value corresponding to each lamp bead and the upper limit of the self-increment variable which is pre-configured; step S4: saving the self-increment value of the self-increment variable when the random number is self-decreased to zero, processing a brightness control value according to the count value, the self-increment value and the fixed value corresponding to the lamp bead, and judging whether the brightness control value is smaller than the self-increment value: if yes, controlling the brightness of the lamp bead according to the brightness control value, saving the brightness control value as the count value, and returning to the step S2; if no, controlling the lamp bead to be extinguished, and returning to the step S2.
2. The random brightness control method according to claim 1, wherein The flame color film comprises a flame core area and an outer flame area which are color gradient transitioned from bottom to top.
3. The random intensity control method according to claim 1, wherein A plurality of groups of lamp beads are symmetrically arranged on two surfaces of the lamp bead fixing part from bottom to top.
4. The random brightness control method according to claim 3, wherein One microprocessor is integrated on one surface of the lamp bead fixing part. Each control pin of the microprocessor is connected with the cathode of each lamp bead on the same surface, and each control pin of the microprocessor is connected with the cathode of each lamp bead on the other surface through a resistor. The anode of each lamp bead is connected with an external power supply, the grounding end of each microprocessor is grounded, and the power supply pin of the microprocessor is grounded through a capacitor and connected with the power supply.
5. The random intensity control method of claim 1, wherein The light diffusion part is a hollow prism.
6. The random intensity control method of claim 1, wherein The lamp bead fixing part is inverted T-shaped.
7. The random intensity control method according to claim 3, wherein Each lamp bead on each surface is arranged at equal intervals.
8. The random intensity control method as claimed in claim 1, wherein The step S4 comprises the following steps: step S41: calculating the sum of the count value and the self-increment value as an intermediate calculation value; step S42: performing or operation on the intermediate calculation value and the fixed value to obtain the brightness control value, and judging whether the brightness control value is smaller than the self-increment value: if yes, controlling the brightness of the lamp bead according to the brightness control value, saving the brightness control value as the count value, and returning to the step S2; if no, controlling the lamp bead to be extinguished, and returning to the step S2.
Citation Information
Patent Citations
Simulation electronic candle
CN208951979U
LED flame lamp
CN214222975U
Lamp holder of simulation electronic candle
CN221237718U