CN104955194B - A kind of electric torch circuit - Google Patents

A kind of electric torch circuit Download PDF

Info

Publication number
CN104955194B
CN104955194B CN201410113978.9A CN201410113978A CN104955194B CN 104955194 B CN104955194 B CN 104955194B CN 201410113978 A CN201410113978 A CN 201410113978A CN 104955194 B CN104955194 B CN 104955194B
Authority
CN
China
Prior art keywords
main control
control chip
buzzer
led light
electric torch
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
CN201410113978.9A
Other languages
Chinese (zh)
Other versions
CN104955194A (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 CN201410113978.9A priority Critical patent/CN104955194B/en
Publication of CN104955194A publication Critical patent/CN104955194A/en
Application granted granted Critical
Publication of CN104955194B publication Critical patent/CN104955194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of electric torch circuits, main control chip, LED light key, buzzer key, first triode, second triode, LED light and buzzer, wherein: the first input end of the main control chip is connected with one end of the LED light key, second input terminal of the main control chip is connected with one end of the buzzer key, the PWM output end of the main control chip is connected with the base stage of first triode, the emitter of first triode is connected with the anode of the LED light, the sound pulse output end of the main control chip is connected with the base stage of second triode, the emitter of second triode is connected with the anode of the buzzer;The main control chip changes the luminance of the LED light when the LED light is by key pressing, and the main control chip changes the sounding state of the buzzer when the buzzer is by key pressing.Using the present invention, the adjusting of multi gear position can be carried out with the light intensity of flashlight, and can use flashlight and play music, improve user experience.

Description

A kind of electric torch circuit
Technical field
The present invention relates to electronic technology field more particularly to a kind of electric torch circuits.
Background technique
With the continuous development of electronic technology, requirement of the user to electronic product is higher and higher, and feature-rich electronics produces Product are often by the pro-gaze of more users.Flashlight is a kind of user's commonly electronic product, but existing flashlight is mostly It has a single function, is unable to satisfy the demand of user.Such as: emergency acoustical signal cannot be issued by flashlight outdoors, and poly- Meeting place plays music by flashlight, reduces the experience of user.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of electric torch circuit, may be implemented to flashlight The light intensity of cylinder carries out the adjusting of multi gear position, and can use flashlight and play music, improves user experience.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of electric torch circuit, including main control chip, LED light key, buzzer key, the first triode, the second triode, LED light and buzzer, in which:
The first input end of the main control chip is connected with one end of the LED light key, and the second of the main control chip Input terminal is connected with one end of the buzzer key, the base of the PWM output end of the main control chip and first triode Extremely it is connected, the emitter of first triode is connected with the anode of the LED light, the sound pulse output end of the main control chip It is connected with the base stage of second triode, the emitter of second triode is connected with the anode of the buzzer;
The main control chip changes the luminance of the LED light, the main control chip when the LED light is by key pressing Change the sounding state of the buzzer when the buzzer is by key pressing.
It is pressed the implementation of the embodiments of the present invention has the following beneficial effects: the embodiment of the present invention receives LED light by main control chip The low level signal that key and buzzer key are sent and light intensity and control buzzer according to low level signal control LED light The method for broadcasting music realizes the effect of enhancing flashlight function, improves user experience, and have circuit simple, at low cost Feature.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of circuit diagram of electric torch circuit provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Electric torch circuit provided in an embodiment of the present invention can be applied to various lighting apparatus, in the present embodiment, above-mentioned Lighting apparatus can be flashlight.
Fig. 1 is a kind of electric torch circuit provided in an embodiment of the present invention.Electric torch circuit in the present embodiment as shown in the figure It may include main control chip, LED light key, buzzer key, the first triode, the second triode, LED light and buzzer, Wherein:
The first input end of main control chip is connected with one end of LED light key, the second input terminal of main control chip and buzzing One end of device key is connected, and the PWM output end of main control chip is connected with the base stage of the first triode, the emitter of the first triode It is connected with the anode of LED light, the sound pulse output end of main control chip is connected with the base stage of the second triode, the hair of the second triode Emitter-base bandgap grading is connected with the anode of buzzer;
Main control chip changes the luminance of the LED light when LED light is by key pressing, and main control chip is in the buzzer By the sounding state for changing buzzer when key pressing.
Optionally, electric torch circuit further includes reset circuit, clock circuit, wherein reset circuit and main control chip are answered Position end is connected, and clock circuit is connected with the clock end of main control chip.
Further, reset circuit includes current-limiting resistance, reset switch and the first filter capacitor and the second filter capacitor, Wherein, one end of current-limiting resistance is connected with the reset terminal of main control chip, the other end access power supply of current-limiting resistance, reset switch, One end after first filter capacitor and the second filter capacitor are in parallel is connected with the reset terminal of main control chip, another termination after parallel connection Ground.
Further, clock circuit includes crystal oscillator, the first oscillating capacitance and the second oscillating capacitance, wherein crystal oscillator and master control The clock end of chip is connected, and one end of crystal oscillator is connected with one end of the first oscillating capacitance, the other end of crystal oscillator and the second oscillation electricity One end of appearance is connected, the other end ground connection of the first oscillating capacitance, the other end ground connection of the second oscillating capacitance.
Optionally, the model of the constant current chip in electric torch circuit can be AMC7135.
Referring to Fig. 1, in the embodiment of the present invention, main control chip U1, charactron U2, the first triode is Q1, the two or three Pole pipe is Q2, and LED light D1, LED light key is S2, and buzzer key is S3.In addition, the reset of the minimum system of main control chip In circuit and clock circuit, current-limiting resistance R1, reset switch S1, the first filter capacitor are C3, and the second filter capacitor is C4, Crystal oscillator is Y1, and the first oscillating capacitance is C1, and the second oscillating capacitance is C2, constant current chip U3, constant current chip U4.
Particularly, main control chip U1 can be the single-chip microcontroller of model ATMEGA16.
After electric torch circuit powers on, start to work after main control chip U1, constant current chip U3 and constant current chip U4 reset.
The specific implementation process of light intensity regulatory function are as follows:
When LED light key S2 is pressed, the first input end PC7 of main control chip U1 accesses low level, main control chip U1 root Low level number control PWM output end PB0, which is accessed, according to first input end PC7 exports different default pwm pulse signals, so that LED light D1 issues the default corresponding work light of pwm pulse signal.
Such as: when LED light key S2 is pressed, the first input end PC7 of main control chip U1 detects low level, PWM Output end PB0 exports a preset pwm pulse signal, so that LED light D1 issues the first work light under 250mA electric current;When LED light key S2 is pressed again, and similarly, the PWM output end PB0 of main control chip U1 exports another preset pwm pulse letter Number, so that LED light D1 issues the second work light under 500mA electric current;When LED light key S2 is pressed again, master control at this time The PWM output end PB0 of chip U1 no longer exports pwm pulse signal, and LED light D1 extinguishes.
For another example: when LED light key S2 is pressed and the duration reaches preset time, the PWM output end of main control chip U1 PB0 exports intermittent pwm pulse signal, so that LED light D1 issues the work light of flashing.
The specific implementation process of music playback function and numeral method function are as follows:
When the buzzer presses key pressing, the second input terminal PC4 of main control chip U1 accesses low level, main control chip U1 Low level number control sound pulse output end PB1, which is accessed, according to the second input terminal PC4 exports different default sound pulse signals, So that buzzer T1 issues the default corresponding audio of sound pulse signal, and main control chip U1 is accessed according to the second input terminal PC4 Low level number control parallel output terminal PD0~PD7 exports different default parallel signals, presets so that charactron U2 is shown The corresponding character of parallel signal.
Such as: when buzzer key S3 is pressed, the second input terminal PC4 of main control chip U1 detects low level, sound Pulse output end PB1 exports a preset sound pulse signal and parallel output terminal PD0~PD7 issues a preset parallel letter Number, so that buzzer issues the first song and numeral method is digital " 1 ";When buzzer key S3 is pressed again, similarly, The sound pulse output end PB1 of main control chip U1 exports another preset sound pulse signal and parallel output terminal PD0~PD7 is issued Another preset parallel signal, so that buzzer issues the second song and numeral method is digital " 2 ";When buzzer key S3 is pressed again, and the sound pulse output end PB1 and parallel output terminal PD0~PD7 of main control chip U1 no longer exports letter at this time Number, buzzer stops sounding, and charactron is also no longer shown.
The embodiment of the present invention receives the low level signal and root that LED light key and buzzer key are sent by main control chip According to the method that the light intensity and control buzzer of low level signal control LED light broadcast music, enhancing flashlight function is realized Effect, improve user experience, and have the characteristics that circuit is simple, at low cost.
It is that can pass through those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment Computer program is completed to instruct relevant hardware, and the program can be stored in a computer-readable storage medium, The program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (8)

1. a kind of electric torch circuit, which is characterized in that the electric torch circuit include main control chip, LED light key, buzzer by Key, the first triode, the second triode, LED light and buzzer, in which:
The first input end of the main control chip is connected with one end of the LED light key, the second input of the main control chip End is connected with one end of the buzzer key, the base stage phase of the PWM output end of the main control chip and first triode Even, the emitter of first triode is connected with the anode of the LED light, the sound pulse output end of the main control chip and institute The base stage for stating the second triode is connected, and the emitter of second triode is connected with the anode of the buzzer;
When the LED light presses key pressing, the first input end of the main control chip accesses low level, the main control chip according to The first input end, which accesses low level number and controls the PWM output end, exports different default pwm pulse signals, so that The LED light issues the corresponding work light of the default pwm pulse signal;
When the buzzer presses key pressing, the second input terminal of the main control chip accesses low level, the main control chip root Low level number accessed according to second input terminal control the sound pulse output end export different default sound pulse signals, So that the buzzer issues the corresponding audio of the default sound pulse signal.
2. electric torch circuit as described in claim 1, which is characterized in that the electric torch circuit further includes at least one constant current Chip, the input terminal of the constant current chip are connected with the anode of the LED light, the output end of the constant current chip and the LED The cathode of lamp is connected.
3. electric torch circuit as claimed in claim 2, which is characterized in that the electric torch circuit further includes charactron, described The input terminal of charactron is connected with the parallel output terminal of the main control chip.
4. electric torch circuit as claimed in claim 3, which is characterized in that the parallel output terminal of the main control chip exports different Default parallel signal so that described in the numeral method preset the corresponding character of parallel signal, the numeral method The audio that character is issued with the buzzer matches.
5. electric torch circuit as described in claim 1, which is characterized in that the electric torch circuit further include reset circuit, when Clock circuit, wherein the reset circuit is connected with the reset terminal of the main control chip, the clock circuit and the main control chip Clock end be connected.
6. electric torch circuit as claimed in claim 5, which is characterized in that the reset circuit includes current-limiting resistance, resets and open It closes and the first filter capacitor and the second filter capacitor, wherein the reset of one end of the current-limiting resistance and the main control chip End is connected, and the other end of the current-limiting resistance accesses power supply, and the reset switch, the first filter capacitor and the second filter capacitor are simultaneously One end after connection is connected with the reset terminal of the main control chip, the other end ground connection after parallel connection.
7. electric torch circuit as claimed in claim 6, which is characterized in that the clock circuit includes crystal oscillator, the first oscillation electricity Hold and the second oscillating capacitance, wherein the crystal oscillator is connected with the clock end of the main control chip, one end of the crystal oscillator with it is described One end of first oscillating capacitance is connected, and the other end of the crystal oscillator is connected with one end of second oscillating capacitance, and described first The other end of oscillating capacitance is grounded, the other end ground connection of second oscillating capacitance.
8. electric torch circuit as claimed in claim 2, which is characterized in that the model AMC7135 of the constant current chip.
CN201410113978.9A 2014-03-25 2014-03-25 A kind of electric torch circuit Active CN104955194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410113978.9A CN104955194B (en) 2014-03-25 2014-03-25 A kind of electric torch circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410113978.9A CN104955194B (en) 2014-03-25 2014-03-25 A kind of electric torch circuit

Publications (2)

Publication Number Publication Date
CN104955194A CN104955194A (en) 2015-09-30
CN104955194B true CN104955194B (en) 2019-02-22

Family

ID=54169445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410113978.9A Active CN104955194B (en) 2014-03-25 2014-03-25 A kind of electric torch circuit

Country Status (1)

Country Link
CN (1) CN104955194B (en)

Citations (1)

* 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

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 (1)

* 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

Non-Patent Citations (1)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104197299A (en) Illuminating device and voice broadcasting system and method based on device
CN204879632U (en) Multi -functional intelligence learning lamp
CN102892231B (en) A kind of lamp effect control method, device and television stand and television set
CN103676729B (en) Digital knob switch multiplexing device and adopt the electronics of described device
CN105704864A (en) Atmosphere illuminating system and method based on music contents
CN106879111B (en) A kind of RGBW-LED music lantern based on Bluetooth communication
CN104219849A (en) Method and device for controlling light-emitting equipment on basis of audio signal
CN105681565A (en) Vibration control method, system and mobile terminal thereof
CN203167202U (en) Multifunctional bedside table sound equipment
CN203167347U (en) Lamp
CN104955194B (en) A kind of electric torch circuit
CN203632915U (en) Multifunctional stage lamp device
CN205017494U (en) Audio amplifier of operation is adjusted to touch loudspeaker metal mesh control light
CN202815455U (en) Remote controller for wireless igniting system
CN202584491U (en) Intelligent training machine for deaf-mute child
CN112581932A (en) Wired and wireless sound mixing system based on DSP
CN202539015U (en) Novel music analog digital fountain controller
CN205408132U (en) Tall and erect intelligent system family of ann broadcast device
CN204240152U (en) A kind of stereo desk lamp
CN209982469U (en) Analog conversion circuit of audio PWM pulse modulation signal
CN202816056U (en) Wireless doorbell
CN102419970A (en) Alarm buzzer
CN203327293U (en) Intelligent light string remote control device
CN203243558U (en) Electronic birthday candle circuit
JP5667279B1 (en) Illumination device and frame to which this illumination device is attached

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