Original WCS2720 Hall Effect based Linear Current Sensor (0-20A)
Original WCS2720 Hall Effect based Linear Current Sensor (0-20A)
The Original WCS2720 Hall Effect based Linear Current Sensor is a high-precision, open-loop current sensor designed to measure linear DC currents ranging from 0 to 20A. This sensor utilizes the Hall Effect principle to detect changes in the magnetic field generated by the current flow, providing an accurate and reliable measurement of the current.
The WCS2720 current sensor is designed to measure the linear DC current flowing through a conductor, such as a wire or a busbar. The sensor operates on the principle of the Hall Effect, which states that when a current flows through a conductor, it generates a magnetic field perpendicular to the direction of the current flow. The Hall Effect sensor measures the strength of this magnetic field and converts it into a proportional voltage output, allowing for accurate current measurement.
| The Original WCS2720 Hall Effect based Linear Current Sensor is suitable for a wide range of applications, including |
| Parameter | Value |
| --- | --- |
| Measurement Range | 0-20A |
| Sensitivity | 100mV/A |
| Linearity | 1.5% (typical), 3% (maximum) |
| Operating Voltage | 5V |
| Power Consumption | 10mA |
| Operating Temperature | -20C to 80C |
| Isolation | Electrical isolation between primary circuit and output signal |
| Response Time | 10s |
| Output Impedance | 1k |
The WCS2720 is available in a compact, surface-mount package with dimensions of 12mm x 10mm x 4mm.
Original WCS2720 Hall Effect based Linear Current Sensor (0-20A) DocumentationOverviewThe Original WCS2720 is a high-accuracy, Hall Effect-based linear current sensor capable of measuring currents up to 20A. This sensor provides a linear output voltage proportional to the input current, making it an ideal choice for various IoT applications, including power monitoring, battery management, and motor control.Pinout and Hardware DescriptionThe WCS2720 current sensor has a 5-pin package with the following pinout:VCC: Supply voltage (typically 5V)
GND: Ground
VIN: Input current sensing terminal
VOUT: Output voltage terminal
ENABLE: Enable pin (active high)SpecificationsMeasurement range: 0-20A
Sensitivity: 100mV/A
Accuracy: 1% of full scale
Response time: 1s
Operating temperature: -40C to 125CCode Examples### Example 1: Basic Current Measurement using ArduinoThis example demonstrates how to use the WCS2720 current sensor with an Arduino board to measure the current flowing through a load.
```c
const int sensorPin = A0; // VOUT pin connected to analog input A0
const int enablePin = 2; // ENABLE pin connected to digital output 2
const float sensitivity = 0.1; // 100mV/Avoid setup() {
pinMode(enablePin, OUTPUT);
digitalWrite(enablePin, HIGH); // Enable the sensor
Serial.begin(9600);
}void loop() {
int sensorValue = analogRead(sensorPin);
float current = sensorValue sensitivity;
Serial.print("Current: ");
Serial.print(current, 2);
Serial.println(" A");
delay(1000);
}
```
### Example 2: Current Monitoring using Raspberry Pi and PythonThis example demonstrates how to use the WCS2720 current sensor with a Raspberry Pi board to monitor the current flowing through a load using Python.
```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
sensor_pin = 18 # VOUT pin connected to GPIO 18
enable_pin = 23 # ENABLE pin connected to GPIO 23GPIO.setup(enable_pin, GPIO.OUT)
GPIO.output(enable_pin, GPIO.HIGH) # Enable the sensorwhile True:
adc_value = GPIO.input(sensor_pin)
current = adc_value 0.1 # 100mV/A
print("Current: {:.2f} A".format(current))
time.sleep(1)
```
Note: In this example, we assume the use of an ADC module (e.g., ADC0832) to convert the analog output voltage of the WCS2720 to a digital value.Important ConsiderationsEnsure proper wiring and connection of the sensor to the microcontroller or single-board computer.
Use a suitable voltage regulator to power the sensor, if necessary.
Implement protective measures (e.g., overcurrent protection, thermal monitoring) in your design to prevent damage to the sensor or surrounding components.By following these examples and guidelines, you can effectively integrate the Original WCS2720 Hall Effect-based linear current sensor into your IoT projects, enabling accurate and reliable current measurement and monitoring.