Maker Pro
Maker Pro

Current measurement using 50mV shunt and AVR microcontroller ADC

J

jim

Jan 1, 1970
0
I want to build a little device that will measure current flow to/from my
deep cycle batteries. I want this use a microcontroller to provide data
collection etc. The currents involved will be 0-30amps, either direction (
load and charging).

I seems to me that the 50mV from the shunt is far too low a value to
measure directly with the AVR's ADC, not to mention the problem of the
"negative voltage" on the shunt with the battery is being recharged (and
yes, I do want to measure charge current as well.

The entire device will be powered by the battery system itself, using 7805
(or some similar 5V regulator) to supply Vcc for the AVR.

I'm guessing I'll need to use some sort of opamp circuit to scale the
-50mV-to-+50mV raw input to something like 0-2.56 volts to be read by the
ADC.

My question is... how do I do this.. I'm more of a digital type so I'm
looking for advice on this analog project.

thanks

- jim
 
I

Iain Wilkie

Jan 1, 1970
0
Consider the MAX472 chip

--





jim said:
I want to build a little device that will measure current flow to/from my
deep cycle batteries. I want this use a microcontroller to provide data
collection etc. The currents involved will be 0-30amps, either direction (
load and charging).

I seems to me that the 50mV from the shunt is far too low a value to
measure directly with the AVR's ADC, not to mention the problem of the
"negative voltage" on the shunt with the battery is being recharged (and
yes, I do want to measure charge current as well.

The entire device will be powered by the battery system itself, using 7805
(or some similar 5V regulator) to supply Vcc for the AVR.

I'm guessing I'll need to use some sort of opamp circuit to scale the
-50mV-to-+50mV raw input to something like 0-2.56 volts to be read by the
ADC.

My question is... how do I do this.. I'm more of a digital type so I'm
looking for advice on this analog project.

thanks

- jim

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----
 
M

Michael A. Terrell

Jan 1, 1970
0
Robert said:
More Maxim / Dallas vaporware?


We all know you get a hardon every time someone mentions anything
made by Maxim. Get over it. You've cried about them for years and you
make yourself look like a fool.
 
R

Robert Baer

Jan 1, 1970
0
Michael said:
We all know you get a hardon every time someone mentions anything
made by Maxim. Get over it. You've cried about them for years and you
make yourself look like a fool.
Do tell.
I have talked to a number of reps that quit handling Maxim due to the
sever problems of part availability.
Add that to the number of times i tried to get parts..even two for
eval - and there were zilch.
Perhaps you should make them sole source for all ICs...
 
M

Michael A. Terrell

Jan 1, 1970
0
Robert said:
Perhaps you should make them sole source for all ICs...


Maxim was about 20% of our IC usage and we never had any problems
with buying production quantities from them. I have never had any
problems getting any samples from them, or any data I needed. In fact,
the first time I contacted them directly they sent me a copy of every
databook they had in print after Pioneer failed to send me some
photocopies I requested, and didn't tell me about Maxim's samples
policy. In fact, Pioneer screwed me on the prices and took months to
get the parts. Maxim sent me the samples in three days. I no longer
deal with Pioneer in Orlando.

In case you don't know, they are either second sourced, or are second
source on a number of parts.
 
Top