Simulated candlelight response circuit based on magnetic field induction and control method thereof
By introducing electromagnetic induction technology and multi-circuit design into the electronic candle lamp, the electronic candle is linked with the ambient magnetic field, increasing the colored light effect. This solves the problems of existing electronic candle lamps being unable to adapt to various occasions and having low charging efficiency, and improves the stability and durability of the circuit.
Patent Information
- Application Number
- CN202511615156.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-06
- Publication Date
- 2025-12-05
AI Technical Summary
Existing electronic candle lights cannot be synchronized with changes in the ambient magnetic field, have limited color options, cannot adapt to various occasions, and have low charging efficiency and unstable power supply, affecting the normal operation of the circuit.
It employs an input power supply circuit, a charging protection circuit, a battery module, a boost circuit, an MCU control circuit, a signal detection circuit, and a lighting control circuit. By capturing changes in alternating magnetic fields through electromagnetic induction, it enables the electronic candle to interact with the environment and adds colored lighting effects. It also features a charging power supply design that reduces power consumption and protects against surges.
It enables electronic candles to interact with the ambient magnetic field, enhances colored lighting effects, improves charging efficiency and power stability, and ensures the durability and safe operation of the circuit.
Smart Images

Figure CN121078591A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of candlelight simulation technology, and particularly relates to a magnetic field induction-based candlelight simulation response circuit and a control method thereof. BACKGROUND
[0002] Electronic candle lamps are simulation lighting devices with LED technology as the core, which simulate the burning effect of traditional candles through built-in light-emitting elements and dynamic mechanical structures. This product has been developed since the early 2000s, and has experienced iterations from basic light effect simulation to integrated dynamic swinging functions. As of 2025, it has developed to the fourth and fifth generation products. Its core features include no open flame safety protection, reusable environmental properties, and highly realistic candlelight effects, and is widely used in wedding decoration, holiday decoration, religious ceremonies and other scenes. With the expansion of cross-border e-commerce channels, this product category has gradually extended to personalized and gift-oriented directions, becoming an important subcategory in the field of modern decorative lighting. However, the electronic candle lamps on the market cannot be linked with the changes in the environmental magnetic field, and are generally unchanged; the color of the candle lamp on the market is single, mainly the color of the flame, which is not suitable for the needs of various occasions; traditional electronic candles cannot be linked with the changes in the environmental magnetic field, existing detection equipment lacks immersive visual feedback, and the on-off switching of ordinary LED candles is too unnatural.
[0003] In addition, electronic candles all need a charger to provide them with a constant and stable power source. If electronic candles use batteries to store electricity, they can be turned on at any time and anywhere. For chargers, generally do not have a float charging function, which will make the electronic candle cannot be fully charged when charging, resulting in less energy storage of the battery, and despite the long charging time, it is still not durable, leading to low battery utilization rate. In addition, AC power is sometimes unstable or has sharp peaks and other miscellaneous electricity, which will affect the subsequent circuit and equipment, greatly affecting the normal use of the subsequent circuit.
[0004] Therefore, in view of the above problems, the existing candlelight simulation technology needs to be further improved. SUMMARY
[0005] The present application aims to provide a traditional electronic candle linked with environmental magnetic field changes, by adopting an input power supply circuit, a charging protection circuit, a battery module, a voltage boosting circuit, an MCU control circuit, a signal detection circuit and a lamp control circuit, the circuit containing an antenna, forming a built-in induction coil, capturing an alternating magnetic field through electromagnetic induction principle, monitoring the surrounding environmental magnetic field changes in real time, once detecting the surrounding magnetic field changes, the electronic candle will automatically light up the candle warm yellow light, the touch and vision close to traditional candles and dynamic candlelight, etc.; it also has color light on the basis of the candle lighting yellow light; the circuit also adopts a charging power supply reducing power consumption, a surge protection type charging power supply and a stable and safe output type charging power supply, which can better power the electronic candle, making it work durably and safely, etc.
[0006] The technical scheme of the present application is as follows: A pseudo-candlelight response circuit based on magnetic field induction, the pseudo-candlelight response circuit comprises: an input power supply circuit, a charging protection circuit, a battery module, a voltage boosting circuit, an MCU control circuit, a signal detection circuit and a lamp control circuit, the power input end of the input power supply circuit is electrically connected with an external alternating current power supply, the power output end of the input power supply circuit is electrically connected with the power input end of the charging protection circuit, the power output end of the charging protection circuit is electrically connected with one port of the battery module, one port of the battery module is electrically connected with the power input end of the voltage boosting circuit, the power output end of the voltage boosting circuit is respectively electrically connected with the power input end of the MCU control circuit, the power input end of the signal detection circuit and the power input end of the lamp control circuit, the signal control end of the MCU control circuit is electrically connected with the signal control end of the signal detection circuit, and the lamp control end of the MCU control circuit is electrically connected with the lamp control end of the lamp control circuit. The input power supply circuit comprises an input power protection circuit, a rectifier filter circuit, a flyback transformer circuit and an output power supply circuit, the power input end of the input power protection circuit is electrically connected with an external alternating current power supply, the power output end of the input power protection circuit is electrically connected with the power input end of the rectifier filter circuit, the power output end of the rectifier filter circuit is electrically connected with the power input end of the flyback transformer circuit, the power output end of the flyback transformer circuit is electrically connected with the power input end of the output power supply circuit, and the power output end of the output power supply circuit is electrically connected with the power input end of the charging protection circuit. The lamp control circuit comprises a color lamp control circuit and a simulated candle lamp control circuit, the power input end of the color lamp control circuit and the power input end of the simulated candle lamp control circuit are respectively electrically connected with the power output end of the voltage boosting circuit, and the lamp control end of the color lamp control circuit and the lamp control end of the simulated candle lamp control circuit are respectively electrically connected with the lamp control end of the MCU control circuit.
[0007] Further, the input power protection circuit comprises a fuse F1-1, a diode D1-1, a voltage-dependent resistor RV1-1, a capacitor C1-1, a resistor R1-1, a resistor R1-2, a resistor R1-3 and a mutual inductor L1-1, one end of the fuse F1-1 is electrically connected to the live wire of the alternating current, the other end of the fuse F1-1 is electrically connected to the anode of the diode D1-1, one end of the capacitor C1-1, one end of the resistor R1-2 and the "1" terminal of the mutual inductor L1-1, the cathode of the diode D1-1 is connected to one end of the voltage-dependent resistor RV1-1, the other end of the voltage-dependent resistor RV1-1 and one end of the resistor R1-1 are commonly connected to the zero line of the alternating current, the other end of the capacitor C1-1 is commonly connected to the other end of the resistor R1-1, one end of the resistor R1-3 and the "3" terminal of the mutual inductor L1-1, the other end of the resistor R1-2 is connected to the other end of the resistor R1-3, and the "2" terminal and the "4" terminal of the mutual inductor L1-1 are respectively connected to the power input end of the rectification and filtering circuit.
[0008] In the formula, the diode D1-1 is a TVS diode.
[0009] In the formula, the input power protection circuit can be overcurrent protected by the fuse F1-1, and the one-way conduction of the diode D1-1 and the series connection with the voltage-dependent resistor RV1-1 can achieve better overvoltage protection effect; the voltage-dependent resistor can absorb most of the overvoltage energy, reduce the voltage amplitude of the TVS tube, thereby reducing the working load of the TVS tube and prolonging the service life of the TVS tube; at the same time, the TVS tube can quickly respond and accurately clamp, prevent residual peak voltage from causing damage to the subsequent circuit, etc.; the series combination ensures the reliability and effectiveness of the entire protection circuit and prevents power surge phenomenon, etc.
[0010] In the formula, in combination with the capacitor C1-1, the resistor R1-1, the resistor R1-2, the resistor R1-3 and the mutual inductor L1-1, the power input can be subjected to EMC filtering, which can prevent power grid interference and also suppress power interference, thereby achieving bidirectional protection of the power supply and stable alternating current input.
[0011] Further, the rectification and filtering circuit comprises a bridge rectification and filtering circuit and a Π-type filtering circuit, the power output end of the input power protection circuit is electrically connected to the power input end of the bridge rectification and filtering circuit, the power output end of the bridge rectification and filtering circuit is electrically connected to the power input end of the Π-type filtering circuit, and the power output end of the Π-type filtering circuit is electrically connected to the power input end of the flyback transformer circuit.
[0012] Further, the bridge rectifier filter circuit comprises a bridge rectifier DB1-1, the "2" terminal and the "4" terminal of the bridge rectifier DB1-1 are connected to the power output end of the input power protection circuit respectively, the "3" terminal of the bridge rectifier DB1-1 is grounded, and the "1" terminal of the bridge rectifier DB1-1 is connected to the power input end of the Π type filter circuit.
[0013] Further, the Π type filter circuit comprises a capacitor C1-2, a capacitor C1-3 and an inductor L1-2, one end of the capacitor C1-2 and one end of the inductor L1-2 are connected to the power output end of the bridge rectifier filter circuit, the other end of the inductor L1-2 is connected to one end of the capacitor C1-3 and the power input end of the flyback transformer circuit, and the other end of the capacitor C1-2 and the other end of the capacitor C1-3 are grounded.
[0014] Wherein, the connection combination of the capacitor C1-2, the capacitor C1-3 and the inductor L1-2 is adopted, the capacitor C1-2 and the inductor L1-2 are connected in parallel to form an LC parallel circuit, the rectified direct current is stored at the capacitor C1-2, at the same time, the capacitor C1-2 can also purify and filter the electricity, which can filter out part of the electrical noise, the inductor L1-2 can enhance the activity of the electricity in the branch through the purified electricity, reduce the energy consumption in the branch through the mutual cooperation of electromagnetic energy, and transmit the purified electricity to the capacitor C1-3 through the inductor L1-2. The inductor L1-2 and the capacitor C1-3 are connected in parallel to form an LC parallel circuit again, the capacitor C1-3 can further remove the noise, and at the same time, the cooperation with the inductor L1-2 can continue to stably transmit the electrical energy through the LC parallel circuit, and the capacitor C1-2, the capacitor C1-3 and the inductor L1-2 also constitute a Π type filter circuit to further filter the input electricity, and the noise is guided out through the grounding of the capacitor C1-2 and the capacitor C1-3.
[0015] Further, the flyback transformer circuit comprises a chip control circuit, a transformer circuit and a rectifier output circuit, the power output end of the rectifier filter circuit is electrically connected to the power input end of the chip control circuit, the power output end of the chip control circuit is electrically connected to the power input end of the transformer circuit, the power output end of the transformer circuit is respectively electrically connected to the input end of the chip control circuit and the input end of the rectifier output circuit, and the power output end of the rectifier output circuit is electrically connected to the power input end of the output power circuit.
[0016] Further, the chip control circuit comprises a bidirectional thyristor Q1-1, a resistor R1-4, a capacitor C1-4, a chip U1-1, a resistor R1-5, a voltage stabilizing tube D1-5, a capacitor C1-9, a resistor R1-11, a photoelectric coupler U1-2, a voltage stabilizing tube D1-6, a resistor R1-13, a capacitor C1-8, a resistor R1-14, a resistor R1-15, a resistor R1-12, a capacitor C1-7, a resistor R1-8, a resistor R1-10, a capacitor C1-5, a resistor R1-9, a resistor R1-7, a resistor R1-6, a diode D1-2, an NMOS tube Q1-2, a diode D1-3, a diode D1-4, a capacitor C1-6 and an inductor L1-4, the chip U1-1 "1" is connected with one end of the capacitor C1-4, the chip U1-1 "5" is connected with the other end of the capacitor C1-4, one end of the resistor R1-4 and the negative electrode of the diode D1-3, the other end of the resistor R1-4 is connected with an input power protection circuit, the positive electrode of the diode D1-3 is connected with the positive electrode of the diode D1-4, the "3" terminal of the bidirectional thyristor Q1-1 and one end of the capacitor C1-6, the "1" terminal and the "2" terminal of the bidirectional thyristor Q1-1 are connected with the resistor R1-1 in the input power protection circuit in parallel, the negative electrode of the diode D1-4 is connected with one end of the inductor L1-4, the other end of the inductor L1-4 is connected with the other end of an output terminal of a voltage transformation circuit, the other end of the capacitor C1-6 is grounded, the "2" terminal of the chip U1-1 is connected with one end of the resistor R1-5, the other end of the resistor R1-5 is connected with the "1" terminal of the photoelectric coupler U1-2, the negative electrode of the voltage stabilizing tube D1-5 and one end of the capacitor C1-9, the "4" terminal of the chip U1-1 is connected with one end of the resistor R1-8 and one end of the capacitor C1-7, the "6" terminal of the chip U1-1 is connected with one end of the resistor R1-6 and one end of the resistor R1-7, the "2" terminal of the photoelectric coupler U1-2 is connected with one end of the resistor R1-11, the other end of the resistor R1-11, the positive electrode of the voltage stabilizing tube D1-5 and the other end of the capacitor C1-9 are grounded in common, the "3" terminal of the photoelectric coupler U1-2 is connected with an external direct-current power supply through the resistor R1-12, the "4" terminal of the photoelectric coupler U1-2 is connected with one end of the capacitor C1-8 and the "1" terminal of the voltage stabilizing tube D1-6, the "2" terminal of the voltage stabilizing tube D1-6 is connected with one end of the resistor R1-13, one end of the resistor R1-14 and one end of the resistor R1-15, the "3" terminal of the voltage stabilizing tube D1-6 and the other end of the resistor R1-13 are grounded in common, the other end of the capacitor C1-8 is connected with the other end of the resistor R1-14, the other end of the resistor R1-15 is connected with a power output terminal of the output power circuit, the other end of the resistor R1-8 is connected with one end of the resistor R1-10 and the source electrode of the NMOS tube Q1-2, the other end of the resistor R1-10 and the other end of the capacitor C1-7 are grounded in common, the other end of the resistor R1-6 is connected with the negative electrode of the diode D1-2, the positive electrode of the diode D1-2 is connected with the gate electrode of the NMOS tube Q1-2, the other end of the resistor R1-7, one end of the capacitor C1-5 and one end of the resistor R1-9, the other end of the capacitor C1-5 and the other end of the resistor R1-9 are grounded in common.NMOS tube Q1-2 drain connection voltage transformation circuit input end one end.
[0017] Wherein, the bidirectional thyristor Q1-1 selects bidirectional thyristor Q1-1;With a fixed resistance resistor R1-1 and a bidirectional thyristor Q1-1;When the power is on, the bidirectional thyristor Q1-1 is cut off and does not conduct, the power current flows through the resistor R1-1, and the resistor R1-1 plays a role in suppressing the input surge current;When the power starts to work, at this time, a trigger signal will be given to the trigger electrode of the bidirectional thyristor Q1-1, so that the bidirectional thyristor Q1-1 is turned on;After the bidirectional thyristor Q1-1 is turned on, the input current will flow through the bidirectional thyristor Q1-1, the current flowing through the resistor R1-1 is very low, and the resistor R1-1 is almost in open circuit state, which greatly reduces the power loss of the power supply and the like.
[0018] Wherein, the chip U1-1 selects the chip of type OB2281AMP, which is a high-performance current mode PWM controller, can optimize the flyback conversion circuit, has low standby power consumption, also supports frequency jitter technology to optimize EMI performance, etc. Through the cooperation of the peripheral circuit, overcurrent protection and overload protection can be realized.
[0019] Wherein, the voltage regulator D1-6 selects the voltage regulator of type TL431, which cooperates with the optocoupler U1-2 to sample and compare voltage, and feedback in real time to the chip U1-1 for processing.
[0020] Further, the voltage transformation circuit comprises a transformer T1-1, a capacitor C1-12, a resistor R1-17 and a diode D1-8, the "1" terminal of the transformer T1-1 is connected to one end of the capacitor C1-12, one end of the resistor R1-17 and the power output end of the rectifier filter circuit, the other end of the capacitor C1-12 and the other end of the resistor R1-17 are connected to the negative electrode of the diode D1-8, the positive electrode of the diode D1-8 is connected to the "2" terminal of the transformer T1-1, the "3" terminal of the transformer T1-1 is connected to the input end of the chip control circuit, the "4" terminal of the transformer T1-1 is grounded, the "5" terminal and the "7" terminal of the transformer T1-1 are respectively connected to the input end of the rectifier output circuit, and the "6" terminal and the "8" terminal of the transformer T1-1 are grounded.
[0021] Further, the rectifier output circuit comprises a capacitor C1-10, a resistor R1-19, a capacitor C1-13, a resistor R1-18, a capacitor C1-11, a resistor R1-20, a diode D1-7, a diode D1-9, a mutual inductor L1-6 and a diode D1-10, one end of the output terminal of the transformer circuit is connected to one end of the resistor R1-18 and the positive electrode of the diode D1-9, the other end of the resistor R1-18 is connected to one end of the capacitor C1-13, the other end of the capacitor C1-13 is connected to the negative electrode of the diode D1-9, one end of the capacitor C1-10, one end of the resistor R1-19 and the positive electrode of the diode D1-10, the negative electrode of the diode D1-10 is connected to the "1" terminal of the mutual inductor L1-6, the other end of the capacitor C1-10 and the other end of the resistor R1-19 are grounded, the other end of the output terminal of the transformer circuit is connected to the positive electrode of the diode D1-7, the negative electrode of the diode D1-7 is connected to one end of the capacitor C1-11 and one end of the resistor R1-20, the other end of the resistor R1-20 is connected to the "4" terminal of the mutual inductor L1-6, the other end of the capacitor C1-11 is grounded, the "2" terminal of the mutual inductor L1-6 is grounded, and the "4" terminal and the "3" terminal of the mutual inductor L1-6 are respectively connected to the power input terminal of the output power supply circuit.
[0022] Further, the output power supply circuit comprises an output voltage stabilizing circuit and an output terminal circuit, the power input terminal of the output terminal circuit and the power input terminal of the output voltage stabilizing circuit are respectively electrically connected to the power output terminal of the flyback transformer circuit, the power output terminal of the output terminal circuit serves as an external output power supply, and the output voltage stabilizing circuit is used for stabilizing the output power supply.
[0023] Further, the output voltage stabilizing circuit comprises an optocoupler U1-4, a diode D1-11, a resistor R1-21, a resistor R1-22, a resistor R1-27, a resistor R1-26, a resistor R1-25, a capacitor C1-18, a capacitor C1-23, an NPN transistor Q1-6 and a relay K1-1, the optocoupler U1-4 is connected to a DC power supply at the "1" terminal, the "2" terminal of the optocoupler U1-4 is connected to one end of the resistor R1-27, the other end of the resistor R1-27 is connected to the base of the NPN transistor Q1-6, the emitter of the NPN transistor Q1-6 is grounded, the collector of the NPN transistor Q1-6 is connected to the "1" terminal of the relay K1-1, the "2" terminal of the relay K1-1 is connected to the DC power supply, the "3" terminal of the relay K1-1 is grounded through the resistor R1-26, the "5" terminal of the relay K1-1 is connected to one end of the resistor R1-25 and the other end of the output terminal of the output circuit, the other end of the resistor R1-25 is grounded through the capacitor C1-23, the "4" terminal of the optocoupler U1-4 is connected to one end of the resistor R1-21 and one end of the resistor R1-22, the other end of the resistor R1-22 is connected to one end of the capacitor C1-18 and the negative electrode of the diode D1-11, the positive electrode of the diode D1-11 is connected to one end of the output terminal of the output circuit, the "3" terminal of the optocoupler U1-4 is connected to the other end of the resistor R1-21, the other end of the capacitor C1-18 and the other end of the output terminal of the output circuit.
[0024] The on-off of the relay K1-1 can provide or not provide a ground load to the output circuit to protect the stability of the output circuit. In cooperation with the mutual inductor L1-6, if the voltage / current from the mutual inductor L1-6 is abnormal, the relay K1-1 needs to work to increase the ground resistance of the output circuit to protect the safety of the subsequent charging device. If the voltage / current from the mutual inductor L1-6 is within the normal range and has an AC component, the relay K1-1 needs not to work, and the resistor R1-25 and the capacitor C1-23 will be connected to the output circuit. The capacitor C1-23 will guide the AC component into the ground to protect the safety of the subsequent charging device, etc.
[0025] Further, the output circuit comprises an output interface, and the output interface is connected to the power output terminal of the flyback transformer circuit.
[0026] Further, the charging protection circuit comprises a monitoring circuit and a protection circuit, the power input terminal of the monitoring circuit is electrically connected to the power output terminal of the output power supply circuit, the power output terminal of the monitoring circuit is electrically connected to the power input terminal of the protection circuit, and one port of the monitoring circuit is electrically connected to the power output terminal of the output power supply circuit.
[0027] Further, the connection mode of the output power supply circuit and the charging protection circuit can be direct connection by wires or USB connection.
[0028] Further, the monitoring circuit comprises a USB interface, a resistor R5, a capacitor C7, a resistor R22, a chip U2, a resistor R21, a capacitor C6, a resistor R25, an LED1 and an LED2, the "1" terminal and the "6" terminal of the USB interface are commonly grounded, the "2" terminal and the "5" terminal of the USB interface are commonly connected to one end of the resistor R5, the other end of the resistor R5 is electrically connected to one end of the capacitor C7, one end of the resistor R21, one end of the resistor R25 and the "4" terminal of the chip U2, the other end of the capacitor C7 is grounded, the other end of the resistor R21 is electrically connected to the "8" terminal of the chip U2, the other end of the resistor R25 is electrically connected to the positive electrode of the LED1 and the positive electrode of the LED2, the negative electrode of the LED1 is electrically connected to the "7" terminal of the chip U2, the negative electrode of the LED2 is electrically connected to the "6" terminal of the chip U2, the "2" terminal of the chip U2 is electrically connected to one end of the resistor R22, the other end of the resistor R22 and the "3" terminal of the chip U2 are commonly grounded, the "5" terminal of the chip U2 is electrically connected to one end of the capacitor C6 and the power input terminal of the protection circuit, the other end of the capacitor C6 is grounded.
[0029] Further, the protection circuit comprises a resistor R30, a chip U3, a capacitor C8 and a resistor R31, one end of the resistor R31 is electrically connected to the "5" terminal of the chip U2, the other end of the resistor R31 is electrically connected to one end of the capacitor C8 and the "5" terminal of the chip U3, the "1" terminal of the chip U3 is electrically connected to one end of the resistor R30, the other end of the resistor R30 and the "2" terminal of the chip U3 are commonly grounded, the "3" terminal of the chip U3 is electrically connected to the "6" terminal of the chip U3 and the other end of the capacitor C8.
[0030] Further, the boost circuit comprises a chip U5, a parallel input capacitor, an inductor L1, a diode D1, a resistor R14, a resistor R15 and a parallel output capacitor, the "1" terminal of the chip U5 is electrically connected to one end of the inductor L1 and the positive electrode of the diode D1, the negative electrode of the diode D1 is commonly connected to one end of the resistor R14 and one end of the parallel output capacitor, which is commonly connected to the power output terminal of the boost circuit, the other end of the parallel output capacitor is commonly grounded, the other end of the resistor R14 is electrically connected to the "3" terminal of the chip U5 and one end of the resistor R15, the other end of the resistor R15 is grounded, the "4" terminal and the "5" terminal of the chip U5 are commonly connected to the other end of the inductor L1, one end of the parallel input capacitor and one port of the battery module, the "2" terminal of the chip U5 is grounded, the other end of the parallel input capacitor is commonly grounded.
[0031] Further, the parallel input capacitor comprises a capacitor C14 and a capacitor C13, which are connected in parallel. This parallel input capacitor can reduce the equivalent resistance, reduce energy consumption, reduce the ripple of the input power supply, and when one capacitor is broken, the other capacitor can work normally to supplement, etc.
[0032] Further, the parallel output capacitor includes capacitor C11 and capacitor C12, which are connected in parallel. Such a parallel output capacitor can reduce the equivalent resistance, reduce energy consumption, reduce the ripple of the output power supply, and also allow one capacitor to work normally to supplement another capacitor, etc. It can also share the load of the output voltage and current, making the output voltage more stable, etc.
[0033] Further, the MCU control circuit includes chip U1, resistor R12, resistor RT1, capacitor C6, resistor R13, LED 17, resistor R31, LED 16, and resistor R30. The "1" terminal of the chip U1 is grounded. The "28" terminal of the chip U1 is electrically connected to the power output end of the boost circuit. The "24" terminal of the chip U1 is electrically connected to one end of the resistor R13. The other end of the resistor R13 is electrically connected to one end of the capacitor C6, one end of the resistor R12, and one end of the resistor RT1. The other end of the capacitor C6 and the other end of the resistor RT1 are commonly grounded. The other end of the resistor R12 is electrically connected to the power output end of the boost circuit. The "20" terminal of the chip U1 is electrically connected to the positive electrode of the LED 17. The negative electrode of the LED 17 is electrically connected to one end of the resistor R31. The other end of the resistor R31 is electrically connected to the "19" terminal of the chip U1. The "15" terminal of the chip U1 is electrically connected to one end of the resistor R30. The other end of the resistor R30 is connected to the negative electrode of the LED 16. The positive electrode of the LED 16 is electrically connected to the power output end of the boost circuit.
[0034] Further, the signal detection circuit includes antenna ANT, chip U4, capacitor C1, capacitor C3, capacitor C2, resistor R2, and resistor R1. The "1" terminal of the chip U4 is commonly grounded with one end of the capacitor C1. The "2" terminal of the chip U4 is electrically connected to the antenna ANT. The "3" terminal of the chip U4 is electrically connected to the signal control end of the MCU control circuit. The "4" terminal of the chip U4 is electrically connected to one end of the capacitor C3. The other end of the capacitor C3 is grounded. The "5" terminal of the chip U4 is electrically connected to one end of the capacitor C2. The other end of the capacitor C2 is grounded. The "6" terminal of the chip U4 is electrically connected to one end of the resistor R2 and the "2" terminal of the chip U4. The other end of the resistor R2 is electrically connected to one end of the resistor R1 and the "7" terminal of the chip U4. The other end of the resistor R1 is electrically connected to the power output end of the boost circuit. The "8" terminal of the chip U4 is electrically connected to the other end of the capacitor C1 and the power output end of the boost circuit.
[0035] Further, the color lamp control circuit comprises NPN tube Q3, NPN tube Q9, NPN tube Q8, NPN tube Q4, NPN tube Q5, resistor R11, resistor R33, resistor R32, resistor R21, resistor R22, resistor R7, resistor R25, resistor R3, resistor R8, resistor R4, LED-R, LED-G, LED-Y, LED-W and LED-B, the emitter of the NPN tube Q3, the emitter of the NPN tube Q9, the emitter of the NPN tube Q8, the emitter of the NPN tube Q4 and the emitter of the NPN tube Q5 are grounded, the collector of the NPN tube Q3 is connected with the negative pole of the LED-R through the resistor R7, the collector of the NPN tube Q9 is connected with the negative pole of the LED-G through the resistor R25, the collector of the NPN tube Q8 is connected with the negative pole of the LED-Y through the resistor R3, the collector of the NPN tube Q4 is connected with the negative pole of the LED-W through the resistor R8, the collector of the NPN tube Q5 is connected with the negative pole of the LED-B through the resistor R4, the positive pole of the LED-R, the positive pole of the LED-G, the positive pole of the LED-Y, the positive pole of the LED-W and the positive pole of the LED-B are electrically connected with the power output end of the boost circuit respectively, the base of the NPN tube Q3 is connected with the RED terminal of the MCU control circuit through the resistor R11, the base of the NPN tube Q9 is connected with the GREEN terminal of the MCU control circuit through the resistor R33, the base of the NPN tube Q8 is connected with the YELLOW terminal of the MCU control circuit through the resistor R32, the base of the NPN tube Q4 is connected with the WHITE terminal of the MCU control circuit through the resistor R21, and the base of the NPN tube Q5 is connected with the BLUE terminal of the MCU control circuit through the resistor R22.
[0036] Further, the LED-R comprises LED2, LED12 and LED7, which are connected in parallel with each other.
[0037] Further, the LED-G comprises LED10, LED15 and LED5, which are connected in parallel with each other.
[0038] Further, the LED-Y comprises LED11, LED1 and LED6, which are connected in parallel with each other.
[0039] Further, the LED-W comprises LED13, LED3 and LED8, which are connected in parallel with each other.
[0040] Further, the LED-B comprises LED14, LED4 and LED9, which are connected in parallel with each other.
[0041] Further, the imitation candle lamp control circuit includes an imitation lamp control circuit and an acoustic control circuit, a power input end of the imitation lamp control circuit is electrically connected to the power output end of the voltage boosting circuit, a power input end of the acoustic control circuit is electrically connected to the power output end of the voltage boosting circuit, and a lamp control end of the imitation lamp control circuit and a lamp control end of the acoustic control circuit are respectively electrically connected to the lamp control end of the MCU control circuit.
[0042] Further, the imitation lamp control circuit includes an LED4, a resistor R37, an NPN tube Q1, and a resistor R9, a positive electrode of the LED4 is electrically connected to the power output end of the voltage boosting circuit, a negative electrode of the LED4 is electrically connected to one end of the resistor R37, the other end of the resistor R37 is electrically connected to a collector of the NPN tube Q1, an emitter of the NPN tube Q1 is grounded, a base of the NPN tube Q1 is electrically connected to one end of the resistor R9, and the other end of the resistor R9 is electrically connected to the lamp control end of the MCU control circuit.
[0043] Further, the acoustic control circuit includes a resistor R17, an NPN tube Q2, a resistor R10, and a buzzer B2, one end of the buzzer B2 and one end of the resistor R17 are commonly connected to the power output end of the voltage boosting circuit, the other end of the buzzer B2 and the other end of the resistor R17 are commonly connected to a collector of the NPN tube Q2, an emitter of the NPN tube Q2 is grounded, and a base of the NPN tube Q2 is electrically connected to the lamp control end of the MCU control circuit through the resistor R10.
[0044] Further, the chip U2 selects an XC3101AT model chip. The XC3101A chip is a high-voltage linear charging management chip, which can resist the voltage fluctuation of the plug-in surge of the charger and the poor quality adapter, can support the trickle, constant current, and constant voltage three-stage charging of a single lithium ion battery, has a built-in thermal feedback regulation current to prevent overheat and reduce capacity, can share the pressure drop through an external resistor to reduce chip power consumption, and can observe the management state of charging in combination with the working state of the LED1 and the LED2.
[0045] Further, the chip U3 selects a DW06D model chip, which is a lithium battery protection circuit chip that can prevent the risk of battery life shortening or explosion caused by overcharging / overdischarging, the XC3101AT chip is responsible for efficient charging control, and the DW06D chip provides protection of abnormal states in the charging and discharging process, and the two are connected in series to form a complete power supply solution.
[0046] Further, the chip U5 selects an MT3608 model chip, which is a high-efficiency voltage boosting converter that can boost the output power of the charging protection circuit to the required power supply voltage of the subsequent circuit.
[0047] Further, the chip U1 selects the HT66F0185 chip, which is an 8-bit Flash type microcontroller supporting multiple programming.
[0048] Further, the chip U4 selects the NE555DR chip, which is a timer chip connected with an antenna (ANT) receiving external signals, and the parameters such as oscillation frequency are set through external resistance and capacitance. The "OUT" pin of the NE555DR chip outputs corresponding pulse signals.
[0049] Further, the battery module selects a rechargeable battery such as a lithium battery, a lead-acid battery, or a sodium battery.
[0050] Further, a control method of a pseudo-candlelight response circuit based on magnetic field induction is provided, and the control method comprises the following steps: Step 1: Building of input power supply circuit An input power supply protection circuit, a rectifier filter circuit, a flyback transformer circuit, and an output power supply circuit are selected. The power input end of the input power supply protection circuit is electrically connected to an external AC power supply. The power output end of the input power supply protection circuit is electrically connected to the power input end of the rectifier filter circuit. The power output end of the rectifier filter circuit is electrically connected to the power input end of the flyback transformer circuit. The power output end of the flyback transformer circuit is electrically connected to the power input end of the output power supply circuit. The power output end of the output power supply circuit is electrically connected to the power input end of the charging protection circuit. The rectifier filter circuit includes a bridge rectifier filter circuit and a Π-type filter circuit. The power output end of the input power supply protection circuit is electrically connected to the power input end of the bridge rectifier filter circuit. The power output end of the bridge rectifier filter circuit is electrically connected to the power input end of the Π-type filter circuit. The power output end of the Π-type filter circuit is electrically connected to the power input end of the flyback transformer circuit. The flyback transformer circuit includes a chip control circuit, a transformer circuit, and a rectifier output circuit. The power output end of the rectifier filter circuit is electrically connected to the power input end of the chip control circuit. The power output end of the chip control circuit is electrically connected to the power input end of the transformer circuit. The power output end of the transformer circuit is respectively electrically connected to the input end of the chip control circuit and the input end of the rectifier output circuit. The power output end of the rectifier output circuit is electrically connected to the power input end of the output power supply circuit. The output power supply circuit includes an output voltage stabilizing circuit and an output circuit. The power input end of the output circuit and the power input end of the output voltage stabilizing circuit are respectively electrically connected to the power output end of the flyback transformer circuit. The power output end of the output circuit serves as an external output power supply. The output voltage stabilizing circuit is used for stabilizing the output power supply. The output circuit includes an output interface. The output interface is connected to the power output end of the flyback transformer circuit. Step 2: Building of the charging protection circuit Select the input power supply circuit of step 1, and select the monitoring circuit and the protection circuit, the power input end of the monitoring circuit is electrically connected to the output interface of the input power supply circuit, the power output end of the monitoring circuit is electrically connected to the power input end of the protection circuit, and one port of the battery module is electrically connected to the power output end of the monitoring circuit; Step 3: Building of the electronic candle Select the charging protection circuit of step 2, and select the battery module, the boost circuit, the MCU control circuit, the signal detection circuit and the lamp control circuit, one port of the battery module is electrically connected to the power output end of the charging protection circuit, one port of the battery module is electrically connected to the power input end of the boost circuit, the power output end of the boost circuit is respectively electrically connected to the power input end of the MCU control circuit, the power input end of the signal detection circuit and the power input end of the lamp control circuit, the signal control end of the MCU control circuit is electrically connected to the signal control end of the signal detection circuit, and the lamp control end of the MCU control circuit is electrically connected to the lamp control end of the lamp control circuit. Among them, the imitation candle lamp control circuit includes the imitation lamp control circuit and the sound control circuit, the power input end of the imitation lamp control circuit is electrically connected to the power output end of the boost circuit, the power input end of the sound control circuit is electrically connected to the power output end of the boost circuit, and the lamp control end of the imitation lamp control circuit and the lamp control end of the sound control circuit are respectively electrically connected to the lamp control end of the MCU control circuit. Among them, the lamp control circuit includes the color lamp control circuit and the imitation candle lamp control circuit, the power input end of the color lamp control circuit and the power input end of the imitation candle lamp control circuit are respectively electrically connected to the power output end of the boost circuit, and the lamp control end of the color lamp control circuit and the lamp control end of the imitation candle lamp control circuit are respectively electrically connected to the lamp control end of the MCU control circuit.
[0051] Advantages The application is to provide a traditional electronic candle linked with environmental magnetic field changes, by adopting an input power supply circuit, a charging protection circuit, a battery module, a boost circuit, an MCU control circuit, a signal detection circuit and a lamp control circuit, the circuit contains an antenna, forms a built-in induction coil, captures an alternating magnetic field through electromagnetic induction principle, monitors the surrounding environmental magnetic field changes in real time, once the surrounding magnetic field changes are detected, the electronic candle will automatically light up the candle warm yellow light, the touch and vision are close to traditional candles and dynamic candlelight, etc.; it also has color light on the basis of the candle lighting yellow light; the circuit also adopts a charging power supply that reduces power consumption, a surge protection type charging power supply and a stable and safe output type charging power supply, which can better power the electronic candle, make it work durably and safely, etc. Through the design of the charging protection circuit, the normal work of the subsequent circuit can be protected; through the design of the boost circuit, a stable 5V power supply can be output to power the signal detection circuit, the MCU control circuit and the lamp control circuit; through the design of the signal detection circuit, the environmental magnetic field can be linked through the electromagnetic induction of the antenna, and then the candle lamp, color lamp, buzzer, etc. are in the required working state through the MCU control circuit; the service life of the electronic candle is prolonged, and it can better match the application of the environmental magnetic field. BRIEF DESCRIPTION OF DRAWINGS
[0052] Figure 1 It is a structure schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0053] Figure 2 It is a charging protection circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0054] Figure 3 It is a boost circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0055] Figure 4 It is an MCU control circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0056] Figure 5 It is a signal detection circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0057] Figure 6 It is a color lamp control circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0058] Figure 7 It is a pseudo candle lamp control circuit principle schematic diagram of the present application based on the magnetic field induction of the pseudo candle light response circuit.
[0059] Figure 8It is an input power supply circuit principle schematic diagram of a pseudo-candlelight response circuit based on magnetic field induction.
[0060] BRIEF DESCRIPTION OF DRAWINGS: 01, charge protection circuit; 02, boost circuit; 03, MCU control circuit; 04, signal detection circuit; 05, lamp control circuit; 06, battery module; 07, input power supply circuit. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0062] Referring to Figure 1 As shown in the figure, the present application provides a pseudo-candlelight response circuit based on magnetic field induction, which comprises: an input power supply circuit 07, a charge protection circuit 01, a battery module 06, a boost circuit 02, an MCU control circuit 03, a signal detection circuit 04, and a lamp control circuit 05. The power input end of the input power supply circuit 07 is electrically connected to an external AC power supply. The power output end of the input power supply circuit 07 is electrically connected to the power input end of the charge protection circuit 01. One port of the battery module 06 is electrically connected to the power output end of the charge protection circuit 01. One port of the battery module 06 is electrically connected to the power input end of the boost circuit 02. The power output end of the boost circuit 02 is respectively electrically connected to the power input end of the MCU control circuit 03, the power input end of the signal detection circuit 04, and the power input end of the lamp control circuit 05. The signal control end of the MCU control circuit 03 is electrically connected to the signal control end of the signal detection circuit 04. The lamp control end of the MCU control circuit 03 is electrically connected to the lamp control end of the lamp control circuit 05. The input power supply circuit 07 comprises an input power supply protection circuit, a rectifier filter circuit, a flyback transformer circuit, and an output power supply circuit. The power input end of the input power supply protection circuit is electrically connected to an external AC power supply. The power output end of the input power supply protection circuit is electrically connected to the power input end of the rectifier filter circuit. The power output end of the rectifier filter circuit is electrically connected to the power input end of the flyback transformer circuit. The power output end of the flyback transformer circuit is electrically connected to the power input end of the output power supply circuit. The power output end of the output circuit is electrically connected to the power input end of the charge protection circuit 01. The rectification filter circuit comprises a bridge rectification filter circuit and a Π type filter circuit, the power output end of the input power supply protection circuit is electrically connected to the power input end of the bridge rectification filter circuit, the power output end of the bridge rectification filter circuit is electrically connected to the power input end of the Π type filter circuit, and the power output end of the Π type filter circuit is electrically connected to the power input end of the flyback transformer circuit.
[0063] The flyback transformer circuit comprises a chip control circuit, a transformer circuit and a rectification output circuit, the power output end of the rectification filter circuit is electrically connected to the power input end of the chip control circuit, the power output end of the chip control circuit is electrically connected to the power input end of the transformer circuit, the power output end of the transformer circuit is electrically connected to the input end of the chip control circuit and the input end of the rectification output circuit respectively, and the power output end of the rectification output circuit is electrically connected to the power input end of the output power supply circuit.
[0064] The output power supply circuit comprises an output voltage stabilizing circuit and an output circuit, the power input end of the output circuit and the power input end of the output voltage stabilizing circuit are electrically connected to the power output end of the flyback transformer circuit respectively, the power output end of the output circuit is used as an external output power supply, and the output voltage stabilizing circuit is used for stabilizing the output power supply.
[0065] The output circuit comprises an output interface, and the output interface is connected to the power output end of the flyback transformer circuit.
[0066] The charging protection circuit 01 comprises a monitoring circuit and a protection circuit, the power input end of the monitoring circuit is electrically connected to the power output end of the output power supply circuit, the power output end of the monitoring circuit is electrically connected to the power input end of the protection circuit, and the power output end of the monitoring circuit is electrically connected to one port of the battery module 06.
[0067] The candle lamp control circuit comprises a lamp control circuit and an acoustic control circuit, the power input end of the lamp control circuit is electrically connected to the power output end of the voltage boosting circuit 02, the power input end of the acoustic control circuit is electrically connected to the power output end of the voltage boosting circuit 02, and the lamp control end of the lamp control circuit and the lamp control end of the acoustic control circuit are electrically connected to the lamp control end of the MCU control circuit 03 respectively.
[0068] The lamp control circuit 05 comprises a color lamp control circuit and a candle lamp control circuit, the power input end of the color lamp control circuit and the power input end of the candle lamp control circuit are electrically connected to the power output end of the voltage boosting circuit 02 respectively, and the lamp control end of the color lamp control circuit and the lamp control end of the candle lamp control circuit are electrically connected to the lamp control end of the MCU control circuit 03 respectively.
[0069] The lamp control circuit 05 comprises a color lamp control circuit and a candle lamp control circuit, the power input end of the color lamp control circuit and the power input end of the candle lamp control circuit are electrically connected to the power output end of the voltage boosting circuit 02 respectively, and the lamp control end of the color lamp control circuit and the lamp control end of the candle lamp control circuit are electrically connected to the lamp control end of the MCU control circuit 03 respectively. Figure 8As shown, the input power protection circuit includes a fuse F1-1, a diode D1-1, a voltage-dependent resistor RV1-1, a capacitor C1-1, a resistor R1-1, a resistor R1-2, a resistor R1-3, and a mutual inductor L1-1; the bridge rectifier filter circuit includes a bridge rectifier DB1-1; the Π-type filter circuit includes a capacitor C1-2, a capacitor C1-3, and an inductor L1-2; the chip control circuit includes a bidirectional thyristor Q1-1, a resistor R1-4, a capacitor C1-4, a chip U1-1, a resistor R1-5, a voltage stabilizing tube D1-5, a capacitor C1-9, a resistor R1-11, an optocoupler U1-2, a voltage stabilizing tube D1-6, a resistor R1-13, a capacitor C1-8, a resistor R1-14, a resistor R1-15, a resistor R1-12, a capacitor C1-7, a resistor R1-8, a resistor R1-10, a capacitor C1-5, a resistor R1-9, a resistor R1-7, a resistor R1-6, a diode D1-2, an NMOS tube Q1-2, a diode D1-3, a diode D1-4, a capacitor C1-6, and an inductor L1-4; the voltage transformation circuit includes a transformer T1-1, a capacitor C1-12, a resistor R1-17, and a diode D1-8; the rectifier output circuit includes a capacitor C1-10, a resistor R1-19, a capacitor C1-13, a resistor R1-18, a capacitor C1-11, a resistor R1-20, a diode D1-7, a diode D1-9, a mutual inductor L1-6, and a diode D1-10; the output voltage stabilizing circuit includes an optocoupler U1-4, a diode D1-11, a resistor R1-21, a resistor R1-22, a resistor R1-27, a resistor R1-26, a resistor R1-25, a capacitor C1-18, a capacitor C1-23, an NPN tube Q1-6, and a relay K1-1; Wherein, the fuse F1-1 one end of the AC power line, the fuse F1-1 the other end of the anode of the diode D1-1, the capacitor C1-1 one end, the resistor R1-2 one end and mutual inductance L1-1 "1" terminal, the negative of the diode D1-1 connects the one end of the voltage-dependent resistor RV1-1, the other end of the voltage-dependent resistor RV1-1 and the resistor R1-1 one end of the AC power zero line, the other end of the capacitor C1-1 resistor R1-1 other end, resistor R1-3 one end and mutual inductance L1-1 "3" terminal, the other end of the resistor R1-2 connects the other end of the resistor R1-3, mutual inductance L1-1 "2" terminal and "4" terminal respectively corresponding to the bridge rectifier DB1-1 "2" terminal and "4" terminal of bridge rectifier filter circuit;Wherein, the diode D1-1 selects TVS diode;Bridge rectifier filter circuit bridge rectifier DB1-1 "3" terminal ground, bridge rectifier DB1-1 "1" terminal connects the capacitor C1-2 one end and inductance L1-2 one end of the Π type filter circuit, inductance L1-2 the other end of the capacitor C1-3 one end and the transformer T1-1 "1" terminal of the transformer T1-1 of the flyback voltage circuit of the voltage circuit, the other end of the capacitor C1-2 and the other end of the capacitor C1-3 ground.The chip control circuit chip U1-1 "1" with the capacitor C1-4 one end is connected with ground, chip U1-1 "5" terminal connects capacitor C1-4 other end, resistance R1-4 one end and diode D1-3 negative, resistance R1-4 other end input power protection circuit, diode D1-3 positive connects diode D1-4 positive, bidirectional thyristor Q1-1 "3" terminal and capacitor C1-6 one end, here thyristor Q1-1 "3" terminal can also be connected in series protection resistance, bidirectional thyristor Q1-1 "1" terminal and "2" terminal parallel connection resistance R1-1, diode D1-4 negative connects inductance L1-4 one end, inductance L1-4 other end connects transformer T1-1 "3" terminal of voltage transformation circuit, capacitor C1-6 other end ground, chip U1-1 "2" terminal connects resistance R1-5 one end, resistance R1-5 other end connects optocoupler U1-2 "1" terminal, voltage stabilizing tube D1-5 negative and capacitor C1-9 one end, chip U1-1 "4" connects resistance R1-8 one end and capacitor C1-7 one end, chip U1-1 "6" terminal connects resistance R1-6 one end and resistance R1-7 one end, optocoupler U1-2 "2" terminal connects resistance R1-11 one end, resistance R1-11 other end, voltage stabilizing tube D1-5 positive and capacitor C1-9 other end are connected with ground, optocoupler U1-2 "3" terminal connects external DC power supply through resistance R1-12, optocoupler U1-2 "4" terminal connects capacitor C1-8 one end and voltage stabilizing tube D1-6 "1" terminal, voltage stabilizing tube D1-6 "2" terminal connects resistance R1-13 one end, resistance R1-14 one end and resistance R1-15 one end, voltage stabilizing tube D1-6 "3" terminal and resistance R1-13 other end ground, capacitor C1-8 other end connects resistance R1-14 other end, resistance R1-15 other end connects mutual inductance L1-6 "4" terminal of output power supply circuit, resistance R1-8 other end connects resistance R1-10 one end and NMOS tube Q1-2 source, resistance R1-10 other end and capacitor C1-7 other end ground, resistance R1-6 other end connects diode D1-2 negative, diode D1-2 positive connects NMOS tube Q1-2 gate, resistance R1-7 other end, capacitor C1-5 one end and resistance R1-9 one end, capacitor C1-5 other end and resistance R1-9 other end ground, NMOS tube Q1-2 drain connects transformer T1-1 "2" terminal of voltage transformation circuit;The transformer T1-1 "1" terminal connects the capacitor C1-12 one end, the resistor R1-17 one end and the rectifier filter circuit power output end, the capacitor C1-12 other end and the resistor R1-17 other end connects the diode D1-8 negative pole, the diode D1-8 positive pole connects the transformer T1-1 "2" terminal, the transformer T1-1 "4" terminal ground, the transformer T1-1 "5" terminal and "7" terminal respectively corresponding connects the diode D1-9 positive pole and the diode D1-7 positive pole of rectifier output circuit, the transformer T1-1 "6" terminal and "8" terminal ground; The rectifier output circuit of the transformer circuit output end one end connects the resistor R1-18 one end and the diode D1-9 positive pole, the resistor R1-18 other end connects the capacitor C1-13 one end, the capacitor C1-13 other end connects the diode D1-9 negative pole, the capacitor C1-10 one end, the resistor R1-19 one end and the diode D1-10 positive pole, the diode D1-10 negative pole connects the mutual inductance L1-6 "1" terminal, the capacitor C1-10 other end and the resistor R1-19 other end ground, the transformer circuit output end other end connects the diode D1-7 positive pole, the diode D1-7 negative pole connects the capacitor C1-11 one end and the resistor R1-20 one end, the resistor R1-20 other end connects the mutual inductance L1-6 "4" terminal, the capacitor C1-11 other end ground, the mutual inductance L1-6 "2" terminal ground, the mutual inductance L1-6 "4" terminal and "3" terminal respectively corresponding connects the power input end positive pole and negative pole of output power supply circuit; The light coupling U1-4 "1" of the output voltage stabilizing circuit connects the direct current power supply, the light coupling U1-4 "2" terminal connects the resistor R1-27 one end, the resistor R1-27 other end connects the NPN tube Q1-6 base, the NPN tube Q1-6 emitter ground, the NPN tube Q1-6 collector connects the relay K1-1 "1" terminal, the relay K1-1 "2" terminal connects the direct current power supply, the relay K1-1 "3" terminal ground through the resistor resistor R1-26, the relay K1-1 "5" terminal connects the resistor R1-25 one end and the output end circuit output end other end, the resistor R1-25 other end ground through the capacitor C1-23, the light coupling U1-4 "3" terminal connects the resistor R1-21 one end and the resistor R1-22 one end, the resistor R1-22 other end connects the capacitor C1-18 one end and the diode D1-11 negative pole, the diode D1-11 positive pole connects the output end circuit output end one end, the light coupling U1-4 "4" terminal connects the resistor R1-21 other end, the capacitor C1-18 other end and the output end circuit output end other end.
[0070] Wherein, refer to Figures 2-7As shown, the charging protection circuit 01 includes a USB interface, a resistor R5, a capacitor C7, a resistor R22, a chip U2, a resistor R21, a capacitor C6, a resistor R25, an LED1, an LED2, a resistor R30, a chip U3, a capacitor C8 and a resistor R31; the boost circuit 02 includes a chip U5, a capacitor C14, a capacitor C13, an inductor L1, a diode D1, a resistor R14, a resistor R15, a capacitor C11 and a capacitor C12; the MCU control circuit 03 includes a chip U1, a resistor R12, a resistor RT1, a capacitor C6, a resistor R13, an LED17, a resistor R31, an LED16 and a resistor R30; the signal detection circuit 04 includes an antenna ANT, a chip U4, a capacitor C1, a capacitor C3, a capacitor C2, a resistor R2 and a resistor R1; the color lamp control circuit includes an NPN tube Q3, an NPN tube Q9, an NPN tube Q8, an NPN tube Q4, an NPN tube Q5, a resistor R11, a resistor R33, a resistor R32, a resistor R21, a resistor R22, a resistor R7, a resistor R25, a resistor R3, a resistor R8, a resistor R4, an LED-R, an LED-G, an LED-Y, an LED-W and an LED-B, the LED-R includes an LED2, an LED12 and an LED7, the LED2, the LED12 and the LED7 are connected in parallel with each other; the LED-G includes an LED10, an LED15 and an LED5, the LED10, the LED15 and the LED5 are connected in parallel with each other; the LED-Y includes an LED11, an LED1 and an LED6, the LED11, the LED1 and the LED6 are connected in parallel with each other; the LED-W includes an LED13, an LED3 and an LED8, the LED13, the LED3 and the LED8 are connected in parallel with each other; the LED-B includes an LED14, an LED4 and an LED9, the LED14, the LED4 and the LED9 are connected in parallel with each other; the imitation candle lamp control circuit includes an LED4, a resistor R37, an NPN tube Q1, a resistor R9, a resistor R17, an NPN tube Q2, a resistor R10 and a buzzer B2; the battery module selects a lithium battery; Wherein, referring to Figure 2As shown, in the charging protection circuit 01, USB interface terminals "1" and "6" are grounded together. USB interface terminals "2" and "5" are connected to one end of resistor R5. The other end of resistor R5 is electrically connected to one end of capacitor C7, one end of resistor R21, one end of resistor R25, and terminal "4" of chip U2. The other end of capacitor C7 is grounded. The other end of resistor R21 is electrically connected to terminal "8" of chip U2. The other end of resistor R25 is electrically connected to the positive terminals of LED1 and LED2. The negative terminal of LED1 is electrically connected to terminal "7" of chip U2. The negative terminal of LED2 is electrically connected to terminal "6" of chip U2. Terminal "2" of chip U2 is electrically connected to resistor R2. 2. One end of resistor R22 and the other end of chip U2 "3" are grounded together. The 5th end of chip U2 is electrically connected to one end of capacitor C6 and one end of resistor R31. The other end of capacitor C6 is grounded. The other end of resistor R31 is electrically connected to one end of capacitor C8 and the 5th end of chip U3. The 1st end of chip U3 is electrically connected to one end of resistor R30. The other end of resistor R30 and the 2nd end of chip U3 are grounded together. The 3rd end of chip U3 is electrically connected to the 6th end of chip U3 and the other end of capacitor C8. Among them, the 5th end of chip U2 is electrically connected to one port of lithium battery. One port of lithium battery is electrically connected to one end of capacitor C14 of boost circuit. Among them, see Figure 3 As shown, in the boost circuit 02, the terminal of chip U5 "1" is electrically connected to one end of inductor L1 and the positive terminal of diode D1. The negative terminal of diode D1, one end of resistor R14, one end of capacitor C11, and one end of capacitor C12 are all connected to the power output terminal of boost circuit 02. The other end of capacitor C11 and the other end of capacitor C12 are grounded together. The other end of resistor R14 is electrically connected to the terminal of chip U5 "3" and one end of resistor R15. The other end of resistor R15 is grounded. The terminals of chip U5 "4" and "5" are all connected to the other end of inductor L1, one end of capacitor C13, one end of capacitor C14, and the terminal of chip U2 "5" of charging protection circuit 01. The terminal of chip U5 "2" is grounded. The other end of capacitor C13 and the other end of capacitor C14 are grounded together. Among them, see Figure 4As shown, the MCU control circuit 03 chip U1 "1" terminal ground, chip U1 "28" terminal electric connection boost circuit 02 diode D1 negative, chip U1 "24" terminal electric connection resistance R13 one end, resistance R13 the other end electric connection capacitor C6 one end, resistance R12 one end and resistance RT1 one end, capacitor C6 the other end and resistance RT1 the other end common ground, resistance R12 the other end electric connection boost circuit 02 power output terminal, chip U1 "20" terminal electric connection LED17 positive, LED17 negative electric connection resistance R31 one end, resistance R31 the other end electric connection chip U1 "19" terminal, chip U1 "15" terminal electric connection resistance R30 one end, resistance R30 the other end connection LED16 negative, LED16 positive electric connection boost circuit 02 diode D1 negative; Chip U1 "2" terminal electric connection resistance R11 the other end; Chip U1 "6" terminal electric connection resistance R33 the other end; Chip U1 "7" terminal electric connection resistance R32 the other end; Chip U1 "16" terminal electric connection resistance R9 the other end; Chip U1 "17" terminal electric connection resistance R10 the other end; Chip U1 "21" terminal electric connection resistance R21 the other end; Chip U1 "23" terminal electric connection resistance R22 the other end; Chip U1 "25" terminal electric connection chip U4 "3" terminal; Wherein, refer to Figure 5 As shown, the signal detection circuit 04 includes antenna ANT, chip U4, capacitor C1, capacitor C3, capacitor C2, resistance R2 and resistance R1, chip U4 "1" terminal with capacitor C1 one end common ground, chip U4 "2" terminal electric connection antenna ANT, chip U4 "3" terminal electric connection MCU control circuit 03 signal control end, chip U4 "4" terminal electric connection capacitor C3 one end, capacitor C3 the other end ground, chip U4 "5" terminal electric connection capacitor C2 one end, capacitor C2 the other end ground, chip U4 "6" terminal electric connection resistance R2 one end and chip U4 "2" terminal, resistance R2 the other end electric connection resistance R1 one end and chip U4 "7" terminal, resistance R1 the other end electric connection boost circuit 02 power output terminal, chip U4 "8" terminal electric connection capacitor C1 the other end and boost circuit 02 power output terminal; Wherein, refer to Figure 6As shown, the emitter of NPN tube Q3, the emitter of NPN tube Q9, the emitter of NPN tube Q8, the emitter of NPN tube Q4 and the emitter of NPN tube Q5 in the colored lamp control circuit are connected to ground, the collector of NPN tube Q3 is connected to the negative pole of LED-R through resistor R7, the collector of NPN tube Q9 is connected to the negative pole of LED-G through resistor R25, the collector of NPN tube Q8 is connected to the negative pole of LED-Y through resistor R3, the collector of NPN tube Q4 is connected to the negative pole of LED-W through resistor R8, the collector of NPN tube Q5 is connected to the negative pole of LED-B through resistor R4, the positive pole of LED-R, the positive pole of LED-G, the positive pole of LED-Y, the positive pole of LED-W and the positive pole of LED-B are respectively electrically connected to the power output end of boost circuit 02, the base of NPN tube Q3 is connected to the RED terminal of MCU control circuit 03 through resistor R11, the base of NPN tube Q9 is connected to the GREEN terminal of MCU control circuit 03 through resistor R33, the base of NPN tube Q8 is connected to the YELLOW terminal of MCU control circuit 03 through resistor R32, the base of NPN tube Q4 is connected to the WHITE terminal of MCU control circuit 03 through resistor R21, and the base of NPN tube Q5 is connected to the BLUE terminal of MCU control circuit 03 through resistor R22. Wherein, referring to Figure 7 As shown, the positive pole of LED4 in the simulated candle lamp control circuit is electrically connected to the power output end of boost circuit 02, the negative pole of LED4 is electrically connected to one end of resistor R37, the other end of resistor R37 is electrically connected to the collector of NPN tube Q1, the emitter of NPN tube Q1 is grounded, the base of NPN tube Q1 is electrically connected to one end of resistor R9, the other end of resistor R9 is electrically connected to the lamp control end of MCU control circuit 03, one end of buzzer B2 and one end of resistor R17 are connected to the power output end of boost circuit 02, the other end of buzzer B2 and the other end of resistor R17 are connected to the collector of NPN tube Q2, the emitter of NPN tube Q2 is grounded, and the base of NPN tube Q2 is electrically connected to the lamp control end of MCU control circuit 03 through resistor R10. Wherein, the chip U2 selects the chip of XC3101AT model; the chip U3 selects the chip of DW06D model; the chip U5 selects the chip of MT3608 model; the chip U1 selects the chip of HT66F0185 model; and the chip U4 selects the chip of NE555DR model.
[0071] Wherein, the control method of the pseudo-candlelight response circuit based on magnetic field induction includes the following steps: Step 1: Building of input power circuit The input power protection circuit, the rectification filter circuit, the flyback transformer circuit and the output power circuit are selected, the power input end of the input power protection circuit is electrically connected with the external AC power supply, the power output end of the input power protection circuit is electrically connected with the power input end of the rectification filter circuit, the power output end of the rectification filter circuit is electrically connected with the power input end of the flyback transformer circuit, the power output end of the flyback transformer circuit is electrically connected with the power input end of the output power circuit, and the power output end of the output power circuit is electrically connected with the power input end of the charging protection circuit; wherein the rectification filter circuit comprises a bridge rectification filter circuit and a Π type filter circuit, the power output end of the input power protection circuit is electrically connected with the power input end of the bridge rectification filter circuit, the power output end of the bridge rectification filter circuit is electrically connected with the power input end of the Π type filter circuit, and the power output end of the Π type filter circuit is electrically connected with the power input end of the flyback transformer circuit; the flyback transformer circuit comprises a chip control circuit, a transformer circuit and a rectification output circuit, the power output end of the rectification filter circuit is electrically connected with the power input end of the chip control circuit, the power output end of the chip control circuit is electrically connected with the power input end of the transformer circuit, the power output end of the transformer circuit is respectively electrically connected with the input end of the chip control circuit and the input end of the rectification output circuit, and the power output end of the rectification output circuit is electrically connected with the power input end of the output power circuit; wherein the output power circuit comprises an output voltage stabilizing circuit and an output circuit, the power input end of the output circuit and the power input end of the output voltage stabilizing circuit are respectively electrically connected with the power output end of the flyback transformer circuit, the power output end of the output circuit is used as an external output power supply, and the output voltage stabilizing circuit is used for stabilizing the output power supply; wherein the output circuit comprises an output interface, and the output interface is connected with the power output end of the flyback transformer circuit. Step 2: Building of the charging protection circuit The input power circuit in step 1 is selected, and a monitoring circuit and a protection circuit are selected, the power input end of the monitoring circuit is electrically connected with the output interface of the input power circuit, the power output end of the monitoring circuit is electrically connected with the power input end of the protection circuit, and the power output end of the monitoring circuit is electrically connected with one port of the battery module. Step 3: Building of the electronic candle The charging protection circuit of step 2 is selected, and the battery module, the voltage boosting circuit, the MCU control circuit, the signal detection circuit and the lamp control circuit are selected, the power output end of the charging protection circuit is electrically connected with one port of the battery module, one port of the battery module is electrically connected with the power input end of the voltage boosting circuit, the power output end of the voltage boosting circuit is respectively electrically connected with the power input end of the MCU control circuit, the power input end of the signal detection circuit and the power input end of the lamp control circuit, the signal control end of the MCU control circuit is electrically connected with the signal control end of the signal detection circuit, and the lamp control end of the MCU control circuit is electrically connected with the lamp control end of the lamp control circuit; wherein the candle-imitating lamp control circuit comprises the lamp control circuit and the sound control circuit, the power input end of the lamp control circuit is electrically connected with the power output end of the voltage boosting circuit, the power input end of the sound control circuit is electrically connected with the power output end of the voltage boosting circuit, and the lamp control end of the lamp control circuit and the lamp control end of the sound control circuit are respectively electrically connected with the lamp control end of the MCU control circuit; wherein the lamp control circuit comprises the color lamp control circuit and the candle-imitating lamp control circuit, the power input end of the color lamp control circuit and the power input end of the candle-imitating lamp control circuit are respectively electrically connected with the power output end of the voltage boosting circuit, and the lamp control end of the color lamp control circuit and the lamp control end of the candle-imitating lamp control circuit are respectively electrically connected with the lamp control end of the MCU control circuit.
[0072] The specific embodiments of the present application are as follows: the input power supply circuit is externally connected through the USB interface, then the charging protection circuit is used to charge the lithium battery, then the lithium battery outputs the power supply to the voltage boosting circuit to output the stable +5V power supply, then the MCU control circuit, the signal detection circuit and the lamp control circuit are powered, the signal detection circuit receives and transmits signals through the antenna, then the magnetic field signals are detected through the signal detection circuit, then the MCU control circuit is given through the "INT IN" terminal, the corresponding signals are recognized and processed, and the change of the lamps of different colors and the on-off of the candle lamp are controlled according to the strength of the magnetic field signals.
[0073] Although the embodiments of the present application have been shown and described, it can be understood by those skilled in the art that various changes, modifications, replacements and variations can be made to the embodiments without departing from the principles and spirits of the present application, and the scope of the present application is defined by the appended claims and their equivalents.
Claims
1. A magnetic field induction based pseudo-candlelight response circuit, characterized by, The pseudo-candlelight response circuit comprises an input power supply circuit, a charging protection circuit, a battery module, a voltage boosting circuit, an MCU control circuit, a signal detection circuit and a lamp control circuit, a power input end of the input power supply circuit is electrically connected with an external alternating current power supply, a power output end of the input power supply circuit is electrically connected with a power input end of the charging protection circuit, a power output end of the charging protection circuit is electrically connected with one port of the battery module, one port of the battery module is electrically connected with a power input end of the voltage boosting circuit, a power output end of the voltage boosting circuit is respectively electrically connected with a power input end of the MCU control circuit, a power input end of the signal detection circuit and a power input end of the lamp control circuit, a signal control end of the MCU control circuit is electrically connected with a signal control end of the signal detection circuit, and a lamp control end of the MCU control circuit is electrically connected with a lamp control end of the lamp control circuit. The input power supply circuit comprises an input power supply protection circuit, a rectification filtering circuit, a flyback voltage transformation circuit and an output power supply circuit, a power input end of the input power supply protection circuit is electrically connected with an external alternating current power supply, a power output end of the input power supply protection circuit is electrically connected with a power input end of the rectification filtering circuit, a power output end of the rectification filtering circuit is electrically connected with a power input end of the flyback voltage transformation circuit, a power output end of the flyback voltage transformation circuit is electrically connected with a power input end of the output power supply circuit, and a power output end of the output power supply circuit is electrically connected with a power input end of the charging protection circuit. The lamp control circuit comprises a color lamp control circuit and a simulated candle lamp control circuit, a power input end of the color lamp control circuit and a power input end of the simulated candle lamp control circuit are respectively electrically connected with a power output end of the voltage boosting circuit, and a lamp control end of the color lamp control circuit and a lamp control end of the simulated candle lamp control circuit are respectively electrically connected with a lamp control end of the MCU control circuit.
2. A pseudo-candlelight response circuit based on magnetic field induction according to claim 1, characterized in that, The charging protection circuit comprises a monitoring circuit and a protection circuit, a power input end of the monitoring circuit is electrically connected with a power output end of the output power supply circuit, a power output end of the monitoring circuit is electrically connected with a power input end of the protection circuit, and a power output end of the monitoring circuit is electrically connected with one port of the battery module.
3. A pseudo-candlelight response circuit based on magnetic field induction as claimed in claim 1, wherein, The rectification filtering circuit comprises a bridge rectification filtering circuit and a Π type filtering circuit, a power output end of the input power supply protection circuit is electrically connected with a power input end of the bridge rectification filtering circuit, a power output end of the bridge rectification filtering circuit is electrically connected with a power input end of the Π type filtering circuit, and a power output end of the Π type filtering circuit is electrically connected with a power input end of the flyback voltage transformation circuit.
4. A pseudo-candlelight response circuit based on magnetic field induction according to claim 1, characterized in that, The flyback transformer circuit comprises a chip control circuit, a transformer circuit and a rectification output circuit, the power input end of the chip control circuit is electrically connected with the power output end of the rectification filter circuit, the power output end of the chip control circuit is electrically connected with the power input end of the transformer circuit, the power output end of the transformer circuit is respectively electrically connected with the input end of the chip control circuit and the input end of the rectification output circuit, and the power output end of the rectification output circuit is electrically connected with the power input end of the output power supply circuit.
5. A pseudo-candlelight response circuit based on magnetic field induction as claimed in claim 1, wherein, The output power supply circuit comprises an output voltage stabilizing circuit and an output circuit, the power input end of the output circuit and the power input end of the output voltage stabilizing circuit are respectively electrically connected with the power output end of the flyback transformer circuit, the power output end of the output circuit is used as an external output power supply, and the output voltage stabilizing circuit is used for stabilizing the output power supply.
6. A pseudo-candlelight response circuit based on magnetic field induction as claimed in claim 1, wherein, The color lamp control circuit comprises NPN tubes Q3, Q9, Q8, Q4, Q5, resistors R11, R33, R32, R21, R22, R7, R25, R3, R8, R4, LED-R, LED-G, LED-Y, LED-W and LED-B, the emitters of the NPN tubes Q3, Q9, Q8, Q4 and Q5 are grounded, the collector of the NPN tube Q3 is connected with the negative electrode of LED-R through the resistor R7, the collector of the NPN tube Q9 is connected with the negative electrode of LED-G through the resistor R25, the collector of the NPN tube Q8 is connected with the negative electrode of LED-Y through the resistor R3, the collector of the NPN tube Q4 is connected with the negative electrode of LED-W through the resistor R8, the collector of the NPN tube Q5 is connected with the negative electrode of LED-B through the resistor R4, the positive electrodes of the LED-R, LED-G, LED-Y, LED-W and LED-B are respectively electrically connected with the power output end of the voltage boosting circuit, the base of the NPN tube Q3 is connected with the RED terminal of the MCU control circuit through the resistor R11, the base of the NPN tube Q9 is connected with the GREEN terminal of the MCU control circuit through the resistor R33, the base of the NPN tube Q8 is connected with the YELLOW terminal of the MCU control circuit through the resistor R32, the base of the NPN tube Q4 is connected with the WHITE terminal of the MCU control circuit through the resistor R21, and the base of the NPN tube Q5 is connected with the BLUE terminal of the MCU control circuit through the resistor R22.
7. A pseudo-candlelight response circuit based on magnetic field induction as claimed in claim 1, wherein, The imitation candle lamp control circuit comprises an imitation lamp control circuit and an acoustic control circuit, the power input end of the imitation lamp control circuit is electrically connected with the power output end of the voltage boosting circuit, the power input end of the acoustic control circuit is electrically connected with the power output end of the voltage boosting circuit, and the lamp control end of the imitation lamp control circuit and the lamp control end of the acoustic control circuit are respectively electrically connected with the lamp control end of the MCU control circuit.
8. A pseudo-candlelight response circuit based on magnetic field induction according to claim 7, characterized in that, The lamp control circuit includes LED4, resistor R37, NPN tube Q1 and resistor R9, the positive electrode of the LED4 is electrically connected with the power output end of the voltage boosting circuit, the negative electrode of the LED4 is electrically connected with one end of the resistor R37, the other end of the resistor R37 is electrically connected with the collector of the NPN tube Q1, the emitter of the NPN tube Q1 is grounded, the base of the NPN tube Q1 is electrically connected with one end of the resistor R9, and the other end of the resistor R9 is electrically connected with the lamp control end of the MCU control circuit.
9. A pseudo-candlelight response circuit based on magnetic field induction as claimed in claim 4, wherein, The chip control circuit includes bidirectional thyristor Q1-1, resistor R1-4, capacitor C1-4, chip U1-1, resistor R1-5, voltage stabilizing tube D1-5, capacitor C1-9, resistor R1-11, photoelectric coupler U1-2, voltage stabilizing tube D1-6, resistor R1-13, capacitor C1-8, resistor R1-14, resistor R1-15, resistor R1-12, capacitor C1-7, resistor R1-8, resistor R1-10, capacitor C1-5, resistor R1-9, resistor R1-7, resistor R1-6, diode D1-2, NMOS tube Q1-2, diode D1-3, diode D1-4, capacitor C1-6 and inductor L1-4, one end of the chip U1-1 and capacitor C1-4 is grounded, the 5th terminal of the chip U1-1 is connected with the other end of the capacitor C1-4, one end of the resistor R1-4 and the negative electrode of the diode D1-3, the other end of the resistor R1-4 is input into the power supply protection circuit, the positive electrode of the diode D1-3 is connected with the positive electrode of the diode D1-4, the 3rd terminal of the bidirectional thyristor Q1-1 and one end of the capacitor C1-6, the 1st and 2nd terminals of the bidirectional thyristor Q1-1 are connected in parallel with the resistor R1-1 in the power supply protection circuit, the negative electrode of the diode D1-4 is connected with one end of the inductor L1-4, the other end of the inductor L1-4 is connected with the other end of the output terminal of the voltage transformation circuit, the other end of the capacitor C1-6 is grounded, the 2nd terminal of the chip U1-1 is connected with one end of the resistor R1-5, the other end of the resistor R1-5 is connected with the 1st terminal of the photoelectric coupler U1-2, the negative electrode of the voltage stabilizing tube D1-5 and one end of the capacitor C1-9, the 4th terminal of the chip U1-1 is connected with one end of the resistor R1-8 and one end of the capacitor C1-7, the 6th terminal of the chip U1-1 is connected with one end of the resistor R1-6 and one end of the resistor R1-7, the 2nd terminal of the photoelectric coupler U1-2 is connected with one end of the resistor R1-11, the other end of the resistor R1-11, the positive electrode of the voltage stabilizing tube D1-5 and the other end of the capacitor C1-9 are grounded, the 3rd terminal of the photoelectric coupler U1-2 is connected with an external DC power supply through the resistor R1-12, the 4th terminal of the photoelectric coupler U1-2 is connected with one end of the capacitor C1-8 and the 1st terminal of the voltage stabilizing tube D1-6, the 2nd terminal of the voltage stabilizing tube D1-6 is connected with one end of the resistor R1-13, one end of the resistor R1-14 and one end of the resistor R1-15, the 3rd terminal of the voltage stabilizing tube D1-6 and the other end of the resistor R1-13 are grounded, the other end of the capacitor C1-8 is connected with the other end of the resistor R1-14, the other end of the resistor R1-15 is connected with the power output terminal of the output power supply circuit, the other end of the resistor R1-8 is connected with one end of the resistor R1-10 and the source electrode of the NMOS tube Q1-2, the other end of the resistor R1-10 and the other end of the capacitor C1-7 are grounded, the other end of the resistor R1-6 is connected with the negative electrode of the diode D1-2, the positive electrode of the diode D1-2 is connected with the gate electrode of the NMOS tube Q1-2, the other end of the resistor R1-7, one end of the capacitor C1-5 and one end of the resistor R1-9, the other end of the capacitor C1-5 and the other end of the resistor R1-9 are grounded, the drain electrode of the NMOS tube Q1-2 is connected with one end of the input terminal of the voltage transformation circuit.
10. A method for operating a pseudo-candlelight response circuit based on magnetic field induction, characterized in that The operation method steps are as follows: Step 1: Building of input power supply circuit Select input power protection circuit, rectifier filter circuit, flyback transformer circuit and output power supply circuit, the power input end of the input power protection circuit is electrically connected with the external AC power supply, the power output end of the input power protection circuit is electrically connected with the power input end of the rectifier filter circuit, the power output end of the rectifier filter circuit is electrically connected with the power input end of the flyback transformer circuit, the power output end of the flyback transformer circuit is electrically connected with the power input end of the output power supply circuit, and the power output end of the output power supply circuit is electrically connected with the power input end of the charging protection circuit; Wherein, the rectifier filter circuit includes bridge rectifier filter circuit and Π type filter circuit, the power output end of the input power protection circuit is electrically connected with the power input end of the bridge rectifier filter circuit, the power output end of the bridge rectifier filter circuit is electrically connected with the power input end of the Π type filter circuit, and the power output end of the Π type filter circuit is electrically connected with the power input end of the flyback transformer circuit; Wherein, the flyback transformer circuit includes chip control circuit, transformer circuit and rectifier output circuit, the power output end of the rectifier filter circuit is electrically connected with the power input end of the chip control circuit, the power output end of the chip control circuit is electrically connected with the power input end of the transformer circuit, the power output end of the transformer circuit is respectively electrically connected with the input end of the chip control circuit and the input end of the rectifier output circuit, and the power output end of the rectifier output circuit is electrically connected with the power input end of the output power supply circuit; Wherein, the output power supply circuit includes output voltage stabilizing circuit and output circuit, the power input end of the output circuit and the power input end of the output voltage stabilizing circuit are respectively electrically connected with the power output end of the flyback transformer circuit, the power output end of the output circuit is used as external output power supply, and the output voltage stabilizing circuit is used for stabilizing the output power supply; Wherein, the output circuit includes output interface, and the output interface is connected with the power output end of the flyback transformer circuit; Step 2: Building of charging protection circuit Select the input power supply circuit of step 1, and select monitoring circuit and protection circuit, the power input end of the monitoring circuit is electrically connected with the output interface of the input power supply circuit, the power output end of the monitoring circuit is electrically connected with the power input end of the protection circuit, and the power output end of the monitoring circuit is electrically connected with one port of the battery module; Step 3: Building of electronic candle Select the charging protection circuit of step 2, and select battery module, boost circuit, MCU control circuit, signal detection circuit and lamp control circuit, the power output end of the charging protection circuit is electrically connected with one port of the battery module, one port of the battery module is electrically connected with the power input end of the boost circuit, the power output end of the boost circuit is respectively electrically connected with the power input end of the MCU control circuit, the power input end of the signal detection circuit and the power input end of the lamp control circuit, the signal control end of the MCU control circuit is electrically connected with the signal control end of the signal detection circuit, and the lamp control end of the MCU control circuit is electrically connected with the lamp control end of the lamp control circuit; The imitation candle lamp control circuit comprises an imitation lamp control circuit and an acoustic control circuit, the power input end of the imitation lamp control circuit is electrically connected to the power output end of the voltage boosting circuit, the power input end of the acoustic control circuit is electrically connected to the power output end of the voltage boosting circuit, and the lamp control end of the imitation lamp control circuit and the lamp control end of the acoustic control circuit are respectively electrically connected to the lamp control end of the MCU control circuit. The lamp control circuit comprises a colored lamp control circuit and an imitation candle lamp control circuit, the power input end of the colored lamp control circuit and the power input end of the imitation candle lamp control circuit are respectively electrically connected to the power output end of the voltage boosting circuit, and the lamp control end of the colored lamp control circuit and the lamp control end of the imitation candle lamp control circuit are respectively electrically connected to the lamp control end of the MCU control circuit.