20A ACS712 Current Sensor
20A ACS712 Current Sensor
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.
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
The 20A ACS712 Current Sensor has a 5-pin through-hole package with the following pinout | |
Pin 1 | VCC (5V Supply) |
Pin 2 | GND (Ground) |
Pin 3 | OUT (Analog Output) |
Pin 4 | IP+ (Primary Current Path Positive) |
Pin 5 | IP- (Primary Current Path Negative) |
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
5V
20A
1.5% (typical)
80 kHz
-40C to 150C
-50C to 150C
Accuracy (Over Temperature) | 3.0% (typical) |
185 mV/A (typical)
0.5 V (typical)
3.5 mV (typical)
RoHS compliant
CE certified
UL certified (E349631)
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.
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.