Stufin
Home Quick Cart Profile

20A ACS712 Current Sensor

Buy Now

Component Name

20A ACS712 Current Sensor

Description

The 20A ACS712 Current Sensor is a high-precision, Hall-effect-based linear current sensor designed to measure AC and DC currents up to 20A. This sensor is based on the Allegro ACS712 IC, which provides a high degree of accuracy and reliability in current measurement applications.

Functionality

The ACS712 Current Sensor measures the current flowing through a conductor and provides a proportional analog output voltage. The sensor's Hall-effect technology ensures high accuracy and stability, making it suitable for a wide range of applications, including

Motor control and monitoring

Power supply and battery management

IoT and industrial automation

Renewable energy systems

Key Features

  • Current Measurement Range: The sensor can measure currents up to 20A, with a linear output voltage proportional to the input current.
  • Accuracy: The ACS712 IC provides a high degree of accuracy, with a typical error of 1.5% at room temperature (25C).
  • Bandwidth: The sensor has a bandwidth of 80 kHz, allowing for accurate measurement of fast-changing currents.
  • Operating Temperature: The sensor operates over a wide temperature range of -40C to 150C, making it suitable for use in harsh environments.
  • Galvanic Isolation: The sensor provides galvanic isolation between the primary current path and the output signal, ensuring safe and reliable operation.
  • Low Offset Voltage: The sensor has a low offset voltage of 0.5 V, which reduces the error in current measurement.
  • 5V Operation: The sensor operates from a 5V supply, making it compatible with most microcontrollers and digital systems.
  • Analog Output: The sensor provides an analog output voltage that is proportional to the input current, allowing for easy integration with analog-to-digital converters (ADCs) and microcontrollers.
  • Compact Package: The sensor is available in a compact, through-hole package, making it easy to integrate into PCB designs.
  • RoHS Compliant: The sensor is RoHS compliant, ensuring environmental sustainability and reducing the risk of hazardous materials.

Pinout

The 20A ACS712 Current Sensor has a 5-pin through-hole package with the following pinout
Pin 1VCC (5V Supply)
Pin 2GND (Ground)
Pin 3OUT (Analog Output)
Pin 4IP+ (Primary Current Path Positive)
Pin 5IP- (Primary Current Path Negative)

Applications

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

Motor control and monitoring in industrial automation

Power supply and battery management in IoT devices

Renewable energy systems, such as solar and wind power

Energy efficiency monitoring in buildings and homes

Supply Voltage

5V

Current Measurement Range

20A

Accuracy

1.5% (typical)

Bandwidth

80 kHz

Operating Temperature

-40C to 150C

Storage Temperature

-50C to 150C

Accuracy (Over Temperature)3.0% (typical)

Output Sensitivity

185 mV/A (typical)

Output Offset

0.5 V (typical)

Noise Sensitivity

3.5 mV (typical)

Certifications and Compliance

RoHS compliant

CE certified

UL certified (E349631)

Packaging and Ordering Information

The 20A ACS712 Current Sensor is available in a 5-pin through-hole package. It can be ordered in reels or tubes, with a minimum order quantity of 10 pieces. For more information, please contact the manufacturer or authorized distributors.

Pin Configuration

  • 20A ACS712 Current Sensor Documentation
  • Pin Description
  • The 20A ACS712 current sensor has 5 pins, which are described below:
  • Pin 1: VCC (Power Supply)
  • Function: Provides power to the sensor
  • Voltage Range: 4.5V to 5.5V
  • Recommended Operating Voltage: 5V
  • Current Rating: Up to 20mA
  • Connect the VCC pin to a stable 5V power supply. Ensure the power supply can provide the required current for the sensor's operation.
  • Pin 2: GND (Ground)
  • Function: Provides a reference point for the sensor's operation
  • Connect to the ground of the system or power supply
  • The GND pin should be connected to the ground of the system or power supply. This provides a reference point for the sensor's operation and ensures proper functioning.
  • Pin 3: OUT (Analog Output)
  • Function: Provides an analog output signal proportional to the sensed current
  • Output Range: 0.5V to 4.5V
  • Output Impedance: 20k
  • The OUT pin provides an analog output signal that is proportional to the sensed current. The output voltage range is 0.5V to 4.5V, with 2.5V being the quiescent output voltage (no current flow). The output impedance is 20k, which means the signal can be connected directly to a microcontroller's analog input pin or an analog-to-digital converter (ADC).
  • Pin 4: FILT (Filter Pin)
  • Function: Optional filter capacitor connection for noise reduction
  • Recommended Capacitor Value: 10nF to 100nF
  • The FILT pin is an optional connection for a filter capacitor to reduce noise in the output signal. Connecting a capacitor between the FILT pin and the GND pin can help filter out high-frequency noise. A capacitor value between 10nF to 100nF is recommended.
  • Pin 5: IP+ (Current Sense Pin +)
  • Function: Connects to one end of the current-carrying conductor
  • Note: IP- (Current Sense Pin -) is on the underside of the module, connected to the other end of the current-carrying conductor.
  • The IP+ pin is connected to one end of the current-carrying conductor. The other end of the conductor is connected to the IP- pin, which is located on the underside of the module. This allows the sensor to measure the current flowing through the conductor.
  • Connection Structure
  • To connect the 20A ACS712 current sensor:
  • 1. Connect the VCC pin to a stable 5V power supply.
  • 2. Connect the GND pin to the ground of the system or power supply.
  • 3. Connect the OUT pin to an analog input pin of a microcontroller or an ADC.
  • 4. Optionally, connect a filter capacitor (10nF to 100nF) between the FILT pin and the GND pin.
  • 5. Connect one end of the current-carrying conductor to the IP+ pin.
  • 6. Connect the other end of the current-carrying conductor to the IP- pin (located on the underside of the module).
  • Note: Ensure the current-carrying conductor is connected correctly to the IP+ and IP- pins to avoid damage to the sensor or incorrect readings.

Code Examples

20A ACS712 Current Sensor Documentation
Overview
The 20A ACS712 current sensor is a high-accuracy, Hall-effect-based linear current sensor capable of measuring AC and DC currents up to 20A. It provides a precise and reliable measurement of current, making it suitable for various IoT applications, such as energy monitoring, motor control, and power supply systems.
Pinout and Interface
The ACS712 current sensor has five pins:
VCC: 5V power supply
 GND: Ground
 VIOUT: Analog output voltage (proportional to the measured current)
 FIL: Filter pin (optional, can be left unconnected)
Operating Characteristics
Measurement range: 20A
 Sensitivity: 185 mV/A
 Accuracy: 1.5% (typical)
 Bandwidth: 80 kHz
 Supply voltage: 5V
 Operating temperature: -40C to 125C
Code Examples
### Example 1: Using ACS712 with Arduino to Measure DC Current
This example demonstrates how to use the ACS712 current sensor with an Arduino board to measure DC current.
```cpp
const int sensorPin = A0;  // Analog input pin for VIOUT
const float sensitivity = 0.185;  // Sensitivity in V/A
const int sampleRate = 50;  // Sample rate in Hz
void setup() {
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  float voltage = sensorValue  5.0 / 1024.0;  // Convert ADC value to voltage
  float current = voltage / sensitivity;  // Calculate current in Amps
  Serial.print("Current: ");
  Serial.print(current, 2);
  Serial.println(" A");
  delay(1000 / sampleRate);
}
```
### Example 2: Using ACS712 with Raspberry Pi to Measure AC Current
This example demonstrates how to use the ACS712 current sensor with a Raspberry Pi to measure AC current. We'll use the `python-acs712` library, which provides a simple API for interacting with the sensor.
```python
import acs712
import time
# Create an instance of the ACS712 sensor
sensor = acs712.ACS712(0x1E, 0x40)  # I2C address and gain
while True:
    # Read the current value in Amps
    current = sensor.read_current()
    print(f"Current: {current:.2f} A")
    time.sleep(1)
```
Note: In this example, we assume the ACS712 sensor is connected to the Raspberry Pi's I2C bus. You may need to modify the I2C address and gain settings depending on your specific setup.
Conclusion
The 20A ACS712 current sensor is a reliable and accurate component for measuring AC and DC currents in various IoT applications. With its high sensitivity and wide measurement range, it's suitable for a broad range of use cases. The provided code examples demonstrate how to use the ACS712 with popular platforms like Arduino and Raspberry Pi, making it easy to integrate into your IoT projects.