CN109309490A - Key circuit - Google Patents
Key circuit Download PDFInfo
- Publication number
- CN109309490A CN109309490A CN201811474144.5A CN201811474144A CN109309490A CN 109309490 A CN109309490 A CN 109309490A CN 201811474144 A CN201811474144 A CN 201811474144A CN 109309490 A CN109309490 A CN 109309490A
- Authority
- CN
- China
- Prior art keywords
- light
- sensitive element
- circuit
- mosfet
- resistance
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/941—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated using an optical detector
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K2217/00—Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
- H03K2217/0081—Power supply means, e.g. to the switch driver
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K2217/00—Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
- H03K2217/94—Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
- H03K2217/9401—Calibration techniques
- H03K2217/94026—Automatic threshold calibration; e.g. threshold automatically adapts to ambient conditions or follows variation of input
Abstract
The invention discloses a kind of key circuits.A kind of key circuit of the present invention, comprising: the resistance of light-sensitive element, the light-sensitive element is reduced with the increase of light intensity;Variable resistance circuit, the light-sensitive element and the variable resistance circuit are connected between power supply and ground;And controller, the controller reversely adjust the resistance value size of the variable resistance circuit according to the variation of the resistance value of the light-sensitive element.Beneficial effects of the present invention: under the various intensities of illumination of actual use, controller sends the resistance value of signal control variable resistance circuit according to sampled signal size, change and the concatenated resistance sizes of light-sensitive element, prevent light-sensitive element from working in saturation state, the sensitivity that enhancing light-sensitive element is used as key.
Description
Technical field
This patent is applied to the instrument such as calorimeter/water meter, is related to a kind of highly sensitive light-sensitive element key circuit.
Background technique
With being constantly progressive for electronic technology, the instrument such as most of calorimeter/water meters have man-machine interface, are triggered by key
Man-machine interface can obtain various data.Standard machinery key switch has physics stroke, the bad processing of waterproof.
Under different intensities of illumination, the size of current of inductive output is different when light-sensitive element works.
Conventional application (resistance and light-sensitive element of fixed resistance value are connected), only in the case where intensity of illumination acute variation
The variation of light-sensitive element output signal is obvious, in the small use occasion of intensity of illumination variation range, the variation of light-sensitive element inductive output
It measures small, is difficult to be identified, usage experience is poor.
There are following technical problems for traditional technology:
The size of current exported in different intensity of illumination light-sensitive element work is different.Using fixed resistance value resistance and
Light-sensitive element series connection, light-sensitive element is easily saturated under different intensities of illumination, and application range is small.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of key circuits, change the resistance with the concatenated resistance of light-sensitive element
Value prevents light-sensitive element from working in saturation state, the sensitivity that enhancing light-sensitive element is used as key.
In order to solve the above-mentioned technical problems, the present invention provides a kind of key circuits, comprising:
The resistance of light-sensitive element, the light-sensitive element is reduced with the increase of light intensity;
Variable resistance circuit, the light-sensitive element and the variable resistance circuit are connected between power supply and ground;And
Controller, the controller reversely adjust the variable resistance circuit according to the variation of the resistance value of the light-sensitive element
Resistance value size.
The light-sensitive element is phototriode in one of the embodiments,.
The light-sensitive element is photo resistance in one of the embodiments,.
The light-sensitive element connects the control with the common end of the variable resistance circuit in one of the embodiments,
The control terminal of device;According to the variation of the resistance value of the light-sensitive element, the first output end output control signal of the controller is anti-
To the resistance value size for adjusting the variable resistance circuit.
The variable resistance circuit includes concatenated first resistor and controllable resistor unit in one of the embodiments,;
The controllable resistor unit includes the grid connection of in parallel second resistance and the first mosfet, the first mosfet described the
One output end;The common end of drain electrode the connection first resistor and controllable resistor unit of first mosfet, described first
The source electrode of mosfet is grounded.
The controllable resistor unit further includes concatenated 3rd resistor and the 2nd mosfet in one of the embodiments,;
The 3rd resistor connects the common end of the light-sensitive element and the variable resistance circuit far from the mosfet;Described second
The grid of mosfet connects the second output terminal of the single-chip microcontroller;The drain electrode of 2nd mosfet connects the 3rd resistor,
The source electrode of 2nd mosfet is grounded.
The controller is MSP430 single-chip microcontroller in one of the embodiments,.
The controller is ARM Cortex-M0 single-chip microcontroller in one of the embodiments,.
Beneficial effects of the present invention:
Under the various intensities of illumination of actual use, controller sends signal according to sampled signal size and controls variable resistance
The resistance value of circuit, change and the concatenated resistance sizes of light-sensitive element, prevent light-sensitive element from working in saturation state, enhance photosensitive
The sensitivity that element is used as key.
Detailed description of the invention
Fig. 1 is the module diagram of key circuit of the present invention.
Fig. 2 is the circuit diagram of key circuit of the present invention.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples, so that those skilled in the art can be with
It more fully understands the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Refering to fig. 1, the present invention provides a kind of key circuits, comprising:
The resistance of light-sensitive element, the light-sensitive element is reduced with the increase of light intensity;
Variable resistance circuit, the light-sensitive element and the variable resistance circuit are connected between power supply and ground;And
Controller, the controller reversely adjust the variable resistance circuit according to the variation of the resistance value of the light-sensitive element
Resistance value size.
It is appreciated that the reversed adjusting is referred to when the resistance value of the light-sensitive element is when becoming larger, reduce variable resistance
The resistance value of circuit, alternatively, increasing the resistance value of variable resistance circuit when the resistance value of the light-sensitive element is when becoming smaller.
Specifically, the light-sensitive element can be phototriode or photo resistance.
The light-sensitive element connects the control with the common end of the variable resistance circuit in one of the embodiments,
The control terminal of device;According to the variation of the resistance value of the light-sensitive element, the first output end output control signal of the controller is anti-
To the resistance value size for adjusting the variable resistance circuit.
The variable resistance circuit includes concatenated first resistor and controllable resistor unit in one of the embodiments,;
The controllable resistor unit includes the grid connection of in parallel second resistance and the first mosfet, the first mosfet described the
One output end;The common end of drain electrode the connection first resistor and controllable resistor unit of first mosfet, described first
The source electrode of mosfet is grounded.
When the resistance value of photo resistance increases, the voltage of the control terminal of the controller becomes smaller (signal of acquisition is weaker),
The first mosfet conducting is controlled by the first output end, so that the resistance value of variable resistance circuit becomes smaller.
Specifically, the controller is MSP430 single-chip microcontroller or ARM Cortex-M0 single-chip microcontroller.It is appreciated that can also
To use other types of single-chip microcontroller, as long as corresponding function may be implemented.
The controllable resistor unit further includes concatenated 3rd resistor and the 2nd mosfet in one of the embodiments,;
The 3rd resistor connects the common end of the light-sensitive element and the variable resistance circuit far from the mosfet;Described second
The grid of mosfet connects the second output terminal of the single-chip microcontroller;The drain electrode of 2nd mosfet connects the 3rd resistor,
The source electrode of 2nd mosfet is grounded.
Beneficial effects of the present invention:
Under the various intensities of illumination of actual use, controller sends signal according to sampled signal size and controls variable resistance
The resistance value of circuit, change and the concatenated resistance of light-sensitive element (variable resistance circuit) size, prevent light-sensitive element from working in full
And state, the sensitivity that enhancing light-sensitive element is used as key.
Lower mask body introduces the concrete scene of the application:
Referring to Fig.2, a kind of key circuit, comprising: light-sensitive element, variable resistance circuit and single-chip microcontroller.The photosensitive member
Part and the variable resistance circuit are connected between power supply and ground.The control terminal P0.1 connection light-sensitive element of single-chip microcontroller and institute
State the common end of variable resistance circuit.The variable resistance circuit includes concatenated first resistor R1 and controllable resistor unit;Institute
Stating controllable resistor unit includes in parallel second resistance R2 and the first mosfetQ1, described in the grid connection of the first mosfet
First output end P0.2 of single-chip microcontroller;The drain electrode of first mosfet connects the public affairs of the first resistor and controllable resistor unit
End altogether, the source electrode ground connection of the first mosfet.The controllable resistor unit further includes concatenated 3rd resistor R3 and second
mosfetQ2.The 3rd resistor connects the public of the light-sensitive element and the variable resistance circuit far from the mosfet
End.The grid of 2nd mosfet connects the second output terminal P0.3 of the single-chip microcontroller;The drain electrode of 2nd mosfet connects
Connect the 3rd resistor, the source electrode ground connection of the 2nd mosfet.
Referring to Fig.2, the specific work process of the application:
Intense light irradiation intensity: light-sensitive element works in the 1. circuit power supply-U1-R1-R2-GND.
General intensity of illumination: it is photosensitive to be worked first in 1. circuit, when MSP430 single-chip microcontroller P0.1 detected amplitude is weaker,
MSP single-chip microcontroller P0.2, which sends signal, is connected Q1, and photosensitive work is in the 2. circuit power supply-U1-R1-Q1-GND.
Intensity of illumination is weak: MSP430 single-chip microcontroller P0.1 sampled signal very little, makes photosensitive work in 1. circuit respectively, 2. returns
The amplitude that road .MSP430 single-chip microcontroller P0.1 is detected is still weaker, and MSP430 single-chip microcontroller P0.3, which sends signal, is connected Q2, single
Piece machine P0.2 sends signal Q1 and disconnects.Light-sensitive element works in the 3. circuit power supply U1- (R1+R2//Q2+R3)-GND.
Intensity of illumination is especially weak: MSP430 single-chip microcontroller P0.1 sampled signal very little, makes photosensitive work in 1. circuit respectively, 2.
Circuit, the amplitude that 3. circuit is detected as MSP430 single-chip microcontroller P0.1 is still weaker, and MSP430 single-chip microcontroller P0.3 sends signal
Q2 is connected, single-chip microcontroller P0.2 sends signal Q1 conducting.Light-sensitive element works in 4. power supply-U1- (R1+Q1//Q2+R3)-GND
Circuit.
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention
It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention
Protection scope within.Protection scope of the present invention is subject to claims.
Claims (8)
1. a kind of key circuit characterized by comprising
The resistance of light-sensitive element, the light-sensitive element is reduced with the increase of light intensity;
Variable resistance circuit, the light-sensitive element and the variable resistance circuit are connected between power supply and ground;And
Controller, the controller reversely adjust the resistance of the variable resistance circuit according to the variation of the resistance value of the light-sensitive element
It is worth size.
2. key circuit as described in claim 1, which is characterized in that the light-sensitive element is phototriode.
3. key circuit as described in claim 1, which is characterized in that the light-sensitive element is photo resistance.
4. key circuit as described in claim 1, which is characterized in that the public affairs of the light-sensitive element and the variable resistance circuit
End connects the control terminal of the controller altogether;According to the variation of the resistance value of the light-sensitive element, the first output of the controller
End output control signal reversely adjusts the resistance value size of the variable resistance circuit.
5. key circuit as claimed in claim 4, which is characterized in that the variable resistance circuit includes concatenated first resistor
With controllable resistor unit;The controllable resistor unit includes second resistance and the first mosfet, the first mosfet in parallel
Grid connect first output end;The drain electrode of first mosfet connects the first resistor and controllable resistor unit
Common end, the source electrode ground connection of the first mosfet.
6. key circuit as claimed in claim 5, which is characterized in that the controllable resistor unit further includes concatenated third electricity
Resistance and the 2nd mosfet;The 3rd resistor connects the light-sensitive element and the variable resistance circuit far from the mosfet
Common end;The grid of 2nd mosfet connects the second output terminal of the single-chip microcontroller;The drain electrode of 2nd mosfet connects
Connect the 3rd resistor, the source electrode ground connection of the 2nd mosfet.
7. key circuit as described in claim 1, which is characterized in that the controller is MSP430 single-chip microcontroller.
8. key circuit as described in claim 1, which is characterized in that the controller is ARM Cortex-M0 single-chip microcontroller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474144.5A CN109309490A (en) | 2018-12-04 | 2018-12-04 | Key circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474144.5A CN109309490A (en) | 2018-12-04 | 2018-12-04 | Key circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109309490A true CN109309490A (en) | 2019-02-05 |
Family
ID=65222203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811474144.5A Pending CN109309490A (en) | 2018-12-04 | 2018-12-04 | Key circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109309490A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808872A (en) * | 2005-12-27 | 2006-07-26 | 章祖文 | Variable time constant-temperature AC voltage/current transformation power supply |
CN101567624A (en) * | 2008-04-21 | 2009-10-28 | 华为技术有限公司 | Control circuit for switching power supply voltage, control method, power supply module and veneer |
CN102402885A (en) * | 2011-10-19 | 2012-04-04 | 盐城师范学院 | Instrument for demonstrating characteristics of commonly used light sensitive element |
CN102665346A (en) * | 2012-05-09 | 2012-09-12 | 浙江金丽温高速公路有限公司 | Intelligent tunnel lighting controller for express way |
CN103532535A (en) * | 2013-10-23 | 2014-01-22 | 成都市宏山科技有限公司 | Simple light guide switching circuit |
CN103674241A (en) * | 2013-12-14 | 2014-03-26 | 成都国蓉科技有限公司 | Photosensitive circuit for detecting photosensitive signal |
CN103716943A (en) * | 2012-09-29 | 2014-04-09 | 深圳市海洋王照明工程有限公司 | Light-operated street-lamp circuit |
CN103857104A (en) * | 2012-11-29 | 2014-06-11 | 深圳市海洋王照明工程有限公司 | Night-lamp circuit |
CN103989408A (en) * | 2014-05-20 | 2014-08-20 | 李顺芝 | Water fountain |
CN104868721A (en) * | 2014-02-25 | 2015-08-26 | 安凯(广州)微电子技术有限公司 | Step-down power conversion circuit and system thereof |
CN105337485A (en) * | 2014-06-03 | 2016-02-17 | 欧司朗股份有限公司 | Power factor correction (PFC) circuit, light emitting diode (LED) driving circuit and illumination device |
CN107696959A (en) * | 2017-09-29 | 2018-02-16 | 湖南农业大学 | A kind of dazzle light forces switching device |
CN108233913A (en) * | 2018-01-30 | 2018-06-29 | 上海与德科技有限公司 | A kind of key control circuit and electronic equipment |
-
2018
- 2018-12-04 CN CN201811474144.5A patent/CN109309490A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808872A (en) * | 2005-12-27 | 2006-07-26 | 章祖文 | Variable time constant-temperature AC voltage/current transformation power supply |
CN101567624A (en) * | 2008-04-21 | 2009-10-28 | 华为技术有限公司 | Control circuit for switching power supply voltage, control method, power supply module and veneer |
CN102402885A (en) * | 2011-10-19 | 2012-04-04 | 盐城师范学院 | Instrument for demonstrating characteristics of commonly used light sensitive element |
CN102665346A (en) * | 2012-05-09 | 2012-09-12 | 浙江金丽温高速公路有限公司 | Intelligent tunnel lighting controller for express way |
CN103716943A (en) * | 2012-09-29 | 2014-04-09 | 深圳市海洋王照明工程有限公司 | Light-operated street-lamp circuit |
CN103857104A (en) * | 2012-11-29 | 2014-06-11 | 深圳市海洋王照明工程有限公司 | Night-lamp circuit |
CN103532535A (en) * | 2013-10-23 | 2014-01-22 | 成都市宏山科技有限公司 | Simple light guide switching circuit |
CN103674241A (en) * | 2013-12-14 | 2014-03-26 | 成都国蓉科技有限公司 | Photosensitive circuit for detecting photosensitive signal |
CN104868721A (en) * | 2014-02-25 | 2015-08-26 | 安凯(广州)微电子技术有限公司 | Step-down power conversion circuit and system thereof |
CN103989408A (en) * | 2014-05-20 | 2014-08-20 | 李顺芝 | Water fountain |
CN105337485A (en) * | 2014-06-03 | 2016-02-17 | 欧司朗股份有限公司 | Power factor correction (PFC) circuit, light emitting diode (LED) driving circuit and illumination device |
CN107696959A (en) * | 2017-09-29 | 2018-02-16 | 湖南农业大学 | A kind of dazzle light forces switching device |
CN108233913A (en) * | 2018-01-30 | 2018-06-29 | 上海与德科技有限公司 | A kind of key control circuit and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4031408A (en) | Proximity switching system | |
CN104540292B (en) | Suitable for the light adjusting circuit and light adjusting system on controllable silicon dimmer circuit | |
US20070194718A1 (en) | Light control fluorescent lamp and circuit thereof | |
CN209088914U (en) | Key circuit | |
CN109309490A (en) | Key circuit | |
CN217904258U (en) | OLED power supply circuit | |
CN204068238U (en) | A kind of delivery outlet protective circuit based on open circuit band inductive load | |
CN214542042U (en) | Electromagnet on-off control circuit | |
CN107635322A (en) | A kind of Dimmable LED constant-current drive circuit | |
CN106455222A (en) | Automatic control circuit and projection device | |
CN204090211U (en) | Controllable silicon LED drive circuit for adjusting and use the LED lamp of this circuit | |
CN105391277B (en) | A kind of discrete component HF switch gate driving circuit | |
CN210247104U (en) | Light-operated night-light of discolouring of taking touch to adjust luminance | |
CN205490123U (en) | Large current output's among high voltage integrated circuit overcurrent protect device | |
CN207612252U (en) | A kind of metal-oxide-semiconductor output protection circuit of low cost | |
CN217882856U (en) | Sine wave power generator | |
CN205584158U (en) | IGBT overflows signal latch circuit | |
CN204795768U (en) | LED constant -current drive circuit | |
CN110267409A (en) | A kind of light adjusting circuit | |
CN205193056U (en) | Water quality testing circuit based on three -terminal voltage regulator tube steady voltage design | |
CN217955417U (en) | OLED intelligent dimming device | |
TWI547031B (en) | Electrical contact detection circuit and portable electrical system using the same | |
CN206775796U (en) | Brightness adjustable LED perpetual calendars automatically | |
CN209088832U (en) | A kind of Switching Power Supply constant-current control circuit | |
TWM349158U (en) | LED driving circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |