
- RANGKAIAN ARDUINO NANO SERIAL
- RANGKAIAN ARDUINO NANO PRO
Thus our tutorial this time about programming the AC-DC current sensor module ACS712 using Arduino.The latest progress in information and communication technology (ICT) and the Internet of Things (IoT) have opened up new opportunities for real-time monitoring and controlling of cities’ structures, infrastructures, and services.
Get to know PZEM-004T Electronic Modules for Electrical Measurement Tools. Learn INA219 Current, Voltage & Power Sensor Modules with Arduino. To find out more details about the two modules and their sample programs, please open the following article : In addition to the ACS712 Module, there are several other electronic modules that we can use to measure electrical current, namely the INA219 and PZEM-004T modules. RANGKAIAN ARDUINO NANO SERIAL
Int sensorValue //value read from the sensorĪfter the sketch of the above program is uploaded to the Arduino board, open the Serial Monitor on the Baudrate 9600 of the Arduino IDE to see the measured current reading.
Serial.println(amplitude_current,6) //6 number after the decimal pointįunction: Sampling 5000ms and get the maximum value from A0 pin Voltage = (sensor_max / 1023) * 5000 // Voltage ( mV )Īmplitude_current = ((Voltage - ACSoffset) / mVperAmp) Įffective_value = amplitude_current / 1.414 Display the Value to Serial Monitor Window Serial.print("Raw Value = " ) // shows pre-scaled value Serial.println(RawValue) Serial.print("mV = ") // shows the voltage measured Serial.println(Voltage,3) // display 3 digits after decimal point Serial.print("Amps = ") // shows the voltage measured Serial.println(Amps,3) // display 3 digits after decimal point delay(2500) įloat amplitude_current //amplitude currentįloat effective_value //effective current Voltage = (RawValue / 1023) * 5000 // Voltage ( mV )Īmps = ((Voltage - ACSoffset) / mVperAmp) Load can use Lights / Drills / Power Supply + Cableįollowing is the circuit connection between the ACS712 module and Arduino Modul ACS712.
RANGKAIAN ARDUINO NANO PRO
Arduino UNO / Arduino Nano / Arduino Pro Mini. Current Sensor Module ACS712 5A / ACS712 20A / ACS712 30A. The hardware required in the example program ACS712 with Arduino in this tutorial, among others : Output voltage proportional to AC or DC currents. 2.1 kVRMS minimum isolation voltage from pins 1-4 to pins 5-8. Small footprint, low-profile SOIC8 package. 5 μs output rise time in response to step input current. Device bandwidth is set via the new FILTER pin. The following are the specifications and features of the ACS712 sensor : While the sample program in this article is used ACS712 20A, if using another type of ACS712, please replace the formula referring to the sensitivity data from ACS712 used so that the measurement results are correct. From these linear graphs, conclusions can be drawn :īecause the sensitivity data of each ACS712 is different, the programming must also be adjusted to the type of ACS712 used by referring to the sensitivity data. In the picture above is a sensitivity chart datasheet of each sensor ACS712 5A, ACS712 20A and ACS712 30A. With a high level of accuracy, an affordable price and a small size, making the ACS712 module very suitable for use in a variety of applications and projects, among others : The following figure shows the Typical Application of the ACS712 sensor module.
ACS712-30A for current measurements in the range of -30A to 30A. ACS712-20A for current measurements in the range of -20A to 20A. ACS712-05B for current measurements in the range of -5A to 5A. The ACS712 sensor module has 3 variants : The magnetic field is then converted into a voltage proportional to the current flowing by an IC Hall. What is meant by the Hall Effect is to flow the load path measured through a copper conduction medium to produce a magnetic field.
ACS712 is a sensor module to measure current both AC current and DC current using Hall Effect technology.