CN104955202B - Electric torch circuit with calculator function - Google Patents

Electric torch circuit with calculator function Download PDF

Info

Publication number
CN104955202B
CN104955202B CN201410123764.XA CN201410123764A CN104955202B CN 104955202 B CN104955202 B CN 104955202B CN 201410123764 A CN201410123764 A CN 201410123764A CN 104955202 B CN104955202 B CN 104955202B
Authority
CN
China
Prior art keywords
module
output
control
control module
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
CN201410123764.XA
Other languages
Chinese (zh)
Other versions
CN104955202A (en
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.)
Oceans King Lighting Science and Technology Co Ltd
Shenzhen Oceans King Lighting Engineering Co Ltd
Original Assignee
Oceans King Lighting Science and Technology Co Ltd
Shenzhen Oceans King Lighting Engineering 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 Oceans King Lighting Science and Technology Co Ltd, Shenzhen Oceans King Lighting Engineering Co Ltd filed Critical Oceans King Lighting Science and Technology Co Ltd
Priority to CN201410123764.XA priority Critical patent/CN104955202B/en
Publication of CN104955202A publication Critical patent/CN104955202A/en
Application granted granted Critical
Publication of CN104955202B publication Critical patent/CN104955202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

Electric torch circuit with calculator function includes the reseting module for reseting data;It further include switch module, control module, the constant flow module for providing constant current and the display module for showing the matrix keyboard module input signal Yu the control module output signal for inputting the matrix keyboard module of number and arithmetic signal, lighting with extinguish for controlling lamps and lanterns;Number and arithmetic signal are inputted by setting matrix keyboard module, output is shown to display module after then being converted and handled by number and arithmetic signal of the control module to input.Meanwhile switch module so that control module changes the size of current of constant flow module, and then achievees the effect that control lamp brightness and extinguishing by sending switching signal to control module.Therefore, the above-mentioned electric torch circuit with calculator function not only has conventional illumination functions of lighting, and also has calculator function.

Description

Electric torch circuit with calculator function
Technical field
The present invention relates to electric torch circuits, more particularly to a kind of electric torch circuit with calculator function.
Background technique
The development of portable lighting tool can be traced to the initial stage of human social development --- primitive society.Since human asm Since drilling wood to make fire, portable lighting experienced the development course from fire, oil, candle to flashlight.Portable lighting tool lives through nothing There is torch, oil lamp, candle, kerosene lamp to incandescent lamp bulb flashlight, Xe lamp bulb flashlight in several changes, and it is full to develop to beautiful jade Purpose LED flashlight etc..Oil lamp have passed through multiple improvement.Oil lamp is changed to vegetable oil from animal oil with oil, last to be replaced again by kerosene. Wind blows out fire in order to prevent, and people added cover to oil lamp, finally uses cloche, such oil instead from the paper of early stage paste cover Lamp is not afraid of wind, illuminates convenient for outdoor moving.While making to illuminate by oil lamps, the mankind are still finding other portable lightings Method.Then the function of simple flashlight is excessively dull, is insufficient for diversified user demand.
Summary of the invention
Based on this, it is necessary to provide a kind of electric torch circuit with calculator function.
A kind of electric torch circuit with calculator function, including the reseting module for reseting data;It further include for defeated Enter number and arithmetic signal matrix keyboard module, for control lamps and lanterns light with extinguishing switch module, control module, For providing the constant flow module of constant current and for showing that the matrix keyboard module input signal and the control module are defeated The display module of signal out;
The matrix keyboard module includes eight output ends, and eight output ends correspondence of the matrix keyboard module connects described Eight data input pins of control module;The output of the reseting module terminates the reset terminal of the control module;The constant current The input termination lamps and lanterns anode of module and the constant current end of the control module, the output of the constant flow module terminate lamps and lanterns cathode; The input of the display module terminates the data output end of the control module;The power end of the control module, the reset The power supply termination input power of the power end of module, the display module;The output of the switch module terminates the control mould The switch terminals of block;
The number and arithmetic signal of the input of the matrix keyboard module after the control module is converted and is handled, It is output to the display module, the digital numbers and symbols corresponding with arithmetic signal of display module display;It is described to open It closes module to be used to send switching signal to the control module, the control module controls the constant current according to the switching signal The size of current of module, to control brightness and extinguishing that lamps and lanterns are lighted;The reseting module is used for the control module Data reset.
The reseting module includes resistance R1, switch S1, capacitor C3 and capacitor C4 in one of the embodiments,;It is described Resistance R1 mono- terminates input power, and the other end is the output end of the reseting module, and the capacitor C3 mono- terminates the reset mould The output end of block, other end ground connection, the capacitor C4 is in parallel with the capacitor C3, and the switch S1 is in parallel with the capacitor C3.
The matrix keyboard module includes 4 × 4 matrix keyboards in one of the embodiments,.
The constant flow module includes constant current chip U3 and constant current chip U4 in one of the embodiments,;The constant current core The output end of the output end of piece U3 and the constant current chip U4 connect the cathode of lamps and lanterns simultaneously, the power end of the constant current chip U3 and The points of common connection of the power end of the constant current chip U4 is the input terminal of the constant flow module, the ground connection of the constant current chip U3 The ground terminal of end and the constant current chip U4 are grounded.
The switch module includes switch S18, the one end switch S18 ground connection, the other end in one of the embodiments, Connect the switch terminals of the control module.
The display module includes display chip U2 and adjustable resistance R2, the display core in one of the embodiments, The input of piece U2 terminates the output end of the control module, one end ground connection of the adjustable resistance R2, another termination display The power end of chip U2.
The control module includes single-chip microcontroller U1, triode Q1 and capacitor C5 in one of the embodiments,;The monolithic Eight data input pins of machine U1 connect eight output ends of the matrix keyboard module, described in the reset termination of the single-chip microcontroller U1 The data output end of the output end of reseting module, the single-chip microcontroller U1 connects the input terminal of the display module, the single-chip microcontroller Switch terminates the output end of the switch module, and the constant current of the single-chip microcontroller U1 terminates the base stage of the triode Q1, and described three The collector of pole pipe Q1 connects input power, and the emitter of the triode Q1 connects the input terminal of the constant flow module, the monolithic The power supply of machine U1 terminates input power, and the capacitor C5 mono- terminates the reference voltage end of the single-chip microcontroller U1, other end ground connection.
It in one of the embodiments, further include crystal oscillator module, the crystal oscillator module includes crystal oscillator Y1, capacitor C1 and capacitor The both ends C2, the crystal oscillator Y1 connect the end XTAL1 and the end XTAL2 of the single-chip microcontroller U1 respectively, and the capacitor C1 mono- terminates the list The end XTAL1 of piece machine U1, other end ground connection, the capacitor C2 connect the end XTAL2 of the single-chip microcontroller U1, other end ground connection.
The above-mentioned electric torch circuit with calculator function inputs number and arithmetic letter by setting matrix keyboard module Number, output is shown to display module after then being converted and handled by number and arithmetic signal of the control module to input Show.Meanwhile switch module by control module send switching signal so that control module change constant flow module electric current Size, and then achieve the effect that control lamp brightness and extinguishing.Therefore, the above-mentioned electric torch circuit with calculator function not only has There are conventional illumination functions of lighting, also there is calculator function.
Detailed description of the invention
Fig. 1 is the module map of the electric torch circuit with calculator function;
Fig. 2 (a) is the schematic diagram of matrix keyboard module;
The partial schematic diagram of electric torch circuit of the Fig. 2 (b) with calculator function;
Fig. 2 (c) is the schematic diagram of display module.
Specific embodiment
As shown in Figure 1, being the module map of the electric torch circuit with calculator function.
A kind of electric torch circuit with calculator function, including for reseting data reseting module 106, for inputting number The matrix keyboard module 101 of word and arithmetic signal is lighted and the switch module 103 of extinguishing, control mould for controlling lamps and lanterns Block 102, the constant flow module 104 for providing constant current and for showing 101 input signal of matrix keyboard module and institute State the display module 105 of 102 output signal of control module.
The matrix keyboard module 101 includes eight output ends, and eight output ends of the matrix keyboard module 101 are corresponding Connect eight data input pins of the control module 102;The output of the reseting module 106 terminates the control module 102 Reset terminal;The input termination lamps and lanterns anode of the constant flow module 104 and the constant current end of the control module 102, the constant current mould The output of block 104 terminates lamps and lanterns cathode;The input of the display module 105 terminates the data output end of the control module 102; The power supply termination input of the power end of the control module 102, the power end of the reseting module 106, the display module 105 Power supply;The output of the switch module 103 terminates the switch terminals of the control module 102.
The number and arithmetic signal of the input of the matrix keyboard module 101 are converted simultaneously through the control module 102 After processing, it is output to the display module 105, the display module 105 shows number number corresponding with arithmetic signal And symbol;The switch module 103 is used to send switching signal to the control module 102, and the control module 102 is according to institute It states switching signal and controls the size of current of the constant flow module 104, to control the brightness and extinguishing that lamps and lanterns are lighted;The reset Module 106 is used for the data reset of the control module 102.
Electric torch circuit with calculator function further includes crystal oscillator module 107, for being arranged at the data of control module 102 Manage the time.
Matrix keyboard module 101 is for inputting number and arithmetic signal, eight output ends of matrix keyboard module 101 Combination of two exports 16 kinds of data-signals.
Control module 102 is used for the input signal of receiving matrix Keysheet module 101, and according to the digital signal of input and defeated The arithmetic signal entered carries out data processing, while data are exported to display module 105 by treated.Control module 102 It is also used to receive the output signal of switch module 103, and the switching signal exported according to switch module 103 is to constant flow module 104 Electric current be adjusted, and then reach adjust lamps and lanterns luminance.
Specifically, control module 102 controls what constant flow module 104 exported when switch module 103 issues switching signal for the first time Electric current makes lamps and lanterns issue dim light.When second of the sending switching signal of switch module 103, control module 102 controls constant flow module 104 The electric current of output makes lamps and lanterns issue strong light.When switch module 103 issues switching signal for the third time, control module 102 controls constant current The electric current that module 104 exports makes lamps and lanterns be in quick-fried sudden strain of a muscle state.When the 4th sending switching signal of switch module 103, control module 102 control constant flow modules 104 stop output electric current, and lamps and lanterns extinguish.
Incorporated by reference to Fig. 2 (a)-(c).
Reseting module 106 includes resistance R1, switch S1, capacitor C3 and capacitor C4;The resistance R1 mono- terminates input power, The other end is the output end of the reseting module 106, and the capacitor C3 mono- terminates the output end of the reseting module 106, another End ground connection, the capacitor C4 is in parallel with the capacitor C3, and the switch S1 is in parallel with the capacitor C3.
Matrix keyboard module 101 includes 4 × 4 matrix keyboards.Switch S2-S17 respectively represents digital 0-9 and arithmetic symbol Number.
Constant flow module 104 includes constant current chip U3 and constant current chip U4;The output end of the constant current chip U3 and the perseverance The output end for flowing chip U4 connects the cathode of lamps and lanterns, the power supply of the power end of the constant current chip U3 and the constant current chip U4 simultaneously The points of common connection at end is the input terminal of the constant flow module 104, the ground terminal and the constant current chip of the constant current chip U3 The ground terminal of U4 is grounded.
The model of constant current chip U3 and constant current chip U4 are AMC7135.
Switch module 103 includes switch S18, and the one end the switch S18 is grounded, another termination control module 102 Switch terminals.
Display module 105 includes the input termination control of display chip U2 and adjustable resistance R2, the display chip U2 The output end of molding block 102, one end ground connection of the adjustable resistance R2, the power end of another termination display chip U2.It is aobvious Show the model LCD1602 of chip U2.
Control module 102 includes single-chip microcontroller U1, triode Q1 and capacitor C5;Eight data input pins of the single-chip microcontroller U1 Eight output ends of the matrix keyboard module 101 are connect, the reset of the single-chip microcontroller U1 terminates the output of the reseting module 106 End, the data output end of the single-chip microcontroller U1 connect the input terminal of the display module 105, described in the switch termination of the single-chip microcontroller The output end of switch module 103, the constant current of the single-chip microcontroller U1 terminate the base stage of the triode Q1, the collection of the triode Q1 Electrode connects input power, and the emitter of the triode Q1 connects the input terminal of the constant flow module 104, the electricity of the single-chip microcontroller U1 Source connects input power, and the capacitor C5 mono- terminates the reference voltage end of the single-chip microcontroller U1, other end ground connection.
The model ATMEGA16 of single-chip microcontroller U1.
Electric torch circuit with calculator function further includes crystal oscillator module 107, the crystal oscillator module 107 include crystal oscillator Y1, Capacitor C1 and the both ends capacitor C2, the crystal oscillator Y1 meet the end XTAL1 and the end XTAL2 of the single-chip microcontroller U1, the capacitor C1 respectively The end XTAL1 of the one termination single-chip microcontroller U1, other end ground connection, the capacitor C2 connects the end XTAL2 of the single-chip microcontroller U1, another End ground connection.
Based on above-mentioned all embodiments, the working principle of the electric torch circuit with calculator function is as follows:
When the switch of 4 × 4 matrix keyboards is pressed, it is corresponding can be to single-chip microcontroller U1 outputting data signals.Single-chip microcontroller U1 is received And after handling, output is shown to display chip U2.After the completion of multiple input, single-chip microcontroller U1 can be according to the number and four fundamental rules of input Operation signal carries out arithmetic and exports operation result to show to display chip U2.Adjust the resistance value of adjustable resistance R2, energy Enough change the contrast of display chip U2 shown.
When pressing lower switch S18 for the first time, i.e. single-chip microcontroller U1 receives the switching signal of switch S18, single-chip microcontroller U1 control for the first time Constant current chip U3 and constant current chip U4 processed export 250mA electric current, so that lamps and lanterns are in dim light state.Second by lower switch S18 When, single-chip microcontroller U1 control control constant current chip U3 and constant current chip U4 exports 500mA electric current, so that lamps and lanterns are in strong light state. When third time is pressed and is long-pressing switch S18, the electric current of single-chip microcontroller U1 control control constant current chip U3 and constant current chip U4 output Lamps and lanterns can be made to be in quick-fried sudden strain of a muscle state, quick-fried sudden strain of a muscle frequency is 1-2Hz.When pressing lower switch S18 the 4th time, single-chip microcontroller U1 control control is permanent It flows chip U3 and constant current chip U4 and stops output electric current, so that lamps and lanterns extinguish.
The above-mentioned electric torch circuit with calculator function inputs number and arithmetic by the way that matrix keyboard module 101 is arranged Signal, display mould is given in output after the number and arithmetic signal then inputted by 102 Duis of control module is converted and handled Block 105 is shown.Meanwhile switch module 103 by control module 102 send switching signal so that control module 102 changes Become the size of current of constant flow module 104, and then achievees the effect that control lamp brightness and extinguishing.Therefore, above-mentioned band calculator function The electric torch circuit of energy not only has conventional illumination functions of lighting, and also has calculator function.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (7)

1. a kind of electric torch circuit with calculator function, including the reseting module for reseting data;It is characterized in that, also wrapping Include for input number and arithmetic signal matrix keyboard module, for control lamps and lanterns light with extinguishing switch module, Control module, the constant flow module for providing constant current and for showing the matrix keyboard module input signal and the control The display module of module output signal processed;
The matrix keyboard module includes eight output ends, and eight output ends correspondence of the matrix keyboard module connects the control Eight data input pins of module;The output of the reseting module terminates the reset terminal of the control module;The constant flow module Input termination lamps and lanterns anode and the control module constant current end, the output of the constant flow module terminates lamps and lanterns cathode;It is described The input of display module terminates the data output end of the control module;The power end of the control module, the reseting module Power end, the display module power supply terminate input power;The output of the switch module terminates the control module Switch terminals;
The number and arithmetic signal of the input of the matrix keyboard module are after the control module is converted and handled, output To the display module, the digital numbers and symbols corresponding with arithmetic signal of display module display;The switching molding Block is used to send switching signal to the control module, and the control module controls the constant flow module according to the switching signal Size of current, to control the brightness and extinguishing that lamps and lanterns are lighted;The reseting module is used for the data of the control module It resets;
The control module controls constant flow module by pwm signal;
The size of current for controlling the constant flow module according to the switching signal includes:
When switch module issues switching signal for the first time, the electric current of control module control constant flow module output makes lamps and lanterns issue dim light, When second of sending switching signal of switch module, the electric current of control module control constant flow module output makes lamps and lanterns issue strong light, opens When closing module third time sending switching signal, the electric current of control module control constant flow module output makes lamps and lanterns be in quick-fried sudden strain of a muscle state, When the 4th sending switching signal of switch module, control module controls constant flow module and stops output electric current, and lamps and lanterns extinguish;
The control module includes single-chip microcontroller U1, triode Q1 and capacitor C5;Eight data input pins of the single-chip microcontroller U1 connect Eight output ends of the matrix keyboard module, the reset of the single-chip microcontroller U1 terminates the output end of the reseting module, described The data output end of single-chip microcontroller U1 connects the input terminal of the display module, and the switch of the single-chip microcontroller terminates the switch module Output end, the constant current of the single-chip microcontroller U1 terminate the base stage of the triode Q1, and the collector of the triode Q1 connects input electricity Source, the emitter of the triode Q1 connect the input terminal of the constant flow module, and the power supply of the single-chip microcontroller U1 terminates input power, The capacitor C5 mono- terminates the reference voltage end of the single-chip microcontroller U1, other end ground connection.
2. the electric torch circuit according to claim 1 with calculator function, which is characterized in that the reseting module includes Resistance R1, switch S1, capacitor C3 and capacitor C4;The resistance R1 mono- terminates input power, and the other end is the reseting module Output end, the capacitor C3 mono- terminate the output end of the reseting module, other end ground connection, the capacitor C4 and the capacitor C3 Parallel connection, the switch S1 are in parallel with the capacitor C3.
3. the electric torch circuit according to claim 1 with calculator function, which is characterized in that the matrix keyboard module Including 4 × 4 matrix keyboards.
4. the electric torch circuit according to claim 1 with calculator function, which is characterized in that the constant flow module includes Constant current chip U3 and constant current chip U4;The output end of the output end of the constant current chip U3 and the constant current chip U4 connect lamp simultaneously The points of common connection of the power end of the cathode of tool, the power end of the constant current chip U3 and the constant current chip U4 is the constant current The ground terminal of the input terminal of module, the ground terminal of the constant current chip U3 and the constant current chip U4 are grounded.
5. the electric torch circuit according to claim 1 with calculator function, which is characterized in that the switch module includes Switch S18, the one end switch S18 ground connection, the switch terminals of another termination control module.
6. the electric torch circuit according to claim 1 with calculator function, which is characterized in that the display module includes The input of display chip U2 and adjustable resistance R2, the display chip U2 terminate the output end of the control module, described adjustable One end of resistance R2 is grounded, the power end of another termination display chip U2.
7. the electric torch circuit according to claim 1 with calculator function, which is characterized in that it further include crystal oscillator module, The crystal oscillator module includes the XTAL1 that crystal oscillator Y1, capacitor C1 and the both ends capacitor C2, the crystal oscillator Y1 meet the single-chip microcontroller U1 respectively End and the end XTAL2, the capacitor C1 mono- terminate the end XTAL1 of the single-chip microcontroller U1, and other end ground connection, the capacitor C2 connects described The end XTAL2 of single-chip microcontroller U1, other end ground connection.
CN201410123764.XA 2014-03-28 2014-03-28 Electric torch circuit with calculator function Active CN104955202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410123764.XA CN104955202B (en) 2014-03-28 2014-03-28 Electric torch circuit with calculator function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410123764.XA CN104955202B (en) 2014-03-28 2014-03-28 Electric torch circuit with calculator function

Publications (2)

Publication Number Publication Date
CN104955202A CN104955202A (en) 2015-09-30
CN104955202B true CN104955202B (en) 2019-06-14

Family

ID=54169453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410123764.XA Active CN104955202B (en) 2014-03-28 2014-03-28 Electric torch circuit with calculator function

Country Status (1)

Country Link
CN (1) CN104955202B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101294965A (en) * 2008-06-19 2008-10-29 中国科学院力学研究所 Miniature non-mark protein chip detecting system
CN102052568A (en) * 2009-10-28 2011-05-11 王家伟 Electric torch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4444779B2 (en) * 2004-10-12 2010-03-31 リンナイ株式会社 Remote control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101294965A (en) * 2008-06-19 2008-10-29 中国科学院力学研究所 Miniature non-mark protein chip detecting system
CN102052568A (en) * 2009-10-28 2011-05-11 王家伟 Electric torch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
atmega16开发板电路图;645578078;《百度文库》;20120803;图1

Also Published As

Publication number Publication date
CN104955202A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN205480263U (en) Led lamp and led control circuit
CN106251811A (en) A kind of LED light-dimming method
CN102665320B (en) Portable electric appts and flash control circuit thereof
CN104955202B (en) Electric torch circuit with calculator function
CN204131801U (en) A kind of Intelligent LED lamp of low-power consumption Bluetooth control
CN204026504U (en) Many wicks wave electric candle
CN102638594B (en) Portal electronic equipment and flash lamp control circuit thereof
CN204404024U (en) A kind of intelligence light modulation rechargeable LED lamp with oneself
CN202652594U (en) Light emitting diode driver possessing protection path
CN108039027A (en) A kind of electric meter wireless searching system based on Bluetooth technology
CN201142777Y (en) Classroom illumination electricity saving controller
CN205149641U (en) A background light control circuit for commercial car combination meter
CN208719916U (en) It is a kind of can be with the desk lamp of touch control
CN206490879U (en) Intelligent luminaire
CN104955204B (en) With the electric torch circuit for surveying air pressure positioning function
CN204408691U (en) A kind of LED power charge/discharge control circuit
CN204578816U (en) The LED string control loop of automobile meeting pedal
CN205356773U (en) Intelligence circuit in a poor light of universal meter
CN104808101B (en) A kind of detection circuit for voice-frequency cable
CN204180348U (en) The automatic light sensation control switch of a kind of electric lighting
CN215300973U (en) Flame light simulation circuit and light source equipment
CN202153797U (en) Heavy gauge electric torch handset circuit simultaneously controlled by software and hardware
CN202274461U (en) LED (Light-Emitting Diode) lamp and circuit thereof
CN206932447U (en) Mobile phone lighting circuit and mobile phone
CN208797619U (en) A kind of charging of novel belt is turned off the light functional circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant