Sensor De Tensão 25v Cc

R$ 22,50

Fora de estoque

SKU: ST PSU Categorias: ,
  Perguntas e Respostas

Descrição

Sensor de tensão DC.

Especificações técnicas:

Tensão entrada: 0-25 VDC
Faixa de detecção: 0.02445-25 VDC
Resolução tensão analógica: 0.00489 VDC

O que acompanha?

01 x Sensor de tensão

 

Código Exemplo Arduino

/*
DC Voltmeter Using a Voltage Divider
Based on Code Created By
T.K.Hareendran
*/

int analogInput = A1;
float vout = 0.0;
float vin = 0.0;
float R1 = 30000.0; //
float R2 = 7500.0; //
int value = 0;
void setup(){
pinMode(analogInput, INPUT);
Serial.begin(9600);
Serial.print(“DC VOLTMETER”);
}
void loop(){
// read the value at analog input
value = analogRead(analogInput);
vout = (value * 5.0) / 1024.0; // see text
vin = vout / (R2/(R1+R2));

Serial.print(“INPUT V= “);
Serial.println(vin,2);
delay(500);
}

Opiniões sobre

Informações Gerais

Não há perguntas ainda.