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
Sertai Telegram Group bagi dapatkan source code
28 responses to “PIC Lesson: Sensor ACS712”
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.
I don’t have time to write you a code. I never use LABVIEW yet. Can contact me at Tentang Saya.
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…
ws, mon. Sensor tu boleh baca AC current. Zero crossing pada 2.5V, jadi keluarannya akan ada ripple. Program PIC kena kirakan nilai RMS.
Dear Shahrul,
hi ,want to ask how to connect IP+ n IP- to the source?? is it ant polarity of that two pins??
kitty, IP+ and IP- connect in series with measured current like to use multimeter to measure current.
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
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.
klao vcc untuk sensor arus acs 712 berapa volt ya?
jerry, VCC = 5V.
dear shahrul:
hi,may i know wat r the range of VOUT value??
THanks:)
You can read datasheet.
Accuracy <-> Sensitivy; 5A <-> 185mV/A; 20A <-> 100mV/A; 30A <-> 66mV/A
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:)
Yes, you can connect Vout directly to RA0 or parallel the capacitor at Vout also can.
dear shahrul;
hai,can i direct connect current sensor (ACS712) to power supply without other component..
thank 🙂
kitty, yes can.
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 🙂
I don’t have time to check your work. That is not my job.
hi
why inside the video show tat the red colour of current ??
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
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
w/salam, sha. Current sensor x boleh guna untuk convert current, ia hanya untuk baca current.
bolehke digunakan untuk overload current ntuk dc motor
mohd, mungkin boleh. Hanya perlu try-and-error.
current sensor ni boleh detect current yg rendah tak? contohnya 3 mA….
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.
tolong dong cara nentuin rumus dengan kaedah curve fittingnya itu gimana..masih belum ngerti, terimakasih
gimana caranya supaya pembacaan sensor arusnya bisa stabil di LCD ya..