PIC Lesson: Sensor ACS712

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.

PIC Source Code

28 Replies to “PIC Lesson: Sensor ACS712”

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

  2. 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:)

  3. 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

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

  5. 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…

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

  6. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.