Flashlight driving circuit and intelligent terminal

文档序号:1771038 发布日期:2019-12-03 浏览:26次 中文

阅读说明:本技术 闪光灯驱动电路及智能终端 (Flashlight driving circuit and intelligent terminal ) 是由 吴泽威 赵俊香 林俊兰 于 2019-07-30 设计创作,主要内容包括:本申请公开了一种闪光灯驱动电路及智能终端。该闪光灯驱动电路包括:驱动电路、第一闪光灯电路、第二闪光灯电路及中央处理器,第一闪光灯电路的输入端以及第二闪光灯电路的输入端耦接驱动电路的第一输出端,在中央处理器向第一闪光灯电路和驱动电路的控制端分别提供第一控制信号和第二控制信号时,第一闪光灯电路发光;在中央处理器向第二闪光灯电路和驱动电路的控制端分别提供第三控制信号和第二控制信号时,第二闪光灯电路发光。通过上述方式,能够减少电子元器件的使用,简化电路,也可以节省印刷电路板的设计空间。(This application discloses a kind of flashlight driving circuit and intelligent terminals.The flashlight driving circuit includes: driving circuit, the first flash lamp circuit, the second flash lamp circuit and central processing unit, first output end of the input terminal of the input terminal of the first flash lamp circuit and the second flash lamp circuit coupling driving circuit, when central processing unit provides first control signal and second control signal respectively to the control terminal of the first flash lamp circuit and driving circuit, the first flash lamp circuit shines;When central processing unit provides third control signal and second control signal to the control terminal of the second flash lamp circuit and driving circuit respectively, the second flash lamp circuit shines.By the above-mentioned means, the use of electronic component can be reduced, simplifies circuit, the design space of printed circuit board can also be saved.)

1. a kind of flashlight driving circuit, which is characterized in that the flashlight driving circuit includes:

Driving circuit, the driving circuit are provided with the first output end;

First flash lamp circuit and the second flash lamp circuit, the input terminal of first flash lamp circuit and second flash of light The input terminal of circuit for lamp couples first output end, the output end of first flash lamp circuit and second flash lamp The output end of circuit is grounded;

Central processing unit, the central processing unit couple the control of the control terminal, first flash lamp circuit of the driving circuit The control terminal of end processed and second flash lamp circuit;In the central processing unit to first flash lamp circuit and described When the control terminal of driving circuit provides first control signal and second control signal respectively, first flash lamp circuit shines; Third control letter is provided respectively to the control terminal of second flash lamp circuit and the driving circuit in the central processing unit Number and when the second control signal, second flash lamp circuit shines.

2. flashlight driving circuit according to claim 1, which is characterized in that

First flash lamp circuit includes first switch and the first light emitting diode, and the input terminal of the first switch couples institute The first output end is stated, the control terminal of the first switch couples the central processing unit, the output end connection of the first switch The anode of first light emitting diode, the minus earth of first light emitting diode;

Second flash lamp circuit includes second switch and the second light emitting diode, and the input terminal of the second switch couples institute The first output end is stated, the control terminal of the second switch couples the central processing unit, the output end connection of the second switch The anode of second light emitting diode, the minus earth of second light emitting diode.

3. flashlight driving circuit according to claim 2, which is characterized in that

The first switch is the first N-MOS pipe, and the source electrode of the first N-MOS pipe connects the sun of first light emitting diode Pole, the drain electrode of the first N-MOS pipe connect first output end, and the grid of the first N-MOS pipe couples the center Processor;

The second switch is the 2nd N-MOS pipe, and the source electrode of the 2nd N-MOS pipe connects the sun of second light emitting diode Pole, the drain electrode of the 2nd N-MOS pipe connect first output end, and the grid of the 2nd N-MOS pipe couples the center Processor.

4. flashlight driving circuit according to claim 2, which is characterized in that

The driving circuit is additionally provided with first input end, and the central processing unit couples the first input end and to described the One input terminal input pulse width modulating wave, to adjust the electricity of first flash lamp circuit or second flash lamp circuit Flow size.

5. flashlight driving circuit according to claim 2, which is characterized in that

The driving circuit is additionally provided with the second input terminal, and the central processing unit couples second input terminal, in described When central processor inputs high potential to second input terminal, second flash lamp circuit is flashlight flash mode.

6. flashlight driving circuit according to claim 2, which is characterized in that

The flashlight driving circuit is additionally provided with the first ceramic condenser;

The power input that the first end of first ceramic condenser couples power supply and is connected in the driving circuit, institute State the second end ground connection of the first ceramic condenser.

7. flashlight driving circuit according to claim 6, which is characterized in that

The flashlight driving circuit is additionally provided with the second ceramic condenser;

The first end of second ceramic condenser connects in first end and the driving circuit of first ceramic condenser Power input, the second end ground connection of second ceramic condenser.

8. flashlight driving circuit according to claim 7, which is characterized in that

The power supply is DC power supply, and the capacitance of first ceramic condenser is 0.5-1.5uF, second ceramic condenser Capacitance be 30-35pF.

9. flashlight driving circuit according to claim 3, which is characterized in that

The central processing unit by universal input/output interface couple the driving circuit, first flash lamp circuit and Second flash lamp circuit.

10. a kind of intelligent terminal, which is characterized in that the intelligent terminal includes flashlight driving circuit, the flash lamp driving Circuit includes:

Driving circuit, the driving circuit are provided with the first output end;

First flash lamp circuit and the second flash lamp circuit, the input terminal of first flash lamp circuit and second flash of light The input terminal of circuit for lamp couples first output end, the output end of first flash lamp circuit and second flash lamp The output end of circuit is grounded;

Central processing unit, the central processing unit couple the control of the control terminal, first flash lamp circuit of the driving circuit The control terminal of end processed and second flash lamp circuit;In the central processing unit to first flash lamp circuit and described When the control terminal of driving circuit provides first control signal and second control signal respectively, first flash lamp circuit shines; Third control letter is provided respectively to the control terminal of second flash lamp circuit and the driving circuit in the central processing unit Number and when the second control signal, second flash lamp circuit shines.

Technical field

This application involves fields of communication technology, more particularly to a kind of flashlight driving circuit and intelligent terminal.

Background technique

Mobile phone currently on the market generally configures rear camera flash lamp and front camera flash lamp, two kinds of light simultaneously Source all uses lumination of light emitting diode.Due to rear camera flashlight driving circuit and front camera flashlight driving circuit Operating current it is different, therefore they are respectively adopted different driving circuits, rear camera flashlight driving circuit and preposition The driving circuit design of camera flash need to carry different electronic components, higher cost.

Summary of the invention

The application can reduce electricity mainly solving the technical problems that provide a kind of flashlight driving circuit and intelligent terminal The use of sub- component, saves the design space of printed circuit board, to achieve the purpose that save the cost.

In order to solve the above technical problems, the technical solution that the application uses is: a kind of flashlight driving circuit is provided, The flashlight driving circuit includes: driving circuit, and driving circuit is provided with the first output end;First flash lamp circuit and second dodges Input terminal the first output end of coupling of light circuit for lamp, the input terminal of the first flash lamp circuit and the second flash lamp circuit, first The output end of the output end of flash lamp circuit and the second flash lamp circuit ground connection;Central processing unit, central processing unit coupling are driven The control terminal of the control terminal of dynamic circuit, the control terminal of the first flash lamp circuit and the second flash lamp circuit;In central processing unit When providing first control signal and second control signal respectively to the control terminal of the first flash lamp circuit and driving circuit, first dodges Light circuit for lamp shines;Third control letter is provided respectively to the control terminal of the second flash lamp circuit and driving circuit in central processing unit Number and when second control signal, the second flash lamp circuit shines.

Wherein, the first flash lamp circuit includes first switch and the first light emitting diode, the input terminal coupling of first switch First output end, the control terminal of first switch couple central processing unit, and the output end of first switch connects the first light emitting diode Anode, the minus earth of the first light emitting diode;Second flash lamp circuit includes second switch and the second light emitting diode, and The input terminal of two switches couples the first output end, and the control terminal of second switch couples central processing unit, the output end of second switch Connect the anode of the second light emitting diode, the minus earth of the second light emitting diode.

Wherein, first switch is the first N-MOS pipe, and the source electrode of the first N-MOS pipe connects the anode of the first light emitting diode, The drain electrode of first N-MOS pipe connects the first output end, and the grid of the first N-MOS pipe couples central processing unit;Second switch is Two N-MOS pipe, the source electrode of the 2nd N-MOS pipe connect the anode of the second light emitting diode, the drain electrode connection first of the 2nd N-MOS pipe The grid of output end, the 2nd N-MOS pipe couples central processing unit.

Wherein, driving circuit is additionally provided with first input end, and central processing unit couples first input end and inputs to first Input pulse width modulating wave is held, to adjust the size of current of the first flash lamp circuit or the second flash lamp circuit.

Wherein, driving circuit is additionally provided with the second input terminal, and central processing unit couples the second input terminal, in central processing unit When inputting high potential to the second input terminal, the second flash lamp circuit is flashlight flash mode.

Wherein, flashlight driving circuit is additionally provided with the first ceramic condenser;The first end of first ceramic condenser couples power supply Power supply is simultaneously connected to the power input in driving circuit, the second end ground connection of the first ceramic condenser.

Wherein, flashlight driving circuit is additionally provided with the second ceramic condenser;The first end connection first of second ceramic condenser The first end of ceramic condenser and the power input in driving circuit, the second end ground connection of the second ceramic condenser.

Wherein, power supply is DC power supply, and the capacitance of the first ceramic condenser is 0.5-1.5uF, the second ceramic condenser Capacitance is 30-35pF.

Wherein, central processing unit couples driving circuit, the first flash lamp circuit and the by universal input/output interface Two flash lamp circuits.

In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of intelligent terminal, the intelligence Energy terminal includes flashlight driving circuit, and flashlight driving circuit includes: driving circuit, and driving circuit is provided with the first output End;First flash lamp circuit and the second flash lamp circuit, the input terminal of the first flash lamp circuit and the second flash lamp circuit Input terminal couples the first output end, the output end ground connection of the output end of the first flash lamp circuit and the second flash lamp circuit;In Central processor, central processing unit couple control terminal, the control terminal of the first flash lamp circuit and the second flash lamp of driving circuit The control terminal of circuit;The first control letter is provided respectively to the control terminal of the first flash lamp circuit and driving circuit in central processing unit Number and when second control signal, the first flash lamp circuit shines;In central processing unit to the second flash lamp circuit and driving circuit Control terminal provide third control signal respectively and when second control signal, the second flash lamp circuit shines.

The beneficial effect of the application is: flashlight driving circuit provided by the present application includes driving circuit, the first flash lamp Circuit and the second flash lamp circuit, central processing unit, by allowing the input terminal of the first flash lamp circuit and the second flash lamp circuit The first output end of driving circuit is coupled, so that the first flash lamp circuit and the second flash lamp circuit share a driving circuit, The use for reducing electronic component, can also save the design space of printed circuit board.Central processing unit couples driving circuit The control terminal of control terminal, the control terminal of the first flash lamp circuit and the second flash lamp circuit to control the first flash lamp electricity respectively Road and the second flash lamp circuit shine, and can be realized the effect of the first flash lamp circuit of driving and the second flash lamp circuit and can be into One step saves design cost.

Detailed description of the invention

Fig. 1 is the structural schematic diagram of one embodiment of the application flashlight driving circuit;

Fig. 2 is the circuit diagram of one embodiment of the application flashlight driving circuit;

Fig. 3 is the structural schematic diagram of one embodiment of the application intelligent terminal.

Specific embodiment

Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.

Continuous promotion with people to effect requirements of taking pictures, some mobile terminals are provided with front camera and rear camera, in order to Photographic quality is improved, each camera can be equipped with a flash lamp, and there have been front and back flash lamps on some high-end handsets Design, the driving method of this front and back flash lamp is typically all independently to be driven, the implementation method on cell phone mainboard It is front and back flash lamp respectively to be used into a set of driving circuit, therefore structure as mobile phone designs, the cloth member for causing cell phone mainboard to need Area will be larger, and cabling will increase, and causes the rise in the waste and Material Cost of resource, thus for simplification The structure of flashlight driving circuit, this application provides a kind of flashlight driving circuit, below in conjunction with attached drawing to the application into Row is discussed in detail.

Referring to Fig. 1, Fig. 1 is the structural schematic diagram of one embodiment of the application flashlight driving circuit, flash lamp driving Circuit includes: driving circuit 11, the first flash lamp circuit 12, the second flash lamp circuit 13 and central processing unit 14.

Driving circuit 11 is provided with the first output end, for exporting control signal.The input terminal of first flash lamp circuit 12 The first output end of the driving circuit 11 is coupled with the input terminal of the second flash lamp circuit 13.The output of first flash lamp circuit 12 The output end of end and the second flash lamp circuit 13 ground connection.That is the first flash lamp circuit 12 and the second flash lamp circuit 13 share one A driving circuit 11 simplifies circuit structure, saves board area, saves certain mainboard cost.In a specific implementation In example, driving circuit 11 is LED spotlight driver.

Central processing unit 14 couples the control terminal, the control terminal of the first flash lamp circuit 12 and the second sudden strain of a muscle of driving circuit 11 The control terminal of light circuit for lamp 13.When being worked, central processing unit 14 provides the to the control terminal of the first flash lamp circuit 12 One control signal, while central processing unit 14 provides second control signal to the control terminal of driving circuit 11, makes the first flash lamp Circuit 12 shines;Central processing unit 14 provides third to the control terminal of the second flash lamp circuit 13 and controls signal, while centre When reason device 14 provides second control signal to driving circuit 11, the second flash lamp circuit 13 shines.The application passes through central processing The driving of device 14 control the first flash lamp circuit 12 and the second flash lamp circuit 13.In the present embodiment, the first flash lamp circuit 12 It does not shine simultaneously with the second flash lamp circuit 13.

Optionally, central processing unit 14 couples control terminal, the first sudden strain of a muscle of driving circuit 11 by universal input/output interface The control terminal of the control terminal of light circuit for lamp 12 and the second flash lamp circuit 13.Central processing unit 14 can be intelligent terminal platform core Piece.

Flashlight driving circuit provided by the present application, by allowing the first flash lamp circuit 12 and the second flash lamp circuit 13 Input terminal couples the first output end of driving circuit 11, so that the first flash lamp circuit 12 and the second flash lamp circuit 13 share one A driving circuit 11, reduces the use of electronic component, can also save the design space of printed circuit board.Central processing unit 14 Couple the control terminal of the control terminal of driving circuit 11, the control terminal of the first flash lamp circuit 12 and the second flash lamp circuit 13 with The first flash lamp circuit 12 is controlled respectively and the second flash lamp circuit 13 shines, and can be realized driving 12 He of the first flash lamp circuit The effect of second flash lamp circuit 13 and it can further save design cost.

Referring to Fig. 2, Fig. 2 is the circuit diagram of one embodiment of the application flashlight driving circuit, which is driven Dynamic circuit includes driving circuit 21, the first flash lamp circuit 22 and the second flash lamp circuit 23, central processing unit (not shown).In Central processor by universal input/output interface couple the control terminal of driving circuit 21, the control terminal of the first flash lamp circuit 22 with And second flash lamp circuit 23 control terminal.

Central processing unit couples the control terminal of driving circuit 21 by universal input/output interface GPIO1, and electric to driving Road 21 provides second control signal, so that driving circuit 21 carries out constant current output.Driving circuit 21 is provided with the first output end, the The input terminal of one flash lamp circuit 22 couples first output end, the output end ground connection of the first flash lamp circuit 22.Specifically, One flash lamp circuit 22 includes first switch Q1 and the first Light-emitting diode LED 1, the input terminal coupling driving electricity of first switch Q1 First output end on road 21, central processing unit couple the control terminal of first switch Q1 by input/output interface GPIO5, with to the The control terminal of one switch Q1 provides first control signal to control the opening and closing of first switch Q1.The output end of first switch Q1 connects The anode of first Light-emitting diode LED 1, the minus earth of the first Light-emitting diode LED 1.In the present embodiment, central controller is logical Cross to driving circuit 21 provide second control signal so that driving circuit 21 to the first flash lamp circuit 22 carry out constant current output, in Entreat controller by providing first control signal to first switch Q1 so that first switch Q1 is connected, thus driving first luminous two Pole pipe LED1 shines.

In the present embodiment, first switch Q1 is the first N-MOS pipe, the source electrode connection first luminous two of the first N-MOS pipe The drain electrode of the anode of pole pipe LED1, the first N-MOS pipe connects the first output end, and the grid of the first N-MOS pipe passes through input and output Interface GPIO5 couples central processing unit.When universal input/output interface GPIO1 is configured high potential by central processing unit, driving Circuit 21 carries out constant current output to the first flash lamp circuit 22, and central processing unit configures universal input/output interface GPIO5 to When high potential, the conducting of the first N-MOS pipe, the first Light-emitting diode LED 1 shines at this time.

In a specific embodiment, the maximum power of the first N-MOS pipe is 400mW, and maximum is by electric current 500mA.First Light-emitting diode LED 1 can be white light emitting diode, pressure drop 2.3-3V.In other alternative implementations In example, the first Light-emitting diode LED 1 can be also red light-emitting diode, blue light-emitting diode etc., and user can be according to reality Use demand is specifically arranged.

The input terminal of second flash lamp circuit 23 couples 21 first output end of driving circuit, the second flash lamp circuit 23 it is defeated Outlet ground connection.Specifically, the second flash lamp circuit 23 includes second switch Q2 and the second Light-emitting diode LED 2, second switch Q2 Input terminal couple the first output end, central processing unit by input/output interface GPIO4 couple second switch Q2 control terminal, The opening and closing of second switch Q2, the output of second switch Q2 are controlled to provide third control signal to the control terminal of second switch Q2 The anode of the second Light-emitting diode LED 2 of end connection, the minus earth of the second Light-emitting diode LED 2.In the present embodiment, center control Device processed is by providing second control signal to driving circuit 21 so that driving circuit 21 carries out constant current to the second flash lamp circuit 23 Output, central controller control signal so that second switch Q2 is connected, thus driving the by providing third to second switch Q2 Two Light-emitting diode LED 2 shine.

In the present embodiment, second switch Q2 is the 2nd N-MOS pipe, the source electrode connection second luminous two of the 2nd N-MOS pipe The drain electrode of the anode of pole pipe LED2, the 2nd N-MOS pipe connects the first output end, and the grid of the 2nd N-MOS pipe passes through input and output Interface GPIO4 couples central processing unit.When universal input/output interface GPIO1 is configured high potential by central processing unit, driving Circuit 21 carries out constant current output to the second flash lamp circuit 23, and central processing unit configures universal input/output interface GPIO4 to When high potential, the conducting of the 2nd N-MOS pipe, the second Light-emitting diode LED 2 shines at this time.

In a specific embodiment, the maximum power of the 2nd N-MOS pipe is 400mW, and maximum is by electric current 500mA.Second Light-emitting diode LED 2 can be white light emitting diode, pressure drop 3-3.6V.In other alternative implementations In example, the second Light-emitting diode LED 2 can be also red light-emitting diode, blue light-emitting diode etc., and user can be according to reality Use demand is specifically arranged.

First N-MOS pipe and the 2nd N-MOS pipe can manage for the N-MOS of isotype number, can also be the N-MOS of different model Pipe.Preferably, the first N-MOS pipe and the 2nd N-MOS pipe can be cost of the different N-MOS to save component.

Further, driving circuit 21 is additionally provided with first input end, and central processing unit passes through universal input/output interface GPIO3 couples the first input end, and to first input end input pulse width modulating wave, according to input pulse width modulating wave Number of pulses determine output electric current, to adjust the size of current of the first flash lamp circuit 22 or the second flash lamp circuit 23.

Preferably, driving circuit 21 is additionally provided with the second input terminal, and central processing unit passes through universal input/output interface GPIO2 couples the second input terminal, and when central processing unit inputs high potential to the second input terminal, the second flash lamp circuit 23 is hand Torch flash mode.

Driving circuit 21 may be provided with the first ceramic condenser C1, and the first end of first ceramic condenser C1 is for coupling power supply Power supply and the power input being connected in driving circuit 21, the second end ground connection of the first ceramic condenser C1.First ceramic condenser C1 is used for voltage regulation filtering, and the capacitance of the first ceramic condenser C1 is 0.5-1.5uF, preferably 1uF.

The first end of driving circuit 21 also settable second ceramic condenser C2, the second ceramic condenser C2 connect the first ceramic electrical The first end for holding C1 and the power input in driving circuit 21, the second end ground connection of the second ceramic condenser C2.Second ceramics Capacitor C2 is 30-35pF, preferably 33pF for filtering out radio frequency interference, the capacitance of the second ceramic condenser C2.

Flashlight driving circuit provided by the present application, including driving circuit 21, the first flash lamp circuit 22 and the second flash of light Circuit for lamp 23, central processing unit, by allowing the coupling of the input terminal of the first flash lamp circuit 22 and the second flash lamp circuit 23 to drive First output end of circuit 21, so that the first flash lamp circuit 22 and the second flash lamp circuit 23 share a driving circuit 21, Reduce the use of electronic component.Central processing unit couples the control of the control terminal, the first flash lamp circuit 22 of driving circuit 21 The control terminal of end and the second flash lamp circuit 23 to control the first flash lamp circuit 22 and the second flash lamp circuit 23 hair respectively Light, the effect and can further saving that can be realized the first flash lamp circuit 22 of driving and the second flash lamp circuit 23 are designed to This.

Referring to Fig. 3, Fig. 3 is the structural schematic diagram of the application intelligent terminal, which includes shell 31 and flash of light Lamp drive circuit 32, flashlight driving circuit 32 are located in shell 31, and flashlight driving circuit 32 is any of the above-described embodiment Flashlight driving circuit.

Wherein, which includes the smart machine of PC machine, tablet computer and smart phone etc..

Specifically, which includes: driving circuit, the first flash lamp circuit and the second flash lamp electricity Road, central processing unit.

Driving circuit is provided with the first output end, for exporting control signal.The input terminal of first flash lamp circuit and The first end of two flash lamp circuits couples the first output end of the driving circuit.That is the first flash lamp circuit and the second flash lamp electricity Road shares a driving circuit, simplifies circuit, saves board area, saves certain mainboard cost.

The input terminal of the input terminal of first flash lamp circuit and the second flash lamp circuit couples the first output end, and first dodges The output end of the output end of light circuit for lamp and the second flash lamp circuit ground connection.

Central processing unit couples control terminal, the control terminal of the first flash lamp circuit and the second flash lamp electricity of driving circuit The control terminal on road.When being worked, central processing unit provides first control signal to the control terminal of the first flash lamp circuit, together When central processing unit to the control terminal of driving circuit provide second control signal, make the first flash lamp circuit shine;Central processing Device provides third to the control terminal of the second flash lamp circuit and controls signal, while central processing unit provides the second control to driving circuit When signal processed, the second flash lamp circuit shines.In the present embodiment, the first flash lamp circuit and the second flash lamp circuit are not simultaneously It shines.

It include flashlight driving circuit 32 in the intelligent terminal of the application, which includes driving electricity Road, the first flash lamp circuit and the second flash lamp circuit, central processing unit, by allowing the first flash lamp circuit and the second flash lamp First output end of the input terminal coupling driving circuit of circuit, so that the first flash lamp circuit and the second flash lamp circuit share one A driving circuit reduces the use of electronic component, can also save the design space of printed circuit board.Central processing unit coupling The control terminal of the control terminal of driving circuit, the control terminal of the first flash lamp circuit and the second flash lamp circuit to control respectively One flash lamp circuit and the second flash lamp circuit shine, and can be realized the first flash lamp circuit of driving and the second flash lamp circuit Effect and it can further save design cost.

The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field similarly includes in the scope of patent protection of the application.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种摄影棚

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!