Utility model content
In order to solve above-mentioned technical matters, the purpose of this utility model is to provide that a kind of sensing range is wide, precision is higher and the battery voltage detection circuit based on voltage stabilizing diode cheaply.
The utility model solves the technical scheme that its technical matters adopts:
A kind of battery voltage detection circuit based on voltage stabilizing diode, comprise voltage stabilizing diode, the first resistance, the second resistance, the 3rd resistance, the first electric capacity, the second electric capacity and microprocessor, the negative pole of described voltage stabilizing diode is connected with tested battery, the positive pole of described voltage stabilizing diode is successively by the first resistance and the second resistance eutral grounding, the positive pole of described voltage stabilizing diode is also by the first capacity earth, one end of described the 3rd resistance is connected to the connected node between the first resistance and the second resistance, the other end of described the 3rd resistance is connected to the AD thief hatch of microprocessor, the AD thief hatch of described microprocessor is also by the second capacity earth.
Further, also comprise gauge tap and the 4th resistance, the negative pole of described voltage stabilizing diode is connected with tested battery by gauge tap, and described gauge tap is connected to the I/O interface of microprocessor by the 4th resistance.
Further, the voltage stabilizing value of described voltage stabilizing diode is 9V, and the resistance value of described the first resistance and the second resistance is 10k Ω.
Further, the voltage stabilizing value of described voltage stabilizing diode is 6.2V, and the resistance value of described the first resistance is 0 Ω, and the resistance value of described the second resistance is 10k Ω.
The beneficial effects of the utility model are: a kind of battery voltage detection circuit based on voltage stabilizing diode of the present utility model, adopt voltage stabilizing diode DS1 to carry out step-down to the voltage of tested battery, and then carry out dividing potential drop by the first resistance R 1 and the second resistance R 2, and then by microprocessor, the magnitude of voltage at the second resistance R 2 two ends is detected, thereby the dividing potential drop situation of the magnitude of voltage that user can detect according to microprocessor and testing circuit calculates the magnitude of voltage of tested battery, sensing range is wider, accuracy of detection is high, circuit structure is simple, and production cost is low.
Embodiment
With reference to Fig. 1, the utility model provides a kind of battery voltage detection circuit based on voltage stabilizing diode, comprise voltage stabilizing diode DS1, the first resistance R 1, the second resistance R 2, the 3rd resistance R 3, the first capacitor C 1, the second capacitor C 2 and microprocessor, the negative pole of described voltage stabilizing diode DS1 is connected with tested battery, the positive pole of described voltage stabilizing diode DS1 is successively by the first resistance R 1 and the second resistance R 2 ground connection, the positive pole of described voltage stabilizing diode DS1 is also by the first capacitor C 1 ground connection, one end of described the 3rd resistance R 3 is connected to the connected node between the first resistance R 1 and the second resistance R 2, the other end of described the 3rd resistance R 3 is connected to the AD thief hatch of microprocessor, the AD thief hatch of described microprocessor is also by the second capacitor C 2 ground connection.
Be further used as preferred embodiment, also comprise gauge tap and the 4th resistance R 4, the negative pole of described voltage stabilizing diode DS1 is connected with tested battery by gauge tap, and described gauge tap is connected to the I/O interface of microprocessor by the 4th resistance R 4.
Be further used as preferred embodiment, the voltage stabilizing value of described voltage stabilizing diode DS1 is 9V, and the resistance value of described the first resistance R 1 and the second resistance R 2 is 10k Ω.
Be further used as preferred embodiment, the voltage stabilizing value of described voltage stabilizing diode DS1 is 6.2V, and the resistance value of described the first resistance R 1 is 0 Ω, and the resistance value of described the second resistance R 2 is 10k Ω.
With reference to Fig. 1, in Fig. 1, VCC-BAT represents tested battery, and MCU represents microprocessor, and a specific embodiment of the present utility model is as follows:
A kind of battery voltage detection circuit based on voltage stabilizing diode, comprise voltage stabilizing diode DS1, the first resistance R 1, the second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4, the first capacitor C 1, the second capacitor C 2, gauge tap and microprocessor, the negative pole of voltage stabilizing diode DS1 is connected with tested battery by gauge tap, the positive pole of voltage stabilizing diode DS1 is successively by the first resistance R 1 and the second resistance R 2 ground connection, the positive pole of voltage stabilizing diode DS1 is also by the first capacitor C 1 ground connection, one end of the 3rd resistance R 3 is connected to the connected node between the first resistance R 1 and the second resistance R 2, the other end of the 3rd resistance R 3 is connected to the AD thief hatch of microprocessor, gauge tap is connected to the I/O interface of microprocessor by the 4th resistance R 4, the AD thief hatch of microprocessor is also by the second capacitor C 2 ground connection.
In the present embodiment, the first link of gauge tap connects the negative pole of voltage stabilizing diode SD1, the second link connects tested battery, the 3rd link is connected to the I/O interface of microprocessor by the 4th resistance R 4, thereby microprocessor can control the on off state of gauge tap by controlling the output level value of I/O interface, thereby control the duty of this testing circuit.
Because microprocessor carries ADC detection module, by AD thief hatch, by after magnitude of voltage input microprocessor, microprocessor can detect magnitude of voltage by ADC detection module.Due to effective measuring voltage scope of the ADC detection module of microprocessor 0 ~ 2.56V again, therefore, testing circuit of the present utility model adopts voltage stabilizing diode DS1 to carry out step-down to the voltage of tested battery, and then carry out dividing potential drop by the first resistance R 1 and the second resistance R 2, and then by microprocessor, the magnitude of voltage at the second resistance R 2 two ends is detected, thereby the dividing potential drop situation of the magnitude of voltage that user can detect according to microprocessor and testing circuit calculates the magnitude of voltage of tested battery.
The common binodal lithium battery of take is example, its effective operating voltage range is 6.0-8.4V, therefore make in testing circuit, the voltage stabilizing value of voltage stabilizing diode DS1 is 6.2V, the resistance value of the first resistance R 1 is 0 Ω (not accessing the first resistance R 1), the resistance value of the second resistance R 2 is 10k Ω, detects the voltage Va that obtains the second resistance R 2 two ends by microprocessor, and the virtual voltage of battery is Vbat=Va+6.2V.
The 10 joint Ni-MH batteries of take are example, its effective operating voltage range is 9.0-14.2V, therefore make in testing circuit, the voltage stabilizing value of voltage stabilizing diode DS1 is 9V, the resistance value of the first resistance R 1 and the second resistance R 2 is 10k Ω, by microprocessor, detect the voltage Va that obtains the second resistance R 2 two ends, the virtual voltage of battery is Vbat=Va*2+9V.
As can be seen here, by selecting the voltage stabilizing diode DS1 of different voltage stabilizing values and the first resistance R 1 of different resistance values and the second resistance R 2 to form testing circuit of the present utility model, can be used to the tested battery of different voltages to carry out voltage detecting.Compare with the voltage-dividing detection circuit that adopts conventional, electric-resistance to form, the utility model sensing range is wider, and accuracy of detection is high, and compares with the testing circuit that adopts special integrated chip to form, the utility model circuit structure is simple, cost is low, and therefore, the utility model sensing range is wider, accuracy of detection is high, circuit structure is simple, and production cost is low, has compared with high performance-price ratio.
More than that better enforcement of the present utility model is illustrated, but the invention is not limited to embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to the utility model spirit, and the modification that these are equal to or replacement are all included in the application's claim limited range.