A control circuit for realizing function switching of a lighting lamp through a code dial switch
By combining DIP switches and control circuits, stable switching of lighting functions is achieved, solving the problems of remote control being susceptible to network interference and manual control lacking multi-functional switching, thereby improving control security and reducing costs.
Patent Information
- Application Number
- CN202522117960.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2035-09-30
AI Technical Summary
Existing lighting fixtures are susceptible to network failures when remotely controlled, and manual control lacks multi-functional switching circuits, resulting in unstable control and inconvenient function switching.
The control circuit, composed of a DIP switch, constant current drive, resistors, capacitors, MOSFETs, and a microcontroller, enables three-level switching of the lamp's functions, including OFF, DIM, and AUTO modes. Manual control is achieved by moving the DIP switch.
It improves the safety and reliability of lighting control, reduces costs, and maintains the stability of function switching in the event of power outages or network failures.
Smart Images

Figure CN224935810U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of lighting circuits, specifically relating to a control circuit that uses a DIP switch to switch the functions of lighting fixtures. Background Technology
[0002] In modern lighting applications, luminaires often integrate multiple functions, and the switching and control methods for these functions are one of the main issues in product design today. Generally, luminaires are mainly divided into remote control and manual control. Remote control relies heavily on network or power (such as Wi-Fi, Bluetooth, 4G). If the network is down or the system malfunctions, the device may fail to respond, and remote control may experience delays due to environmental factors. Manual control is more suitable for situations where frequent control is not required, but the current market lacks manual adjustment circuits that can switch between multiple functions. Utility Model Content
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a control circuit that enables the switching of lighting fixture functions via a DIP switch.
[0004] The technical solution adopted by this utility model to solve its technical problem is: A control circuit for switching lighting fixture functions via a DIP switch includes an LED light source, a driver module, a control module, and a switch module. The driver module consists of a constant current driver, resistors four and five, capacitor two, a MOSFET, sampling resistor one, and sampling resistor two. The constant current driver pin 2, one end of sampling resistor one, and one end of sampling resistor two are connected to the source of the MOSFET. The drain of the MOSFET is connected to the negative terminal of the LED light source. The drain of the MOSFET is connected to the constant current driver pin 4. The constant current driver pin 3 and one end of capacitor two are connected to the network label Vin. One end of resistor four and one end of resistor five are connected to the constant current driver pin 5. The other end of resistor five, the constant current driver pin 1, and the sampling resistor two are connected to the source of the LED light source. The other ends of sampling resistor 1, sampling resistor 2, and capacitor 2 are grounded respectively. The other end of resistor 4 is connected to the network label OUT. The control module consists of capacitors 3, 4, 5, 6, 7, and 8; resistors 6, 7, 8, 9, 10, 11, 12, and 13; diode 1; diode 2; a sensor; a microcontroller; and a voltage regulator chip. Pin 1 of the microcontroller, one end of capacitor 6, pin 1 of the sensor, one end of capacitor 7, one end of resistor 6, one end of capacitor 4, and one end of capacitor 5 are connected to pin 2 of the voltage regulator chip. Pin 2 of the microcontroller, resistor 7, and capacitor 8 are connected to pin 2 of the sensor. Pin 3 of the microcontroller is connected to the diode. The negative terminal of diode 2 is connected to pin 4 of the microcontroller, labeled OUT. Pin 5 of the microcontroller and the other end of resistor 6 are labeled MODE. One end of resistor 8 and one end of resistor 11 are connected to pin 6 of the microcontroller. One end of resistor 9 and one end of resistor 11 are connected to pin 7 of the microcontroller. Pin 8 of the microcontroller, the other end of resistor 10, and the other end of resistor 11 are grounded. The other end of resistor 8 is labeled SUN. The other end of resistor 9 is connected to the network labeled Vin. One end of resistor 12 and one end of resistor 13 are connected to the positive terminal of diode 2. The other end of resistor 13 is connected to the operating voltage 2.5V. The positive terminal of diode 1 is connected to the network labeled SUN. The negative terminal of diode 1 and the positive terminal of the LED light source are connected to the network labeled B+. A voltage regulator chip is also connected. Pin 3 and one end of capacitor 3 are connected to network label Vin. The other ends of capacitor 3, capacitor 4, capacitor 5, capacitor 7, capacitor 6, capacitor 8, resistor 7, pin 1 of the voltage regulator chip, and the other end of resistor 12 are grounded respectively. The switch module consists of a toggle switch, resistor 2, and resistor 3. Pin 1 of the toggle switch is connected to network label Vin, pin 2 of the toggle switch is connected to network label B+, pin 4 of the toggle switch is connected to network label Vin, pin 5 of the toggle switch is connected to one end of resistor 3, pin 7 of the toggle switch is connected to network label MODE, and pin 8 of the toggle switch is connected to one end of resistor 2. The other ends of resistor 2 and resistor 3 are grounded.
[0005] Preferably, the constant current driver is model OC7141.
[0006] Preferably, the voltage regulator chip is model AS725.
[0007] Compared with the prior art, this utility model has the following advantages and effects: This circuit transforms the traditional toggle switch from directly controlling a large current to controlling a small current, increasing safety. It also allows applications requiring high-voltage, high-current toggle switches to be replaced with low-voltage, low-current toggle switches, effectively reducing costs. Attached Figure Description
[0008] Figure 1 This is a circuit diagram of the driving module in the embodiment.
[0009] Figure 2 The circuit diagram is shown in the embodiment of the control module.
[0010] Figure 3 The circuit diagram is shown for the switching module in this embodiment.
[0011] The accompanying drawings, which are provided to further illustrate this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. Detailed Implementation
[0012] To make the above-mentioned objectives, features and advantages of this utility model more apparent and understandable, the specific embodiments of this utility model will be described in detail below with reference to the accompanying drawings. Example
[0013] like Figures 1-3As shown, the control circuit includes an LED light source, a driver module, a control module, and a switch module. The driver module consists of a constant current driver U3, resistors R4 and R5, capacitor C2, MOSFET Q1, sampling resistors RS1 and RS2. Pin 2 of the constant current driver U3, one end of sampling resistor RS1, and one end of sampling resistor RS2 are connected to the source of MOSFET Q1. The drain of MOSFET Q1 is connected to the negative terminal of the LED light source. The drain of MOSFET Q1 is connected to pin 4 of the constant current driver U3. Pin 3 of the constant current driver U3 and one end of capacitor C2 are connected to network label Vin. One end of resistors R4 and R5 are connected to pin 5 of the constant current driver U3. The other end of resistor R5, pin 1 of the constant current driver U3, the other end of sampling resistors RS1 and RS2, and the other end of capacitor C2 are grounded. The other end of resistor R4 is connected to network label OUT. In this implementation, the constant current driver U3 used is model OC7141. Specifically, the constant current driver U3 in the driver module can set a suitable constant current by changing the sampling resistor RS1 and sampling resistor R2RS2 at pin 2, and can receive the PWM wave output by the microcontroller U4 to control the turn-off of the MOSFET Q1 to realize the lighting and turning off of the LED light source and the adjustment of the LED light source brightness.
[0014] like Figure 2As shown, the control module consists of capacitors C3, C4, C5, C6, C7, and C8; resistors R6, R7, R8, R9, R10, R11, R12, and R13; diodes D1 and D2; sensor PIR1; microcontroller U4; and voltage regulator chip U2. Pin 1 of microcontroller U4, one end of capacitor C6, pin 1 of sensor PIR1, one end of capacitor C7, one end of resistor R6, one end of capacitor C4, and one end of capacitor C5 are connected to pin 2 of voltage regulator chip U2. Pin 2 of microcontroller U4, resistor R7, and capacitor C8 are connected to pin 2 of sensor PIR1. Pin 3 of microcontroller U4 is connected to the negative terminal of diode D2. Pin 4 of microcontroller U4 is connected to the network label OUT. Pin 5, the other end of resistor R6 is labeled MODE; one end of resistor R8 and one end of resistor R11 are connected to pin 6 of microcontroller U4; one end of resistor R9 and one end of resistor R11 are connected to pin 7 of microcontroller U4. Pin 8, the other end of resistor 10 R10, and the other end of resistor 11 R11 are grounded. The other end of resistor 8 R8 is connected to network label SUN. The other end of resistor 9 R9 is connected to network label Vin. One end of resistor 12 R12 and one end of resistor 13 R13 are connected to the positive terminal of diode 2 D2. The other end of resistor 13 R13 is connected to the operating voltage of 2.5V. The positive terminal of diode 1 D1 is connected to network label SUN. The negative terminal of the diode and the positive terminal of the LED light source are connected to network label B+. Pin 3 of voltage regulator chip U2 and one end of capacitor 3 C3 are connected to network label Vin. The other ends of capacitors 3 C3, 4 C4, 5 C5, 7 C7, 6 C6, 8 C8, resistor 7 R7, pin 1 of voltage regulator chip U2, and the other end of resistor 12 R12 are grounded. In this implementation, the voltage regulator chip U2 is model AS725.
[0015] like Figure 3As shown, the switch module consists of a toggle switch K1, a resistor R2, and a resistor R3. Pin 1 of toggle switch K1 is connected to network label Vin, pin 2 of toggle switch K1 is connected to network label B+, pin 4 of toggle switch K1 is connected to network label Vin, pin 5 of toggle switch K1 is connected to one end of resistor R3, pin 7 of toggle switch K1 is connected to network label MODE, and pin 8 of toggle switch K1 is connected to one end of resistor R2. The other ends of resistor R2 and resistor R3 are grounded. Specifically, the switch module consists of a double-row three-position toggle switch K1 and a resistor. The control circuit includes three positions (OFF, DIM, and AUTO). When the toggle switch K1 is in the OFF position, the positive terminal of the power supply is floating, and pin 5 of the microcontroller U4 is floating. At this time, the input is in a high-impedance state, and the LED light source is de-energized. When the toggle switch K1 is in the DIM position, pin 5 of the microcontroller U4 is grounded through resistor R2, and the detected voltage is 0V. At this time, the microcontroller U4 switches the function to the DIM position (light on when someone is present, dim light when no one is present). When the toggle switch K1 is in the AUTO position, pin 5 of the microcontroller U4 is grounded through resistor R3, and the detected voltage is 2.5V. At this time, the microcontroller U4 switches the position to the AUTO position (light on when someone is present, off when no one is present).
[0016] The following describes one mode of operation of this control circuit: The control module can switch between three functions based on the switch module. Specifically, in the DIM and AUTO modes, the control module detects the power supply voltage, charging voltage, and data from sensor PIR1. When the detected power supply voltage is less than 3V, the control module enters over-discharge protection, and all functions are temporarily disabled. This function is only unlocked when the power supply voltage is recharged to above 3.5V. When the charging voltage is detected, the control module controls the LED light source to turn off; when the charging voltage decreases, it controls the lamp to turn on, thus achieving the lighting control function. In addition, the main function of the control module is to receive data from sensor PIR1 to control the LED light source to turn on when a pedestrian is detected.
[0017] The above description in this specification is merely illustrative of the present invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to replace them, as long as they do not depart from the content of this specification or exceed the scope defined in the claims, all of which shall fall within the protection scope of this invention.
Claims
1. A control circuit for switching lighting fixture functions via a DIP switch, comprising an LED light source, a driver module, a control module, and a switch module, characterized in that: The driver module consists of a constant current driver, resistor 4, resistor 5, capacitor 2, MOSFET, sampling resistor 1, and sampling resistor 2. The constant current driver pin 2, one end of sampling resistor 1, and one end of sampling resistor 2 are connected to the source of the MOSFET. The drain of the MOSFET is connected to the negative terminal of the LED light source. The drain of the MOSFET is connected to the constant current driver pin 4. The constant current driver pin 3 and one end of capacitor 2 are connected to the network label Vin. One end of resistor 4 and one end of resistor 5 are connected to the constant current driver pin 5. The other end of resistor 5, the constant current driver pin 1, the other end of sampling resistor 1, the other end of sampling resistor 2, and the other end of capacitor 2 are grounded. The other end of resistor 4 is connected to the network label OUT. The control module consists of capacitors 3, 4, 5, 6, 7, and 8; resistors 6, 7, 8, 9, 10, 11, 12, and 13; diodes 1 and 2; a sensor; a microcontroller; and a voltage regulator chip. Pin 1 of the microcontroller, one end of capacitor 6, pin 1 of the sensor, one end of capacitor 7, one end of resistor 6, one end of capacitor 4, and one end of capacitor 5 are connected to pin 2 of the voltage regulator chip. Pin 2 of the microcontroller, resistor 7, and capacitor 8 are connected to pin 2 of the sensor. Pin 3 of the microcontroller is connected to the negative terminal of diode 2. Pin 4 of the microcontroller is connected to the network label OUT. Pin 5 of the microcontroller and the other end of resistor 6 are connected to the network label MODE. One end of resistor 8 and one end of resistor 11 are connected to pin 6 of the microcontroller. One end of resistor 9 is connected to... One end of resistor 11 is connected to pin 7 of the microcontroller, pin 8 of the microcontroller, the other end of resistor 10 and the other end of resistor 11 are grounded, the other end of resistor 8 is network-labeled SUN, the other end of resistor 9 is connected to network-labeled Vin, one end of resistor 12 and one end of resistor 13 are connected to the positive terminal of diode 2, the other end of resistor 13 is connected to the working voltage 2.5V, the positive terminal of diode 1 is connected to network-labeled SUN, the negative terminal of diode and the positive terminal of LED light source are connected to network-labeled B+, pin 3 of the voltage regulator chip, one end of capacitor 3 is connected to network-labeled Vin, the other ends of capacitor 3, capacitor 4, capacitor 5, capacitor 7, capacitor 6, capacitor 8, resistor 7, pin 1 of the voltage regulator chip, and the other end of resistor 12 are grounded respectively. The switch module consists of a toggle switch, resistor 2, and resistor 3. Toggle switch pin 1 is connected to network label Vin, toggle switch pin 2 is connected to network label B+, toggle switch pin 4 is connected to network label Vin, toggle switch pin 5 is connected to one end of resistor 3, toggle switch pin 7 is connected to network label MODE, and toggle switch pin 8 is connected to one end of resistor 2. The other ends of resistor 2 and resistor 3 are grounded.
2. The control circuit for switching lighting fixture functions via a DIP switch according to claim 1, characterized in that: The constant current drive is model OC7141.
3. The control circuit for switching lighting fixture functions via a DIP switch as described in claim 1, characterized in that: The voltage regulator chip is model AS725.
