CN207782765U - A kind of key press detecting circuit being integrated with ambient brightness detection - Google Patents

A kind of key press detecting circuit being integrated with ambient brightness detection Download PDF

Info

Publication number
CN207782765U
CN207782765U CN201820193149.XU CN201820193149U CN207782765U CN 207782765 U CN207782765 U CN 207782765U CN 201820193149 U CN201820193149 U CN 201820193149U CN 207782765 U CN207782765 U CN 207782765U
Authority
CN
China
Prior art keywords
resistance
key
key press
circuit
detecting circuit
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
CN201820193149.XU
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201820193149.XU priority Critical patent/CN207782765U/en
Application granted granted Critical
Publication of CN207782765U publication Critical patent/CN207782765U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The application provides a kind of key press detecting circuit being integrated with ambient brightness detection.The key press detecting circuit provided by the present application for being integrated with ambient brightness detection, including:Pull-up resistor, key-press module, luminance detection circuit and processor, wherein, the first end of the pull-up resistor is connect with constant pressure source, the second end of the pull-up resistor is grounded after being connected with the key-press module by the voltage detecting end of the key-press module, the first end of the luminance detection circuit is connect with the voltage detecting end, the second end of the luminance detection circuit is grounded, the voltage detecting end is connected to the processor, the processor, the brightness value current for determining the button or the determining key press detecting circuit local environment that are currently at pressing state according to collected voltage value.The key press detecting circuit provided by the present application for being integrated with ambient brightness detection, is integrated with the function of ambient brightness detection, can enrich the function of key press detecting circuit, saves processor resource, reduces cost.

Description

A kind of key press detecting circuit being integrated with ambient brightness detection
Technical field
This application involves circuit field more particularly to a kind of key press detecting circuits being integrated with ambient brightness detection.
Background technology
With the development of science and technology, push-button input device has been widely used in electronic equipment.Button inputs Often there is device key press detecting circuit, the processor of key press detecting circuit can judge which is pressed according to collected voltage value Key is in pressing state.
The processor of electronic equipment where the processor of key press detecting circuit is generally key press detecting circuit, button detection electricity The other parts on road are generally connect by the ADC interface of processor with processor.However the ADC interface of processor is very limited, And other circuits of electronic equipment are also required to realize correspondingly function by the ADC interface of processor, if key press detecting circuit energy Other functions are enough integrated, by highly beneficial with saving processor resource.
Utility model content
In view of this, the application provides a kind of key press detecting circuit being integrated with ambient brightness detection, examined with abundant button The function of slowdown monitoring circuit saves processor resource.
The key press detecting circuit provided by the present application for being integrated with ambient brightness detection, including it is pull-up resistor, key-press module, bright Spend detection circuit and processor, wherein the first end of the pull-up resistor is connect with constant pressure source, the second end of the pull-up resistor It is grounded after being connected with the key-press module by the voltage detecting end of the key-press module, the first end of the luminance detection circuit It is connect with the voltage detecting end, the second end ground connection of the luminance detection circuit, the voltage detecting end and the processor Connection, the processor, for determined according to collected voltage value be currently at the button of pressing state or determine it is described by The current brightness value of key detection circuit local environment.
Further, the key-press module includes N number of button and N-1 resistance, and the first end of each button is grounded, and every two The second end of a button is connected by a resistance, wherein the node that first button is connect with first resistance is the electricity Test side, the node that n-th button is connect with the N-1 resistance is pressed to be connect with the first end of the luminance detection circuit.
Further, the luminance detection circuit includes a photo resistance.
Further, the luminance detection circuit further includes a divider resistance, the first end of the divider resistance with it is described The node connection that n-th button is connect with the N-1 resistance, the second end of the divider resistance and the first of the photo resistance End connection, the second end ground connection of the photo resistance.
Further, the key press detecting circuit further includes filter circuit, and the filter circuit setting is examined in the voltage It surveys between end and the processor.
Further, the filter circuit includes a filter resistance and a capacitance, the first end of the filter resistance and institute The connection of voltage detecting end is stated, the second end of the filter resistance is connect with the first end of the capacitance and the processor respectively, The second end of the capacitance is grounded.
Further, the key press detecting circuit further includes regulator circuit, and the regulator circuit is arranged in the filtered electrical Between road and the processor.
Further, the regulator circuit includes a Transient Suppression Diode.
Further, the N is 8.
The key press detecting circuit provided by the present application for being integrated with ambient brightness detection, by the way that pull-up resistor, button mould is arranged Block, luminance detection circuit and processor, and the first end of pull-up resistor is connect with constant pressure source, the second end of pull-up resistor is by pressing The voltage detecting end of key module is grounded after connecting with key-press module, and the first end of luminance detection circuit is connect with voltage detecting end, The second end of luminance detection circuit is grounded, and voltage detecting end is connect with processor, and processor is used for according to collected voltage Value determines the button for being currently at pressing state or determines the current brightness value of the key press detecting circuit local environment.In this way, So that key press detecting circuit is integrated with the function of detection ambient brightness, which processor can determine according to collected voltage value Button is in pressing state or determines the current brightness value of the key press detecting circuit local environment, in this way, button detection can be enriched The function of circuit saves processor resource, reduces cost.
Description of the drawings
Fig. 1 is the electrical block diagram for the key press detecting circuit embodiment one that the application is integrated with ambient brightness detection;
Fig. 2 is the electrical block diagram for the key press detecting circuit embodiment two that the application is integrated with ambient brightness detection;
Fig. 3 is the application scenarios schematic diagram for the key press detecting circuit that the application is integrated with ambient brightness detection.
Reference sign:
1:Pull-up resistor;
11:The first end of pull-up resistor;
12:The second end of pull-up resistor;
2:Key-press module;
21:Voltage detecting end;
3:Luminance detection circuit;
31:The first end of luminance detection circuit;
32:The second end of luminance detection circuit;
4:Processor;
5:Filter circuit;
6:Regulator circuit.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application. It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the" Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.
Currently, to improve user experience, certain electronic equipments usually require to adjust backlight according to ambient light brightness bright Degree, in this way, it is necessary to detect ambient light brightness.In the prior art, to detect ambient light brightness, usually in the electronic device Light sensation circuit is set, and the ADC interface of light sensation circuit and the processor of electronic equipment is connected, in this way, processor can be according to adopting The voltage value collected determines the current brightness value of environment.
When electronic equipment is provided with key press detecting circuit and light sensation circuit simultaneously, key press detecting circuit and light sensation circuit are each From the ADC interface for occupying a processor, processor resource can not be made full use of.At this point, if key press detecting circuit can collect At the function that ambient brightness detects, this way it is not necessary to additional setting light sensation circuit again, can not only save processor resource, Cost can also be reduced.
In view of this, the application provides a kind of key press detecting circuit being integrated with ambient brightness detection, examined with abundant button The function of slowdown monitoring circuit saves processor resource.
The technical solution of the application is described in detail with specific embodiment below, below these specific implement Example can be combined with each other, and same or analogous concept or process may be repeated no more in some embodiments.
Fig. 1 is the electrical block diagram for the key press detecting circuit embodiment one that the application is integrated with ambient brightness detection. Please refer to Fig. 1, the key press detecting circuit provided in this embodiment for being integrated with ambient brightness detection, including pull-up resistor 1, button mould Block 2, luminance detection circuit 3 and processor 4, wherein the first end 11 of pull-up resistor 1 is connect with constant pressure source VCC, pull-up resistor 1 Second end 12 connected with key-press module 2 by the voltage detecting end 21 of key-press module 2 after be grounded, the of luminance detection circuit 3 One end 31 is connect with voltage detecting end 21, and the second end 32 of luminance detection circuit 3 is grounded, and voltage detecting end 21 connects with processor 4 It connects, processor 4, for determining the button for being currently at pressing state or determining key press detecting circuit according to collected voltage value The current brightness value of local environment.
Specifically, pull-up resistor 1 is the resistance R1 in circuit diagram shown in Fig. 1.In addition, key-press module 2 include N number of button and N-1 resistance, the first end ground connection of each button, the second end of each two button are connected by a resistance, wherein first The node that button is connect with first resistance be voltage detecting end 21, the node that n-th button is connect with the N-1 resistance with it is bright The first end 31 for spending detection circuit 3 connects.
For example, in the embodiment shown in fig. 1, key-press module 2 includes 8 buttons and 7 resistance, 8 buttons are respectively to press Key S1 to button S8,7 resistance are respectively resistance R2 to resistance R8.It should be noted that the first end of button is electricity shown in Fig. 1 The left end of road figure, the second end of button is the right end of circuit diagram shown in Fig. 1, as shown in Figure 1, first ends of the button S1 to button S8 It is grounded, the second end of each two button is connected by a resistance, i.e. the second end of button S1 and the second end of button S2 is logical Cross resistance R2 connections, the second end of button S2 is connect with the second end of button S3 by resistance R3, the second end of button S3 with press The second end of key S4 is connected by resistance R4, and the second end of button S4 is connect with the second end of button S5 by resistance R5, button The second end of S5 is connect with the second end of button S6 by resistance R6, and the second end of button S6 passes through electricity with the second end of button S7 R7 connections are hindered, the second end of button S7 is connect with the second end of button S7 by resistance R8.Wherein, button S1 is connected with resistance R2 Node be key-press module 2 voltage detecting end 21.In addition, as shown in Figure 1, the first end 31 and button of luminance detection circuit 3 The node connection that S8 is connect with resistance R8.
Optionally, in one possible realization method of the application, luminance detection circuit 3 includes a photo resistance RL1.
The work that following is a brief introduction of the key press detecting circuit provided by the present application for being integrated with ambient brightness detection is former Reason.
Specifically, please refer to Fig. 1, when a button is pressed, at this point, electric current after pull-up resistor 1, is flowed through and is pressed Then button flows into ground after button S2.For example, after button S2 is pressed, electric current flows through resistance R2 after pull-up resistor 1, Then ground is flowed into after button S2, at this point, the voltage value at 4 collected voltage detecting end 21 of processor is VCC*R2/ (R1+ R2).In this way, processor 4 can determine whether that button 2 is in pressing state (for example, processor 4 can root according to collected voltage value Determine which current button is pressed according to the correspondence of collected voltage value and voltage value and button).Further, When not having that a button is pressed, at this point, electric current after pull-up resistor 1, flows successively through resistance R2 to resistance R8, most afterwards through photosensitive electricity Ground is flowed into after hindering RL1, at this point, the voltage value at 4 collected voltage detecting end 21 of processor is A, wherein
A=VCC* (R2+R3+R4+R5+R6+R7+R8+RL1)/(R1+R2+R3+R4+R5+R6+R7+R8+RL1)
It should be noted that the resistance value of photo resistance RL1 becomes with the variation for the light luminance for being radiated at its surface Change, in this way, processor 4 can calculate the current brightness value of environment according to collected voltage value.For example, in an embodiment In, processor 4 can calculate the current resistance values of photo resistance RL1 according to collected voltage value, and then according to photo resistance The resistance value of RL1 and the correspondence of brightness value calculate the current brightness value of environment.
The key press detecting circuit provided in this embodiment for being integrated with ambient brightness detection is integrated with ambient brightness detection work( Can, key press detecting circuit and luminance detection circuit share an ADC interface, processor resource can be saved, in addition, compared to existing Key press detecting circuit and light sensation circuit are independently arranged in technology, additionally it is possible to save installation space, reduce cost.
Fig. 2 is the electrical block diagram for the key press detecting circuit embodiment two that the application is integrated with ambient brightness detection. Fig. 2 is please referred to, on the basis of the above embodiments, key press detecting circuit provided in this embodiment, luminance detection circuit 3 further includes One divider resistance R9, wherein the first end of divider resistance R9 is connected with the node that n-th button is connect with the N-1 resistance, point The second end of piezoresistance R9 is connect with the first end of photo resistance RL1, the second end ground connection of photo resistance RL1.
Specifically, referring to Fig. 1, the first end of divider resistance R9 and photo resistance RL1 refer both to the upper of circuit diagram shown in Fig. 1 End.
It should be noted that the resistance value of photo resistance RL1 is dropped with the enhancing for the light intensity for being radiated at its surface It is low, when the resistance value of photo resistance RL1 is reduced to sufficiently small, when to avoid not by key pressing, 4 collected electricity of processor Pressure value is too close to processor collected voltage value when pushing button S8, provided by the present application to be integrated with so as to cause erroneous judgement The key press detecting circuit of ambient brightness detection, is arranged a divider resistance R9, in this way, can be further in luminance detection circuit 3 Improve the accuracy of detection.
Further, please continue to refer to Fig. 2, the button detection electricity provided in this embodiment for being integrated with ambient brightness detection Road, further includes filter circuit 5, and filter circuit 5 is arranged between voltage detecting end 21 and processor 4.
Specifically, filter circuit 5 can be with filtering interference signals, which may be used appointing with filter function The circuit structure of what form, is not defined the concrete structure of filter circuit herein.
Optionally, in one possible realization method of the application, filter circuit 5 includes a filter resistance RT1 and a capacitance The first end of C1, filter resistance RT1 are connect with voltage detecting end 21, the second end of filter resistance RT1 respectively with capacitance C1 One end and processor 4 connect, the second end ground connection of capacitance C1.
Specifically, the first end of filter resistance RT1 refers to the left end of circuit diagram shown in Fig. 2, the first end of capacitance C1 refers to Fig. 2 institutes Show the upper end of circuit diagram.
It should be noted that in another possible realization method of the application, filter circuit 5 may include an inductance, should One end of inductance is connect with voltage detecting end 21, and the other end is connect with processor 4.
The key press detecting circuit provided in this embodiment for being integrated with ambient brightness detection, by voltage detecting end and processing Filter circuit is set between device, in this way, can filtering interference signals, avoid because interference signal there are due to cause erroneous judgement.Therefore, The key press detecting circuit provided in this embodiment for being integrated with ambient brightness detection, strong interference immunity.
Further, please continue to refer to Fig. 2, the button detection electricity provided in this embodiment for being integrated with ambient brightness detection Road further includes regulator circuit 6, and regulator circuit setting 6 is between filter circuit 5 and processor 4.
Specifically, regulator circuit 6 can be by the voltage value stabilization at voltage detecting end in particular value, to avoid due to overtension Cause entire circuit burnout.
The present embodiment is not defined the concrete structure of regulator circuit 6.Optionally, in a kind of possible realization of the present invention In mode, regulator circuit 6 includes a Transient Suppression Diode TVS1.
The key press detecting circuit provided in this embodiment for being integrated with ambient brightness detection can be kept away by the way that regulator circuit is arranged Exempt from that entire circuit is caused to damage because of overtension, can further improve the safety of circuit.
A specific example is given below, to be described in detail it is provided by the present application be integrated with ambient brightness detection by The application scenarios of key detection circuit.
Fig. 3 is the application scenarios schematic diagram of the key press detecting circuit provided by the present application for being integrated with ambient brightness detection.Please With reference to Fig. 3, the key press detecting circuit provided by the present application for being integrated with ambient brightness detection can be applied to carry out backlight tune In the electronic equipment of section, in this way, processor 4 can calculate the current brightness value of environment according to collected voltage value, and according to Calculated brightness value control is exported to the duty ratio of the pwm signal of backlight circuit, to adjust the electric current of backlight circuit output, from And it controls the backlight brightness.For example, when calculated brightness value is higher, illustrate that ambient brightness is higher, at this point, reducing output to the back of the body The duty ratio of the pwm signal of optical circuit to reduce the electric current of backlight circuit output, and then reduces backlight illumination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (9)

1. a kind of key press detecting circuit being integrated with ambient brightness detection, which is characterized in that the key press detecting circuit includes upper Pull-up resistor, key-press module, luminance detection circuit and processor, wherein the first end of the pull-up resistor is connect with constant pressure source, institute State pull-up resistor second end connected with the key-press module by the voltage detecting end of the key-press module after be grounded, it is described bright The first end of degree detection circuit is connect with the voltage detecting end, the second end ground connection of the luminance detection circuit, the voltage Test side is connected to the processor, the processor, for being currently at pressing state according to the determination of collected voltage value Button or determine the current brightness value of the key press detecting circuit local environment.
2. key press detecting circuit according to claim 1, which is characterized in that the key-press module includes N number of button and N-1 A resistance, the first end ground connection of each button, the second end of each two button are connected by a resistance, wherein first is pressed The node that key is connect with first resistance is the voltage detecting end, the node and institute that n-th button is connect with the N-1 resistance State the first end connection of luminance detection circuit.
3. key press detecting circuit according to claim 2, which is characterized in that the luminance detection circuit includes a photosensitive electricity Resistance.
4. key press detecting circuit according to claim 3, which is characterized in that the luminance detection circuit further includes a partial pressure Resistance, the first end of the divider resistance are connected with the node that the n-th button is connect with the N-1 resistance, the partial pressure The second end of resistance is connect with the first end of the photo resistance, the second end ground connection of the photo resistance.
5. key press detecting circuit according to claim 1, which is characterized in that the key press detecting circuit further includes filtered electrical Road, the filter circuit are arranged between the voltage detecting end and the processor.
6. key press detecting circuit according to claim 5, which is characterized in that the filter circuit include a filter resistance and One capacitance, the first end of the filter resistance are connect with the voltage detecting end, the second end of the filter resistance respectively with institute State first end and the processor connection of capacitance, the second end ground connection of the capacitance.
7. key press detecting circuit according to claim 5, which is characterized in that the key press detecting circuit further includes voltage stabilizing electricity Road, the regulator circuit are arranged between the filter circuit and the processor.
8. key press detecting circuit according to claim 7, which is characterized in that the regulator circuit includes that a transient state inhibits two Pole pipe.
9. key press detecting circuit according to claim 2, which is characterized in that the N is 8.
CN201820193149.XU 2018-02-02 2018-02-02 A kind of key press detecting circuit being integrated with ambient brightness detection Active CN207782765U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201820193149.XU CN207782765U (en) 2018-02-02 2018-02-02 A kind of key press detecting circuit being integrated with ambient brightness detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201820193149.XU CN207782765U (en) 2018-02-02 2018-02-02 A kind of key press detecting circuit being integrated with ambient brightness detection

Publications (1)

Publication Number Publication Date
CN207782765U true CN207782765U (en) 2018-08-28

Family

ID=63212268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201820193149.XU Active CN207782765U (en) 2018-02-02 2018-02-02 A kind of key press detecting circuit being integrated with ambient brightness detection

Country Status (1)

Country Link
CN (1) CN207782765U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365178A (en) * 2021-04-28 2021-09-07 广东朝阳电子科技股份有限公司 Method for realizing input port expansion by sharing temperature detection port of Bluetooth headset
CN114475881A (en) * 2022-02-14 2022-05-13 海固科技(苏州)有限公司 Bicycle dial plate device and bicycle

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365178A (en) * 2021-04-28 2021-09-07 广东朝阳电子科技股份有限公司 Method for realizing input port expansion by sharing temperature detection port of Bluetooth headset
CN113365178B (en) * 2021-04-28 2022-09-30 广东朝阳电子科技股份有限公司 Method for realizing input port expansion by sharing temperature detection port of Bluetooth headset
CN114475881A (en) * 2022-02-14 2022-05-13 海固科技(苏州)有限公司 Bicycle dial plate device and bicycle
CN114475881B (en) * 2022-02-14 2024-04-05 海固科技(苏州)有限公司 Bicycle dial plate device and bicycle

Similar Documents

Publication Publication Date Title
CN104702254B (en) Semiconductor substrate anomalies detection circuit
CN106710531B (en) Backlight control circuit and electronic device
CN207782765U (en) A kind of key press detecting circuit being integrated with ambient brightness detection
CN104345867B (en) Field device
CN101119162A (en) Semiconductor integrated circuit outputting detection signal based on detection result of a detecting device and electronic device including the same
CN106218548A (en) Car lamp control system based on CAN LIN network
CN106019040A (en) Optical-coupler electrical performance detection device
CN102963295B (en) A kind of backlight circuit of automobile combination meter and backlight Automatic adjustment method thereof
CN205643661U (en) Undervoltage power detection device and have its air conditioner
US8228646B2 (en) Apparatus and method for draining stored power
CN105916267A (en) Flashlight illumination brightness adjusting method, flashlight illumination brightness adjusting device and mobile terminal
CN104950239A (en) Backlight driving detection circuit
CN108391343B (en) LED detection device, detection system and detection method
ATE368864T1 (en) ELECTRICAL CIRCUIT FOR DRIVING A LOAD
CN215641545U (en) Hydrogen fuel car pencil loading detecting system and circuit
CN211603503U (en) IC module open circuit or short circuit detection device
CN108369252A (en) Electronic equipment
KR20130083322A (en) Apparatus for supplying power
TWM534700U (en) Vehicle electrical apparatus with protection and detection mechanism for power reversely
CN219107721U (en) Dimming control circuit
CN110351541A (en) Voltage setting value adjusts device and its circuit
CN208939346U (en) Power cabinet
CN202614916U (en) Electronic load machine
CN209488438U (en) Automatic detection compensation control circuit and detection compensation system
CN216390965U (en) Multiplexing circuit and electronic equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant