Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use acs712: Examples, Pinouts, and Specs

Image of acs712
Cirkit Designer LogoDesign with acs712 in Cirkit Designer

Introduction

The ACS712 Current Sensor, manufactured by Allegro MicroSystems, is a Hall effect-based linear current sensor designed to measure both AC and DC currents. It provides an analog voltage output proportional to the current flowing through the sensor. The device is widely used in applications requiring current monitoring, such as motor control, power management, and overcurrent protection. Its compact design, high accuracy, and electrical isolation make it a popular choice for both hobbyists and professionals.

Explore Projects Built with acs712

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino and GSM-Based Power Monitoring and Wi-Fi Controlled Lighting System
Image of light monitoring system: A project utilizing acs712 in a practical application
This circuit is designed to monitor voltage and current using ACS712 current sensors and voltage sensors, calculate power, and control lighting via relay modules. It features an Arduino Uno R3 for processing sensor data and executing control logic, which includes sending alerts via a GSM module (sim 800l) if power falls below a threshold and connecting to WiFi using an ESP8266 module. The circuit also includes a battery with a charging module (TP4056), a step-up boost converter, and multiple AC power supplies with circuit breakers for safety.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
Image of DT NEA - Noah Patel: A project utilizing acs712 in a practical application
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32C3 Smart Home Energy Monitor with Wi-Fi Control and LED Indicators
Image of EXTENSION: A project utilizing acs712 in a practical application
This circuit uses an ESP32C3 microcontroller to monitor power consumption via ACS712 current and voltage sensors, control appliances through a relay, and indicate WiFi connection status with green and red LEDs. The relay can be controlled via a web interface, and the red LED indicates WiFi disconnection while the green LED indicates a successful connection.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Power Monitoring and SMS Control System
Image of Light monitor project final: A project utilizing acs712 in a practical application
This circuit is designed to monitor and control power consumption for two separate sets of AC loads using current and voltage sensors. It features an ESP32 microcontroller that reads sensor data to calculate power, communicates via a GSM module for remote monitoring and control, and uses a 2-channel relay to switch the loads. The system can send notifications when power consumption falls below predefined thresholds and respond to SMS commands to control the connected lights.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with acs712

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of light monitoring system: A project utilizing acs712 in a practical application
Arduino and GSM-Based Power Monitoring and Wi-Fi Controlled Lighting System
This circuit is designed to monitor voltage and current using ACS712 current sensors and voltage sensors, calculate power, and control lighting via relay modules. It features an Arduino Uno R3 for processing sensor data and executing control logic, which includes sending alerts via a GSM module (sim 800l) if power falls below a threshold and connecting to WiFi using an ESP8266 module. The circuit also includes a battery with a charging module (TP4056), a step-up boost converter, and multiple AC power supplies with circuit breakers for safety.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of DT NEA - Noah Patel: A project utilizing acs712 in a practical application
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EXTENSION: A project utilizing acs712 in a practical application
ESP32C3 Smart Home Energy Monitor with Wi-Fi Control and LED Indicators
This circuit uses an ESP32C3 microcontroller to monitor power consumption via ACS712 current and voltage sensors, control appliances through a relay, and indicate WiFi connection status with green and red LEDs. The relay can be controlled via a web interface, and the red LED indicates WiFi disconnection while the green LED indicates a successful connection.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Light monitor project final: A project utilizing acs712 in a practical application
ESP32-Based Power Monitoring and SMS Control System
This circuit is designed to monitor and control power consumption for two separate sets of AC loads using current and voltage sensors. It features an ESP32 microcontroller that reads sensor data to calculate power, communicates via a GSM module for remote monitoring and control, and uses a 2-channel relay to switch the loads. The system can send notifications when power consumption falls below predefined thresholds and respond to SMS commands to control the connected lights.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Motor current sensing
  • Power supply monitoring
  • Overcurrent fault detection
  • Battery management systems
  • Inverter and solar power systems
  • Robotics and automation

Technical Specifications

The ACS712 is available in different variants based on the current range. Below are the key specifications:

Parameter Value
Manufacturer Allegro MicroSystems
Part Number ACS712
Current Measurement Range ±5A, ±20A, ±30A (depending on variant)
Supply Voltage (Vcc) 4.5V to 5.5V
Output Voltage Range 0V to Vcc
Sensitivity (Typ.) 185 mV/A (±5A), 100 mV/A (±20A), 66 mV/A (±30A)
Bandwidth 80 kHz
Response Time 5 µs
Isolation Voltage 2.1 kV RMS
Operating Temperature Range -40°C to 85°C
Package Type SOIC-8

Pin Configuration

The ACS712 has 8 pins, as described in the table below:

Pin Number Pin Name Description
1, 2 IP+ Current input terminal (positive side of the load)
3, 4 IP- Current input terminal (negative side of the load)
5 GND Ground pin
6 FILTER External capacitor connection for bandwidth control
7 VIOUT Analog output voltage proportional to current
8 VCC Supply voltage (4.5V to 5.5V)

Usage Instructions

How to Use the ACS712 in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power supply and the GND pin to the ground.
  2. Current Measurement: Pass the current-carrying conductor through the IP+ and IP- terminals. Ensure the current does not exceed the sensor's rated range.
  3. Output Signal: The VIOUT pin provides an analog voltage proportional to the measured current. This output can be read using an ADC (Analog-to-Digital Converter) on a microcontroller.
  4. Bandwidth Control: Connect a capacitor between the FILTER pin and GND to set the desired bandwidth. For most applications, a 1 nF capacitor is recommended.

Important Considerations

  • Isolation: The ACS712 provides electrical isolation between the current-carrying conductor and the output signal, making it safe for high-voltage applications.
  • Calibration: The sensor's output at 0A is typically VCC/2 (e.g., 2.5V for a 5V supply). Calibrate your system to account for this offset.
  • Noise Filtering: Use a capacitor on the FILTER pin to reduce noise and improve measurement stability.
  • Current Direction: Positive current flows from IP+ to IP-, resulting in an output voltage above VCC/2. Negative current results in a voltage below VCC/2.

Example: Using ACS712 with Arduino UNO

Below is an example of how to interface the ACS712 with an Arduino UNO to measure current:

// Define the analog pin connected to the ACS712 output
const int sensorPin = A0;

// Sensitivity of the ACS712 (e.g., 185 mV/A for ±5A variant)
const float sensitivity = 0.185; // in volts per ampere

// Voltage at 0A (VCC/2 for a 5V supply)
const float zeroCurrentVoltage = 2.5; // in volts

void setup() {
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  // Read the analog value from the sensor
  int sensorValue = analogRead(sensorPin);

  // Convert the analog value to voltage
  float sensorVoltage = sensorValue * (5.0 / 1023.0);

  // Calculate the current in amperes
  float current = (sensorVoltage - zeroCurrentVoltage) / sensitivity;

  // Print the current to the Serial Monitor
  Serial.print("Current: ");
  Serial.print(current);
  Serial.println(" A");

  delay(1000); // Wait for 1 second before the next reading
}

Notes:

  • Replace sensitivity with the appropriate value for your ACS712 variant (e.g., 0.1 for ±20A or 0.066 for ±30A).
  • Ensure the Arduino's ADC reference voltage matches the sensor's VCC (typically 5V).

Troubleshooting and FAQs

Common Issues

  1. No Output Signal:

    • Ensure the sensor is powered correctly (VCC = 5V, GND connected).
    • Verify that the current-carrying conductor is properly connected to IP+ and IP-.
  2. Inaccurate Readings:

    • Check for proper calibration (account for the zero-current offset voltage).
    • Use a capacitor on the FILTER pin to reduce noise.
    • Ensure the current does not exceed the sensor's rated range.
  3. Output Voltage Stuck at VCC/2:

    • This indicates no current is flowing through the sensor. Verify the connections and load.

FAQs

Q: Can the ACS712 measure both AC and DC currents?
A: Yes, the ACS712 can measure both AC and DC currents. The output voltage varies proportionally with the instantaneous current.

Q: How do I select the correct ACS712 variant?
A: Choose a variant based on the maximum current you need to measure. For example, use the ±5A variant for low-current applications and the ±30A variant for high-current applications.

Q: What is the purpose of the FILTER pin?
A: The FILTER pin allows you to connect an external capacitor to control the sensor's bandwidth and reduce noise in the output signal.

Q: Is the ACS712 suitable for high-voltage applications?
A: Yes, the ACS712 provides electrical isolation up to 2.1 kV RMS, making it safe for high-voltage applications.

By following this documentation, you can effectively integrate the ACS712 Current Sensor into your projects and achieve accurate current measurements.