|Published (Last):||26 July 2006|
|PDF File Size:||18.32 Mb|
|ePub File Size:||5.19 Mb|
|Price:||Free* [*Free Regsitration Required]|
Acs can measure current precisely and accurately if properly managed. I have gone through various blogs on internet about interfacing acs current sensor with arduino and other microcontrollers. I found that all of them are measuring current with formulas derived for acs current sensor which are not precise.
So i decided to write a tutorial on acs current sensor and put forward a practical example with circuit and code. In this tutorial i will define the best method and precise formula generation for measuring dc current with acs current sensor.
I will define each and every step of code and circuit thoroughly and deeply with logic. Project code is open source and you can download and modify it according to your needs. Acs current sensor can measure both direct and alternating current. Formula which i derived and explained in the tutorial is only for direct current measurement. You can not use the below formula to measure alternating current with acs hall effect current sensor.
Pin out and Pin description of the chip is below. Recall the high school lectures, current can be measured only in series. VIout Viout is the voltage out pin.
Viout decreases when current start flowing through the acs pins. Acs is available in market in three ratings. Where mV change in Output voltage from initial state represents 1-Ampere change in Input current. Where 66mV change in Output voltage from initial state represents 1-Ampere change in Input current.
Arduino measured analog reading is the analog signal value read and converted to actual voltage from the analog channel to which acs output is connected. For all the acs versions it is given in the above picture. Arduino acs current sensor Reassembled acs current sensor boards are available in market. They are easy to install in circuit and connections are pretty straight forward. They have three pins. Two are power pins vcc and gnd. The third one is output pin. A 2 pole connector is also present to insert the wire of device whose current is needed to be measured.
A typical arduino acs current circuit board looks like the one given below. Now i am going to interface the arduino acs current sensor with arduino uno. I will interface all the different current rated boards one by one with arduino uno.
It measures current precisely. Test code and results are summarized in an another post link is below. The circuit is universal and all the above three codes for different versions of acs current sensor can work with the same circuit given below.
You just need to insert your acs current sensor in circuit and download its corresponding code given in the post in arduino uno, rest of the connections are same for all the different acs rated current sensors. Acs with Arduino Uno -Circuit Diagram After making circuit and downloading the code in arduino uno.
Open the arduino serial monitor from arduino ide. As soon as you open the arduino serial monitor you will see the measured current value displaying in the arduino ide serial monitor window.
Go through all the possible physical connections. If you see broken alphabets in arduino serial monitor window then set the baud rate of arduino serial monitor window to bps in order to see the proper data characters and numbers.
acs712elctr 20a t
The ACS712 Current Sensor with an Arduino