The utility model content
Based on this, be necessary to provide a kind of USB intelligent charger that can intuitively reflect charged state.
A kind of USB intelligent charger, being included as described USB intelligent charger provides the USB input interface and the output interface that is connected connecting charging device and exports charging voltage of power supply, described USB intelligent charger also comprises the voltage acquisition unit that the current voltage to the battery of charging device gathers, the state indication unit that the current charged state of charging device is indicated and the control unit of the charged state of state indication unit indication being controlled according to the current voltage of the battery of described voltage acquisition unit collection, described charged state comprises the electric weight situation of the battery of charging device.
Therein among embodiment, described state indication unit comprises at least three status indicator lamps, the current voltage output control signal of the battery that described control unit basis increases gradually drives corresponding status indicator lamp and lights successively, is used to indicate the electric weight percentage of corresponding battery.
Among embodiment, described control unit also drives the status indicator lamp flicker that does not light therein.
Therein among embodiment, the quantity of described status indicator lamp is four, described control unit is that model is the single-chip microcomputer of PC16C620, described model is that the PORTB1 end of the single-chip microcomputer of PC16C620 links to each other with described voltage acquisition unit, PORTA3 end, PORTB7 end, PORTA0 end and PORTB3 end link to each other with status indicator lamp, and vdd terminal links to each other with the power end of USB input interface.
Therein among embodiment, described USB intelligent charger also comprises the switch element that links to each other with the USB input interface, described control unit outputs signal to described switch element according to the current voltage of the battery of described voltage acquisition unit collection, described switch element according to the signal deciding of control unit output whether to the battery charging of charging device.
Therein among embodiment, described switch element comprises control signal converting unit and diverter switch, described control signal converting unit converts the control signal of control unit output to the charging control signal of charging device, the mutually conversion between charged state and data transmission state of described control signal converting unit control USB input interface, one end of described control signal converting unit links to each other with described control unit, the other end links to each other with described diverter switch, described diverter switch comprises the first pin, the second pin, the 3rd pin, the 4th pin, the 5th pin and the 6th pin, described the first pin links to each other with a data terminal of USB input interface, described the 6th pin links to each other with another data terminal of USB input interface, described the second pin links to each other with a data terminal of output interface, described the 5th pin links to each other with another data terminal of output interface, described the 3rd pin links to each other with an end of described control signal converting unit with described the 4th pin, and the power end of described USB input interface links to each other with the power end of described output interface.
Therein among embodiment, described control signal converting unit comprises at least two the first resistance and the second resistance that resistance is identical, described the first resistance and described the second resistance are in series, and described the first resistance links to each other with the 3rd pin and the 4th pin of described diverter switch with the junction of described the second resistance.
Among embodiment, described voltage acquisition unit comprises sampling resistor and the filter capacitor that is in parallel therein, an end ground connection of described sampling resistor and filter capacitor, and the other end links to each other with the earth terminal of control unit and output interface.
Above-mentioned USB intelligent charger is when charging, and the voltage of the battery of the charging device that control unit collects by voltage acquisition unit comes the electric weight of state of a control indicating member pilot cell, thereby reflects intuitively charged state.
Embodiment
Please refer to Fig. 1, an embodiment provides a kind of USB intelligent charger, and this USB intelligent charger is included as the USB input interface 110 and the output interface 160 that is connected connecting charging device and exports charging voltage that this USB intelligent charger provides power supply.In addition, the control unit 150 that the current voltage of the state indication unit 140 that this USB intelligent charger also comprises voltage acquisition unit 150 that the current voltage to the battery of charging device gathers, indicate the current charged state of charging device and the battery that gathers according to voltage acquisition unit 150 is controlled the charged state of state indication unit 140 indications, charged state herein comprises the electric weight situation of the battery of charging device.Like this, this USB intelligent charger can be by the electric weight of state indication unit 140 visual indication batteries.
The USB input interface 110 of this USB intelligent charger can be connected with USB interface commonly used.This USB input interface 110 comprises power end VCC, data terminal DATA+ and DATA-and earth terminal GND.
The output interface 160 of this USB intelligent charger is corresponding with USB input interface 110.This output interface 160 also comprises power end VCC, data terminal DATA+ and DATA-and earth terminal PGND.The power end VCC of this USB input interface 110 is connected with the VCC of output interface 160.
This USB intelligent charger also comprises switch element 120, and switch element 120 comprises control signal converting unit 121 and diverter switch SW1.Described control signal converting unit 121 converts the control signal of control unit 130 outputs to the charging control signal of charging device, the mutually conversion between charged state and data transmission state of described diverter switch SW1 control USB input interface.One end of control signal converting unit 121 links to each other with control unit 130, and the other end links to each other with diverter switch SW1.
Diverter switch SW1 comprises the first pin, the second pin, the 3rd pin, the 4th pin, the 5th pin and the 6th pin, respectively in the corresponding diagram 1,2,3,4,5,6 of diverter switch SW1.A data terminal of the first pin and USB input interface 110, for example DATA+ links to each other, the 6th pin links to each other with another data terminal DATA-of USB input interface, the second pin links to each other with a data terminal DATA+ of output interface, the 5th pin links to each other with another data terminal DATA-of output interface, and the 3rd pin links to each other with an end of control signal converting unit 121 with the 4th pin.
Like this, diverter switch SW1 can be by linking to each other the first pin with the second pin, and the 5th pin links to each other with the 6th pin, and the second pin and the 3rd pin disconnect, and the 4th pin and the 5th pin disconnect, and make this USB intelligent charger be operated in data transmission state.This diverter switch SW1 also can be by disconnecting the first pin and the second pin, and the 5th pin and the 6th pin disconnect, and the second pin links to each other with the 3rd pin, and the 4th pin links to each other with the 5th pin, and makes this USB intelligent charger be operated in charged state.Therefore this diverter switch SW1 can realize the function of mutual conversion between charged state and data transmission state.
The control signal converting unit 121 of this USB intelligent charger comprises at least two the first resistance and the second resistance that resistance is identical, the first resistance and the second resistance are in series, and the first resistance links to each other with the 3rd pin and the 4th pin of diverter switch SW1 with the junction of the second resistance.Resistance among the figure is four and is respectively the first resistance R 7, the second resistance R 8, the 3rd resistance R 9 and the 4th resistance R 10, and their prevention is identical.Wherein the first resistance R 7 and the second resistance R 8 are in series, and the 3rd resistance R 9 and the 4th resistance R 10 are in series.The first resistance R 7 links to each other with the 3rd pin of diverter switch SW1 with the junction of the second resistance R 8.The 3rd resistance R 9 links to each other with the 4th pin of diverter switch SW1 with the junction of the 4th resistance R 10.
When diverter switch SW1 was in charged state, control unit 130 sent control signal, and control signal converting unit 121 converts this control signal to the charging control signal of charging device, thereby made charging device begin charging.Charging device herein is that a class need to be received the equipment that signal just can begin to charge at power port at data transmission interface, and therefore the voltage input need to be arranged at data terminal DATA+, the DATA-of output interface 160.
The voltage acquisition unit 150 of this USB intelligent charger comprises sampling resistor R9 and filter capacitor C1, the C2 that is in parallel, and is two filter capacitors herein, is respectively the first filter capacitor C1 and the second filter capacitor C2.The end ground connection of this sampling resistor R9, the other end links to each other with the earth terminal PGND of control unit 130 and output interface 160.The end ground connection of the first filter capacitor C1 and the second filter capacitor C2, the other end links to each other with the earth terminal PGND of control unit 130 and output interface 160.This sampling resistor R9 is used for gathering the voltage of charging device.
The control unit 130 of this USB intelligent charger is the single-chip microcomputer U1 of PC16C620 for model.This model is that the PORTA4 end (pin 11 of U1 in the corresponding diagram) of the single-chip microcomputer U1 of PC16C620 links to each other with switch element 120, PORTB1 end (pin 7 of U1 in the corresponding diagram) links to each other with voltage acquisition unit 150, PORTA3 end (pin 1 of U1 in the corresponding diagram), PORTB7 end (pin 2 of U1 in the corresponding diagram), PORTA0 end (pin 15 of U1 in the corresponding diagram) and PORTB3 end (pin 16 of U1 in the corresponding diagram) link to each other with state indication unit 140, and vdd terminal (pin 12 of U1 in the corresponding diagram) links to each other with the power end VCC of USB input interface 110.Model is the work that the single-chip microcomputer U1 of PC16C620 just can realize coming according to the signal that voltage acquisition unit 150 collects control switch unit 120 and state indication unit 140 like this.
This model is that the single-chip microcomputer U1 of PC16C620 can design as required, with the work of control switch unit 120 with state indication unit 140.The electric weight that for example can be filled with according to charging device, the electric weight that is filled with of charging device is corresponding with the voltage that voltage acquisition unit 150 collects herein, comes state of a control indicating member 140 corresponding states.
The state indication unit 140 of this USB intelligent charger comprises that at least three are connected in the power end VCC of USB input interface 110 and the status indicator lamp between the control unit 130.The current voltage output control signal of the battery that control unit 150 bases increase gradually drives corresponding status indicator lamp and lights successively, is used to indicate the electric weight percentage of corresponding battery.Control unit 150 also drives the status indicator lamp flicker that does not light.Status indicator lamp herein is light-emitting diode.The quantity of the light-emitting diode among the figure is four, be respectively the first light-emitting diode D1, the second light-emitting diode D2, the 3rd light-emitting diode D3 and the 4th light-emitting diode D4.Each light-emitting diode in these four light-emitting diodes is all connected with a resistance, and then is that PORTA0 end, PORTB3 end, PORTA3 end and the PORTB7 end of the single-chip microcomputer U1 of PC16C620 links to each other with model respectively.For example, the first light-emitting diode D1 and resistance R 1 are in series, and then the end of R1 is that the PORTA0 end of the single-chip microcomputer U1 of PC16C620 links to each other with model again.Model is that the single-chip microcomputer U1 of PC16C620 just can control respectively the bright dark of each light-emitting diode like this, to react different states.
For example, when the electric weight of rechargeable battery reach electric weight when self being full of 25% before, four light-emitting diodes glimmer successively, frequency is 1Hz, four light-emitting diodes glimmer successively in namely per 1 second.When reaching 25%, one of them light-emitting diode Chang Liang, other three flickers, frequency 1Hz.Two light-emitting diode Chang Liang wherein when reaching 50%, other two flickers, frequency 1Hz.When reaching 75%, three light-emitting diode Chang Liang wherein, the another one flicker, frequency 1Hz, namely per 1 second another one LED flash is once.When reaching 100%, four light-emitting diodes are simultaneously entirely bright, and at this moment expression charging is finished.Other demonstration situation that also can adopt light-emitting diode to have is herein indicated charged state, as long as write suitable program in model is the single-chip microcomputer U1 of PC16C620.For example, can also adopt the flicker frequency of light-emitting diode to indicate different charged states herein.When the electric weight of rechargeable battery reach electric weight when self being full of 25% before, four light-emitting diodes glimmer successively, frequency is 1Hz.When reaching 25%, four light-emitting diodes glimmer frequency 0.5Hz successively.When reaching 50% its, four light-emitting diodes glimmer frequency 0.25Hz successively.When reaching 75%, four light-emitting diodes glimmer frequency 0.125Hz successively.When reaching 100%, four light-emitting diodes are simultaneously entirely bright, and at this moment expression charging is finished.
During this USB intelligent charger work, the user can select data transmission state and charged state by diverter switch SW1.SW1 is in data transmission state when diverter switch, namely the first pin links to each other with the second pin, the 5th pin links to each other with the 6th pin, the second pin and the 3rd pin disconnect, when the 4th pin and the 5th pin disconnect, data will be sent to from data terminal DATA+, the DATA-of USB input interface 110 data terminal DATA+, the DATA-of output interface 160.Can realize like this equipment that is connected on the output interface 160 is carried out transfer of data.
SW1 is in charged state when diverter switch, and namely the first pin and the second pin disconnect, and the 5th pin and the 6th pin disconnect, and the second pin links to each other with the 3rd pin, and when the 4th pin linked to each other with the 5th pin, control unit 130 will send control signal; Control signal transfers to the control signal converting unit 120 of switch element 120, and this control signal converting unit 120 can convert control signal to the charging device that is connected on the output interface 160 and start the required signal of charging; Be connected to and begin charging after charging device on the output interface 160 is received this control signal, electric current can flow to output interface 160 from USB input interface 110, and enters charging device.
In charging process, control unit 130 can detect the voltage that voltage acquisition unit 150 collects always, and the work of exporting control signal and state of a control indicating member 140 according to this voltage, for example, when the electric weight of rechargeable battery reach electric weight when self being full of 25% before, four light-emitting diodes of state indication unit 140 glimmer successively, and frequency is 1Hz.When reaching 25%, one of them light-emitting diode Chang Liang, other three flickers, frequency 1Hz.Two light-emitting diode Chang Liang wherein when reaching 50%, other two flickers, frequency 1Hz.When reaching 75%, three light-emitting diode Chang Liang wherein, another one flicker, frequency 1Hz.When reaching 100%, four light-emitting diodes are simultaneously entirely bright, and at this moment expression charging is finished.
In the charging process, the user can initiatively go to cut off the electricity supply according to the demonstration of state indication unit 140, thereby reaches the protection charging device, prolongs the purpose of the battery life of charging device.
When charging is finished and when the user did not still initiatively cut off the electricity supply after a period of time (a period of time herein for example is one minute), control unit 130 can stop switch element 120 is sent control signal, perhaps sends the control signal of complete charge.Charging device just stops to accept the electric current that transmits from output interface 160 like this.Reach the battery of protection charging device, postpone the purpose of battery life.
This USB intelligent charger is when charging, and control unit 130 is controlled the charging device whether USB input interface 110 connect output interface 160 by the voltage of the charging device that detects voltage acquisition unit 150 and collect and charged.In charging process, state indication unit 140 can show the electric weight situation of the battery of charging device intuitively, makes things convenient for the user to judge the electric weight that battery is interior.When charging device was full of electricity, the state indication unit of this USB intelligent charger 140 can show that charging finishes, thus reminding user cut off the electricity supply, thereby the battery of protection charging device.If the user does not cut off the electricity supply within a certain period of time, this USB intelligent charger can stop charging automatically, thereby reduces the harm to the battery of charging device, prolongs the useful life of the battery of charging device.Therefore the state indication unit 140 of this USB intelligent charger can reflect the electric weight of the battery of the charging device that links to each other with this USB intelligent charger very intuitively, is user-friendly to.In addition, this USB intelligent charger can automatic cut-off power after charging is finished, the protection battery.
The above embodiment has only expressed several execution mode of the present utility model, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the utility model claim.Should be pointed out that for the person of ordinary skill of the art, without departing from the concept of the premise utility, can also make some distortion and improvement, these all belong to protection range of the present utility model.Therefore, the protection range of the utility model patent should be as the criterion with claims.