The WCS1700 is a Hall Effect-based linear current sensor manufactured by Winson Semiconductor Corp. This sensor is designed to measure the current flow in a conductor and provide a linear output voltage proportional to the current. It is widely used in various applications, including power monitoring, battery management systems, motor control, and overcurrent protection.
Parameter | Value |
---|---|
Supply Voltage (Vcc) | 5V |
Output Voltage Range | 0.2V to 4.8V |
Sensitivity | 1V/A |
Measurement Range | ±20A |
Response Time | 3µs |
Operating Temperature | -40°C to +85°C |
Package Type | SIP-3 |
Pin Number | Pin Name | Description |
---|---|---|
1 | Vcc | Power supply (5V) |
2 | Vout | Output voltage proportional to the measured current |
3 | GND | Ground |
Below is an example code to interface the WCS1700 with an Arduino UNO to measure current:
// Define the analog pin connected to the sensor's Vout pin
const int sensorPin = A0;
// Define the sensitivity of the sensor (1V/A)
const float sensitivity = 1.0;
// Define the offset voltage (2.5V for 0A current)
const float offsetVoltage = 2.5;
void setup() {
// Initialize the serial communication
Serial.begin(9600);
}
void loop() {
// Read the analog value from the sensor
int sensorValue = analogRead(sensorPin);
// Convert the analog value to voltage
float voltage = sensorValue * (5.0 / 1023.0);
// Calculate the current in Amperes
float current = (voltage - offsetVoltage) / sensitivity;
// Print the current value to the serial monitor
Serial.print("Current: ");
Serial.print(current);
Serial.println(" A");
// Wait for 1 second before the next reading
delay(1000);
}
By following this documentation, users can effectively integrate the WCS1700 Hall Effect-based linear current sensor into their projects, ensuring accurate and reliable current measurements.