I am using current sensor acs712 for measuring dc current ,the problem is it is giving the same output around 500 on analog pin regardless of the load ( even without load)
I am using the uno board and example program to read the analog input and visualize it using serial moitor
There is no useful information in your post.
For informed help, please read and follow the directions in the "How to use this forum" post.
musabkazmi:
the problem is it is giving the same output around 500 on analog pin regardless of the load (even without load)
Which is normal behaviour.
The ACS712 outputs VCC/2 (half of it's supply voltage) without any current through the sensor.
Giving a value of about 512 when read with the 10-bit A/D of an Uno.
The direction of the current changes this value (higher or lower).
The code must subtract ~512 from the returned analogue value to know the direction and current,
and then apply a multiplication factor to display it in a human readable form.
Note that you're only going to get about 400 useable positive or negative values from this sensor.
A resolution (steps) of 0.1Amp might be hard or almost impossible.
Leo..
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
What model Arduino are you using?
What spec ACS712 are you using? That is what maximum current rating does it have?
Thanks.. Tom..