• Em promoção!
  • -1,50 €

Sensor de Corrente 30A - ACS712

:SEN14001
6,20 €
4,70 € Poupe 1,50 €
preço com IVA incluído

Sensor de Corrente AC/DC 30A Efeito Hall - ACS712.

Com o Sensor de Corrente ACS712 permite-lhe efetuar medições da corrente de forma precisa. Este utiliza o efeito hall para detetar o campo magnético gerado pela passagem de corrente, gerando na saída (OUT), uma tensão proporcional de 66mV/A.

Quantidade

DESCRIÇÃO EM PORTUGUÊS BREVEMENTE DISPONÍVEL

Se tiver alguma dúvida neste produto não hesite em contactar-nos.

*Atenção: as imagens são meramente ilustrativas.

This module is based on the ACS712ELC-30A integrated circuit, a high performance hall current sensor.

 

ACS712 Arduino AC Current

Features

  • 5V power supply
  • On-board power indicator
  • Bidirectional current measurement up to 30A
  • Analog output with a sensitivity of 66 mV / A

Downloads

 

Code:

/*
Measuring AC Current Using ACS712
*/
const int sensorIn = A0;
int mVperAmp = 185; // use 100 for 20A Module and 66 for 30A Module


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);
 Serial.println(" 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();
 while((millis()-start_time) < 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;
 }

 

SEN14001

Também poderá gostar