Ac Voltage Sensor Module Zmpt101B (Single Phase)
Rs. 94.00 Rs. 113.00
- Brand: https://www.micro-transformer.com/2ma-2ma-voltage-transformer-ZM
- Product Code: SEN-VOLTAGE
- SKU -
- Availability: In Stock
- Price in reward points: 1
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
-Low price
-Small size and lightweight
-Easy PCB mounting
-Good consistency
-Widely acclaimed
OVERVIEW:
-Voltage – 250V
-Easy PCB mounting
-Good consistency
-Widely acclaimed
PACKAGE INCLUDES:
1 PCS x Zmpt101B Ac Voltage Sensor Module
https://www.micro-transformer.com/2ma-2ma-voltage-transformer-ZMPT101B.html
//SOURCE CODE TAKEN FROM BELOW LINK
//https://electropeak.com/learn/interfacing-zmpt101b-voltage-sensor-with-arduino/
/*
ZMPT101B - AC Voltage sensor
Calculate Voltage
modified on 7 Sep 2020
by Mohammad Reza Akbari @ Electropeak
https://electropeak.com/learn/
*/
double sensorValue1 = 0;
double sensorValue2 = 0;
int crosscount = 0;
int climb_flag = 0;
int val[100];
int max_v = 0;
double VmaxD = 0;
double VeffD = 0;
double Veff = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
for ( int i = 0; i < 100; i++ ) {
sensorValue1 = analogRead(A0);
if (analogRead(A0) > 511) {
val[i] = sensorValue1;
}
else {
val[i] = 0;
}
delay(1);
}
max_v = 0;
for ( int i = 0; i < 100; i++ )
{
if ( val[i] > max_v )
{
max_v = val[i];
}
val[i] = 0;
}
if (max_v != 0) {
VmaxD = max_v;
VeffD = VmaxD / sqrt(2);
Veff = (((VeffD - 420.76) / -90.24) * -210.2) + 210.2;
}
else {
Veff = 0;
}
Serial.print("Voltage: ");
Serial.println(Veff);
VmaxD = 0;
delay(100);
}
15 days