CN207134123U - A kind of device for being used to indicate electric quantity of power supply - Google Patents
A kind of device for being used to indicate electric quantity of power supply Download PDFInfo
- Publication number
- CN207134123U CN207134123U CN201720387017.6U CN201720387017U CN207134123U CN 207134123 U CN207134123 U CN 207134123U CN 201720387017 U CN201720387017 U CN 201720387017U CN 207134123 U CN207134123 U CN 207134123U
- Authority
- CN
- China
- Prior art keywords
- power supply
- color
- led
- electric quantity
- rgb
- 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
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Control Of El Displays (AREA)
Abstract
The utility model proposes a kind of device for being used to indicate electric quantity of power supply, including voltage detection unit, it is electrically connected with power supply and computing unit, the electricity of power supply is transformed into data signal and is transferred to computing unit;Computing unit, electrically connected with MCU, the digital signal transition into electricity percentage and is transferred to MCU;Data storage cell, it is electrically connected with MCU, preserves color configuration table;MCU, electrically connected by PWM interfaces with LED display unit, so as to control the luminous situation of LED display unit;LED display unit, it is one or more groups of RGB three-color LED lights;Color synthesis unit, is connected with LED display unit, the RGB three-color LED lights is combined into a kind of color, according to the color change of LED after combination come the actual electricity of real-time display power supply.The device of the present utility model for being used to indicate electric quantity of power supply, cost is low, takes pcb board small volume, be low in energy consumption.
Description
Technical field
It the utility model is related to field of power supplies, and in particular to a kind of device for being used to indicate electric quantity of power supply.
Background technology
The product for thering is power supply to power in the market, to show power supply electricity how much, generally with numeral method, but
It is that the volume shared by charactron is big, consuming electric power is high;Be not suitable for the display of general microminiaturized product equipment electricity, and low capacity
The use of power-supply device.
The content of the invention
The purpose of this utility model be for general microminiaturized product equipment or power supply with small capacity equipment electricity show provide it is hard
Part basis, propose a kind of device for being used to indicate electric quantity of power supply.
The utility model proposes be used for indicate the device of electric quantity of power supply, including voltage detection unit, with power supply and calculating
Unit is electrically connected, and the electricity of power supply is transformed into data signal and is transferred to computing unit;Computing unit, electrically connected with MCU, will
The digital signal transition is into electricity percentage and is transferred to MCU;Data storage cell, it is electrically connected with MCU, preserves color and match somebody with somebody
Table is put, contains the numerical value and rgb value corresponding to each color in the color configuration table;MCU, shown by PWM interfaces and LED single
Member electrical connection, so as to control the luminous situation of LED display unit;LED display unit, it is one or more groups of RGB three-color LED lights;
Color synthesis unit, is connected with LED display unit, the RGB three-color LED lights is combined into a kind of color, according to LED after combination
The color change of lamp carrys out the actual electricity of real-time display power supply.
Preferably, the numerical value in the color configuration table corresponding to each color is:Black=0;Brown=1;Red=2;
Orange=3;Yellow=4;Green=5;Blueness=6;Purple=7;Grey=8;White=9.
Preferably, the device for being used to indicate electric quantity of power supply, in addition to driver element, show for strengthening the LED
The display brightness of unit.
Preferably, the LED display unit uses dynamic scanning displaying, and scanning times per second are more than 25 times.
Preferably, the color synthesis unit is collector lens, and the area of the collector lens can cover the RGB
Three-color LED light.
Preferably, the RGB three-color LED lights group is specially the LED being made up of red, green and blueness.
Preferably, the voltage detection unit, computing unit, data storage cell and MCU become one machine, and described one
Body machine is single-chip microcomputer.
Preferably, protective cover is additionally provided with outside the LED display unit, for sealing waterproof.
Preferably, reflector is additionally provided with below the RGB three-color LED lights, for lifting the brightness of LED.
Compared with prior art, the beneficial effects of the utility model have:
The device of the present utility model for being used to indicate electric quantity of power supply, using one or more groups of RGB three-color LED lights, you can refer to
Show the actual electricity of power supply, indicate the device of electric quantity of power supply using charactron compared to prior art, due to a charactron
A minimum of 7 LEDs, therefore, in the case where instruction electric quantity of power supply accuracy is certain, the utility model embodiment is used to refer to
Show the device of electric quantity of power supply, cost is low, takes pcb board small volume, be low in energy consumption, is microminiaturized product equipment or power supply with small capacity equipment
Electricity show and provide hardware foundation.It is that PWM is shown, i.e., same also, RGB three-color LED lights of the present utility model are shown
Within range of scanned frequencies, the power consumption of each LED is relevant with dutycycle, if dutycycle is 25, then power consumption only has
25/%, in this way, reduce further the power consumption of device.
Brief description of the drawings
Fig. 1 is the apparatus structure schematic diagram for being used to indicate electric quantity of power supply in the utility model embodiment 1.
Fig. 2 is the device implementation method flow chart for being used to indicate electric quantity of power supply in the utility model embodiment 1.
Fig. 3 is the local circuit schematic diagram that MCU controls LED display unit in the utility model embodiment 1.
Fig. 4 is that specific electric quantity indicating device realizes structural representation in the utility model embodiment 1.
Embodiment
With reference to specific embodiment and compare accompanying drawing the utility model is described in further details.Wherein identical is attached
Icon note represents identical part, unless stated otherwise.It is emphasized that what the description below was merely exemplary, and
It is not limited to the scope of the utility model and its application.
Embodiment 1
In the present embodiment, for indicating the device of electric quantity of power supply, as shown in figure 1, including voltage detection unit, with power supply
It is electrically connected with computing unit, the electricity of power supply is transformed into data signal and is transferred to computing unit;Computing unit, with MCU electricity
Connection, into electricity percentage and MCU is transferred to by the digital signal transition;Data storage cell, it is electrically connected, preserves with MCU
There is color configuration table, contain the numerical value and rgb value corresponding to each color in the color configuration table;MCU, by PWM interfaces with
LED display unit electrically connects, so as to control the luminous situation of LED display unit;LED display unit, it is one or more groups of RGB tri-
Color LED;Color synthesis unit, is connected with LED display unit, the RGB three-color LED lights is combined into a kind of color, according to
The color change of LED carrys out the actual electricity of real-time display power supply after combination.
In electronics industry, color is often used to represent numeral.Conventional color represents digital standard:Black=0;Palm fibre
Color=1;Red=2;Orange=3;Yellow=4;Green=5;Blueness=6;Purple=7;Grey=8;White=9.This practicality
The new standard that numeral is represented using above-mentioned conventional color, as shown in table 1, each color has corresponding rgb value.
The color configuration table of table 1
X numerical value | Color | Rgb value |
0 | Black | R=00;G=00;B=00 |
1 | Brown | R=165;G=42;B=42 |
2 | It is red | R=255;G=00;B=00 |
3 | It is orange | R=255;G=165;B=00 |
4 | Yellow | R=255;G=255;B=00 |
5 | Green | R=00;G=255;B=00 |
6 | Blueness | R=00;G=00;B=255 |
7 | Purple | R=128;G=00;B=128 |
8 | Grey | R=128;G=128;B=128 |
9 | White | R=255;G=255;B=255 |
The device for being used to indicate electric quantity of power supply of the utility model embodiment, it indicates the method flow of electricity, such as Fig. 2 institutes
Show, comprise the following steps:S1:The electricity of power supply is transformed into data signal, and electricity percentage is obtained according to the data signal
Than;S2:Table is matched according to color, obtains the rgb value of color corresponding to each numerical value in the electricity percentage, and rgb value is made
For the dutycycle of PWM outputs;S3:According to the dutycycle, the glow color of LED display unit is controlled;S4:According to the LED
The glow color of display unit, obtain the actual electricity of power supply.
In wherein step S1, the electricity of power supply is transformed into by data signal by voltage detection unit, and according to the number
Word signal obtains electricity percentage, further comprising the steps of:S11:By voltage conversion device, supply voltage is converted into numerical value
A;S12:Charge value Y, Y=A-B are calculated by computing unit, wherein, B is the numerical value corresponding to power supply minimum voltage;S13:It is logical
Cross computing unit and calculate electricity percentage, X=(Y/Z) * 100%;Wherein, X is electricity percentage;Z is power supply ceiling voltage number
Value C and minimum voltage numerical value B difference, i.e. Z=C-B.
In the present embodiment, the voltage conversion device is AD conversion chip, and MCU is read power supply and do not had by A/D chip
It is numerical value B to have threshold voltage during electricity, and threshold voltage when power supply is full electric is numerical value C, electric quantity of power supply instruction, exactly shows C-B
Between value, represented herein with Z, i.e. Z=C-B;By AD conversion, the supply voltage actually measured is converted into numerical value A,
Charge value Y, then Y=A-B, then using Y and Z ratio as electricity percentage are calculated by computing unit.
In the present embodiment, LED display unit is two groups of RGB three-color LED lights, as shown in figure 3, respectively RGB three-color LEDs
Lamp group 1 and RGB three-color LED lights group 2, the RGB three-color LED lights group are specially the LED being made up of red, green and blueness,
Lamp group 1 includes red LED lamp D1, green LED lamp D2 and blue LED lamp D3, and lamp group 2 includes red LED lamp D4, green LED lamp
D5 and blue LED lamp D6, MCU control each color LED by 6 PWM interfaces respectively.Pass through color synthesis unit, lamp
Group 1 and lamp group 2 can be combined into a kind of color, and two groups of LED show two kinds of identical or different colors, so as to indicate power supply electricity
The percentage of amount.
The color synthesis unit of the present embodiment, using collector lens, material is transparent plastic cement or other transparent materials
Material, is not limited thereto, still, the area of collector lens must cover three LEDs.
Specific electric quantity indicating device realizes that structure chart is as shown in Figure 4.First, by AD conversion chip, by supply voltage
Numerical value A is converted into, and is transferred to computing unit;Then electricity percentage is calculated by computing unit and is transferred to MCU, specifically
Ground, charge value Y, Y=A-B are calculated first, wherein, B is the numerical value corresponding to power supply minimum voltage;Then, electricity percentage is calculated
It is than X:
X=(Y/Z) * 100%=X1X0%
Wherein, Z be power supply ceiling voltage numerical value C and minimum voltage numerical value B difference, i.e. Z=C-B.
Above-mentioned calculating, X=(Y/Z), retain two effective digitals, wherein X1For ten digit value, X0For units value.Then,
Color configuration tables of the MCU in data storage cell, tables look-up to obtain X in electricity percentage1And X0Color representated by numerical value,
With the value of the RGB allocation tables corresponding to each color, as PWM output dutycycle, wherein, MCU respectively by PWM1, PWM2,
The luminous situation of red LED lamp D1, green LED lamp D2 and blue LED lamp D3 in PWM3 control RGB three-color LED lights group 1, lead to
Cross PWM4, PWM5, PWM6 and control red LED lamp D4, green LED lamp D5 and blue LED lamp in RGB three-color LED lights group 2 respectively
D6 luminous situation, then respectively by color synthesis unit 1 and color synthesis unit 2, it is identical or different so as to export two kinds
Color, and then read the actual electricity of power supply.Such as:The color that two groups of LEDs are shown is bluish grey, then electric quantity of power supply is expressed as
68%;If reddish blue, then electricity is 26%.The rest may be inferred.
The device for being used to indicate electric quantity of power supply of the utility model embodiment, using two groups of RGB three-color LED lights, i.e., 6
LED can accurately indicate the actual electricity of power supply, and electric quantity of power supply is indicated using two charactrons compared to prior art
Device, due to a minimum of 7 LEDs of a charactron, therefore, the dress for being used to indicate electric quantity of power supply of the utility model embodiment
Put, cost is low, takes pcb board small volume, be low in energy consumption.Also, the dress for being used to indicate electric quantity of power supply of the utility model embodiment
LED in putting is shown, is that PWM is shown, i.e., within same range of scanned frequencies, power consumption and the dutycycle of each LED have
Close, if dutycycle is 25, then power consumption only has 25/%=1/4, in this way, reduce further the power consumption of device.
Embodiment 2
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, in computing unit, electricity
Amount percentage X is calculated as:
X=(Y/Z) * 100%=X1X0%
Above-mentioned calculating, X=(Y/Z), retain an effective digital, wherein X1For ten digit value, X0For units value, X0Begin
It is zero eventually, correspondingly, LED display unit only has one group of RGB three-color LED light, and a kind of color is combined into by color synthesis unit,
Carry out the actual electricity of real-time display power supply.For example, the color that LED is shown is palm fibre, it is 10% to represent electric quantity of power supply;LED shows
The color shown is green, and it is 50% to represent electric quantity of power supply;The color that LED is shown is purple, and it is 70% to represent electricity.
The device for being used to indicate electric quantity of power supply of the utility model embodiment, using one group of RGB three-color LED light, i.e., 3
LED is the actual electricity that may indicate that power supply, the device of electric quantity of power supply is indicated using charactron compared to prior art, due to one
Individual a minimum of 7 LEDs of charactron, therefore, the utility model embodiment are used to indicate the device of electric quantity of power supply, cost is low,
Take pcb board small volume, low in energy consumption.Also, the LED being used to indicate in the device of electric quantity of power supply of the utility model embodiment
It has been shown that, is that PWM is shown, i.e., within same range of scanned frequencies, the power consumption of each LED is relevant with dutycycle, if duty
Than for 25, then power consumption only has 25/%=1/4, in this way, reduce further the power consumption of device.
Embodiment 3
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, in computing unit, electricity
Amount percentage X is calculated as:
X=(Y/Z) * 100%=X2X1.X0%
Above-mentioned calculating, X=(Y/Z), retain three effective digitals, wherein X2For ten digit value, X1For units value, X0For
One decimal place numeral, correspondingly, LED display unit has three groups of RGB three-color LED lamps, is combined into by color synthesis unit
3 kinds of colors, carry out the actual electricity of real-time display power supply.For example, the color that LED is shown is purple for brown green, represent that electric quantity of power supply is
15.7%.
The device for being used to indicate electric quantity of power supply of the utility model embodiment, using three groups of RGB three-color LED lights, i.e., 9
LED can accurately indicate the actual electricity of power supply, indicate the device of electric quantity of power supply using charactron compared to prior art, due to
A minimum of 7 LEDs of one charactron, therefore, the device for being used to indicate electric quantity of power supply of the utility model embodiment, precision
Height, cost are low, take pcb board small volume, be low in energy consumption.Also, the dress for being used to indicate electric quantity of power supply of the utility model embodiment
Put middle LED to show, be that PWM is shown, i.e., within same range of scanned frequencies, the power consumption of each LED is relevant with dutycycle,
If dutycycle is 25, then power consumption only has 25/%=1/4, in this way, reduce further the power consumption of device.
The device of the present utility model for being used to indicate electric quantity of power supply, LED display unit contain the group number of RGB three-color LED lights
Do not limit, group number is more, indicates that the precision of electricity is higher.
Embodiment 4
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is that LED display unit is adopted
With dynamic scanning displaying, mainly in general if the frequency of display is excessively slow, then had come what is designed using the visual impression of human eye
Desultory display;If the frequency of display is accelerated, when scanning times per second are more than 25 times, then this will can not be identified in human eye
Kind vision is remaining, and the impression given people is exactly one group of stable display data, does not have flickering, the effect and static state of Dynamic Announce
Display is the same, can save substantial amounts of I/O ports, and power consumption is lower.
Embodiment 5
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, in addition to driving is single
Member, preferably triode drive.Driver element can strengthen the display brightness of LED display unit.
Embodiment 6
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, using enhanced list
Piece machine, i.e., integrated AD dresses change, the single-chip microcomputer that FLASH is stored, MCU functions are integrated, to replace voltage conversion device, data storage
Unit and MCU, it can so reduce the space-consuming of electronic component.
Embodiment 7
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, shows in the LED
Show and protective cover is additionally provided with outside unit, for sealing waterproof, LED can also be protected not by damage.
Embodiment 8
In the present embodiment, for indicating the device of electric quantity of power supply, the difference with embodiment 1 is, in the colors of RGB tri-
Reflector is additionally provided with below LED, for lifting the brightness of LED, ensures good display effect.
Above content is to combine specific preferred embodiment further detailed description of the utility model, it is impossible to
Assert that specific implementation of the present utility model is confined to these explanations.For the utility model person of ordinary skill in the field
For, without departing from the concept of the premise utility, some equivalent substitutes or obvious modification, and performance can also be made
Or purposes is identical, the scope of protection of the utility model should be all considered as belonging to.
Claims (8)
- A kind of 1. device for being used to indicate electric quantity of power supply, it is characterised in that including voltage detection unit, its input and power supply electricity It is connected, the input of its output end and computing unit is electrically connected, for the electricity of power supply to be transformed into data signal and is transferred to Computing unit;Computing unit, its output end electrically connect with a MCU input, for by the digital signal transition into electricity Amount percentage is simultaneously transferred to MCU;Data storage cell, its output end and MCU another input are electrically connected, and preserve color Allocation list, the numerical value and rgb value corresponding to each color are contained in the color configuration table;MCU, shown by PWM interfaces and LED Unit electrically connects, so as to control the luminous situation of LED display unit;LED display unit, it is one or more groups of RGB three-color LEDs Lamp;Color synthesis unit, is connected with LED display unit, the RGB three-color LED lights is combined into a kind of color, after combination The color change of LED carrys out the actual electricity of real-time display power supply.
- 2. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that also including driver element, use In the display brightness for strengthening the LED display unit.
- 3. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that the LED display unit is adopted With dynamic scanning displaying, scanning times per second are more than 25 times.
- 4. according to claim 1 be used to indicate the device of electric quantity of power supply, it is characterised in that the color synthesis unit is Collector lens, the area of the collector lens can cover the RGB three-color LED lights.
- 5. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that the RGB three-color LED lights group The LED being specially made up of red, green and blueness.
- 6. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that the voltage detection unit, Data storage cell and MCU become one machine, and the all-in-one is single-chip microcomputer.
- 7. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that in the LED display unit Outside be additionally provided with protective cover, for sealing waterproof.
- 8. the device according to claim 1 for being used to indicate electric quantity of power supply, it is characterised in that in the RGB three-color LED lights Below be additionally provided with reflector, for lifting the brightness of LED.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720387017.6U CN207134123U (en) | 2017-04-13 | 2017-04-13 | A kind of device for being used to indicate electric quantity of power supply |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720387017.6U CN207134123U (en) | 2017-04-13 | 2017-04-13 | A kind of device for being used to indicate electric quantity of power supply |
Publications (1)
Publication Number | Publication Date |
---|---|
CN207134123U true CN207134123U (en) | 2018-03-23 |
Family
ID=61630768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201720387017.6U Active CN207134123U (en) | 2017-04-13 | 2017-04-13 | A kind of device for being used to indicate electric quantity of power supply |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN207134123U (en) |
-
2017
- 2017-04-13 CN CN201720387017.6U patent/CN207134123U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206831438U (en) | LED lamp bead and the LED lamp using the LED lamp bead | |
US11367909B2 (en) | Power device capable of displaying various statuses and displaying method | |
EP1505566A3 (en) | Gamma voltage generating apparatus | |
CN108305582A (en) | A kind of device and method being used to indicate electric quantity of power supply | |
CN207134123U (en) | A kind of device for being used to indicate electric quantity of power supply | |
CN205584562U (en) | Emitting diode actuating system with luminous signal is stated from power line | |
CN104966494A (en) | LED driving circuit for display screen back lighting | |
CN206653985U (en) | Automobile indicator | |
CN109195249A (en) | It is a kind of based on silicon-controlled toggle switch circuit | |
CN107508339A (en) | A kind of charging circuit and mobile terminal | |
CN209150770U (en) | A kind of power-supply system | |
CN216253300U (en) | Colorful light analog control circuit and light source equipment | |
CN107046749A (en) | A kind of intelligent ceiling lamp based on bluetooth | |
CN207587305U (en) | A kind of low-voltage low cost large scale colored digital pipe | |
CN103617788B (en) | Control the circuit of LCD display pattern colour temperature 6500K round the clock | |
CN208353665U (en) | Illusion-colour lamp control circuit | |
CN206923098U (en) | A kind of electric power system suitable for portable lighting equipment | |
CN207201039U (en) | Linear toning LED drive circuit and device without external capacitor | |
CN207184859U (en) | A kind of multi-way LED lamp drive circuit | |
CN215734934U (en) | Solar lamp with selectable output circuit | |
CN216252246U (en) | Charging state indicating circuit | |
CN208353664U (en) | Acoustic control flashing light control circuit | |
CN208905238U (en) | A kind of LED encapsulation with solar recharging management | |
CN210437634U (en) | Handicraft show box | |
CN215073058U (en) | LED full-color lamp band circuit with built-in IC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |