CN115250556B - Control circuit and control method for starting shoulder lightning lamp based on gravity sensing - Google Patents
Control circuit and control method for starting shoulder lightning lamp based on gravity sensing Download PDFInfo
- Publication number
- CN115250556B CN115250556B CN202211154419.3A CN202211154419A CN115250556B CN 115250556 B CN115250556 B CN 115250556B CN 202211154419 A CN202211154419 A CN 202211154419A CN 115250556 B CN115250556 B CN 115250556B
- Authority
- CN
- China
- Prior art keywords
- resistor
- led lamp
- control circuit
- red
- shoulder
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a control circuit for starting a shoulder lightning lamp based on gravity sensing, which comprises a singlechip control circuit and a flicker driving control circuit, wherein the singlechip control circuit comprises a signal triggering unit, a triggering judging unit, a signal receiving unit and a starting judging unit, and the flicker driving control circuit starts a horizontal LED lamp or a vertical LED lamp of the shoulder lightning lamp to work according to a received signal. The invention has simple and compact structure, solves the problem of single working mode of the existing shoulder flash lamp, can rapidly switch the working mode of the shoulder flash lamp according to the angle of wearing on the shoulder of a human body, does not need to search keys for processing under emergency conditions, is more intelligent and efficient, improves the safety and convenience of people in using the shoulder flash lamp, and is beneficial to batch popularization and application in the market.
Description
Technical Field
The invention relates to the technical field of electronic whistles, in particular to a control circuit for starting a shoulder lightning lamp based on gravity sensing and a control method thereof.
Background
The warning shoulder lamp is a warning device which utilizes the LED lamp to emit light and flash to provide safety warning deterrence for police duty personnel, generally consists of a shell, a circuit board, the LED lamp, a clip and a battery, and is clipped on the shoulder board of personnel such as highway traffic law enforcement, road sanitation, road administration construction and the like when in use, and a high-brightness LED active luminous light source is adopted, so that the warning effect is improved. However, the current warning shoulder lamp has unreasonable design and incomplete functions, and has some defects in the using process.
CN214037997U is a portable electronic whistle shoulder lamp, the internal structure is complex, the mechanical structure in the internal is damaged due to excessive quantity, and the function is single. For example, the problem of illumination and warning at night is not solved, namely the effect of the illuminating lamp and the effect of the warning lamp are not distinguished; when an emergency needs to start warning, a worker cannot change the direction of the warning lamp according to the position state of the shoulder flashing electronic lamp, so that the person needing to be warned can observe in time, and a warning effect cannot be well achieved; secondly, under the sudden situation, staff can not quickly take out the whistle to blow the warning or blow the whistle unchanged, and can not timely carry out the warning whistle; and the working mode is single, and the corresponding working mode cannot be switched according to the working requirement.
CN214955989U is an electronic whistle with laser indication and illumination, and operating mode is single, also can only solve the problem of indication under environment such as haze weather, high and cold district, dense smoke, and operating mode is single, also can't solve the problem of putting forward of this application.
Disclosure of Invention
To solve one or more of the above problems, the present invention provides a control circuit for starting a shoulder lightning lamp based on gravity sensing and a control method thereof.
The invention adopts the technical scheme that:
in a first aspect, a control circuit for starting a shoulder lightning lamp based on gravity sensing is provided, comprising:
SCM control circuit and scintillation drive control circuit, SCM control circuit includes
The signal triggering unit is used for generating a triggering voltage signal corresponding to the triggering requirement of the singlechip chip according to the corresponding relation between the preset triggering requirement and the voltage signal;
the trigger judging unit is used for enabling the singlechip control circuit to enter a working mode when the received trigger voltage signal exceeds a preset time threshold;
the signal receiving unit is used for receiving the voltage signal generated by the gravity sensing switch after entering the working mode;
the starting judging unit is used for judging and starting the horizontal red-blue driving circuit or the vertical red-blue driving circuit by utilizing the received voltage signal according to the starting requirement preset by the chip and generating a corresponding horizontal red-blue driving signal or a corresponding vertical red-blue driving signal;
the flicker driving control circuit includes:
the horizontal red and blue driving circuit is used for starting a horizontal LED lamp of the shoulder lightning lamp to work under the condition that the received signal is a horizontal red and blue driving signal;
and the vertical red and blue driving circuit is used for starting the vertical LED lamp of the shoulder flash electronic lamp to work under the condition that the received signal is the vertical red and blue driving signal.
In some realizable modes, the single chip microcomputer control circuit comprises STC15 series chips, a P-channel MOS tube Q4, a resistor R13 and a resistor 14, wherein the source electrode of the MOS tube is connected to a voltage input end of 4V, the drain electrode of the MOS tube is connected to VCC of the chips, the grid electrode of the MOS tube is connected with 5V input voltage through a resistor R3, and the grid electrode of the MOS tube is grounded through the resistor R4.
In some realizable modes, the horizontal red and blue driving circuit comprises a first switch tube Q2, a second switch tube Q3, a first LED lamp group and a first LED lamp group, wherein the first LED lamp group and the second LED lamp group are connected in parallel;
the negative electrode of the first LED lamp group is connected with the collector electrode of the first switching tube Q2 through a protection resistor R9, the base electrode of the first switching tube Q2 is connected with a resistor R7 and a resistor R8, the other end of the resistor R8 is connected with the emitter electrode of the first switching tube Q2 and then grounded, and the other end of the resistor R7 is connected with a comparison control end BLUE of the chip;
the negative electrode of the second LED lamp group is connected with the collector electrode of the first switching tube Q3 through a protection resistor R5, the base electrode of the second switching tube Q3 is connected with a resistor R4 and a resistor R3, the other end of the resistor R4 is connected with the emitter electrode of the first switching tube Q3 and then grounded, and the other end of the resistor R3 is connected to the RED interface end of the chip;
the vertical red and blue driving circuit comprises a third switching tube Q6, a fourth switching tube Q7, a third LED lamp group and a fourth LED lamp group, and the third LED lamp group and the fourth LED lamp group are connected in parallel;
the negative electrode of the third LED lamp group is connected with the collector electrode of the first switching tube Q6 through a protection resistor R21, the base electrode of the third switching tube Q6 is connected with a resistor R19 and a resistor R20, the other end of the resistor R19 is connected with the emitter electrode of the first switching tube Q6 and then grounded, and the other end of the resistor R19 is connected to a comparison control end BLUE1 of the chip;
the negative pole of fourth LED banks passes through protection resistance R26 to be connected first switch tube Q7's collecting electrode, and fourth switch tube Q7's base connecting resistance R23 and resistance R4, the ground after the emitter of resistance R24 other end and first switch tube Q7 is connected, and the other end of resistance R23 is connected to the RED1 interface end of chip.
In some possible implementations, the WHITE light lighting driving circuit further comprises a light emitting diode LED9, a resistor R17 and a resistor R18 which are connected in parallel, and a fifth switching tube Q5, wherein the positive electrode of the light emitting diode LED9 is connected to 4v voltage, the negative electrode of the light emitting diode LED9 is connected to the resistor R17, the other end of the resistor R17 is connected to the collector of the fifth switching tube Q5, the base of the fifth switching tube Q5 is connected to the resistor R15 and the resistor R16, the emitter of the fifth switching tube Q5 at the other end of the resistor R16 is connected to the ground, and the other end of the resistor R15 is connected to the WHITE interface end of the chip.
In some realizable modes, the novel energy-saving type electric power generation device further comprises a whistle buzzing driving circuit, wherein the whistle buzzing driving circuit comprises a triode Q1, a resistor R2 and a three-pin inductor J2, the output end of the chip circuit is connected with the resistor R1, the other end of the resistor R1 is connected to the base electrode of the triode Q1 and the resistor R2, the other end of the resistor R2 is connected with a transmitter of the triode Q1, and the collector electrode of the triode Q1 is connected to the buzzer through the three-pin inductor J2.
In some realizable modes, the system further comprises a vibration driver, wherein the vibration driver is used for generating a voltage signal according to vibration of the shoulder lightning lamp, and the singlechip control circuit is used for controlling the horizontal red-blue driving circuit or the vertical red-blue driving circuit to work according to the acquired voltage change times generated by the vibration driver in a preset time period.
In a second aspect, the present application provides a control circuit control method for starting a shoulder lightning lamp based on gravity sensing, comprising the steps of:
the single chip microcomputer control circuit generates a trigger voltage signal corresponding to the trigger requirement of the single chip microcomputer chip according to the corresponding relation between the preset trigger requirement and the voltage signal;
when the received trigger voltage signal exceeds a preset time threshold, the singlechip control circuit enters a working mode;
receiving a voltage signal generated by a gravity sensing switch after entering a working mode;
the gravity sensing switch outputs a low level or a high level according to the position change of the shoulder lightning lamp;
when the pin of the gravity sensing horizontal end of the singlechip chip is at a low level, the horizontal red and blue LED lamp group is controlled to flash;
when the pin of the gravity sensing vertical end of the singlechip chip is at a low level, the vertical red and blue LED lamp group is controlled to flash.
In some implementations, the method further includes:
the vibration driver generates an electric signal according to the vibration of the shoulder lightning lamp;
the single chip microcomputer control circuit controls the working state of the horizontal red and blue driving circuit or the vertical red and blue driving circuit according to the acquired change times of the electric signal generated by the vibration driver in the preset time period, so that the control circuit for starting the shoulder lightning lamp based on gravity induction is in a temporary on-off state.
The invention has the following benefits:
compared with the prior art, the invention adopts the singlechip control circuit and the flicker drive control circuit, the signal trigger unit generates the trigger voltage signal corresponding to the trigger requirement of the singlechip chip according to the corresponding relation between the preset trigger requirement and the voltage signal, the trigger judgment unit enters the working mode when the received trigger voltage signal exceeds the preset time threshold, the signal receiving unit receives the voltage signal generated by the gravity induction switch after entering the working mode, the starting judgment unit judges the received voltage signal by utilizing the preset starting requirement of the chip to start the horizontal red-blue drive circuit or the vertical red-blue drive circuit and generate the corresponding horizontal red-blue drive signal or the vertical red-blue drive signal, the flicker drive control circuit starts the horizontal LED lamp or the vertical LED lamp of the shoulder flash lamp to work according to the received signal, the problem of single working mode of the current shoulder flash lamp is solved, meanwhile, the shoulder flash lamp can rapidly switch the working mode of the shoulder lamp according to the angle of being worn on the shoulder of a human body, the emergency people do not need to search for processing under the condition of emergency burst, the safety and the market flash lamp is more intelligent and high-efficient, the safety of using the shoulder lamp is improved, the market is convenient to popularize and the flash lamp is convenient.
Drawings
FIG. 1 is a schematic diagram of the structure of a singlechip control circuit of a control circuit for starting a shoulder lightning lamp based on gravity induction;
FIG. 2 is a schematic circuit diagram of another embodiment of a control circuit for starting a shoulder lightning lamp based on gravity sensing according to the invention;
FIG. 3 is a schematic circuit diagram of a single-chip microcomputer control circuit of the shoulder lightning lamp based on gravity sensing;
FIG. 4 is a schematic circuit diagram of a horizontal red-blue drive circuit of the control circuit of the invention based on gravity-induced start shoulder lightning lamp;
FIG. 5 is a schematic circuit diagram of a vertical red-blue drive circuit of the control circuit of the invention based on gravity-induced start shoulder lightning lamp;
FIG. 6 is a schematic circuit diagram of a whistle buzzer driving circuit of the control circuit of the shoulder lightning lamp of the present invention based on gravity sensing activation;
FIG. 7 is a schematic circuit diagram of a white light illumination driving circuit of the control circuit of the gravity-induced starting shoulder lightning lamp of the present invention;
FIG. 8 is a circuit schematic of the power supply circuit of the control circuit of the invention based on gravity-induced start-up shoulder lightning lamps;
FIG. 9 is a schematic diagram of the external key of the SCM control circuit of the control circuit for starting the shoulder lightning lamp based on gravity sensing;
FIG. 10 is a schematic diagram of the control circuit of the invention for starting a shoulder lightning lamp based on gravity sensing;
FIG. 11 is a flow chart of a control method for starting a shoulder flashing electronic lamp based on gravity sensing according to the present invention;
FIG. 12 is a flow chart of another method for controlling the initiation of the shoulder flashing electronic lamp based on gravity sensing according to the present invention.
Detailed Description
In order to explain in detail the technical solutions adopted by the present invention to achieve the predetermined technical purposes, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and that technical means or technical features in the embodiments of the present invention may be replaced without inventive effort, and the present invention will be described in detail below with reference to the accompanying drawings in combination with the embodiments.
Example 1
FIG. 1 is a schematic diagram of a control circuit for starting a shoulder lightning lamp based on gravity sensing according to an embodiment of the invention; the invention provides a control circuit for starting a shoulder lightning lamp based on gravity induction, which comprises the following components:
a singlechip control circuit 1 and a flicker drive control circuit 2, wherein the singlechip control circuit comprises
The signal triggering unit 11 is configured to generate a trigger voltage signal corresponding to a trigger requirement of the singlechip chip according to a preset corresponding relation between the trigger requirement and the voltage signal;
the trigger judging unit 12 is used for enabling the singlechip control circuit to enter a working mode when the received trigger voltage signal exceeds a preset time threshold;
a signal receiving unit 13, configured to receive a voltage signal generated by the gravity sensing switch after entering into an operation mode;
the start judging unit 14 is configured to judge whether the received voltage signal starts the horizontal red-blue driving circuit or the vertical red-blue driving circuit according to a start requirement preset by the chip, and generate a corresponding horizontal red-blue driving signal or a corresponding vertical red-blue driving signal;
the flicker drive control circuit 2 includes:
a horizontal red-blue driving circuit 21 for starting the horizontal LED lamp of the shoulder lightning lamp to operate when the received signal is a horizontal red-blue driving signal;
the vertical red-blue driving circuit 22 is configured to start the vertical LED lamp of the shoulder flash electronic lamp to operate when the received signal is a vertical red-blue driving signal.
As shown in fig. 3, the single chip microcomputer control circuit 1 comprises a chip of STC15 series, a P-channel MOS tube Q4, a resistor R13 and a resistor 14, wherein the source electrode of the MOS tube is connected to a voltage input end of 4V, the drain electrode of the MOS tube is connected to VCC of the chip, and the grid electrode of the MOS tube is connected with 5V input voltage through a resistor R3;
as shown in FIG. 8, the power supply circuit is further included, the power supply chip U1 is TP4057-SOT23, the VCC pin of the power supply chip is grounded through the capacitor C3, the PROG pin of the power supply chip U1 is connected to the grounding end, the STDBY pin of the power supply chip is connected to the 5V voltage input end of the single chip microcomputer chip through the diode LED8 and the current resistor R11 and used for supplying power, the CHRG pin of the power supply chip is connected to the R11 through the diode LED7, the BAT pin of the power supply chip is connected to the 4V voltage input end of the single chip microcomputer chip, and meanwhile the BAT pin is grounded through the capacitor C2. Specifically, when the special charger 5V1A is connected to the DC base, the lithium battery charging chip TP4057 special for the chip U1 starts to work, the red indicator LED7 is turned on, the charging current is controlled by the resistor R12, the charging current is about 330mA, and when charging is completed, the green indicator LED8 is turned on, and the red indicator LED7 is turned off. In the charging process, the power supply of the singlechip chip U2 is automatically turned off through the P-channel MOS tube Q4, and all keys are invalid at the moment.
As shown in fig. 4, the horizontal red and blue driving circuit includes a first switching tube Q2, a second switching tube Q3, a first LED lamp group, and a first LED lamp group, where the first LED lamp group and the second LED lamp group are connected in parallel;
the negative electrode of the first LED lamp group is connected with the collector electrode of the first switching tube Q2 through a protection resistor R9, the base electrode of the first switching tube Q2 is connected with a resistor R7 and a resistor R8, the other end of the resistor R8 is connected with the emitter electrode of the first switching tube Q2 and then grounded, and the other end of the resistor R7 is connected with a comparison control end BLUE of the chip;
the negative electrode of the second LED lamp group is connected with the collector electrode of the first switching tube Q3 through a protection resistor R5, the base electrode of the second switching tube Q3 is connected with a resistor R4 and a resistor R3, the other end of the resistor R4 is connected with the emitter electrode of the first switching tube Q3 and then grounded, and the other end of the resistor R3 is connected to the RED interface end of the chip;
as shown in fig. 5, the vertical red and blue driving circuit includes a third switching tube Q6, a fourth switching tube Q7, a third LED lamp group, and a fourth LED lamp group, where the third LED lamp group and the fourth LED lamp group are connected in parallel;
the negative electrode of the third LED lamp group is connected with the collector electrode of the first switching tube Q6 through a protection resistor R21, the base electrode of the third switching tube Q6 is connected with a resistor R19 and a resistor R20, the other end of the resistor R19 is connected with the emitter electrode of the first switching tube Q6 and then grounded, and the other end of the resistor R19 is connected to a comparison control end BLUE1 of the chip;
the negative pole of fourth LED banks passes through protection resistance R26 to be connected first switch tube Q7's collecting electrode, and fourth switch tube Q7's base connecting resistance R23 and resistance R4, the ground after the emitter of resistance R24 other end and first switch tube Q7 connects, and the other end of resistance R23 is connected to the RED1 interface end of chip.
As shown in fig. 7, the WHITE light lighting driving circuit further includes a light emitting diode LED9, a resistor R17 and a resistor R18 connected in parallel, and a fifth switching tube Q5, where the positive electrode of the light emitting diode LED9 is connected to a 4v voltage, the negative electrode of the light emitting diode LED9 is connected to the resistor R17, the other end of the resistor R17 is connected to the collector of the fifth switching tube Q5, the base of the fifth switching tube Q5 is connected to the resistor R15 and the resistor R16, the emitter of the fifth switching tube Q5 at the other end of the resistor R16 is connected to the ground, and the other end of the resistor R15 is connected to the WHITE interface end of the chip.
As shown in fig. 6, the buzzing driving circuit in the figure is what is called herein, and the whistle buzzing driving circuit comprises a triode Q1, a resistor R2 and a three-pin inductor J2, wherein the output end of the chip circuit is connected with the resistor R1, the other end of the resistor R1 is connected to the base electrode of the triode Q1 and the resistor R2, the other end of the resistor R2 is connected with the transmitter of the triode Q1, and the collector electrode of the triode Q1 is connected to the buzzer through the three-pin inductor J2.
As shown in fig. 2, the electronic ballast further comprises a vibration driver, the vibration driver is used for generating a voltage signal according to the vibration of the shoulder lightning lamp, and the singlechip control circuit controls the horizontal red-blue driving circuit or the vertical red-blue driving circuit to work according to the acquired voltage change times generated by the vibration driver in a preset time period.
It should be noted that, as shown in fig. 10, the control circuit based on the gravity induction starting shoulder flash electronic lamp may include an electronic lamp housing and a stainless steel clip, the electronic lamp housing is fixedly connected with the stainless steel clip, the electronic lamp may be fixed by the stainless steel clip, a control circuit board is installed in the electronic lamp housing, a gravity induction switch forming a 45-degree included angle with the control circuit board is disposed on the control circuit board, a battery pack is also installed in the electronic lamp housing, a charging port is disposed on the outer surface of the electronic lamp housing, the battery pack, the USB charging port and the gravity induction switch are electrically connected with the control circuit board, an LED lamp set in a horizontal direction and an LED lamp set in a vertical direction are also disposed on the control circuit board, and the LED lamp set in the horizontal direction and the LED lamp set in the vertical direction are also electrically connected with the control circuit board. The control circuit board may employ a monolithic chip to form the control circuit.
As shown in fig. 10, the electronic lamp housing includes an upper cover and a lower cover that are arranged in a clamping manner, the lower cover includes a first lower cover and a second lower cover that are fixedly connected, the first lower cover is used for placing a control circuit board, the second lower cover is arranged as a circular groove, and the circular groove is used for placing a buzzer.
As shown in fig. 10, the vertical direction LED lamp groups are arranged at intervals along the length direction of the circuit control board, each LED lamp in the vertical direction LED lamp groups faces to the upper side of the control circuit board, the control circuit board is provided with a connecting plate arranged vertically to the control circuit board along the length direction of the control circuit board, the LED lamps in the horizontal direction LED lamp groups are arranged on the connecting plate at intervals, and the horizontal direction LED lamp groups face to the outer side of the electronic lamp housing.
Meanwhile, in order to increase the flickering effect of red light and blue light, the electronic lamp further comprises a red transparent cover and a blue transparent cover, the LED lamp group in the horizontal direction comprises a water left red LED lamp and a water right blue LED lamp, the LED lamp group in the vertical direction comprises a vertical left red LED lamp and a vertical right blue LED lamp, the red transparent cover covers the control circuit board and comprises a water left red LED lamp and a left half part of the vertical left red LED lamp so as to form a red light warning signal, and the blue transparent cover covers the control circuit board and comprises a water right blue LED lamp and a right half part of the vertical right blue LED lamp so as to form a blue warning signal.
Further, the red transparent cover and the blue transparent cover are clamped to form the warning cover of the electronic lamp, and the battery pack is arranged inside the warning cover and is compact in structure.
As shown in fig. 10, the gravity sensing switch adopts a gravity sensor, the gravity sensing switch 2 is a gravity sensor including metal beads, the metal pin end of the gravity sensor is positioned at one end part of the gravity sensor, which is not contacted with the control circuit board, when the shoulder lightning lamp is horizontally placed, the metal beads fall at one end part of the gravity sensor, which is contacted with the control circuit board 1, so that two metal pins at the pin end are not connected, and at the moment, the gravity sensor is disconnected, and the LED lamp group 5 in the horizontal direction is controlled to flash; when the inclination angle of the multifunctional shoulder lightning lamp is larger than 45 degrees, the metal beads roll down to the metal pin end of the gravity sensor, two metal pins at the pin end are enabled to be connected, the gravity sensor is turned on, and the LED lamp group 6 in the vertical direction is controlled to flash. Specifically, gravity sensor adopts mercury switch, adopts 45 degrees angle welding on the control circuit board of this application, under the start-up state, judges shoulder lamp position state by the singlechip chip, when the shoulder lamp level was placed, mercury switch disconnection, control horizontal direction red blue LED scintillation this moment, when the shoulder lamp slope, mercury switch on, the red blue LED scintillation of vertical direction this moment.
The control circuit board is also electrically connected with a vibration sensor 3, the vibration sensor adopts a metal shell, an elongated spring is arranged in the metal shell, and when the vibration state is achieved, the spring is in contact with the metal shell, and at the moment, a circuit is connected. Therefore, in the starting-up state, after the shoulder lamp is tapped by a hand to generate vibration, the circuit is switched on instantaneously, so that the singlechip chip generates interrupt response, and when the switching-on times meet the set requirement, the tapping is effective. Therefore, the working mode can be switched between flashing and closing by tapping the shoulder lamp. Specifically, the level of the pin P3.7 of the singlechip chip changes, the singlechip chip collects the change times of the level of the pin P3.7 of the singlechip in a period of time, and when the change times reach a set comparison value, the vibration is effective, and then the red and blue LED lamp sets switch the working state, namely, the working mode of turning off the red and blue LED lamp sets to flash or turning on the red and blue LED lamp sets to flash is indicated. The red and blue LED lamp set in this embodiment includes a horizontal LED lamp set and a vertical LED lamp set, for example, in the case that the shoulder lightning lamp blinks, a leader communicates with a user face to face, and at this time, the shoulder lightning lamp is only required to be beaten to make it be in a temporary off state, so that the shoulder lightning lamp cannot flash to eyes of other people, and after communication is completed, the shoulder lightning lamp is beaten to make it start. Therefore, the shoulder lightning lamp can be used for switching the working state quickly and conveniently, and a key is not required to be searched for processing under the emergency condition.
In this embodiment, the lighting circuit includes a white LED and a lighting switch key K1, the white LED and the lighting switch key are electrically connected to the control circuit board, the white LED is disposed at an end of the control circuit board, and the lighting switch key is disposed on a side surface of the electronic lamp housing. The key of K1 can be set according to the requirement, for example, the flashing frequency is set by controlling the number of times of the key K1 by a singlechip, which illustrates: the shoulder lightning lamp is in the state of starting, the first time short presses K1 key, and the scintillation frequency is 5HZ, and the second time short presses K1 key, and the scintillation frequency is 8HZ, and the third time short presses K3 key, and scintillation drive circuit closes, stops the scintillation, and the P1.5 pin of singlechip changes high level from low level at this moment, triode Q5 switches on, and white light LED9 lights.
In this embodiment, still include warning circuit, warning circuit includes warning on-off key K2 and bee calling organ, and warning on-off key K2, bee calling organ are connected with the control circuit board electricity, and illumination on-off key K2 sets up the side surface at the electron lamp casing. In any state, as long as the K2 key is pressed down, pin P3.2 of the singlechip chip changes from high level to low level, pin P1.1 drives triode Q1 to output square wave with frequency of 3000 Hz, and after boosting and amplifying through J2 three-pin inductor, LS1 buzzer is pushed to make a warning flute.
The working principle of the embodiment is that the shoulder lightning lamp is in a low power consumption state at ordinary times, the key pins P3.3 and P3.6 connected with the singlechip chip are both in a high level, the buzzer driving pin P1.1 is in a low level, the triode Q1 is not conducted, and the buzzer does not work; the pins P5.4, P5.5, P1.0, P1.4 and P1.5 of the horizontal red and blue driving circuit, the vertical red and blue driving circuit and the white light illumination driving circuit are all low-level, so that the switching triodes Q2, Q3, Q5, Q6 and Q7 are not conducted, and all LEDs are in an extinction state;
when the K1 key is pressed, the level of the interrupt pin P3.3 of the singlechip U2 is changed from high level to low level, and after the singlechip U2 is awakened, sampling of the low level holding time is started, and the sampling time can be set according to requirements, for example, when the time is set to be more than 3 seconds, the starting-up is effective. At this time, if the gravity sensing pin P3.2 of the single chip microcomputer U2 is at a low level, the two pins P5.4 and P5.5 of the single chip microcomputer U2 output square waves, the switching triodes Q2 and Q3 are conducted, and the horizontal red and blue LED lamp group is driven to start working, otherwise, if the gravity sensing pin P3.2 of the single chip microcomputer U2 is at a high level, the two pins P1.0 and P1.4 output square waves, the triodes Q6 and Q7 are conducted, the vertical red and blue LED lamp group is driven to start working, the flicker frequency can be set to be 3Hz, and after the K1 key is released, the interrupt pin P3.3 returns to a high level state.
In a second aspect, the present application provides a control circuit control method for starting a shoulder lightning lamp based on gravity sensing, comprising the steps of:
s1, a single chip microcomputer control circuit generates a trigger voltage signal corresponding to a trigger requirement of a single chip microcomputer chip according to a preset corresponding relation between the trigger requirement and the voltage signal;
s2, when the received trigger voltage signal exceeds a preset time threshold, the singlechip control circuit enters a working mode;
s3, receiving a voltage signal generated by the gravity sensing switch after entering a working mode;
s4, outputting a low level or a high level by the gravity sensing switch according to the position change of the shoulder lightning lamp;
s5, when the pin of the gravity sensing horizontal end of the singlechip chip is at a low level, controlling the horizontal red and blue LED lamp group to flash;
s6, when the pin of the gravity sensing vertical end of the singlechip chip is at a low level, the vertical red and blue LED lamp group is controlled to flash.
Further, the method also comprises the following steps:
A1. the vibration driver generates an electric signal according to the vibration of the shoulder lightning lamp;
A2. the single chip microcomputer control circuit controls the working state of the horizontal red and blue driving circuit or the vertical red and blue driving circuit according to the acquired change times of the electric signal generated by the vibration driver in the preset time period, so that the control circuit for starting the shoulder lightning lamp based on gravity induction is in a temporary on-off state. The vibration sensor adopts a metal shell, an elongated spring is arranged in the metal shell, and when the vibration sensor vibrates, the spring shakes to contact with the outer metal wall to complete a circuit. Therefore, in the starting-up state, after the shoulder lamp is tapped by a hand to generate vibration, the circuit is switched on instantaneously, so that the singlechip chip generates interrupt response, and when the switching-on times meet the set requirement, the tapping is effective. Therefore, the working mode can be switched between flashing and closing by tapping the shoulder lamp.
The singlechip control circuit adopts a singlechip chip of STC15W404AS, the singlechip chip is electrically connected with a function key K1, and the control process of the singlechip chip further comprises the following steps:
the singlechip chip samples the trigger voltage signal, and when the sampled trigger voltage signal is low level and reaches the preset sampling time, the electronic lamp is started, the starting is effective, and the working state is entered;
when the singlechip chip samples that a pin P3.2 input by the gravity sensing switch is at a low level, pins P5.4 and P5.5 at the output end are controlled to output square waves, and a horizontal red and blue driving circuit works, wherein the flicker frequency of an LED lamp group in the horizontal red and blue driving circuit is 3Hz; when the singlechip chip samples that a pin P3.2 input by the gravity sensing switch is at a high level, pins P1.4 and P1.0 at an output end are controlled to output square waves, and a vertical red and blue driving circuit works, wherein the flicker frequency of an LED lamp group in the vertical red and blue driving circuit is 3Hz;
preferably, when a trigger signal that the key K1 is pressed for the first time is detected, the flicker frequency is switched to 5HZ;
preferably, when a trigger signal of the key K1 being pressed for the second time is detected, the flicker frequency is switched to 8HZ;
preferably, when a trigger signal of the key K1 is detected to be pressed for the third time, the flicker driving circuit is controlled to be turned off, and meanwhile, the white light illumination output pin P1.5 of the singlechip is controlled to be changed from low level to high level, and the white light illumination driving circuit is controlled to be turned off.
In addition, in any working mode of the electronic lamp, as long as the K2 key is pressed, the singlechip samples an interrupt signal, the gravity sensing output pin P3.2 of the electronic lamp is controlled to be changed from a high level to a low level, the buzzer driving pin P1.1 drives the triode Q1 to output 3000 Hz square waves, and after the boosting and amplifying of the three-pin inductor J2, the LS1 buzzer is pushed to make a warning flute sound.
It should be noted that, in the drawings or the description, implementations which are not drawn or described are implementations known to those of ordinary skill in the art, and are not described in detail. Furthermore, the above definitions of the elements and methods are not limited to the specific structures, shapes or modes mentioned in the embodiments.
It should also be noted that examples of parameters that include particular values may be provided herein, but that these parameters need not be exactly equal to the corresponding values, but may approximate the corresponding values within acceptable error margins or design constraints. Furthermore, unless specifically described or steps must occur in sequence, the order of the above steps is not limited to the list above and may be changed or rearranged according to the desired design. In addition, the above embodiments may be mixed with each other or other embodiments based on design and reliability, i.e. the technical features of the different embodiments may be freely combined to form more embodiments.
While the invention has been described in terms of what are presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention as defined by the appended claims.
Claims (1)
1. The control method of the control circuit for starting the shoulder lightning lamp based on gravity induction is characterized by comprising the following steps of: the control circuit adopted comprises:
the single-chip microcomputer control circuit (1) and the flicker driving control circuit (2), wherein the single-chip microcomputer control circuit (1) comprises
The signal triggering unit (11) is used for generating a triggering voltage signal corresponding to the triggering requirement of the singlechip chip according to the corresponding relation between the preset triggering requirement and the voltage signal;
the trigger judging unit (12) is used for enabling the singlechip control circuit to enter a working mode when the received trigger voltage signal exceeds a preset time threshold;
the signal receiving unit (13) is used for receiving a voltage signal generated by the gravity sensing switch after entering the working mode;
the starting judging unit (14) is used for judging and starting the horizontal red-blue driving circuit or the vertical red-blue driving circuit by utilizing the starting requirement preset by the chip from the received voltage signal and generating a corresponding horizontal red-blue driving signal or a corresponding vertical red-blue driving signal;
the flicker drive control circuit (2) includes:
the horizontal red and blue driving circuit (21) is used for starting a horizontal LED lamp of the shoulder lightning lamp to work under the condition that the received signal is a horizontal red and blue driving signal;
the vertical red and blue driving circuit (22) is used for starting the vertical LED lamp of the shoulder flash electronic lamp to work under the condition that the received signal is a vertical red and blue driving signal; the SCM control circuit comprises STC15 series chips, a P-channel MOS tube Q4, a resistor R13 and a resistor 14, wherein the source electrode of the MOS tube is connected to a voltage input end of 4V, the drain electrode of the MOS tube is connected to VCC of the chips, the grid electrode of the MOS tube is connected with 5V input voltage through the resistor R13, and the grid electrode of the MOS tube is grounded through the resistor R14; the horizontal red and blue driving circuit comprises a first switching tube Q2, a second switching tube Q3, a first LED lamp group and a second LED lamp group, and the first LED lamp group and the second LED lamp group are connected in parallel;
the negative electrode of the first LED lamp group is connected with the collector electrode of the first switching tube Q2 through a protection resistor R9, the base electrode of the first switching tube Q2 is connected with a resistor R7 and a resistor R8, the other end of the resistor R8 is connected with the emitter electrode of the first switching tube Q2 and then grounded, and the other end of the resistor R7 is connected with a comparison control end BLUE of the chip;
the negative electrode of the second LED lamp group is connected with the collector electrode of the second switching tube Q3 through a protection resistor R5, the base electrode of the second switching tube Q3 is connected with a resistor R4 and a resistor R3, the other end of the resistor R4 is connected with the emitter electrode of the second switching tube Q3 and then grounded, and the other end of the resistor R3 is connected to the RED interface end of the chip;
the vertical red and blue driving circuit comprises a third switching tube Q6, a fourth switching tube Q7, a third LED lamp group and a fourth LED lamp group, and the third LED lamp group and the fourth LED lamp group are connected in parallel;
the negative electrode of the third LED lamp group is connected with the collector electrode of the third switching tube Q6 through a protection resistor R21, the base electrode of the third switching tube Q6 is connected with a resistor R19 and a resistor R20, the other end of the resistor R20 is connected with the emitter electrode of the third switching tube Q6 and then grounded, and the other end of the resistor R19 is connected to a comparison control end BLUE1 of the chip;
the negative electrode of the fourth LED lamp group is connected with the collector electrode of the fourth switching tube Q7 through a protection resistor R26, the base electrode of the fourth switching tube Q7 is connected with a resistor R23 and a resistor R24, the other end of the resistor R24 is connected with the emitter electrode of the fourth switching tube Q7 and then grounded, and the other end of the resistor R23 is connected to the RED1 interface end of the chip;
the control method specifically comprises the following steps:
the single chip microcomputer control circuit generates a trigger voltage signal corresponding to the trigger requirement of the single chip microcomputer chip according to the corresponding relation between the preset trigger requirement and the voltage signal;
when the received trigger voltage signal exceeds a preset time threshold, the singlechip control circuit enters a working mode;
receiving a voltage signal generated by a gravity sensing switch after entering a working mode;
the gravity sensing switch outputs a low level or a high level according to the position change of the shoulder lightning lamp;
when the pin of the gravity sensing horizontal end of the singlechip chip is at a low level, the horizontal red and blue LED lamp group is controlled to flash;
when the pin of the gravity sensing vertical end of the singlechip chip is at a high level, the vertical red and blue LED lamp group is controlled to flash;
the control method further includes:
generating an electrical signal according to the shoulder lightning lamp vibration;
the single chip microcomputer control circuit controls the working state of the horizontal red and blue driving circuit or the vertical red and blue driving circuit according to the acquired change times of the electric signal generated by the vibration driver in the preset time period, so that the control circuit for starting the shoulder lightning lamp based on gravity induction is in a temporary on-off state;
the singlechip chip samples the trigger voltage signal, and when the sampled trigger voltage signal is low level and reaches the preset sampling time, the electronic lamp is started, the starting is effective, and the working state is entered;
when the singlechip chip samples that a pin P3.2 input by the gravity sensing switch is at a low level, pins P5.4 and P5.5 at the output end are controlled to output square waves, and a horizontal red and blue driving circuit works, wherein the flicker frequency of an LED lamp group in the horizontal red and blue driving circuit is 3Hz; when the singlechip chip samples that a pin P3.2 input by the gravity sensing switch is at a high level, pins P1.4 and P1.0 at an output end are controlled to output square waves, and a vertical red and blue driving circuit works, wherein the flicker frequency of an LED lamp group in the vertical red and blue driving circuit is 3Hz;
when a trigger signal of the key K1 pressed for the first time is detected, switching the flicker frequency to be 5HZ;
when a trigger signal of the key K1 pressed for the second time is detected, the flicker frequency is switched to 8HZ;
when a trigger signal of the key K1 pressed for the third time is detected, the flicker driving circuit is controlled to be turned off, meanwhile, the white light illumination output pin P1.5 of the singlechip is controlled to be changed from low level to high level, the triode Q5 is conducted, and the white light illumination driving circuit is controlled to work.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211154419.3A CN115250556B (en) | 2022-09-22 | 2022-09-22 | Control circuit and control method for starting shoulder lightning lamp based on gravity sensing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211154419.3A CN115250556B (en) | 2022-09-22 | 2022-09-22 | Control circuit and control method for starting shoulder lightning lamp based on gravity sensing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115250556A CN115250556A (en) | 2022-10-28 |
CN115250556B true CN115250556B (en) | 2023-06-27 |
Family
ID=83699273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211154419.3A Active CN115250556B (en) | 2022-09-22 | 2022-09-22 | Control circuit and control method for starting shoulder lightning lamp based on gravity sensing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115250556B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204157098U (en) * | 2014-06-23 | 2015-02-11 | 何业龙 | A kind of multi-mode LED cascade control circuit and LED string |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104633472B (en) * | 2015-01-28 | 2018-02-23 | 潘卫江 | Multi-operation mode shoulder lamp |
CN206097352U (en) * | 2016-10-14 | 2017-04-12 | 徐飞 | Balcony burglar alarm |
CN207486516U (en) * | 2017-09-29 | 2018-06-12 | 浙江信安智能科技有限公司 | The police shoulder lamp of Vibration induction formula |
CN207471424U (en) * | 2017-11-27 | 2018-06-08 | 深圳市鼎冠恒通电子科技有限公司 | A kind of police shoulder lamp |
CN216844611U (en) * | 2021-12-31 | 2022-06-28 | 上海路凯交通安全设施有限公司 | Novel multifunctional waterproof shoulder flashing lamp with gravity sensing function |
CN217467768U (en) * | 2022-05-11 | 2022-09-20 | 浙江信安智能科技有限公司 | Linkage warning system |
-
2022
- 2022-09-22 CN CN202211154419.3A patent/CN115250556B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204157098U (en) * | 2014-06-23 | 2015-02-11 | 何业龙 | A kind of multi-mode LED cascade control circuit and LED string |
Also Published As
Publication number | Publication date |
---|---|
CN115250556A (en) | 2022-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204651906U (en) | A kind of automobile emergency starts battery safety folder | |
CN115250556B (en) | Control circuit and control method for starting shoulder lightning lamp based on gravity sensing | |
CN202058283U (en) | LED illumination mine-used safety cap circuit system integrated with gas alarm function | |
CN212084424U (en) | Integrated simulated explosion training device | |
CN110178829A (en) | A kind of automatic electricity getting Intelligent bird expelling device | |
CN206365080U (en) | Solar street light infrared remote control system | |
CN113852262A (en) | Automobile starting power supply with voice prompt function and voice broadcast method thereof | |
CN109347172B (en) | Portable starting power supply for vehicle | |
CN202652601U (en) | Remote-control-type emergency light | |
CN205961515U (en) | Emergency light based on speech control | |
CN209088580U (en) | A kind of Portable vehicle startup power supply | |
CN209587706U (en) | A kind of lantern with warning function | |
CN212997972U (en) | LED lamp appearance that moults | |
CN113966052A (en) | Intelligent control circuit | |
CN222321098U (en) | Control circuit of fan motor and fan | |
CN216904323U (en) | Automobile starting power supply with voice prompt function | |
CN205961526U (en) | Emergency illumination controller | |
CN201047967Y (en) | Multifunctional solar flash warner | |
CN212869852U (en) | Lighter with blowing and shaking double ignition modes | |
CN206237173U (en) | Automobile batteries charger | |
CN206585794U (en) | A kind of multifunctional intellectual is met an urgent need bulb lamp | |
CN220043716U (en) | Lamp control circuit and emergency lamp | |
CN209126671U (en) | A kind of Portable vehicle startup power supply | |
CN2568928Y (en) | Warning, lighting emergency lamp | |
CN205610991U (en) | Outdoor energy -conserving lighting control system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |