PIC Lesson: Current Sensor ACS712

April 13th, 2011  Posted at   PIC Lesson

ACS712 adalah Hall Effect current sensor. Current sensor ini boleh membaca arus DC dan AC.

Hubungan arus masukan dengan voltan keluaran diharapkan untuk linear tetapi linear nya tidaklah setepat mungkin. Sensor ini perlu diuji untuk mengambil data-data perhubungan. Kemudian daripada data-data tersebut perlu mencari persamaan matematik paling hampir menggunakan kaedah Curve Fitting.

Apabila sudah mendapatkan persamaan matematik, boleh dimasukkan ke dalam programming PIC.

Berikut adalah videonya.

Anda mungkin belum baca post ini

26 komen untuk PIC Lesson: Current Sensor ACS712

  1. 1. Komen dari Navid pada 9:23 PM, 4th July 2011

    Dear Shahrul,

    Thanks for your comment in Forums of Cytron related to ACS712.
    It helped me to solve the problem.

    May i ask the following questions:

    1- ACS712 is able to measure the current till what value? (Input to the ACS712)

    2- Write me the code to display 20.15 instead of (20.1)- I can’t get the exact code for that within your program.

    3- Do you have any experience with LABVIEW for real time monitoring of analog measurement?

    Can i have your email address to keep in touch?

    Thanks in advance.

  2. 2. Komen dari Shahrul pada 9:42 PM, 4th July 2011

    I don’t have time to write you a code. I never use LABVIEW yet. Can contact me at Tentang Saya.

  3. 3. Komen dari mon pada 4:09 AM, 25th December 2011

    salam shahrul..
    nk tanya,kalau kita nk measure ac current,cara nya adalah sama x?boleh x kita measure direct je dripada AC current tu melalui Current Transformer output?
    Terima Kasih ye…

  4. 4. Komen dari Shahrul pada 3:52 PM, 25th December 2011

    ws, mon. Sensor tu boleh baca AC current. Zero crossing pada 2.5V, jadi keluarannya akan ada ripple. Program PIC kena kirakan nilai RMS.

  5. 5. Komen dari kitty pada 5:37 PM, 7th April 2012

    Dear Shahrul,
    hi ,want to ask how to connect IP+ n IP- to the source?? is it ant polarity of that two pins??

  6. 6. Komen dari Shahrul pada 9:14 AM, 8th April 2012

    kitty, IP+ and IP- connect in series with measured current like to use multimeter to measure current.

  7. 7. Komen dari kitty pada 1:04 PM, 24th April 2012

    dear shahrul:
    hi ,i use this ACS712 sensor to measure a 9V battery by connect it in series with 10k ohm of resistor to the the terminal of (ip+ and ip- which is initially connected internally )..M i doing the right connection??because i get the same result of Vout=2.32v ,before and after connected to the battery.
    Please guide me…thanks

  8. 8. Komen dari Shahrul pada 1:24 PM, 24th April 2012

    kitty, yes the connection is right. Maybe the current very small. 9V through 10k ohm is 0.9mA. It needs 0.5A to see the changes.

  9. 9. Komen dari jerry pada 9:16 PM, 24th April 2012

    klao vcc untuk sensor arus acs 712 berapa volt ya?

  10. 10. Komen dari Shahrul pada 12:38 PM, 25th April 2012

    jerry, VCC = 5V.

  11. 11. Komen dari kitty pada 1:25 PM, 25th April 2012

    dear shahrul:
    hi,may i know wat r the range of VOUT value??
    THanks:)

  12. 12. Komen dari Shahrul pada 1:50 PM, 25th April 2012

    You can read datasheet.
    Accuracy < -> Sensitivy; 5A < -> 185mV/A; 20A < -> 100mV/A; 30A < -> 66mV/A

  13. 13. Komen dari kitty pada 3:26 PM, 25th April 2012

    dear shahrul
    can i connect the sensor VOUT directly to the pic RA0 without any passive load…??should i make connection to filter or just no connected it???
    thanks very much:)

  14. 14. Komen dari Shahrul pada 6:23 PM, 25th April 2012

    Yes, you can connect Vout directly to RA0 or parallel the capacitor at Vout also can.

  15. 15. Komen dari kitty pada 12:51 AM, 4th May 2012

    dear shahrul;
    hai,can i direct connect current sensor (ACS712) to power supply without other component..
    thank :)

  16. 16. Komen dari Shahrul pada 7:33 AM, 4th May 2012

    kitty, yes can.

  17. 17. Komen dari kitty pada 2:11 PM, 4th May 2012

    dear shahrul
    hi , can u check ur mail at shahrul_rejab@yahoo.com .i email the schematic diagram to u see.
    the method 1 can be use or nt??
    thank u so much :)

  18. 18. Komen dari Shahrul pada 2:45 PM, 4th May 2012

    I don’t have time to check your work. That is not my job.

  19. 19. Komen dari gary pada 5:33 PM, 30th May 2012

    hi
    why inside the video show tat the red colour of current ??

  20. 20. Komen dari Vinicius pada 1:10 PM, 20th July 2012

    Hello friend, I’m majoring in Computer Engineering from the Catholic University of Goiás Brazil. I’m working with the ACS712 current sense, but I’m not getting to the Vout vary by AC. I’m calling a Lamp (Fluorescent Light) and in series with the light I’m connecting the sensor ACS712. The idea is to measure the current that Light is consuming. When I turn the light vout remains unchanged. I plugged the Vout in the PIC18F4550 but the AD0 to read the AD0 not find any variation. How can I solve this problem?

    Sorry for my bad English.

    graciously

    Vinicius O. Santos

  21. 21. Komen dari sha pada 12:36 AM, 20th September 2012

    salam..en sharul, sy ingin btanya,,, if kita nk convert ac to dc.. utk nak compile pada PIC bleh guna current sensor x? cth nye dr arus 240v..nk jd kn 1A pstu dr 1A to nk compile pd PIC..bile dia detect crrent high or low

  22. 22. Komen dari Shahrul pada 8:34 PM, 21st September 2012

    w/salam, sha. Current sensor x boleh guna untuk convert current, ia hanya untuk baca current.

  23. 23. Komen dari mohd pada 4:22 PM, 22nd March 2013

    bolehke digunakan untuk overload current ntuk dc motor

  24. 24. Komen dari Shahrul pada 4:26 PM, 22nd March 2013

    mohd, mungkin boleh. Hanya perlu try-and-error.

  25. 25. Komen dari wan pada 2:24 AM, 19th May 2013

    current sensor ni boleh detect current yg rendah tak? contohnya 3 mA….

  26. 26. Komen dari sha pada 11:30 AM, 19th May 2013

    salam… en.. sy nk tnya… ble dh ukur smua nilai spt yg en gtau kat lesson tu then buat persamaan mate utk PIC kan…so smbungan dia mcm mn ye en?? cntoh dr DC ..serata klau sy buat dgn AC mcm mn plk smbungan nye.. itu yg sy msih x fham.

Dah baca, tinggalkan komen anda disini

What is 5 + 15 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)