Crowtail- Current Sensor

From Elecrow
Jump to navigation Jump to search

Description

This current sensor gives precise current measurement for both AC and DC signals. These are good sensors for metering and measuring overall power consumption of systems. The ACS712 current sensor measures up to 20A of DC or AC current. The ACS712 Low Current Sensor Breakout outputs an analog voltage that varies linearly with sensed current. To calibrate, first set the output offset to the desired level (with zero current on the sense lines, read output with a DVM). Then with a known current input (a 100mA limited supply works well for this), set the output deflection with the gain pot. Sensitivity is then calculated as (Vref - Vdeflect)/(current input).

Model: CT0029CS

Crowtail-Current Sensor.JPG

Features

  • Voltage: 5V
  • MAX current:20A
  • Dimensions(mm):40.0(L)x20.0(W)x6.8(H)

Usage

Arduino test the crrrent.

1.Hardware connection

Connect the Crowtail- Current Sensor to A0.

Currenthware11.jpg Currenthware1.jpg

2.Connect the board to PC using USB cable.

3.Upload the following sample sketch:

void setup() {
  Serial.begin(9600);
}
 
void loop() {
 float average = 0;
 for(int i = 0; i < 1000; i++) {
// average = average + (.0264 * analogRead(A0) -13.51);//for the 5A mode,  
   average = average + (.049 * analogRead(A0) -25);// for 20A mode
// average = average + (.742 * analogRead(A0) -37.8);// for 30A mode
   delay(1);
 }
 Serial.print("Current :");
 Serial.print(average/1000);
 Serial.println("A");
}

4.Open the serial monitor.You can see the current you test.

Currentresult1.jpg

Resource