hi,
I have searched around for some time now on the topic of measuring DC-current with a micro controller (for example PIC which is what I'm used to), but I haven't found as much useful information as I had hoped. The problem is that I'm not well informed when it comes to OP-amps. Rather than just asking for OP-amp circuits I thought I'd better share the whole concept to give you guys a chance to determine if I'm on the right track or not.
The project is meant to monitor a system comprised of a generator (windmill/solar panel), a 12V battery system (I say system as it will in reality consist of an array) and load circuit (lamps, laptops, the usual).
instead of just having a regulator for ensuring that the batteries aren't overcharged, I'm interested in building a monitoring system that can keep track of used and charged amp/hours. And of course momentary consumption/charging. (something like the energy monitoring in a Toyota Prius)
This approach brings up some initial conclusions:
1. Accuracy. Inaccuracy in current measuring will not only cause display-fault as in an normal amp-meter, it will also cause a drift in the values so that after running the system for a while, it will no longer know the amount of energy really stored in the batteries. A slight inaccuracy is of course impossible or at least impractical to try to build around, so making the system self-tuning is my guess, reseting the default "fully charged capacity" whenever the batteries reach a preset voltage. (and a routine for making sure that they never come under a certain voltage either of course).
time for a question, has anyone here built a amp/hour-meter using a shunt+OP-amp and PIC/AVR? Searching around the net has at least given me the conclusion that other means than shunts is not preferable, am I right? (transducer etc).
2. Point of measuring. The measuring system and the target system has the same power source, thus the point of measuring becomes an issue. Would it at all be practical to put the shunt between the positive side of the battery and for example the charging circuit using the offset voltage on the OP-amp? Or is it much more practical to measure the current on the GND-side?
3. Currents measured will be in the 0-5A for generator side, and 0-5A and 0-10A on the load side. This is probably possible with the same OP-amp, just using different resistor-nets? I need some tutorial circuits to get started with, and recommendation of suitable OP-amps.
I will have both 5V and 12V available if there is more choices of circuits driven by higher voltage than 5V.
I'm not new to micro controllers, and I'm fairly into general electronics but if you know any good OP-amp tutorials I should read, or current sensing projects of this kind that is useful, please post some links.
Thanks!
(edit: I'm going through the OP-amp tutorials present on this site, but I still want to hear your ideas and experience on this particular project even if I can find a suitable configuration in Nigels graphic etc).
I have searched around for some time now on the topic of measuring DC-current with a micro controller (for example PIC which is what I'm used to), but I haven't found as much useful information as I had hoped. The problem is that I'm not well informed when it comes to OP-amps. Rather than just asking for OP-amp circuits I thought I'd better share the whole concept to give you guys a chance to determine if I'm on the right track or not.
The project is meant to monitor a system comprised of a generator (windmill/solar panel), a 12V battery system (I say system as it will in reality consist of an array) and load circuit (lamps, laptops, the usual).
instead of just having a regulator for ensuring that the batteries aren't overcharged, I'm interested in building a monitoring system that can keep track of used and charged amp/hours. And of course momentary consumption/charging. (something like the energy monitoring in a Toyota Prius)
This approach brings up some initial conclusions:
1. Accuracy. Inaccuracy in current measuring will not only cause display-fault as in an normal amp-meter, it will also cause a drift in the values so that after running the system for a while, it will no longer know the amount of energy really stored in the batteries. A slight inaccuracy is of course impossible or at least impractical to try to build around, so making the system self-tuning is my guess, reseting the default "fully charged capacity" whenever the batteries reach a preset voltage. (and a routine for making sure that they never come under a certain voltage either of course).
time for a question, has anyone here built a amp/hour-meter using a shunt+OP-amp and PIC/AVR? Searching around the net has at least given me the conclusion that other means than shunts is not preferable, am I right? (transducer etc).
2. Point of measuring. The measuring system and the target system has the same power source, thus the point of measuring becomes an issue. Would it at all be practical to put the shunt between the positive side of the battery and for example the charging circuit using the offset voltage on the OP-amp? Or is it much more practical to measure the current on the GND-side?
3. Currents measured will be in the 0-5A for generator side, and 0-5A and 0-10A on the load side. This is probably possible with the same OP-amp, just using different resistor-nets? I need some tutorial circuits to get started with, and recommendation of suitable OP-amps.
I will have both 5V and 12V available if there is more choices of circuits driven by higher voltage than 5V.
I'm not new to micro controllers, and I'm fairly into general electronics but if you know any good OP-amp tutorials I should read, or current sensing projects of this kind that is useful, please post some links.
Thanks!
(edit: I'm going through the OP-amp tutorials present on this site, but I still want to hear your ideas and experience on this particular project even if I can find a suitable configuration in Nigels graphic etc).
Last edited: