Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to read battery current - help needed

Status
Not open for further replies.

Alkeshwr

Junior Member level 1
Joined
Mar 6, 2013
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,396
Hello......how can I read battery current in ma using pic 16f877a?
 

But adc just reads the voltage....

- - - Updated - - -

is there any formula to convert voltage into current?
 

Hello......how can I read battery current in ma using pic 16f877a?

You didnt specify which battery, what type, answer can be different.

For battery best is to use Hall sensor to eliminate power waste on current shunt (current shunt as secondoption).
 

li ion 18650 cell....
 

But adc just reads the voltage....
is there any formula to convert voltage into current?


In both cases you measure voltage. If you use current shunt for measuring you should use OpAmp to amp voltage from mV range 50mV-100mV to 0V-4,5V (5V). In uC software you make calc that showing digit on display means amperage.
 
Ratings:4.2v, 2000mah
 

The load at the op amp output will give some proportional voltage for input current. That voltage should be in the range of 0v to 5v for adc input. So you are giving dc volt as adc input.

actual current is 2 mA. Op-amp o/p is 2V, say. adc vref+ is 5v. So, adc max value is 1023 for 5v but the voltage is 2v.
for 2v adc input adc reading is 409.2

409.2 represents 2v and also 2 mA

(409.2 * 5) / 1023 = 2. It can be either 2V or 2 mA.

You can use this also. http://www.nex-robotics.com/products/sensors/acs709-37-5amp-hall-effect-current-sensor-module.html
 
Last edited:
where should i connect the +ve input of op amp?
 

but guys for shaunt resistor and opamp methords, the amperage and voltage must be in proportion like.....4volts and 4 amperes.....what should i do if my batteries are of 4.2v and can pump out 3c current?
 

Shunt resistor will waste battery power, I suggest usage of Hall sensor, but its your project. Why not to try, maybe you have "Die hard" mark of battery. ;-)
 

Can u guide me how to use hall sensors?
 

Can u guide me how to use hall sensors?

Read post #8



Also you can see simple 3-digit LED current metter with cheap ACS712.

https://coolcircuit.com/project/digital_amp_meter/picmicro_digital_amp_meter.html
https://electro-hobby.ucoz.com/blog/3_digits_digital_ammeter/2012-01-05-130

digital_amp_meter_project.gif





;-)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top