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, 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 integrated Hall effect sensor ensures electrical isolation between the current-carrying conductor and the output signal, making it a safe and reliable choice for various systems.

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!
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
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
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 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 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 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 control and monitoring
  • Power supply and battery management
  • Overcurrent protection in circuits
  • Energy metering and load monitoring
  • Inverter and solar power systems

Technical Specifications

The ACS712 is available in different variants based on the current range it can measure. Below are the key technical details:

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 185 mV/A (±5A), 100 mV/A (±20A), 66 mV/A (±30A)
Isolation Voltage 2.1 kV RMS
Response Time 5 µs
Operating Temperature Range -40°C to 85°C

Pin Configuration

The ACS712 is typically available in an 8-pin SOIC package. Below is the pinout description:

Pin Number Pin Name Description
1 IP+ Positive current input terminal (connect to the current-carrying conductor)
2 IP- Negative current input terminal (connect to the current-carrying conductor)
3 NC Not connected
4 GND Ground (connect to circuit ground)
5 VIOUT Analog output voltage proportional to the sensed current
6 NC Not connected
7 NC Not connected
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 circuit ground.
  2. Current Input: Pass the current-carrying conductor through the IP+ and IP- terminals. Ensure the current does not exceed the rated range of the specific ACS712 variant.
  3. Output Signal: The VIOUT pin provides an analog voltage proportional to the current. This output can be read using an ADC (Analog-to-Digital Converter) on a microcontroller or other measurement devices.
  4. Load Resistor: Optionally, connect a pull-down resistor to stabilize the output signal.

Important Considerations

  • Isolation: The ACS712 provides electrical isolation between the current-carrying conductor and the output signal, ensuring safety in high-voltage applications.
  • Filtering: Add a capacitor (e.g., 0.1 µF) between the VIOUT pin and GND to reduce noise in the output signal.
  • Calibration: The output voltage at zero current is approximately VCC/2. Calibrate your system to account for this offset.
  • Current Direction: Positive current flows from IP+ to IP-, and the output voltage increases proportionally.

Example: Using ACS712 with Arduino UNO

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

// Include necessary libraries (if any)

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

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

// Define the supply voltage (Vcc)
const float Vcc = 5.0; // Supply voltage in volts

// Define the zero-current voltage (Vcc/2)
const float zeroCurrentVoltage = Vcc / 2;

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 / 1023.0) * Vcc;

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

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

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

Notes:

  • Adjust the sensitivity variable based on the ACS712 variant you are using.
  • Ensure proper calibration to account for any offset in the zero-current voltage.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Signal:

    • Ensure the VCC and GND pins are properly connected to a 5V power supply.
    • Verify that the current-carrying conductor is connected to the IP+ and IP- terminals.
  2. Inaccurate Readings:

    • Check the sensitivity value used in calculations. It must match the ACS712 variant.
    • Add a filtering capacitor (e.g., 0.1 µF) to reduce noise in the output signal.
    • Calibrate the zero-current voltage (VCC/2) for your specific setup.
  3. Output Voltage Saturation:

    • Ensure the current flowing through the sensor does not exceed its rated range.
    • Use the correct ACS712 variant for your application (e.g., ±5A, ±20A, or ±30A).
  4. High Noise in Output:

    • Use a shielded cable for the current-carrying conductor.
    • Place the ACS712 away from high-frequency noise sources.

FAQs

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

Q2: What happens if the current exceeds the rated range?
Exceeding the rated current range may cause inaccurate readings or damage the sensor. Always use the appropriate variant for your application.

Q3: How do I know which ACS712 variant I have?
The variant is typically marked on the package (e.g., ACS712-05B for ±5A, ACS712-20A for ±20A, etc.).

Q4: Can I use the ACS712 with a 3.3V microcontroller?
Yes, but you must ensure the output voltage range of the ACS712 is compatible with the ADC input range of your microcontroller.