DC 5V WCS1800 Hall Current Detection Sensor Module 35A
-
RM50.00
- Product Code: WCS1800
- Availability: In Stock
Overview:
LC WCS1800 current sensor has two main functions, the first function is output an analog signal that can be used on A / D conversion; the second function is output a switch signal, and the over-current value can be set in advance. When the actual current value greater than the preset current value, the switch signal from low to high, and LED indicator. Easy to use.
Function features:
1.The working voltage: DC5V
2.The current detection range: DC: ± 35A,AC: 25A (for analog output)
3.Linearity: K = 60mV / A
4.Limit current range: 0.5A - 35A (for the switch output)
5.With over-current signal indicator
6.With mounting holes, easy to install on you device
7.The sampling current convert to analog voltage signal output, can be connected to ADC; TTL level signal output, can be connected to the microcontroller’s I/O
8.The output signal is: analog voltage signal and switch signal
Hardware introduction and description:
1.Board size: 49*26 mm
2.Functions of the board
(1)Interface description
VCC: positive power supply
DOUT: TTL high / low level switch signal output
GND: power supply negative
AOUT: analog voltage signal
2.AOUT instruction
VCC,GND connect to DC5V, and the being measured wire through the WCS1800’s hole:
Analog output: V0= EQ F(Vcc,2) ±Ia*K(for WCS1800,K = 60mV / A)
3.DOUT instruction
VCC,GND connect to DC5V, and the being measured wire through the WCS1800’s hole, setting the over current value by adjust the potentiometer,when the LED is on,it means the setting is done,and the DOUT pin will output a high level switch signal
Document:
#include <Wire.h> #include <Robojax_WCS.h> #define MODEL 12 //see list above #define SENSOR_PIN A0 //pin for reading sensor #define SENSOR_VCC_PIN 8 //pin for powring up the sensor //LCD settings const uint8_t I2C_ADDRESS =0x3f;//watch video for details const uint8_t LCD_CHAR= 16; const uint8_t LCD_ROW = 2; char *TITLE_CURRENT ="Current: "; char *TITLE_ZERO_CURRENT ="Zero Current: "; #define SHOW_ZERO_CURRENT true //const int LCD_VCC_PIN =9;//define a VCC pin vor LCD see video for details #define ZERO_CURRENT_WAIT_TIME 5000 //wait for 5 seconds to allow zero current measurement #define CORRECTION_VLALUE 164 //mA #define MEASUREMENT_ITERATION 300 #define VOLTAGE_REFERENCE 5000.0 //5000mv is for 5V #define BIT_RESOLUTION 10 //Due or MKR, 12 bits #define DEBUG_ONCE true // creating object from Robojax_WCS Current sensor Robojax_WCS sensor(I2C_ADDRESS, LCD_CHAR, LCD_ROW, MODEL, SENSOR_PIN, SENSOR_VCC_PIN, ZERO_CURRENT_WAIT_TIME, SHOW_ZERO_CURRENT, CORRECTION_VLALUE, MEASUREMENT_ITERATION, VOLTAGE_REFERENCE, BIT_RESOLUTION, DEBUG_ONCE, TITLE_CURRENT, TITLE_ZERO_CURRENT ); // creating object from Robojax_WCS Current sensor // this is used if you want to use a digital pin to supply 5V to LCD // and leave the 5V pin free for other purpose /// uncomment the 7 lines bellow by removing the // from the begining of lines //Robojax_WCS sensor(I2C_ADDRESS, LCD_CHAR, LCD_ROW, // MODEL, SENSOR_PIN, SENSOR_VCC_PIN, // ZERO_CURRENT_WAIT_TIME, SHOW_ZERO_CURRENT, // CORRECTION_VLALUE, MEASUREMENT_ITERATION, VOLTAGE_REFERENCE, // BIT_RESOLUTION, DEBUG_ONCE, TITLE_CURRENT, TITLE_ZERO_CURRENT, // LCD_VCC_PIN // ); void setup() { Serial.begin(9600); Serial.println("Robojax WCS Library"); sensor.begin(); Serial.print("Sensor: "); Serial.println(sensor.getModel()); Serial.print("Library Version:");Serial.println(sensor.version()); //sensor.printModels();//prints all supported WCS models } void loop() { //Robojax.com WCS Arduino Library sensor.readCurrent(); delay(1000); //sensor.printDebug(); //sensor.printCurrent();//prints the current on serial monitor }