CN216057577U - Circuit for switching white lamp and infrared lamp of gun lamp - Google Patents

Circuit for switching white lamp and infrared lamp of gun lamp Download PDF

Info

Publication number
CN216057577U
CN216057577U CN202121166189.3U CN202121166189U CN216057577U CN 216057577 U CN216057577 U CN 216057577U CN 202121166189 U CN202121166189 U CN 202121166189U CN 216057577 U CN216057577 U CN 216057577U
Authority
CN
China
Prior art keywords
electrically connected
correspondingly
lamp
chip microcomputer
single chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202121166189.3U
Other languages
Chinese (zh)
Inventor
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Aolei Mobile Lighting Equipment Co Ltd
Original Assignee
Dongguan Aolei Mobile Lighting Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Aolei Mobile Lighting Equipment Co Ltd filed Critical Dongguan Aolei Mobile Lighting Equipment Co Ltd
Priority to CN202121166189.3U priority Critical patent/CN216057577U/en
Application granted granted Critical
Publication of CN216057577U publication Critical patent/CN216057577U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The utility model discloses a circuit for switching a white lamp and an infrared lamp of a gun lamp, which comprises a single chip microcomputer U1, wherein a No. 2 pin GP5 of the single chip microcomputer U1 is correspondingly and electrically connected with an enable signal EN, the enable signal EN is correspondingly and electrically connected with a power supply module DC-DC, a No. 5 pin GP2 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal CON, the signal CON is correspondingly and electrically connected with a P MOS tube Q1 and an N MOS tube Q2, a No. 7 pin GP0 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal PWM, the signal PWM is correspondingly and electrically connected with a direction input end of an operational amplifier U3, and a main circuit anode IR +, a P MOS tube Q1, the white lamp D2 and a main circuit cathode D-are sequentially and electrically connected; the positive electrode IR + of the main circuit, the infrared lamp D1, the N MOS tube Q2 and the negative electrode D-of the main circuit are electrically connected in sequence. The white light and the infrared light share one single chip microcomputer, an I/O port drives and controls the corresponding MOS switch, the white light and the infrared light can be independently controlled to be not influenced by each other, the system requirements are met, and the pin resources of the I/O port of the single chip microcomputer are saved.

Description

Circuit for switching white lamp and infrared lamp of gun lamp
Technical Field
The utility model relates to the technical field of internal circuits of gun lamps, in particular to a circuit for switching a white lamp and an infrared lamp of a gun lamp.
Background
When the existing common gun lamp circuit controls two paths of light sources, the MCU generally needs two I/O ports to independently control two MOS tubes. Assuming that both light sources use NMOS switch, when the MCU I/O1 port outputs high level, the light source 1 channel is opened, and when the MCU I/O2 port outputs high level, the light source 2 channel is opened. When the light source is controlled to be switched on and switched off in the mode, two I/O ports of the MCU are needed, and when the pin resources of the MCU are limited, the I/O ports are wasted, and the cost is increased. Therefore, it is desirable to provide a circuit for switching between a white lamp and an infrared lamp for a gun lamp.
SUMMERY OF THE UTILITY MODEL
To overcome the disadvantages of the prior art, a circuit for switching a white lamp and an infrared lamp of a gun lamp is provided.
The utility model is realized by the following scheme:
a circuit for switching a white lamp and an infrared lamp of a gun lamp comprises a single chip microcomputer U1, wherein a No. 2 pin GP5 of the single chip microcomputer U1 is correspondingly and electrically connected with an enable signal EN, the enable signal EN is correspondingly and electrically connected with a power supply module DC-DC, a No. 5 pin GP2 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal CON, the signal CON is correspondingly and electrically connected with a P MOS tube Q1 and an N MOS tube Q2, a No. 7 pin GP0 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal PWM, the signal PWM is correspondingly and electrically connected with a direction input end of an operational amplifier U3, and a main circuit anode IR +, a P MOS tube Q1, the white lamp D2 and a main circuit cathode D-are sequentially and electrically connected; the positive electrode IR + of the main circuit, the infrared lamp D1, the N MOS tube Q2 and the negative electrode D-of the main circuit are electrically connected in sequence; the battery BT1 is electrically connected to the power supply module DC-DC.
A 6 th pin GP1 of the singlechip U1 is correspondingly and electrically connected with a signal BAT _ AD, the signal BAT _ AD is correspondingly and electrically connected with a resistor R1 and a resistor R2, the battery BT1 is correspondingly and electrically connected with a connector B +, and the connector B + is correspondingly and electrically connected with a resistor R1.
The operational amplifier U3 is also correspondingly and electrically connected with a main circuit cathode D-, an N MOS tube Q2, a resistor R4 and a power supply module DC-DC.
The main circuit anode IR + is also electrically connected with a resistor R3.
The 1 st pin VDD port of the single chip microcomputer U1 is correspondingly and electrically connected with a voltage stabilizing chip U2, and a capacitor C1 is correspondingly arranged between the 1 st pin VDD port of the single chip microcomputer U1 and the 8 th pin GND port of the single chip microcomputer U1.
The input IN of the voltage stabilizing chip U2 corresponds to and is electrically connected with the connector B + and the capacitor C4, and the output OUT of the voltage stabilizing chip U2 corresponds to and is electrically connected with the capacitor C5 and the capacitor C6.
The utility model has the beneficial effects that:
the circuit for switching the white lamp and the infrared lamp of the gun lamp is applied, the white lamp and the infrared lamp share one single chip microcomputer and one I/O port to drive and control the corresponding MOS switch, the white lamp and the infrared lamp can be independently controlled to be not influenced by each other, the system requirements are met, and pin resources of the I/O port of the single chip microcomputer are saved.
Drawings
Fig. 1 is a circuit diagram of a circuit for switching a white lamp and an infrared lamp of a gun lamp according to the present invention.
Detailed Description
The utility model is further illustrated with reference to the following figures and specific examples:
as shown in fig. 1, a circuit for switching a white lamp and an infrared lamp of a gun lamp comprises a single chip microcomputer U1, wherein a port GP5 of a pin 2 of the single chip microcomputer U1 is correspondingly electrically connected with an enable signal EN, the enable signal EN is correspondingly electrically connected with a power module DC-DC, a port GP2 of a pin 5 of the single chip microcomputer U1 is correspondingly electrically connected with a signal CON, the signal CON is correspondingly electrically connected with a P MOS transistor Q1 and an N MOS transistor Q2, a port GP0 of a pin 7 of the single chip microcomputer U1 is correspondingly electrically connected with a signal PWM, the signal PWM is correspondingly electrically connected with a direction input end of an operational amplifier U3, and a main circuit anode IR +, a P MOS transistor Q1, the white lamp D2 and a main circuit cathode D-are sequentially electrically connected; the positive electrode IR + of the main circuit, the infrared lamp D1, the N MOS tube Q2 and the negative electrode D-of the main circuit are electrically connected in sequence; the battery BT1 is electrically connected to the power supply module DC-DC.
This application can be with 1 less singlechip IO mouth in the rifle lamp illumination, and the bright of two main lamps of independent control (infrared lamp D1, white light D2) goes out, compares traditional control circuit connection, and the circuit of this application both is simple and practical, has also practiced thrift singlechip MCU pin resource simultaneously, low-cost system design purpose that reaches.
A 6 th pin GP1 of the singlechip U1 is correspondingly and electrically connected with a signal BAT _ AD, the signal BAT _ AD is correspondingly and electrically connected with a resistor R1 and a resistor R2, the battery BT1 is correspondingly and electrically connected with a connector B +, and the connector B + is correspondingly and electrically connected with a resistor R1.
The operational amplifier U3 is also correspondingly and electrically connected with a main circuit cathode D-, an N MOS tube Q2, a resistor R4 and a power supply module DC-DC.
The main circuit anode IR + is also electrically connected with a resistor R3.
The 1 st pin VDD port of the single chip microcomputer U1 is correspondingly and electrically connected with a voltage stabilizing chip U2, and a capacitor C1 is correspondingly arranged between the 1 st pin VDD port of the single chip microcomputer U1 and the 8 th pin GND port of the single chip microcomputer U1.
The input IN of the voltage stabilizing chip U2 corresponds to and is electrically connected with the connector B + and the capacitor C4, and the output OUT of the voltage stabilizing chip U2 corresponds to and is electrically connected with the capacitor C5 and the capacitor C6.
The working principle and the process of the utility model are briefly described as follows:
in practical application, a key in the gun lamp is correspondingly electrically connected with the single chip microcomputer U1, when the gun lamp key is pressed at any time, in a corresponding mode state, if a user needs to light the white lamp D2 on the gun lamp, a port GP5 of a 2 nd pin of the single chip microcomputer U1 outputs a high level to an enable signal EN to control a power supply module DC-DC to work, a port GP2 of a 5 th pin of the single chip microcomputer U1 outputs a low level to control a P MOS tube Q1 to be opened, a port GP0 of a 7 th pin of the single chip microcomputer U1 outputs a PWM signal to a direction input end of an operational amplifier U3, and a path output voltage and current are formed through an IR + of a main circuit, the P MOS tube Q1, the white lamp D2 and a negative D-of the main circuit, so that the white lamp D2 on the gun lamp is lightened.
When the gun lamp key is pressed down again at any time, in a corresponding mode state, the infrared lamp D1 on the gun lamp is lightened, the port GP5 at the second pin of the single chip microcomputer U1 outputs a high level to the enable signal EN to control the power supply module DC-DC to work, the port GP2 at the second pin of the single chip microcomputer U1 outputs a high level to control the N MOS tube Q2 to be opened, the port GP0 at the second pin of the single chip microcomputer U1 outputs a PWM signal to the direction input end of the operational amplifier U3, and a path output voltage and current are formed by the main circuit anode IR +, the infrared lamp D1, the N MOS tube Q2 and the main circuit cathode D-, so that the infrared lamp D1 on the gun lamp is lightened.
If the gun lamp is in the shutdown standby state, the 2 nd pin GP5 of the singlechip U1 outputs a low level to the enable signal EN, and the control signal CON is configured to input a high resistance, namely, the two main lamps (the infrared lamp D1 and the white lamp D2) can be turned off at the same time.
Although the utility model has been described and illustrated in some detail, it should be understood that various modifications may be made to the described embodiments or equivalents may be substituted, as will be apparent to those skilled in the art, without departing from the spirit of the utility model.

Claims (6)

1. A circuit for switching between a white light and an infrared light for a gun light, characterized by: the circuit comprises a single chip microcomputer U1, wherein a No. 2 pin GP5 of the single chip microcomputer U1 is correspondingly and electrically connected with an enable signal EN, the enable signal EN is correspondingly and electrically connected with a power module DC-DC, a No. 5 pin GP2 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal CON, the signal CON is correspondingly and electrically connected with a P MOS tube Q1 and an N MOS tube Q2, a No. 7 pin GP0 of the single chip microcomputer U1 is correspondingly and electrically connected with a signal PWM, the signal PWM is correspondingly and electrically connected with a direction input end of an operational amplifier U3, and a main circuit anode IR +, a P MOS tube Q1, a white lamp D2 and a main circuit cathode D-are sequentially and electrically connected; the positive electrode IR + of the main circuit, the infrared lamp D1, the N MOS tube Q2 and the negative electrode D-of the main circuit are electrically connected in sequence; the battery BT1 is electrically connected to the power supply module DC-DC.
2. A circuit for a gun light switching white light and infrared light as claimed in claim 1, wherein: a 6 th pin GP1 of the singlechip U1 is correspondingly and electrically connected with a signal BAT _ AD, the signal BAT _ AD is correspondingly and electrically connected with a resistor R1 and a resistor R2, the battery BT1 is correspondingly and electrically connected with a connector B +, and the connector B + is correspondingly and electrically connected with a resistor R1.
3. A circuit for a gun light switching white light and infrared light as claimed in claim 1, wherein: the operational amplifier U3 is also correspondingly and electrically connected with a main circuit cathode D-, an N MOS tube Q2, a resistor R4 and a power supply module DC-DC.
4. A circuit for a gun light switching white light and infrared light as claimed in claim 1, wherein: the main circuit anode IR + is also electrically connected with a resistor R3.
5. A circuit for a gun light switching white light and infrared light as claimed in claim 1, wherein: the 1 st pin VDD port of the single chip microcomputer U1 is correspondingly and electrically connected with a voltage stabilizing chip U2, and a capacitor C1 is correspondingly arranged between the 1 st pin VDD port of the single chip microcomputer U1 and the 8 th pin GND port of the single chip microcomputer U1.
6. A circuit for a gun light switching white light and infrared light as claimed in claim 5, wherein: the input IN of the voltage stabilizing chip U2 corresponds to and is electrically connected with the connector B + and the capacitor C4, and the output OUT of the voltage stabilizing chip U2 corresponds to and is electrically connected with the capacitor C5 and the capacitor C6.
CN202121166189.3U 2021-05-28 2021-05-28 Circuit for switching white lamp and infrared lamp of gun lamp Active CN216057577U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202121166189.3U CN216057577U (en) 2021-05-28 2021-05-28 Circuit for switching white lamp and infrared lamp of gun lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202121166189.3U CN216057577U (en) 2021-05-28 2021-05-28 Circuit for switching white lamp and infrared lamp of gun lamp

Publications (1)

Publication Number Publication Date
CN216057577U true CN216057577U (en) 2022-03-15

Family

ID=80552034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202121166189.3U Active CN216057577U (en) 2021-05-28 2021-05-28 Circuit for switching white lamp and infrared lamp of gun lamp

Country Status (1)

Country Link
CN (1) CN216057577U (en)

Similar Documents

Publication Publication Date Title
CN101365275B (en) Digital address lighting control system and method having remote and local control function
WO2019075945A1 (en) Power output switching circuit for led fish gathering lamp
CN216057577U (en) Circuit for switching white lamp and infrared lamp of gun lamp
CN102843804A (en) Touch control circuit and electric torch
CN111083826B (en) LED drive circuit capable of adjusting brightness and color
CN102651926B (en) Auxiliary source circuit
CN214125566U (en) LED dimming circuit, LED driving system and electronic equipment
CN211656483U (en) Photovoltaic solar lamp and power supply circuit thereof
CN210899726U (en) Trinity control interface circuit of lamps and lanterns
CN211606870U (en) Capacitive coupling type LED current-sharing circuit
CN212967037U (en) Backlight driving circuit, chip power supply circuit thereof, driving board card and display device
CN209072364U (en) A kind of synchronous rectification control chip and circuit
CN103068127A (en) Light-emitting diode (LED) lamp and bicolor LED adjustable light circuit
CN221043180U (en) TWS Bluetooth headset display circuit and TWS Bluetooth headset device
CN217160065U (en) Single signal LED lamp control circuit and LED lamp
CN220823324U (en) LED lamp driving circuit
CN219042045U (en) Control circuit for lighting device and lighting device thereof
CN110267388A (en) A kind of high-power intrinsic safety device and explosion-proof lamp
CN111654949B (en) LED lamp driving power circuit and LED lamp driving system
CN217789936U (en) Earphone icon lamp control circuit and earphone
CN107205300A (en) Led lamp circuit
CN215912255U (en) Drive signal amplification circuit and lamp
CN217936011U (en) LED color temperature adjustable circuit and extension socket
CN212628477U (en) Low standby power consumption circuit of electronic product and LED lamp
CN219248110U (en) Two-wire LED dimming and toning controller

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant