Controller circuit structure

By designing the controller circuit structure, the diversity of lamp body functions and remote control are achieved, the problem of fixing existing lighting functions is solved, convenient operation and resource saving effect is provided, and the MCU and RF modules are guaranteed when power is off. power supply.

CN222030098UActive Publication Date: 2024-11-19HANGZHOU KANLONG IMPORT & EXPORT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420058452.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2024-11-19
Estimated Expiration
2034-01-10

AI Technical Summary

Technical Problem

The existing lighting products have fixed functions and cannot change according to the needs of different scenarios, resulting in consumers needing to frequently replace the adapter and lamp body, and it is inconvenient to operate when turning off the lights at high places or outdoors.

Method used

A controller circuit structure is designed, including input rectifier module, input signal acquisition module, output polarity control module, wireless communication module and power supply module. The microcontroller is used to connect these modules to realize multiple functions, long-distance remote control and grouping pairing. Function.

Benefits of technology

The diversity of lamp body functions and remote control are realized, which facilitates operation, reduces functional limitations, avoids unnecessary waste, and provides internal battery power when the input signal is powered off for a short time, ensuring the continuous operation of the MCU and RF modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222030098U_ABST
    Figure CN222030098U_ABST
Patent Text Reader

Abstract

The utility model discloses a controller circuit structure, comprising an input rectification module, an input signal acquisition module, an output polarity control module, a wireless communication module, a power supply module and a single-chip microcomputer which is respectively connected with the input signal acquisition module, the output polarity control module, the wireless communication module and the power supply module. The input rectification module is respectively connected with the input signal acquisition module and the output polarity control module, and the power supply module is respectively connected with the input rectification module, the output polarity control module and the wireless communication module. The controller circuit structure provided by the utility model can realize multi-function control, long-distance continuous remote control and grouping pairing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of lighting control, in particular to a controller circuit structure. Background Art

[0002] At present, the lighting products on the market have fixed functions when they are shipped. Some of the built-in adapters are always on, some are flashing, some are timed, and some are a combination of the above functions. Generally, according to the output of the adapter, there are several types of fixed function applications:

[0003] (1) Ordinary adapter plus lamp body, output DC power, plug and play.

[0004] (2) An adapter with a timing function and a lamp body. The adapter has a button that can be used to achieve the timing of the lamp body. The timing is usually fixed at 6 / 18 or 8 / 16. For example, 6 / 18 means that after the timing function is turned on, DC power is output and the lamp body is on. After 6 hours, the output is 0 volts and the lamp body is off. After 18 hours, the lamp body is on again. The timing is cycled for 24 hours. In this way, the lamp will automatically turn on and off during a fixed time period every day.

[0005] (3) Output voltage with PWM modulation is divided into the following categories:

[0006] A. Output DC voltage, light on and off at a certain frequency. For example, a 24V adapter with a flashing function will light up in the first second and go out in the second second, repeating the cycle. This means that the voltage output is 24V in the first second and 0V in the second second.

[0007] B. Output AC voltage, gradually brighten and dim according to the frequency, PWM pulse width modulation output, so that the light slowly lights up and slowly dims.

[0008] C. Output bipolar voltage, that is, AC voltage with PWM modulation, so that their positive and negative polarities can be changed rapidly and continuously. Combined with the staggered welding of the positive and negative sides of the lamp body, effects such as flashing and running can be produced.

[0009] In response to the demand for lighting functions in different scenarios, the functions of all the above adapters cannot be combined, and only the functions fixed at the factory. For example, when leaving the factory, there is no flashing function, and the lighting will no longer have this function. Fixed functions are not conducive to the lighting to change according to different scene requirements, resulting in different types of lighting that need to be replaced in different usage scenarios. When consumers want to achieve other functions when using them, they need to buy adapters again, and may also need to buy adapters and lamp bodies again, which brings a lot of trouble and unnecessary waste (for example, some adapters may only be used once and then idle). In addition, when many consumers actually use them, if they install them in high places or outdoors, they need to manually turn off the power when they need to turn off these lights, which brings inconvenience to consumers. Summary of the invention

[0010] Purpose of the invention: The purpose of the utility model is to provide a controller circuit structure that can realize multiple functions, long-distance remote control and group pairing.

[0011] Technical solution: In order to achieve the above-mentioned invention objectives, a controller circuit structure of the utility model includes an input rectifier module, an input signal acquisition module, an output polarity control module, a wireless communication module, a power supply module and a single-chip microcomputer. The single-chip microcomputer is respectively connected to the input signal acquisition module, the output polarity control module, the wireless communication module and the power supply module. The input rectifier module is respectively connected to the input signal acquisition module and the output polarity control module. The power supply module is respectively connected to the input rectifier module, the output polarity control module and the wireless communication module.

[0012] As a preferred embodiment of the utility model, the single chip microcomputer is an MCU. Common MCU models include PY32 series, GD32 series, Jiuqi's NY8, Yingguang's PMC series\PMS series\PFS series, Huimang's FT series, etc.; the wireless communication module is preferably a 433M\315M RF module.

[0013] Furthermore, the input rectifier module includes four rectifier diodes, namely a first rectifier diode, a second rectifier diode, a third rectifier diode and a fourth rectifier diode.

[0014] The anode of the first rectifier diode and the cathode of the second rectifier diode are connected to the base of the first transistor of the input signal acquisition module, and the cathode of the first rectifier diode and the cathode of the fourth rectifier diode are connected to the input end of the output polarity control module;

[0015] The cathode of the third rectifier diode and the anode of the fourth rectifier diode are connected to the base of the second transistor of the input signal acquisition module, and the anode of the second rectifier diode and the anode of the third rectifier diode are grounded.

[0016] Furthermore, the input signal acquisition module includes a first triode and a second triode, the emitter of the first triode and the emitter of the second triode are grounded, and the collector of the first triode and the collector of the second triode are connected to the single chip microcomputer.

[0017] Furthermore, the first transistor and the second transistor are NPN transistors or NMOS transistors.

[0018] Furthermore, the output polarity control module includes four switching tubes, the source of the first switching tube and the source of the second switching tube are connected to VCC, the gate of the first switching tube, the drain of the first switching tube, the gate of the second switching tube, the drain of the second switching tube, the drain of the third switching tube, and the drain of the fourth switching tube are all connected to the LED, the source of the third switching tube and the source of the fourth switching tube are grounded, and the gate of the third switching tube and the gate of the fourth switching tube are connected to the single-chip computer. As a preferred embodiment of the present invention, the switching tube is a MOS tube, which can also be said to be a transistor.

[0019] Furthermore, the power module includes a boost circuit, a charging circuit and a buck circuit, and the charging circuit is connected to the boost circuit and the buck circuit respectively.

[0020] Further, the charging circuit includes a battery and four switch tubes, the gate of the fifth switch tube and the gate of the sixth switch tube are connected to the single-chip microcomputer, the source of the fifth switch tube is connected to the output end of the buck circuit, the source of the sixth switch tube is connected to the positive electrode of the battery and the input end of the boost circuit, and the drain of the fifth switch tube is connected to the drain of the sixth switch tube;

[0021] The gate of the seventh switch tube and the gate of the eighth switch tube are connected to the single chip microcomputer, the source of the seventh switch tube is grounded, the source of the eighth switch tube is connected to the negative electrode of the battery, and the drain of the seventh switch tube is connected to the drain of the eighth switch tube.

[0022] As a preferred embodiment of the present invention, the battery is a nickel-hydrogen battery.

[0023] Furthermore, the boost circuit includes a boost chip, an output end of the boost chip is connected to +2V8, and an input end of the boost chip is connected to an output end of the charging circuit.

[0024] Furthermore, +2V8 is a voltage of 2.2V-5V.

[0025] Furthermore, the step-down circuit includes a DC / DC chip, a third triode, a ninth switch tube and a tenth switch tube.

[0026] The base of the third triode is connected to the DC / DC chip, the emitter of the third triode is grounded, and the collector of the third triode is connected to the gate of the tenth switch tube;

[0027] The source of the tenth switch tube is connected to the ground, and the drain of the tenth switch tube is connected to the gate of the ninth switch tube;

[0028] The source of the ninth switch tube is connected to VCC, and the drain of the ninth switch tube is respectively connected to +2V8 and the source of the fifth switch tube.

[0029] PWM stands for Pulse-width modulation, which is a method of reducing the average power transmitted by an electrical signal by dispersing the effective electrical signal into discrete forms.

[0030] Beneficial effects: The controller circuit structure of the utility model is suitable for adapters with multiple functions, which can help the lamp body realize multiple functional characteristics, solve the functional limitations brought by the inherent functions of the original adapter, and enrich the user's use needs. The utility model adds a remote control function, which is convenient for the operator to control the lamp body. The utility model adds an internal battery, so that the lamp body can continue to supply power to the MCU and RF module when the input signal is temporarily powered off. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 1 is a schematic diagram of the circuit structure of the controller of the embodiment;

[0032] Figure 2 is a circuit schematic diagram of an input rectifier module of an embodiment;

[0033] Figure 3 is a circuit schematic diagram of an input signal acquisition module in an embodiment;

[0034] Figure 4 is a circuit schematic diagram of an output polarity control module of an embodiment;

[0035] Figure 5 MCU circuit schematic diagram of the embodiment;

[0036] Figure 6 is a circuit schematic diagram of an RF module of an embodiment;

[0037] Figure 7 1 is a schematic diagram of a power module circuit of an embodiment. DETAILED DESCRIPTION

[0038] like Figure 1 As shown, a controller circuit structure of the utility model includes an input rectifier module 1, an input signal acquisition module 2, an output polarity control module 3, a wireless communication module 4, a power supply module 5 and a single-chip microcomputer 6. The single-chip microcomputer 6 is respectively connected to the input signal acquisition module 2, the output polarity control module 3, the wireless communication module 4 and the power supply module 5. The input rectifier module 1 is respectively connected to the input signal acquisition module 2 and the output polarity control module 3. The power supply module 5 is respectively connected to the input rectifier module 1, the output polarity control module 3 and the wireless communication module 4.

[0039] As a preferred embodiment of the present invention, the single chip computer 6 is an MCU, and the wireless communication module 4 is an RF module. It should be noted that in actual applications, the wireless communication module 4 can also be removed and replaced with a physical button.

[0040] like Figure 2 As shown, the input rectifier module 1 includes four rectifier diodes, namely a first rectifier diode D4, a second rectifier diode D7, a third rectifier diode D8 and a fourth rectifier diode D11.

[0041] The positive electrode of the first rectifier diode D4 and the negative electrode of the second rectifier diode D7 are connected to the base of the first transistor Q10 of the input signal acquisition module 2, and the connection end is marked as S1 in the utility model; the negative electrode of the first rectifier diode D4 and the negative electrode of the fourth rectifier diode D11 are connected to the input end of the output polarity control module 3;

[0042] The cathode of the third rectifier diode D8 and the anode of the fourth rectifier diode D11 are connected to the base of the second transistor Q11 of the input signal acquisition module 2, and the connection end is marked as S2 in the utility model; the anode of the second rectifier diode D7 and the anode of the third rectifier diode D8 are grounded.

[0043] There are four types of input voltages for the controller: 1. DC voltage; 2. DC voltage with PWM pulse width modulation; 3. AC voltage; 4. AC voltage with PWM modulation.

[0044] No matter what kind of input voltage is rectified by four rectifier diodes D4, D7, D8, and D11, and connected to capacitor C15, it will become a DC voltage. The voltage value will change with the input voltage and PWM duty cycle, which is marked as VCC. D9 at the front end of C15 is a transient suppression diode, which can suppress sudden large voltages and prevent damage to the electronic parts at the back end. S1 and S2 are connected to the input signal acquisition module 2. When the controller is used with different adapters, the VCC output after rectification may be constant, may change continuously from 0 to 40V, or may be maintained at different voltages according to the frequency.

[0045] like Figure 3 As shown, the input signal acquisition module 2 includes a first transistor Q10 and a second transistor Q11, the emitter of the first transistor Q10 and the emitter of the second transistor Q11 are grounded, and the collector of the first transistor Q10 and the collector of the second transistor Q11 are connected to the single-chip computer 6. In this embodiment, the first transistor Q10 and the second transistor Q11 are preferably NPN transistors.

[0046] S1 passes through capacitor C11, and after voltage division by resistors R15 and R20, controls the on and off of the first transistor Q10. S1_MCU is connected to pin 11 of MCU (U1). A pull-up resistor is set inside pin 11. When S1 has voltage, the first transistor Q10 is turned on, and S1_MCU is logic "0". When S1 has no voltage, the first transistor Q10 is turned off, and S1_MCU is logic "1". Because the voltage of S1 is not fixed, it may be 3V-40V. If it is directly connected to the integrated circuit of the MCU, it will cause damage to the MCU. Therefore, this circuit is needed to match the withstand voltage of the MCU. In addition, the role of C11 is to filter out some clutter interference so that the output of S1_MCU is consistent with the input signal of S1. The principle of S2 to S2_MCU is consistent with the principle of S1 to S1_MCU mentioned above.

[0047] like Figure 4 As shown, the output polarity control module 3 includes four switch tubes, the source of the first switch tube Q5, the gate of the first switch tube, the source of the second switch tube Q6 and the gate of the second switch tube Q6 are connected to VCC, the gate of the first switch tube Q5, the drain of the first switch tube Q5, the gate of the second switch tube Q6, the drain of the second switch tube Q6, the drain of the third switch tube Q7 and the drain of the fourth switch tube Q8 are all connected to the LED, the source of the third switch tube Q7 and the source of the fourth switch tube Q8 are grounded, the gate of the third switch tube Q7 and the gate of the fourth switch tube Q8 are connected to the single-chip computer 6, the connection end of the gate series resistor R8 of the third switch tube Q7 of the utility model and the MCU is L1, and the connection end of the gate series resistor R11 of the fourth switch tube Q8 and the MCU is L2. The gate series resistor R9 of the first switch tube Q5 and the gate series resistor R7 of the second switch tube Q6 are connected to the LED, the gate series resistor R5 of the first switch tube Q5 and the gate series resistor R4 of the second switch tube Q6 are connected to VCC, and the gate series resistor R10 of the third switch tube Q7 and the gate series resistor R6 of the fourth switch tube Q8 are grounded.

[0048] L1 and L2 are connected to the 6th and 7th pins of the MCU. When L1 is logic "1", it outputs a high level, and when L2 is logic "0", it outputs a low level. L1 controls Q7 to turn on through R8, and output 2 will be grounded through Q7. Q5 is grounded through R9 through Q7, and thus turned on. Output 1 will be connected to VCC through Q5, so that output 1 is positive and output 2 is negative.

[0049] In simple terms, when L1=1 and L2=0, Q5 and Q7 are turned on, Q6 and Q8 are turned off, output 2 is grounded, and output 1 is connected to VCC, and the LED is on. When L1=0 and L2=1, Q5 and Q7 are turned off, Q6 and Q8 are turned on, output 2 is connected to VCC, and output 1 is grounded to GND, and the LED is on. When L1=0 and L2=0, Q5, Q6, Q7, and Q8 are all turned off, there is no output, and the LED is off. The MCU can control the polarity of the output by controlling the levels of L1 and L2, and combine the signals collected by S1_MCU and S2_MCU of the input signal acquisition module 2 to make the output and input change synchronously.

[0050] In addition, a resistor R17 and a resistor R22 are connected in series between VCC and ground GND. After voltage division by R17 and R22, the voltage division end between R17 and R22 is marked as PUVOL and connected to the 14th pin of MCU. MCU samples it and obtains the voltage value of VCC. A D12 is connected in parallel with R22. D12 is a transient suppression diode to protect the integrated circuit port from being damaged by sudden voltage.

[0051] like Figure 5 As shown, pin 2 of the MCU is labeled SWD, which is used for debugging and downloading programs; pin 3 of the MCU is labeled SCK, which is used for debugging and downloading programs; pin 4 of the MCU is labeled PUPWM, which is used to control indicator light D3; pin 6 of the MCU is labeled L2, and pin 7 of the MCU is labeled L1, which is used for L1 and L2 to coordinate and control the polarity of the output; pin 11 of the MCU is labeled S2_MCU, and pin 12 of the MCU is labeled S1_MCU, and S1_MCU and S2_MCU are used to collect the polarity of the input; pin 13 of the MCU is labeled NIMHVOL, which is used to collect the voltage of the nickel-hydrogen battery; pin 14 of the MCU is labeled PU VOL is used to collect the voltage of VCC; Pin 15 of the MCU is labeled NIMHCS1, which is used to cut off the power supply of the NiMH battery so that the product has the lowest power consumption when it is stored without power; Pin 16 of the MCU is labeled TX, the UART serial port, which is used to send the current system status or records, such as battery voltage, power-on times, etc.; Pin 17 of the MCU is labeled DATA, which is used to connect to the RF module. The MCU decodes the corresponding remote control code value through the RF signal; Pin 18 of the MCU is labeled RX, the UART serial port, which is used to receive serial port data, and the MCU performs corresponding operations; Pin 19 of the MCU is labeled CHARCS, which is used to control the charging of the NiMH battery;

[0052] The 8th and 9th pins of the MCU are connected with capacitors C4, C7 and crystal oscillator Y1, which are used to provide an oscillation clock for the MCU. Capacitors C4, C7 and crystal oscillator Y1 can also be removed to use the internal clock of the MCU. The 5th pin of the MCU is connected with resistor R12 and the 10th pin is connected with capacitor C8, which is the power-on reset circuit of the MCU. Resistor R12 pulls down the level to select the program startup mode for the MCU. Resistor R14 is connected in series with D3 and connected to the 4th pin of the MCU through the label PUPWM, which acts as an indicator light, such as production test, abnormal indication, etc. Capacitors C5 and C6 connected to the 20th pin of the MCU are used to filter the power supply of the MCU. The 13th pin of the MCU is connected with capacitor C9, and the 14th pin of the MCU is connected with capacitor C10 to filter the voltage acquisition signal through PUVOL and NIMHVOL.

[0053] like Figure 6 As shown, the RF module is grounded through the magnetic bead L5, and can also be grounded through a 0 ohm resistor to filter out clutter interference and provide RF receiving sensitivity. Capacitor C23 filters the input voltage of the RF module, which also improves the stability of the RF module. The output of the RF module is connected to the 17th pin of the MCU through DATA. The MCU performs corresponding actions by decoding the signal sent by the remote control.

[0054] When the remote control button is pressed, a wireless button code will be sent. The RF module receives the code information and decodes the received code information and sends it to the 17th pin of the MCU. The MCU performs different function controls according to different code information. If the button code information is the light-on information, then the MCU will switch the L1 and L2 terminals of the output polarity control module 3 synchronously according to the input status of the S1 and S2 terminals, so that the output signals of the OUT1 and OUT2 terminals correspond to the input signals of the AC1 and AC2 terminals to control the light body. If the button code information is the light body flickering, then regardless of how the input signals of the AC1 and AC2 terminals change, the MCU4 will automatically control the L1 and L2 terminals so that the output signals of the output 1 and output 2 terminals have a flickering function. If the code information is a timing function, then the MCU will start timing after receiving the code information. After the timing time ends, the MCU will automatically close the L1 and L2 terminals of the output polarity control module 3 through the 6 and 7 pins, so that the output 1 and output 2 terminals do not output signals.

[0055] like Figure 7 As shown, the power module 5 includes a boost circuit, a charging circuit and a buck circuit, and the charging circuit is connected to the boost circuit and the buck circuit respectively.

[0056] The charging circuit includes a battery and four switch tubes, the gate of the fifth switch tube Q1 and the gate of the sixth switch tube Q2 are connected to the single chip computer 6, the source of the fifth switch tube Q1 is connected to the output end of the buck circuit, the source of the sixth switch tube Q2 is connected to the positive electrode of the power supply and the input end of the boost circuit, the drain of the fifth switch tube Q1 is connected to the drain of the sixth switch tube Q2; the gate of the seventh switch tube Q3 and the gate of the eighth switch tube Q4 are connected to the single chip computer 6, the source of the seventh switch tube Q3 is grounded, the source of the eighth switch tube Q4 is connected to the negative electrode of the power supply, and the drain of the seventh switch tube Q3 is connected to the drain of the eighth switch tube Q4. As a preferred embodiment of the utility model, the battery is a nickel-hydrogen battery.

[0057] The boost circuit includes a boost chip, and the output end of the boost chip is connected to +2V8 through a series diode D2. Pin 10 of the microcontroller is connected to the +2V8 in series with a resistor R13, and pin 1 of the RF module is connected to the +2V8 as a backup power supply for the microcontroller and the RF module. It should be noted that the boost circuit and the charging circuit can be set to not work or removed according to actual needs.

[0058] The step-down circuit includes a DC / DC chip, a third transistor Q13, a ninth switch tube Q9 and a tenth switch tube Q12. The base of the third transistor Q13 is connected to the pin SW of the DC / DC chip through an inductor R23 and an inductor L4. The base of the third transistor Q13 is grounded through a capacitor C25. The emitter of the third transistor Q13 is grounded. The collector of the third transistor Q13 is connected to the gate of the tenth switch tube Q12. The collector of the third transistor Q13 is connected to VCC through a series resistor R19. The source of the tenth switch tube Q12 is connected to the ground, the drain of the tenth switch tube Q12 is connected to the gate of the ninth switch tube Q9, and the drain of the tenth switch tube Q12 is connected to VCC in series with the resistor R18; the source of the ninth switch tube Q9 is connected to VCC, and the drain of the ninth switch tube Q9 is connected to +2V8 in series with the inductor L2, the diode D5, the diode D6 in series in sequence, and the output voltage between the diode D5 and the diode D6 is marked as VU3, and the diode D1 is connected to the source of the fifth switch tube Q1 in series from point VU3. Pin 1 of the RF module is connected to the +2V8 to provide the main power supply for the microcontroller and the RF module.

[0059] VCC provides input voltage to DC / DC chip UP2 through capacitor C28, capacitor C16, inductor L3, and capacitor C17. DC / DC chip UP2, capacitors C18, C20, C19, C21, and C22, inductor L4, diode D13, resistors R25, R26, and R24 form a DC / DC buck module. The output voltage is marked as VU1. Because the voltage of VCC is constantly changing, when the voltage of VCC is not enough to start the DC / DC buck module, VU1 has no voltage output and will control Q13 through resistor R23 to cut off Q13. When Q13 is cut off, VCC pulls up the gate of NMOS tube Q12 through resistor R19, and Q12 will be turned on. When Q12 is turned on, it will pull down the gate of PMOS tube Q9, and Q9 will be turned on. In this way, VCC passes through Q9 and is filtered by inductor L2, capacitor C13, and C14 to obtain an output voltage marked as VU2. On the contrary, if the VCC voltage is sufficient to start the DC / DC module, VU1 has an output voltage, which controls the transistor Q13 to conduct through the resistor R23. Q13 conducts, making Q12 cut off. After Q12 is cut off, the gate of Q9 is pulled up by the resistor R18, and Q9 will also be cut off, then VU2 will be disconnected from VCC, and VU2 will have no output. VU2 and VU1 are connected in parallel through the diode D5 and the diode D14 respectively, and are marked as VU3. The transistor with a metal-oxide-semiconductor structure is referred to as a MOS tube, which is divided into a P-type MOS tube and an N-type MOS tube. The PMOS tube is a P-type MOS tube, which consists of a p-type channel and two n-type doped regions (source and drain). The channel is embedded in the n-type substrate and is also covered by an insulating layer (usually silicon oxide). The NMOS tube is an N-type MOS tube, which consists of an n-type channel and two p-type doped regions (source and drain). The channel is embedded in a p-type substrate and covered by an insulating layer (usually silicon oxide).

[0060] In this way, when VCC is not enough to start the DC / DC buck module, VU3 will be indirectly connected to VCC directly. When VCC can start the DC / DC buck module, VU3 will be indirectly connected to the output of the buck module directly. D10 is a transient suppression diode to prevent high voltage from damaging the MCU and other parts. In this way, when the VCC voltage changes in the 0-40V voltage range, VU3 can be guaranteed to have the maximum voltage output while the average voltage will not exceed 5V, so that the voltage is suitable for the subsequent MCU and RF modules to work. The output voltage of VU3 through diode D6 is marked as +2V8, and +2V8 can power the MCU and RF modules. When the VCC voltage drops below 2.6V, the nickel-hydrogen battery Battery, through capacitor C1, inductor L1, integrated circuit UP1, capacitor C2, capacitor C3 boosts the voltage to generate a voltage VU4, through diode D2, connected to +2V8, so that the MCU and RF modules work, and are not affected by the change of VCC. Even if VCC is 0, the MCU and RF modules can still work for a period of time.

[0061] When VCC is not 0, VU3 charges the NiMH battery through diode D1, MOS tubes Q1 and Q2. The MCU determines whether the battery is fully charged by judging the voltage and charging time of NIMHVOL, and inputs high or low levels through the CHARCS port to turn on or off charging. When the CHARCS input is low, Q1 and Q2 are turned on, and the battery can be charged through the resistor R1 current limiting. When the CHARCS input is high, Q1 and Q2 are turned off and the charging is disconnected. The high and low levels input at the NIMHCS1 end are passed through the parallel circuit of resistor R3 and capacitor C0 to adjust the current and voltage in the circuit, thereby adjusting the conduction and cutoff of Q3 and Q4 to turn on or off the boost circuit. At the same time, it can ensure that the boost circuit is not turned on when there is no input from the controller. After the battery consumption is isolated by MOS, the power consumption is the lowest, which can ensure that the battery can be stored in the warehouse for a long time and ensure the normal operation of the MCU and RF module.

[0062] MCU collects the input voltage signal and controls the output so that the output can follow the input, which can keep the original function of the lamp unchanged; at the same time, when the RF module is remotely controlled, the output can be cut off or the control function can be increased. Using nickel-hydrogen batteries as backup power supply, when the input voltage cannot maintain the normal operation of the MCU, the nickel-hydrogen battery voltage is boosted and output to the MCU and RF module to work, which can keep the MCU and RF module working continuously and improve the circuit working efficiency. While the above work is being carried out, the MCU collects the input and output voltages and voltage polarity changes in real time, which is conducive to users to understand the changes in the circuit in time and facilitate further adjustments to the plan later.

[0063] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A controller circuit structure, characterized in that: It includes an input rectifier module, an input signal acquisition module, an output polarity control module, a wireless communication module, a power supply module and a single-chip microcomputer. The single-chip microcomputer is respectively connected to the input signal acquisition module, the output polarity control module, the wireless communication module and the power supply module. The input rectifier module is respectively connected to the input signal acquisition module and the output polarity control module. The power supply module is respectively connected to the input rectifier module, the output polarity control module and the wireless communication module.

2. The controller circuit structure according to claim 1, characterized in that: The input rectifier module includes four rectifier diodes, namely a first rectifier diode, a second rectifier diode, a third rectifier diode and a fourth rectifier diode. The anode of the first rectifier diode and the cathode of the second rectifier diode are connected to the base of the first transistor of the input signal acquisition module, and the cathode of the first rectifier diode and the cathode of the fourth rectifier diode are connected to the input end of the output polarity control module; The cathode of the third rectifier diode and the anode of the fourth rectifier diode are connected to the base of the second transistor of the input signal acquisition module, and the anode of the second rectifier diode and the anode of the third rectifier diode are grounded.

3. The controller circuit structure according to claim 1, characterized in that: The input signal acquisition module includes a first triode and a second triode, the emitter of the first triode and the emitter of the second triode are grounded, and the collector of the first triode and the collector of the second triode are connected to the single chip microcomputer.

4. The controller circuit structure according to claim 3, characterized in that: The first transistor and the second transistor are NPN transistors or NMOS transistors.

5. The controller circuit structure according to claim 1, characterized in that: The output polarity control module includes four switch tubes, the source of the first switch tube and the source of the second switch tube are connected to VCC, the gate of the first switch tube, the drain of the first switch tube, the gate of the second switch tube, the drain of the second switch tube, the drain of the third switch tube, and the drain of the fourth switch tube are all connected to the LED, the source of the third switch tube and the source of the fourth switch tube are grounded, and the gate of the third switch tube and the gate of the fourth switch tube are connected to the single-chip computer.

6. The controller circuit structure according to claim 1, characterized in that: The power module comprises a boost circuit, a charging circuit and a buck circuit, and the charging circuit is connected to the boost circuit and the buck circuit respectively.

7. The controller circuit structure according to claim 6, characterized in that: The charging circuit includes a battery, a fifth switch tube, a sixth switch tube, a seventh switch tube and an eighth switch tube; The gate of the fifth switch tube and the gate of the sixth switch tube are connected to the single chip microcomputer, the source of the fifth switch tube is connected to the output end of the buck circuit, the source of the sixth switch tube is connected to the positive electrode of the battery and the input end of the boost circuit, and the drain of the fifth switch tube is connected to the drain of the sixth switch tube; The gate of the seventh switch tube and the gate of the eighth switch tube are connected to the single chip microcomputer, the source of the seventh switch tube is grounded, the source of the eighth switch tube is connected to the negative electrode of the battery, and the drain of the seventh switch tube is connected to the drain of the eighth switch tube.

8. The controller circuit structure according to claim 7, characterized in that: The boost circuit includes a boost chip, the output end of the boost chip is connected to +2V8, and the input end of the boost chip is connected to the output end of the charging circuit.

9. The controller circuit structure according to claim 7, characterized in that: The step-down circuit includes a DC / DC chip, a third triode, a ninth switch tube and a tenth switch tube. The base of the third triode is connected to the DC / DC chip, the emitter of the third triode is grounded, and the collector of the third triode is connected to the gate of the tenth switch tube; The source of the tenth switch tube is connected to the ground, and the drain of the tenth switch tube is connected to the gate of the ninth switch tube; The source of the ninth switch tube is connected to VCC, and the drain of the ninth switch tube is respectively connected to +2V8 and the source of the fifth switch tube.