Stufin
Home Quick Cart Profile

5A ACS712 Current Sensor

Buy Now on Stufin

Name

5A ACS712 Current Sensor

Description

The 5A ACS712 Current Sensor is a high-precision, bidirectional current sensor module designed to measure AC and DC currents with high accuracy. The module is based on the ACS712 Hall effect sensor chip from Allegro MicroSystems, which provides a precise measurement of the current flowing through a conductor.

Functionality

The 5A ACS712 Current Sensor module is capable of measuring currents in both directions, making it suitable for a wide range of applications, including

Monitoring AC and DC power supplies

Measuring motor currents

Determining energy consumption

Detecting overcurrent conditions

The module operates by detecting the magnetic field generated by the current flowing through a conductor, such as a wire, and converting it into a proportional analog output voltage. The output voltage is then read by a microcontroller or other devices for processing and analysis.

Key Features

  • High Accuracy: The ACS712 chip offers high accuracy, with a typical error of 1.5% at 25C, making it suitable for precise current measurement applications.
  • Bidirectional Measurement: The module can measure currents in both directions, allowing it to detect changes in current flow direction.
  • Wide Operating Range: The module can measure currents ranging from -5A to 5A, making it suitable for a wide range of applications.
  • High Bandwidth: The module has a bandwidth of 80 kHz, allowing it to accurately measure current waveforms with high frequency components.
  • 5V Operating Voltage: The module operates with a 5V supply voltage, making it compatible with most microcontrollers and other digital systems.
  • Analog Output: The module provides an analog output voltage that is proportional to the measured current, allowing for easy integration with microcontrollers and other devices.
  • Small Form Factor: The module is compact in size, making it suitable for use in space-constrained applications.
  • Easy Integration: The module has a simple, three-pin interface (VCC, GND, and OUT) that makes it easy to integrate into a wide range of systems.

Supply Voltage

5V

Operating Temperature

-20C to 85C

Accuracy

1.5% at 25C

Bandwidth

80 kHz

Output Sensitivity

185 mV/A

Noise Sensitivity

1.5 mV rms

Response Time

50 s

Applications

The 5A ACS712 Current Sensor module is suitable for a wide range of applications, including

Motor control and monitoring

Power supply monitoring

Energy harvesting and monitoring

Industrial automation

IoT devices

Robotics

Automotive systems

Conclusion

The 5A ACS712 Current Sensor module is a high-precision, bidirectional current sensor module that offers accurate and reliable current measurement capabilities. Its wide operating range, high accuracy, and ease of integration make it an ideal choice for a wide range of applications.

Pin Configuration

  • 5A ACS712 Current Sensor Documentation
  • Pinout Description:
  • The 5A ACS712 Current Sensor module has five pins, which are used to measure the current flow through a load and provide an analog output proportional to the current. Here's a detailed description of each pin:
  • Pin 1: VCC
  • Function: Power supply pin
  • Voltage: 5V DC
  • Description: This pin is used to power the ACS712 IC. Connect a 5V DC power source to this pin.
  • Pin 2: GND
  • Function: Ground pin
  • Voltage: 0V
  • Description: This pin is the ground reference point for the module. Connect it to the ground of your microcontroller or power source.
  • Pin 3: OUT
  • Function: Analog output pin
  • Voltage: 0-5V DC (analog output)
  • Description: This pin provides an analog output voltage that is proportional to the current flowing through the IP+ and IP- terminals. The output voltage is centered around 2.5V when there is no current flow. Connect this pin to an analog input pin of your microcontroller to read the current value.
  • Pin 4: IP-
  • Function: Current sensing pin (negative)
  • Description: This pin is one of the current sensing terminals. Connect the negative leg of your load (the device you want to measure current for) to this pin.
  • Pin 5: IP+
  • Function: Current sensing pin (positive)
  • Description: This pin is the other current sensing terminal. Connect the positive leg of your load (the device you want to measure current for) to this pin.
  • Connection Structure:
  • To use the 5A ACS712 Current Sensor, follow these steps:
  • 1. Power Supply:
  • Connect the VCC pin (Pin 1) to a 5V DC power source.
  • Connect the GND pin (Pin 2) to the ground of your power source or microcontroller.
  • 2. Load Connection:
  • Connect the positive leg of your load (device you want to measure current for) to the IP+ pin (Pin 5).
  • Connect the negative leg of your load (device you want to measure current for) to the IP- pin (Pin 4).
  • 3. Analog Output:
  • Connect the OUT pin (Pin 3) to an analog input pin of your microcontroller.
  • Note:
  • Make sure to use a suitable current-carrying wire for connecting the load to the IP+ and IP- pins, as the sensor can measure up to 5A of current.
  • Take care when handling the module, as it can be damaged by excessive current or voltage.
  • Refer to the datasheet of the ACS712 IC for more detailed information on the sensor's specifications and usage.

Code Examples

ACS712 5A Current Sensor Documentation
Overview
The ACS712 5A current sensor is a high-accuracy, Hall-effect-based linear current sensor that can measure AC or DC currents up to 5A. It provides an analog output voltage that is proportional to the input current. This sensor is ideal for a wide range of applications, including industrial automation, motor control, and energy monitoring.
Pinout
| Pin | Description |
| --- | --- |
| VCC | Power supply pin (5V) |
| GND | Ground pin |
| OUT | Analog output pin |
| IP+ | Current input pin (+) |
| IP- | Current input pin (-) |
Technical Specifications
Current measurement range: 5A
 Sensitivity: 185 mV/A
 Output voltage range: 0-5V
 Accuracy: 1.5% (typical)
 Operating temperature range: -40C to 125C
 Power supply voltage: 5V (10%)
Code Examples
Example 1: Basic Analog Read with Arduino
This example demonstrates how to read the analog output voltage from the ACS712 using an Arduino board and calculate the current measurement.
```c
const int sensorPin = A0;  // Analog input pin
void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  float voltage = sensorValue  (5.0 / 1023.0);
  float current = (voltage - 2.5) / 0.185;
  Serial.print("Current: ");
  Serial.print(current);
  Serial.println(" A");
  delay(100);
}
```
Example 2: Raspberry Pi with Python
This example shows how to read the analog output voltage from the ACS712 using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
sensor_pin = 18  # Analog input pin
GPIO.setup(sensor_pin, GPIO.IN)
while True:
    sensor_value = GPIO.input(sensor_pin)
    voltage = (sensor_value / 1023.0)  5.0
    current = (voltage - 2.5) / 0.185
    print("Current: {:.2f} A".format(current))
    time.sleep(0.1)
```
Example 3: MicroPython with ESP32
This example demonstrates how to read the analog output voltage from the ACS712 using an ESP32 board with MicroPython.
```python
import machine
import time
sensor_pin = machine.ADC(machine.Pin(32))  # Analog input pin
while True:
    sensor_value = sensor_pin.read()
    voltage = (sensor_value / 4095.0)  5.0
    current = (voltage - 2.5) / 0.185
    print("Current: {:.2f} A".format(current))
    time.sleep(0.1)
```
Note: In these examples, the sensor output voltage is converted to a current measurement using the formula: `current = (voltage - 2.5) / 0.185`, where `voltage` is the output voltage and `2.5` is the quiescent output voltage (VCC/2). The `0.185` value is the sensitivity of the sensor in mV/A.