The content of the invention
To solve above-mentioned technical problem, the present invention provides a kind of intelligent and portable lamp, for solving existing portable lamp function list
One and inconvenient problem with use.
What the present invention was realized in:
A kind of intelligent and portable lamp, including power module, light source driver module and control input module;
The power module includes built-in lithium battery and the charging circuit being connected with lithium battery;
Light source driver module includes PWM light modulators, and the output end of PWM light modulators is connected to the light source of portable lamp, and PWM light modulators are defeated
Go out the driving current that the adjustable square-wave signal of dutycycle adjusts light source;
Control input module includes touch dimmer unit, light sensation input block and outage detection unit;
Light sensation input block includes light-sensitive device, for detecting ambient light by bright when dark cataclysm when light-sensitive device, control
Portable lamp is lighted and extinguished after postponing a scheduled time;
Whether outage detection unit includes being arranged at Current Mutual Inductance device on charging circuit, for detecting portable lamp when charging
Have a power failure, and portable lamp is lighted after power failure;
Touch dimmer unit include touch control detection circuit, for according to touch control detection electric circuit inspection to press signal adjustment light source
Brightness.
Further, touch dimmer unit according to touch control detection electric circuit inspection to press signal adjust light source brightness bag
Include step in detail below:
When tactile depressing action is detected, the most dark value for controlling portable lamp to set is lighted, and by most secretly to most bright gradual adjustment
The brightness of light source;
Judge whether light source has reached the most bright value of setting or detected tactile depressing action, if detecting tactile depressing action, by light source
Brightness settings are present intensity and preserve present intensity adjustment direction;If be not detected by tactile depressing action and light-source brightness adjusted to
Most bright value, then be set as light-source brightness most bright value and keep, and changes brightness adjustment direction;
When light-source brightness is most bright value, judge whether to detect tactile depressing action, if so, then by most bright to most secretly gradually adjusting light
The brightness in source;
If detecting tactile depressing action during light-source brightness is adjusted, light-source brightness is set as into present intensity and preserves current bright
Degree adjustment direction;If being not detected by tactile depressing action and light-source brightness having been adjusted to being most secretly worth, light-source brightness is set as most dark
Value simultaneously keeps;
When light-source brightness is to be most secretly worth, judge whether to detect tactile depressing action again, if so, then control light source and extinguish;
When light source is in illuminating state, if detecting double tactile depressing action, control light source is gradually dimmed until putting out
Go out.
Further, control input module also includes putting out input block, input block is put out including electric capacity miaow, by electricity
Hold miaow detection it is extraneous put out action, and detect put out action after control light source and extinguish.
Further, also including rope, the two ends of rope are provided with movable button, and the top of portable lamp both sides is provided with and carries
Ear, rope is removably connected in lifting ear by the movable button at two ends.
Further, the touch control detection circuit includes pressure-sensitive device, and by pressure-sensitive device the tactile depressing action of user is detected.
Further, touch control detection circuit includes being arranged at the first microswitch, second microswitch of portable lamp bottom
Pin is flexibly supported with two or more;
Distance of the contact of the first microswitch and the second microswitch away from placed side is less than the springing stroke of resilient support pin, and
And first microswitch height of the contact away from placed side more than the second microswitch height of the contact away from placed side;
When the change of the second microswitch output state is only detected, produce corresponding first and press input signal, examine when simultaneously
When measuring the first microswitch and the change of the second microswitch output state, generation is different from the second of the first decompression input signal
Press input signal.
Further, touch dimmer unit according to touch control detection electric circuit inspection to press signal adjust light source brightness bag
Include step in detail below:
When detecting first and pressing input signal, the most dark value for controlling portable lamp to set is lighted, and by most secretly to it is most bright by
The brightness of adjustment light source gradually;
Judge whether light source has reached the most bright value of setting or detected first again and press input signal, if detect first touching
Pressure input signal, then be set as light-source brightness present intensity and preserve present intensity adjustment direction;If being not detected by first to touch
Press input signal and light-source brightness has been adjusted to most bright value, then light-source brightness is set as into most bright value and is kept, and change bright
Degree adjustment direction;
Judge whether that detecting first again presses input signal, if so, then by the brightness adjustment direction trigger light source again
Brightness gradual change is adjusted;
Also detect whether that detecting second presses input signal in dimming process, if so, then gradually dim until extinguishing.
Further, the charging circuit includes the wired charging circuits of USB and wireless charging circuit.
Further, the bottom of portable lamp is provided with for detecting the travel switch whether portable lamp is raised, the stroke
The movable contact of switch arranges contacted with placed side down.
Further, the touch control detection circuit includes being arranged at the touch-switch of portable lamp bottom and resilient support pin,
Distance of the touch-switch contact away from light fixture placed side is become less than the stroke of flexible feet by the output level of detection touch-switch
Change the tactile depressing action of detection user.
Beneficial effects of the present invention are:
Intelligent and portable lamp of the present invention can significantly improve the ease for use of portable lamp, and lamplight brightness is adjustable, and lamp brightness is to pass through
PWM light modulators are controlled, it is to avoid the stimulation to glasses is directly lighted under dark situations, and with outage detection unit and touch-control
Dimming unit, can light when power is off automatically, be easy to routine use, and touch dimmer is according to touching that touch control detection electric circuit inspection is arrived
Pressure signal adjusts the brightness of light source, makes dimming process become more convenient.
Specific embodiment
To describe technology contents of the invention, structural feature in detail, purpose and effect being realized, below in conjunction with embodiment
And coordinate accompanying drawing to be explained in detail.
Fig. 1 is referred to, is a kind of module frame chart of intelligent and portable lamp of embodiment of the present invention, this intelligent and portable lamp includes electricity
Source module, light source driver module and control input module.
Power module includes that built-in polymerization claims battery(That is lithium battery)And the charging circuit that is connected with polymer battery and
Micro USB charging inlets.It has been that charged state indicates to use in charging process in the case of fully charged, has controlled portable
Lamp glimmer, and control portable lamp is extinguished when being full of, portable lamp can be used normally more than 12 hours.For convenience of charging, the electricity
Source module also includes wireless charging circuit, and including being arranged at the wireless charging inductance being connected inside portable lamp and with lithium battery is built in
Answer coil, and the wireless charging base being adapted to wireless charging induction coil.Wireless charging base is connected to into civil power, and will
Portable lamp carries out wireless charging by being positioned on wireless charging base.
Light source driver module is used to drive portable lamp to make it light, wherein, with LED as light source, the light source drives portable lamp
Dynamic model block includes PWM light modulators, and by adjusting dutycycle the driving current of light source is adjusted, can so as to realize that light-source brightness is stepless
Tune is continuously light-adjustable.
The control input module is used to receive extraneous input signal to adjust and control portable lamp.The light source drives mould
Block includes touch dimmer unit, light sensation input block, puts out input block and outage detection unit.Light sensation input block includes light
Sensing device, for detecting ambient light by bright when dark cataclysm when light-sensitive device, control portable lamp is lighted and postpones one and makes a reservation for
Extinguish after time;
Outage detection unit includes Current Mutual Inductance device, in light fixture charging process(Charge including USB and wireless charging)If inspection
Unexpected power-off is measured, is then controlled light fixture and is lighted.Outage detection unit can effectively solving find in dark surrounds in unexpected power-off
The problem of light fixture inconvenience.
Input block is put out including electric capacity miaow, detects that user's puts out action by electric capacity miaow, when user is to electric capacity miaow position
When putting or nearby blowing(The function of candle is put out in simulation), airflow signal is converted into electric signal by electric capacity miaow, when controller detection
To the electric signal of electric capacity miaow output, then it is assumed that detect and put out action, then control light fixture and extinguish, so as to realize blowing for conventional lamp
Put out function.
Light sensation input block includes light sensitive device such as photo resistance etc., when the brightness for detecting environment occurs by bright to secretly suddenly
During change, automatically control portable lamp and light 2 ~ 5 minutes, light sensation input block can solve to also need to facing for short time after switching off the headlamp
The problem of Shi Zhaoming.The light sensation input block is particularly well-suited to be used in evening room, when indoor key lighting light fixture is closed, room
Interior light is suddenly dimmed, and exists under normal circumstances, the illumination of a bit of time is needed also remain for after turning off the light and is used for the needs such as go to bed.
This portable lamp detect light it is rapid dark when(When mainly turning off the light), control portable lamp and light and put out after postponing a scheduled time
Go out, consequently facilitating the illumination of the short time after indoor occupant is turned off the light needs.
Touch dimmer unit includes touch control detection circuit, and touch control detection circuit is provided with and is arranged at the fine motion of light fixture bottom and opens
Close, for according to touch control detection electric circuit inspection to press signal adjust light source brightness.
As shown in Fig. 2 for the structural representation of portable lamp in an embodiment, the portable lamp includes base 9 and arranges
Lampshade 1 on base 9, base 9 and lampshade 1 are fixed together or by together with ultrasonic bonding connection by bolt 5, lamp
Circuit board 3 is provided with cover 1, the Micro USB charge ports, microswitch and touch-switch is provided with the electroplax plate 3,
Wherein, the contact of the microswitch and touch-switch exposes to the lower surface of base 9, is additionally provided with the lower surface of base 9
Resilient support pin shown in Fig. 4 and Fig. 5.
Fig. 3 is referred to, is the light modulation flow chart of this portable lamp, soft-touch control is provided with light fixture(I.e. touch control detection is electric
Road), soft-touch control can be resistive touch switch or capacitor type touch switch, and when human contact's soft-touch control phase can be exported
The low and high level change answered, this portable lamp has detected whether human body by soft-touch control(Mainly finger)Touch input, and
Touch input according to detecting is dimmed, specially:
Light fixture is touched in inspection after electricity on light fixture, and light fixture just starts gradually to brighten from minimum brightness, if light again in the process for brightening
Tactile light fixture, light fixture just selectes present intensity and is maintained at a little brightness, if not touching light fixture again during brightening, light fixture is just
Gradually adjust to high-high brightness and be maintained at high-high brightness;
And when touching after lamp brightness is stable, dimmer procedure can be again triggered, if present intensity is high-high brightness, from maximum
Brightness is gradually dimmed;If now brightness is minimum brightness, gradually lighten from low to high;If light fixture present intensity is non-most light
Degree then adjusts brightness nor minimum brightness by light fixture dimming mode before this, is even before this from dark toward most bright direction tune
It is whole, then continue to lighten, if being before this, from bright toward most dark direction light modulation, to continue to dim;If touching lamp again in dimming process
Tool, then select present intensity and be maintained at a little brightness, otherwise just adjusts to most bright or most dark state and keeps.
Regardless of whether light fixture is in dimming process or hold mode, when detect it is double touch light fixture and then assert put out
Modulating signal, now gradually dimming lamp until extinguish.And in other embodiments, can also be by pressure sensor or pressure-sensitive electricity
Hinder to detect that user's touches signal.
This dimming mode is arranged by internal processes and realizes stepless dimming, during by simply touching with different waits
Between, it is possible to achieve stepless dimming, greatly improve the experience of user.And light fixture from most secretly start start gradually brighten,
General light fixture is avoided directly to light under dark surrounds to the light stimulus of eyes.
As shown in figure 4, in one embodiment, the touch control detection circuit is be arranged at portable lamp base lower surface light
Switch 7 and resilient support pin 13 are touched, placement leg of the pin 13 for portable lamp is flexibly supported, so that portable lamp bottom and placed side
Variable, when portable lamp is pressed, bottom just diminishes with the gap of placed side, during release, just recovers normal clearance, and institute
Stroke of distance of the touch-switch contact away from light fixture placed side less than flexible feet is stated, therefore, by detecting the defeated of touch-switch
Go out the tactile depressing action of level change detection user.Therefore light modulation is achieved that by pressing any one position of portable lamp downwards
Function.Compared with using resistive touch switch or capacitor type touch switch, the embodiment is using touch-switch and elasticity
Spike realizes that tactile depressing action is detected, is not only convenient for operation, and any one position that portable lamp is pressed when pressing achieves that light modulation
Function, and resistive touch switch or capacitor type touch switch can only touch specific test position, also, touch out
Close and flexibly support pin and there is the output of longer service life, lower production cost and more reliable detection.
As shown in figure 5, in another embodiment, the circuit part of the touch dimmer unit includes being arranged at portable lamp
The two or more resilient support pin 13 of bottom and the microswitch 8 of two, resilient support pin 13 makes portable lamp bottom far from placed side
Certain interval, and two microswitches 8 are arranged on the differing heights of portable lamp bottom, when portable lamp is pressed downwards, light fixture
The road clearance of bottom changes, and in free state, two microswitches are all to disconnect, when touch touch portable lamp when, compared with
The microswitch of the microswitch conducting higher point of low spot is remained open, when the lower pressure for pressing portable lamp is more than certain dynamics
When, the ground clearance of the deformation more than higher point microswitch of pin is flexibly supported, therefore two microswitches are both turned on.Therefore it is logical
Cross detection two microswitches state can detect the pressure for pressing portable lamp, controlled based on pressure is pressed light fixture open the light and
Light modulation.
Fig. 6 is referred to, is the circuit connection diagram of touch-switch and microswitch in an embodiment.Wherein, S0 is
Touch-switch, S1 is microswitch 1, and S2 is microswitch 2, and PB0 to PB2 is the network label in circuit diagram, and PB0 to PB2 divides
The different pins of controller are not connected to, the controller can be the microprocessors such as single-chip microcomputer.Controller is according to different pins
The change of incoming level be triggered judging which switch, so as to perform corresponding operation.
Microswitch S1 and S2 are, with small contact separation and snap-action mechanism, to be carried out with the stroke of regulation and the power of regulation
The contact mechanism of switch motion, is covered with shell, a kind of switch for having drive rod outside it, because the contact spacing ratio of its switch
Less, therefore named microswitch is called sensitive switch.
Touch-switch S0(Also known as limit switch)One kind, be a kind of conventional small current master control electrical apparatus.Using manufacturing machine
The collision of tool moving component makes its contact action to realize connecting or disjunction control circuit, reaches certain control purpose.Generally,
This kind of switch is used to the position of limit mechanical motion or stroke, movable machinery is automatically stopped by certain position or stroke, instead
To motion, variable motion or automatic back and forth movement etc..In this embodiment the touch-switch is arranged in light fixture support feet,
For normally closed switch, when light fixture is lifted, touch-switch no longer stress, microswitch is opened, and circuit board receives signal, is started
Light fixture lights program.
In this embodiment, the portable lamp is dimmed by the signal of soft-touch control, but according to above-mentioned micro-
Controlling light modulation, the installation of microswitch shows position as shown in figure 5, wherein to the output signal of dynamic switch, the first microswitch with
Distance of the contact of the second microswitch away from placed side less than resilient support pin springing stroke, and the first microswitch touch
Height of the head away from placed side is more than height of the contact of the second microswitch away from placed side;
When the change of the second microswitch output state is only detected, produce corresponding first and press input signal, examine when simultaneously
When measuring the first microswitch and the change of the second microswitch output state, generation is different from the second of the first decompression input signal
Press input signal.
When detecting first and pressing input signal, the most dark value for controlling portable lamp to set is lighted, and by most secretly to most
The brightness of bright gradual adjustment light source;
Judge whether light source has reached the most bright value of setting or detected first again and press input signal, if detect first touching
Pressure input signal, then be set as light-source brightness present intensity and preserve present intensity adjustment direction;If being not detected by first to touch
Press input signal and light-source brightness has been adjusted to most bright value, then light-source brightness is set as into most bright value and is kept, and change bright
Degree adjustment direction;
Judge whether that detecting first again presses input signal, if so, then by the brightness adjustment direction trigger light source again
Brightness gradual change is adjusted;
Also detect whether that detecting second presses input signal in dimming process, if so, then gradually dim until extinguishing.
The input that presses of user is detected in present embodiment by flexibly supporting pin and microswitch, and decompression is input into
It is divided into and touches and more than the tactile depressing action of certain dynamics, so as to realizes the light modulation and other controls of light fixture.With above-mentioned dimming mode
Identical, present embodiment carries out dimming by microswitch be capable of achieving simultaneously stepless dimming, and the hardware of this light adjusting circuit into
Originally it is cheaper.
In one embodiment, the portable lamp is additionally provided with rope, and the both sides or top of light fixture are provided with lifting ear,
The two ends of rope are respectively arranged with the movable button being adapted to lifting ear, and rope is removably connected to the lifting ear of light fixture by movable button.
Therefore, the portable lamp is not only convenient for guiding and supporting, while be hung on the fixed rope such as long branch when being also convenient for using out of doors to be not easy to hang
Where extension.
Further, as shown in figure 4, being provided with for detecting that the stroke whether portable lamp is raised is opened in the bottom of portable lamp
12 are closed, the movable contact of the travel switch 12 arranges contacted with placed side down, travel switch 12 is automatic for controlling light fixture
Light.When light fixture is placed on desktop, travel switch stress closure, when light fixture is lifted by rope, the activity of Cheng Kaiguan is touched
Head leaves placed side, and travel switch disconnects, and output control signal lights portable lamp, realizes hand lamp from moving point to light source driver module
Bright function(Put forward i.e. bright function).
In sum, intelligent and portable modulated structure of the present invention is simple, but feature richness and is easy to use, not only with brightness without
Level adjustable function, can meet the lighting requirement of different scenes, realize the multiplex effect of a lamp;And this lamp light-regulating is convenient, passes through
To touch be capable of achieving and lighten, dim, open and extinguish function, by flexibly support pin and two microswitches it is detectable touch and
More than certain dynamics touch, therefore multiple touch control functions are capable of achieving, enormously simplify the hardware configuration of light fixture control section,
Hardware cost is reduced, while also various input functions are provided for light fixture, to realize that several functions provide powerful hardware
Support.
Embodiments of the invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every to be said using the present invention
Equivalent structure or equivalent flow conversion that bright book and accompanying drawing content are made, or directly or indirectly it is used in other related technology necks
Domain, is included within the scope of the present invention.