- This topic has 2 replies, 3 voices, and was last updated 7 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › pic
hi
I m using a PIC24 and need to measure the voltage across a battery as well as the current into it.
The voltage across the battery is done, A/D input at +ve, PIC ground to negative. The problem comes when trying to measure current in, for which I plan to measure the voltage drop across a low value resistor.
As far as I can figure, my PIC will only measure positive voltage differences.
thanks
Hi there
You are doing it absolutely right by measuring the voltage drop across a low value resistor. Now this value will help you measure current using ohm's law:
V=I*R; here, R and V are known to us thus, I can be easily calculated. Make sure to conver the ADC value you get back to its voltage reading by some mathematical operation and then use this V to calculate I.
Hope this helps
current sensor modules are also readily available
or you can build simple I to V convertor using opamp – 741