Hi,
I am a new comer to AVRs and am trying to design an Amp-Hour meter. My main constraint is that I need to measure on the High side. The second constraint is that the high side current measurement ICs are not available locally in Karachi, Pakistan.
The current measurement is for a UPS battery (12VDC car battery). Current sensing is to be done with a shunt resistor giving 60mv/50Amps; being attached to the (+) line. Current flow is bi-directional i.e. load current and battery charging current.
The ATMega16 was purchased in DIP package and as such the gain stages are not available. Therefore I have to resort to using off the shelf op-amps. I have researched the Net and have come up with the initial design using work by Bonnie Baker of Microchip. The attached ZIPPED Excel sheet has been developed to model the IA based on LM324. (pls disregard the Microchip IC number shown in the Excel sheet figure)
I have the following questions about the IA configuration figuring in the Excel sheet.
1. Will it be possible to power this IA from 12 Volt line in which the current is to be measured.
2. Can I connect the output of the IA directly to the ADC input of the ATmega without latchup issues and so forth. The ATmega would be running from a 7805, which (the 7805) would also derive its input voltage from the main 12 volt line.
3. How do I generate the 2.0 Volts required for VRef.
Help in the matter is greatly appreciated.
Aurangzeb
I am a new comer to AVRs and am trying to design an Amp-Hour meter. My main constraint is that I need to measure on the High side. The second constraint is that the high side current measurement ICs are not available locally in Karachi, Pakistan.
The current measurement is for a UPS battery (12VDC car battery). Current sensing is to be done with a shunt resistor giving 60mv/50Amps; being attached to the (+) line. Current flow is bi-directional i.e. load current and battery charging current.
The ATMega16 was purchased in DIP package and as such the gain stages are not available. Therefore I have to resort to using off the shelf op-amps. I have researched the Net and have come up with the initial design using work by Bonnie Baker of Microchip. The attached ZIPPED Excel sheet has been developed to model the IA based on LM324. (pls disregard the Microchip IC number shown in the Excel sheet figure)
I have the following questions about the IA configuration figuring in the Excel sheet.
1. Will it be possible to power this IA from 12 Volt line in which the current is to be measured.
2. Can I connect the output of the IA directly to the ADC input of the ATmega without latchup issues and so forth. The ATmega would be running from a 7805, which (the 7805) would also derive its input voltage from the main 12 volt line.
3. How do I generate the 2.0 Volts required for VRef.
Help in the matter is greatly appreciated.
Aurangzeb
Attachments
-
49 KB Views: 98