Original WCS1500 Hall Effect based Current Sensor (0-200A) Documentation
The Original WCS1500 Hall Effect based Current Sensor is a highly accurate and reliable current sensing module capable of measuring currents up to 200A. The sensor utilizes the Hall effect principle to measure the magnetic field generated by the current flow, providing a non-invasive and isolated measurement. This documentation provides technical information and code examples to help users integrate the WCS1500 into their projects.
Measurement Range: 0-200A
Accuracy: 1% FS (Full Scale)
Sensitivity: 100mV/A
Operating Voltage: 5V DC
Response Time: 10s
Isolation Voltage: 2500V
VCC: 5V Power Supply
GND: Ground
OUT: Analog output voltage (0-5V)
### Example 1: Basic Current Measurement using Arduino
In this example, we'll connect the WCS1500 to an Arduino board to measure the current flowing through a load.
WCS1500 VCC to Arduino 5V
WCS1500 GND to Arduino GND
WCS1500 OUT to Arduino A0 (Analog Input)
Software Code
```c++
const int sensorPin = A0; // WCS1500 OUT pin connected to Arduino A0
int sensorValue = 0; // variable to store sensor value
float current = 0; // variable to store calculated current
void setup() {
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(sensorPin); // read sensor value (0-1023)
current = (sensorValue 5.0 / 1023.0) 100.0; // calculate current in Amps
Serial.print("Current: ");
Serial.print(current, 2);
Serial.println(" A");
delay(500);
}
```
### Example 2: Current Monitoring with Raspberry Pi (Python)
In this example, we'll use a Raspberry Pi to monitor the current flowing through a load and display the reading on a graphical user interface (GUI) using Python and the Tkinter library.
WCS1500 VCC to Raspberry Pi 5V
WCS1500 GND to Raspberry Pi GND
WCS1500 OUT to Raspberry Pi GPIO 17 (Analog Input)
Software Code
```python
import tkinter as tk
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN) # WCS1500 OUT pin connected to GPIO 17
def read_current():
sensor_value = GPIO.input(17)
current = (sensor_value 5.0 / 1023.0) 100.0
return current
def update_gui():
current_value = read_current()
current_label.config(text=f"Current: {current_value:.2f} A")
root.after(500, update_gui)
root = tk.Tk()
root.title("Current Monitor")
current_label = tk.Label(root, text="Current: 0.00 A")
current_label.pack()
update_gui()
root.mainloop()
```
These code examples demonstrate how to use the Original WCS1500 Hall Effect based Current Sensor to measure current in various contexts. The sensor's high accuracy and fast response time make it suitable for a wide range of applications, from industrial automation to IoT projects.