Download Tokopedia App
Tentang TokopediaMulai Berjualan PromoTokopedia Care
tokopedia-logo
Kategori
Atur jumlah dan catatan

Stok Total: 48

Subtotal

Rp30.000

ACS712 Current Sensor 20A Current Sensor Arus for Arduino

Rp30.000
  • Kondisi: Baru
  • Min. Pemesanan: 1 Buah
  • Etalase: J - Module Sensor Arduino
RAJADUINO by Rajacell Bekasi
-------------------------------------------------
Supplier Arduino Board and Module
-------------------------------------------------
ACS712-20A

//Mengukur arus pada tegangan AC 220V dengan ACS712

//Analog Output ACS712 pada PIN A0
const int sensorIn = A0;
int mVperAmp = 100;
// use 185 for ACS712 5A
// use 100 for ACS712 20A
// use 66 for ACS712 20A

double Voltage = 0;
double VRMS = 0;
double AmpsRMS = 0;

void setup(){
Serial.begin(9600);
}

void loop(){
Voltage = getVPP();
VRMS = (Voltage/2.0) *0.707;
AmpsRMS = (VRMS * 1000)/mVperAmp;
Serial.print(AmpsRMS);
Amps RMS");

}
float getVPP()
{
float result;
int readValue; //value read from the sensor
int maxValue = 0; // store max value here
int minValue = 1024; // store min value here

uint32_t start_time = millis();
< 1000) //sample for 1 Sec
{
readValue = analogRead(sensorIn);
// see if you have a new maxValue
if (readValue > maxValue)
{
/*record the maximum sensor value*/
maxValue = readValue;
}
if (readValue < minValue)
{
/*record the maximum sensor value*/
minValue = readValue;
}
}

// Subtract min from max
result = ((maxValue - minValue) * 5.0)/1024.0;
return result;
}

Ada masalah dengan produk ini?

ULASAN PEMBELI

4.5/ 5.0

100% pembeli merasa puas

2 rating • 2 ulasan

5(1)50%
4(1)50%
3(0)0%
2(0)0%
1(0)0%