Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of intelligent and portable lamp, for solving existing portable lamp function list
One and inconvenient problem with use.
The present invention is implemented as follows:
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 that connect with lithium battery;
Light source driver module includes PWM light modulator, and the output end of PWM light modulator is connected to the light source of portable lamp, PWM light modulation
The driving current of the adjustable square-wave signal adjustment light source of device output duty cycle;
Controlling input module includes touch dimmer unit, light sensation input unit and outage detection unit;
Light sensation input unit includes light-sensitive device, for when light-sensitive device detects ambient light cataclysm from bright to dark,
Control portable lamp is lighted and is extinguished after postponing a predetermined time;
Outage detection unit includes the Current Mutual Inductance device being set on charging circuit, for detecting portable lamp in charging
Whether have a power failure, and lights portable lamp after power failure;
Touch dimmer unit includes touch control detection circuit, presses signal adjustment for what is detected according to touch control detection circuit
The brightness of light source.
Further, the brightness packet for pressing signal adjustment light source that touch dimmer unit is detected according to touch control detection circuit
Include step in detail below:
It when detecting tactile depressing action, controls portable lamp and is lighted with the most dark value set, and by most secretly to most bright gradual
Adjust the brightness of light source;
Judge whether light source arrived the most bright value of setting or detect tactile depressing action, it, will if detecting tactile depressing action
Light-source brightness is set as present intensity and saves present intensity adjustment direction;If tactile depressing action is not detected and light-source brightness is modulated
It is whole that light-source brightness is then set as most bright value and is kept to most bright value, and change brightness adjustment direction;
When light-source brightness is most bright value, judge whether to detect tactile depressing action, if so, by most bright to most secretly gradually adjusting
The brightness of whole light source;
If detecting tactile depressing action during adjusting light-source brightness, light-source brightness is set as present intensity and saved to work as
Preceding brightness adjustment direction;If tactile depressing action is not detected and light-source brightness has been adjusted to most dark value, light-source brightness is set as
Most secretly it is worth and keeps;
When light-source brightness is most dark value, judge whether to detect tactile depressing action again, if so, control light source extinguishes;
When light source is in illuminating state, if detecting tactile depressing action twice in succession, controls light source and gradually dim directly
To extinguishing.
Further, control input module further includes putting out input unit, and putting out input unit includes capacitor miaow, passes through electricity
Hold miaow detection it is extraneous put out movement, and detect put out movement after control light source extinguishing.
It further, further include lifting rope, the both ends of lifting rope are provided with movable button, and the top of portable lamp two sides, which is provided with, to be mentioned
Ear, lifting rope are removably connected in lifting ear by the movable button at both ends.
Further, the touch control detection circuit includes pressure-sensitive device, and the tactile depressing action of user is detected by pressure-sensitive device.
Further, touch control detection circuit includes the first microswitch for being set to portable lamp bottom, the second microswitch
Foot is flexibly supported with two or more;
The contact of first microswitch and the second microswitch is away from the elastic row for being less than resilient support foot at a distance from placed side
Journey, and height of the contact of the first microswitch away from placed side is greater than the contact of the second microswitch away from the height of placed side;
When only detecting the variation of the second microswitch output state, generates corresponding first and press input signal, when same
When detecting that the first microswitch and the second microswitch output state change, generation is different from the first decompression input signal
Second presses input signal.
Further, the brightness packet for pressing signal adjustment light source that touch dimmer unit is detected according to touch control detection circuit
Include step in detail below:
When detecting that first presses input signal, controls portable lamp and lighted with the most dark value set, and by most secretly to most
The brightness of bright gradual adjustment light source;
Judge whether light source arrived the most bright value of setting or detect that first presses input signal again, if detecting
One presses input signal, then light-source brightness is set as present intensity and saves present intensity adjustment direction;If being not detected
One presses input signal and light-source brightness has been adjusted to most bright value, then light-source brightness is set as most bright value and kept, and changed
Degree of brightening adjustment direction;
Judge whether to detect that first presses input signal again, if so, triggering again by the brightness adjustment direction
Light-source brightness gradual change adjustment;
It also detects whether to detect that second presses input signal in dimming process, if so, gradually dimming until extinguishing.
Further, the charging circuit includes USB wired charging circuit and wireless charging circuit.
Further, the bottom of portable lamp is equipped with the travel switch whether being raised for detecting portable lamp, the stroke
The movable contact of switch is arranged downward and places face contact.
Further, the touch control detection circuit includes the touch-switch and resilient support foot for being set to portable lamp bottom,
Distance of the touch-switch contact away from lamps and lanterns placed side is less than the stroke of flexible feet, and the output level by detecting touch-switch becomes
Change the tactile depressing action of detection user.
The invention has the benefit that
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
Controlled by PWM light modulator, avoid directly lighting the stimulation to glasses under dark situations, and have outage detection unit and
Touch dimmer unit can be lighted automatically when power is off, be convenient for routine use, and touch dimmer is detected according to touch control detection circuit
Press signal adjustment light source brightness, so that dimming process is become more convenient.
Specific embodiment
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment
And attached drawing is cooperated to be explained in detail.
Referring to Fig. 1, being 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 include built-in polymerization claim battery (i.e. lithium battery) and the charging circuit that is connect with polymer battery and
Micro USB charging interface.In the case where fully charged, during the charging process, use, control portable to play charged state instruction
Lamp glimmer, and control portable lamp is extinguished when being full of, portable lamp energy normal use 12 hours or more.For convenience of charging, the electricity
Source module further includes wireless charging circuit, including being set to the wireless charging inductance for being built in and being connected inside portable lamp and with lithium battery
Coil is answered, and the wireless charging pedestal being adapted to wireless charging induction coil.Wireless charging pedestal is connected to alternating current, and will
Portable lamp, which is placed on wireless charging pedestal, can carry out wireless charging.
Light source driver module is for driving portable lamp that it is made to shine, wherein using LED light as light source, which drives portable lamp
Dynamic model block includes PWM light modulator, and the driving current of light source is adjusted by adjusting duty ratio, so that realizing that light-source brightness is stepless can
Adjusting 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 unit, puts out input unit and outage detection unit.Light sensation input unit includes light
Sensing device makes a reservation for for when light-sensitive device detects ambient light cataclysm from bright to dark, controlling portable lamp and lighting and postpone one
Extinguish after time;
Outage detection unit includes Current Mutual Inductance device, in lamps and lanterns charging process (including USB charging and wireless charging)
If detecting unexpected power-off, controls lamps and lanterns and light.Outage detection unit can effectively solve to power off in a dark environment unexpected
Find the problem of lamps and lanterns inconvenience.
Putting out input unit includes capacitor miaow, detects user by capacitor miaow and puts out movement, when user is to capacitor miaow position
When setting or nearby blowing (function that candle is put out in simulation), airflow signal is converted into electric signal by capacitor miaow, when controller detects
The electric signal exported to capacitor miaow, then it is assumed that detect and put out movement, then lamps and lanterns extinguishing is controlled, to realize blowing for conventional lamp
Put out function.
Light sensation input unit includes light sensitive device such as photo resistance etc., when the brightness generation for detecting environment is rapid from bright to dark
When change, automatically controls portable lamp and light 2 ~ 5 minutes, light sensation input unit can solve also to need facing for short time after switching off the headlamp
The problem of Shi Zhaoming.The light sensation input unit is especially suitable for indoor use at night, when indoor key lighting lamps and lanterns are closed, room
Interior light is suddenly dimmed, and exists under normal circumstances, and also there is still a need for the illuminations of a bit of time for the needs such as go to bed after turning off the light.
This portable lamp when detecting that light is suddenly dark (when mainly turning off the light), light and put out after postponing a predetermined time by control portable lamp
It goes out, consequently facilitating the illumination of the short time after indoor occupant light-off needs.
Touch dimmer unit includes touch control detection circuit, and touch control detection circuit, which is provided with, to be set to the fine motion of lamps and lanterns bottom and open
It closes, the brightness for pressing signal adjustment light source for being detected according to touch control detection circuit.
As shown in Fig. 2, the portable lamp includes pedestal 9 and setting for the structural schematic diagram of portable lamp in an embodiment
In the lampshade 1 on pedestal 9, pedestal 9 is fixed together by bolt 5 or is passed through together with ultrasonic bonding connection, lamp with lampshade 1
It is provided with circuit board 3 in cover 1, the Micro USB charge port, microswitch and touch-switch are provided on the battery plate plate 3,
Wherein, the contact of the microswitch and touch-switch exposes to the lower surface of pedestal 9, is additionally provided in the lower surface of pedestal 9
Foot is flexibly supported shown in Fig. 4 and Fig. 5.
Referring to Fig. 3, being the light modulation flow chart of this portable lamp, soft-touch control (i.e. touch control detection electricity is provided on lamps and lanterns
Road), soft-touch control can be resistive touch switch or capacitor type touch switch, can output phase when human contact's soft-touch control
The low and high level variation answered, this portable lamp detect whether the touch input of human body (mainly finger) by soft-touch control, and
It is dimmed according to the touch input detected, specifically:
After lamps and lanterns power on inspection touch lamps and lanterns, lamps and lanterns just gradually brighten since minimum brightness, if the process to brighten again
Secondary to touch lamps and lanterns, lamps and lanterns just select present intensity and are maintained at a little brightness, if not touching lamps and lanterns again during brightening, lamp
Tool just gradually adjusts to maximum brightness and is maintained at maximum brightness;
And when being touched after lamp brightness is stablized, dimmer procedure can be triggered again, if present intensity is maximum brightness, from
Maximum brightness gradually dims;If brightness at this time is minimum brightness, gradually lighten from low to high;If lamps and lanterns present intensity, that is, non-is most
Big brightness is also not minimum brightness, then adjusts brightness by lamps and lanterns dimming mode before this, be even from dark toward most bright side before this
To adjustment, then continue to lighten, if being to be dimmed from bright toward most dark direction before this, continues to dim;If light again in dimming process
Lamps and lanterns are touched, then select present intensity and is maintained at a little brightness, otherwise just adjusts to most bright or most dark state and keeps.
Regardless of lamps and lanterns are to put out in dimming process or hold mode when detecting to touch lamps and lanterns twice in succession and then assert
Modulating signal, at this time gradually dimming lamp until extinguish.And in other embodiments, it can also pass through pressure sensor or pressure-sensitive electricity
That hinders to detect user touches signal.
This dimming mode is arranged by internal processes realizes stepless dimming, when by simply touching with different waitings
Between, stepless dimming may be implemented, greatly improve the usage experience of user.And lamps and lanterns since most secretly start and gradually brighten,
General lamps and lanterns are avoided directly to light the light stimulus under dark surrounds to eyes.
As shown in figure 4, in one embodiment, the touch control detection circuit is be set to portable lamp base lower surface light
Switch 7 and resilient support foot 13 are touched, resilient support foot 13 is the placement stabilizer blade of portable lamp, to make portable lamp bottom and placed side
Variable, when pressing portable lamp, the gap of bottom and placed side just becomes smaller, and when release, just restores normal clearance, and institute
The stroke that distance of the touch-switch contact away from lamps and lanterns placed side is less than flexible feet is stated, therefore, passes through the defeated of detection touch-switch
The tactile depressing action of level change detection user out.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 branch
Support foot realizes tactile depressing action detection, is not only convenient for operating, 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 detection position, also, touch out
It closes and resilient support foot has longer service life, lower production cost and more reliable detection output.
As shown in figure 5, in another embodiment, the circuit part of the touch dimmer unit includes being set to portable lamp
More than two resilient support feet 13 of bottom and two microswitches 8, resilient support foot 13 make portable lamp bottom far from placed side
Certain interval, and two microswitches 8 are set on the different height of portable lamp bottom, when pressing portable lamp downwards, lamps and lanterns
The road clearance of bottom changes, and in free state, two microswitches are all to disconnect, when portable lamp is touched in touching, compared with
The microswitch of the microswitch conducting higher point of low spot remains open, when the lower pressure for pressing portable lamp is greater than certain dynamics
When, the deformation for flexibly supporting foot is greater than the ground clearance of higher point microswitch, therefore two microswitches are both turned on.Therefore logical
The detectable pressure for pressing portable lamp of state for crossing two microswitches of detection, controlled based on pressure is pressed lamps and lanterns open the light and
Light modulation.
Referring to Fig. 6, for the circuit connection diagram of touch-switch and microswitch in an embodiment.Wherein, S0 is
Touch-switch, S1 are microswitch 1, and S2 is microswitch 2, and PB0 to PB2 is the network label in circuit diagram, and PB0 to PB2 divides
It is not connected to the different pins of controller, the controller can be the microprocessors such as single-chip microcontroller.Controller is according to different pins
Incoming level variation come judge which switch be triggered, thereby executing corresponding operation.
Microswitch S1 and S2 are that have small contact separation and snap-action mechanism, are carried out with defined stroke and defined power
The contact mechanism of switch motion, is covered with shell, outside have a kind of switch of drive rod, because of the contact spacing ratio of its switch
Smaller, therefore named microswitch is called sensitive switch.
Touch-switch S0(is also known as limit switch) one kind, be a kind of common low current master control electrical apparatus.Utilize manufacturing machine
The collision of tool moving component makes its contact action to realize connection or disjunction control circuit, reaches certain control purpose.In general,
This kind of switch is used to position or the stroke of limit mechanical movement, is automatically stopped movable machinery by certain position or stroke, instead
To movement, variable motion or automatic back and forth movement etc..The touch-switch is set in lamps and lanterns support leg in this embodiment,
For normally closed switch, when lifting lamps and lanterns, touch-switch no longer stress, microswitch is opened, and circuit board receives signal, is started
Lamps and lanterns light program.
In this embodiment, the portable lamp is not dimmed by the signal of soft-touch control, according to above-mentioned micro-
The output signal of dynamic switch controls light modulation, and the installation of microswitch shows that position is as shown in Figure 5, wherein the first microswitch with
Distance of the contact of second microswitch away from placed side is less than the springing stroke of resilient support foot, and the touching of the first microswitch
Height of the head away from placed side is greater than the contact of the second microswitch away from the height of placed side;
When only detecting the variation of the second microswitch output state, generates corresponding first and press input signal, when same
When detecting that the first microswitch and the second microswitch output state change, generation is different from the first decompression input signal
Second presses input signal.
When detecting that first presses input signal, controls portable lamp and lighted with the most dark value set, and by most secretly to most
The brightness of bright gradual adjustment light source;
Judge whether light source arrived the most bright value of setting or detect that first presses input signal again, if detecting
One presses input signal, then light-source brightness is set as present intensity and saves present intensity adjustment direction;If being not detected
One presses input signal and light-source brightness has been adjusted to most bright value, then light-source brightness is set as most bright value and kept, and changed
Degree of brightening adjustment direction;
Judge whether to detect that first presses input signal again, if so, triggering again by the brightness adjustment direction
Light-source brightness gradual change adjustment;
It also detects whether to detect that second presses input signal in dimming process, if so, gradually dimming until extinguishing.
The input that presses of user is detected in present embodiment by resilient support foot and microswitch, and decompression is inputted
Be divided into touch and more than certain dynamics tactile depressing action, thus realize lamps and lanterns light modulation and other control.With above-mentioned dimming mode
Identical, present embodiment dim while can realize stepless dimming by microswitch, and the hardware of this light adjusting circuit at
Originally cheaper.
In one embodiment, the portable lamp is additionally provided with lifting rope, and the two sides of lamps and lanterns or top are provided with lifting ear,
The both ends of lifting rope are respectively arranged with the movable button being adapted to lifting ear, and lifting rope is removably connected to the lifting ear of lamps and lanterns by movable button.
Therefore, which is not only convenient for guiding and supporting, while also facilitating and being hung on the fixed lifting rope such as long branch when using outdoors and be not easy to hang
The place of extension.
Further, it is opened as shown in figure 4, being equipped in the bottom of portable lamp for detecting the stroke whether portable lamp is raised
12 are closed, the movable contact of the travel switch 12 is arranged downward and places face contact, and travel switch 12 is automatic for controlling lamps and lanterns
It lights.When lamps and lanterns are placed on desktop, travel switch stress closure, when lifting lamps and lanterns by lifting rope, the activity touching of Cheng Kaiguan
Head leaves placed side, and travel switch disconnects, and exports control signal to light source driver module and lights portable lamp, realizes the automatic point of hand lamp
Bright function (proposing i.e. bright function).
In conclusion intelligent and portable modulated structure of the present invention is simple but feature-rich and easy to use, not only have brightness without
Grade adjustable function, can meet the lighting requirement of different scenes, realize that a lamp is mostly used effect;And this lamp light-regulating is convenient, passes through
Touching, which can be realized, lightens, dims, opens and extinguish function, by resilient support foot and two microswitches it is detectable touch and
It greater than certain dynamics touch action, therefore can realize multiple touch control functions, enormously simplify the hardware configuration of lamps and lanterns control section,
Hardware cost is reduced, while also providing a variety of input functions for lamps and lanterns, to realize that multiple functions provide powerful hardware
It supports.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.