The ZMPT101B is a precision voltage sensor module designed for measuring AC voltage. It features a high-precision voltage transformer and an operational amplifier circuit for accurate and stable voltage measurement. The module provides an isolated output proportional to the input voltage, making it ideal for applications in power monitoring, energy management systems, and other AC voltage measurement tasks.
The ZMPT101B module is designed to provide accurate AC voltage measurements with a simple interface. Below are its key technical specifications:
Parameter | Value |
---|---|
Input Voltage Range | 0–250V AC (adjustable via potentiometer) |
Output Voltage Range | 0–5V DC (proportional to input) |
Operating Voltage | 5V DC |
Accuracy | High precision |
Isolation | Electrical isolation via transformer |
Dimensions | 38mm x 25mm x 21mm |
The ZMPT101B module has a simple pinout for easy integration into circuits. Below is the pin configuration:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply input (5V DC) |
2 | GND | Ground connection |
3 | OUT | Analog output voltage proportional to the AC input |
The ZMPT101B module is straightforward to use in a circuit. Follow the steps below to integrate it into your project:
Below is an example code snippet for interfacing the ZMPT101B with an Arduino UNO to measure AC voltage:
// ZMPT101B Voltage Sensor Example with Arduino UNO
// Reads the analog output from the ZMPT101B and calculates the AC voltage
const int sensorPin = A0; // ZMPT101B OUT pin connected to Arduino A0
float calibrationFactor = 100.0; // Adjust based on your calibration
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(sensorPin, INPUT); // Set sensor pin as input
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read analog value from sensor
float voltage = (sensorValue / 1023.0) * 5.0; // Convert to voltage (0-5V)
// Calculate AC voltage using calibration factor
float acVoltage = voltage * calibrationFactor;
// Print the measured AC voltage to the Serial Monitor
Serial.print("AC Voltage: ");
Serial.print(acVoltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before next reading
}
No Output Voltage
Inaccurate Voltage Readings
Fluctuating Readings
Arduino Not Detecting Output
Q: Can the ZMPT101B measure DC voltage?
A: No, the ZMPT101B is designed specifically for AC voltage measurement. It is not suitable for DC voltage applications.
Q: What is the maximum AC voltage the module can measure?
A: The module can measure up to 250V AC, but this depends on the calibration and the input voltage range set via the potentiometer.
Q: How do I ensure safety when using the ZMPT101B?
A: Always follow proper safety precautions when working with high-voltage AC circuits. Ensure the module is properly isolated and avoid direct contact with live wires.
Q: Can I use the ZMPT101B with microcontrollers other than Arduino?
A: Yes, the ZMPT101B can be used with any microcontroller that has an analog-to-digital converter (ADC), such as ESP32, STM32, or Raspberry Pi (with an external ADC).