Your position: Home / Sensors

Free shipping!Keyestudio ACS712-30A Current Sensor for Arduino Compatible

KS0185
Price:
Wholesale:
5+
$3.80
    Please select the information you wantX
Quantity:
-
+
(451 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews(53)

30A (2)30A (3)30A (4)30A (5)30a5430A (1)

1. Introduction

ACS712-30A Current Sensor is used to measured the intensity of current. It contains
ACS712ELC-30A chip ,based on Hall Effect. You should protect it from influence
of magnetic field when using it.

2. Parameters

1.Chip:ACS712ELC-30A

2.5V Power Supply and Power Indicator On-board

3.This module can detect 30A positive and negative current,corresponding analog output at 66mV/A.

4.Output voltage is VCC/2 without current flowing.

 
Sample Code

#include <Wire.h> //invoking I2Clibraries coming with Arduino

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

int temp;

// the setup routine runs once when you press reset:

void setup() {

// initialize serial communication at 9600 bits per second:

lcd.init();

delay(100);

lcd.backlight();

Wire.begin(); //initializing I2C

lcd.clear(); //clear screen

delay(100);

lcd.setCursor(2,0);

lcd.print("ACS712 TEST");

delay(200);

Serial.begin(9600);

}

// the loop routine runs over and over again forever:

void loop() {

// read the input on analog pin 0:

float current = analogRead(A0);

temp=current;

temp=temp-512;

current=temp/13.6;

//lcd.clear(); //clear screen

// print out the value you read:

Serial.print("current=");

Serial.print(current);

Serial.println("A");

lcd.setCursor(0,1);

lcd.print("Current=");

lcd.setCursor(8,1);

lcd.print(current);

lcd.setCursor(15,1);

lcd.print("A");

delay(300); // delay in between reads for stability

}

Download Address of Libraries:

http://7326097.s21d-7.faiusrd.com/0/ABUIABAAGAAg_N-UvQUopOil8Qc?f=KS0185%EF%BC
%880186%2C0187%EF%BC%89Libraries+of++Wire+and+LiquidCrystal_12C.zip&v=1471492088
Average rating: 4.0 based on 53 reviews
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login