Professional Documents
Culture Documents
aspx
microchip.com
gailu96
New Member
Total Posts : 11
Reward points : 0
Joined: 3/1/2016
Location: 0
Status: offline
@SpokaneNexus
I need to measure 90mA accurately without any fail. I DO NOT
need 15A measurement at all.However I care about 15A for
following reasons because 15A is the max current that can flow
through ACS712 IC.
1 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
application
2) Suppose ACS712-5A works well for 15A or I use LM321 to
increase gain as specified in ACS712 data sheet (page-12,
Typical Application) I see following danger.
a) At 15A voltage increase would be .185*15 = 2.77V so sensor
output on positive side would be 2.5+2.77 = 5.2 and on negative
side it will be in minus. I suspect that could damage the micro
controller pin.
CinziaG
morite
Reward points : 0
Joined: 12/7/2016
Location: Wien
Status: offline
Weydert
2 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Super Member
Reward points : 0
Joined: 7/2/2008
Location: Aachen/Germany
Status: offline
@Mysil:
Did you use a similar PIC as gailu96?
From your results the PIC seems to make the noise.
You get an overall max. of 529dez and an overall min. of 492dez.
,but the average is stable.
The max. and min. values compare to the results of gailu96 (max.
527dez, min. 495 dez.) when he
shortcuts the analog input with 100nF.
These high noise is unacceptable for an ADC.
Unless the noise (with input at Vdd/2 from a resistive divider) can
be reduced by hardware dramaticly
noboddy will have any fun with this A/D converter
simong123
3 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Reward points : 0
Joined: 2/7/2012
Status: offline
gailu96
@SpokaneNexus
I need to measure 90mA accurately without any fail. I DO NOT
need 15A measurement at all.However I care about 15A for
following reasons because 15A is the max current that can flow
through ACS712 IC.
Suppose I use ACS712-5A model (185mv/A),
1) I doubt that it is recommended to use ACS712-5A for 15A
application
2) Suppose ACS712-5A works well for 15A or I use LM321 to
increase gain as specified in ACS712 data sheet (page-12,
Typical Application) I see following danger.
a) At 15A voltage increase would be .185*15 = 2.77V so sensor
output on positive side would be 2.5+2.77 = 5.2 and on negative
side it will be in minus. I suspect that could damage the micro
controller pin.
4 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
to Vcc*0.0625 - Vcc*0.9375.
An Op-Amp cannot output outside it's supply rails, so use a R-R
I/O Op-Amp with Vss=PIC 0V & Vcc= PIC Vcc.
gailu96
New Member
Total Posts : 11
Reward points : 0
Joined: 3/1/2016
Location: 0
Status: offline
@simong123
Thanks for your great inputs. Can you please let me know page
numbers where I could find clamping details in ACS712
datasheet. I am referring to (http://www.allegromicro.com/~/media
/files/datasheets/acs712-datasheet.ashx) and not able to find the
clamping details you mentioned. Am I referring to a wrong
document? Can you please provide link to the document you are
referring?
simong123
5 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Reward points : 0
Joined: 2/7/2012
Status: offline
Hmm. My copy shows more than the one that you linked.
Screen cap of relevant section attached
Attached Image(s)
Mysil
Super Member
Reward points : 0
Joined: 7/1/2012
6 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Location: Norway
Status: offline
Hi,
@Weydert:
I did use PIC16F688 in 14 pin PDIP package,
I believe this to be the similar family and generation as 8 pin
PIC16F675 used by original poster.
7 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Regards,
Mysil
SpokaneNexus
Super Member
8 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Reward points : 0
Joined: 2/5/2013
Location: 0
Status: offline
The ACS parts, and any opamp you care to use, cannot drive an
output voltage beyond their own supply rails. Since you're running
on a 5V rail, you're not going to get anything above 5V or below
0V. The A/D input will be just fine as long as you're using a PIC
that is itself running on 5V.
SpokaneNexus
9 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Super Member
Reward points : 0
Joined: 2/5/2013
Location: 0
Status: offline
gailu96OP state that output from the sensor is very stable when
there is no current in the measurement circuit, but there is no
explanation how this is verified. We have verified from Multimeter.
Exact Model - Fluke 101. Unfortunately I do not have scope.
10 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
degrees later, etc. So... you put a cap on the filter pin of the ACS,
and/or you put a simple RC filter on pin 7 heading toward the A/D
input, to average out the signal to something stable for the A/D.
What is the average of a sine wave? Zero. In this case, with zero
centered on 2.5VDC, the average will be 2.5VDC. No matter how
much current is flowing, the average will always be at or near
2.5VDC.
PStechPaul
Super Member
Reward points : 0
11 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Joined: 6/27/2006
Status: offline
(4) Since you are monitoring power line AC current of 50/60 Hz,
you might want to consider a simple and inexpensive donut type
CT where you just run the current lead through it. Such as:
http://www.mouser.com/ds/2/410/media-1067465.pdf
http://www.mouser.com/ds/2/599/4622-X011-288041.pdf
12 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
13 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
gailu96
New Member
Total Posts : 11
Reward points : 0
Joined: 3/1/2016
Location: 0
Status: offline
SpokaneNexus
Super Member
14 of 15 02/11/2018 11:26
High Variance in ADC value with ACS712 Current Sensor on PIC12F675 about:reader?url=https://www.microchip.com/forums/m971651-p2.aspx
Reward points : 0
Joined: 2/5/2013
Location: 0
Status: offline
15 of 15 02/11/2018 11:26