Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use ZMPT101B: Examples, Pinouts, and Specs

Image of ZMPT101BDesign with ZMPT101B in Cirkit Designer

Introduction

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.

Explore Projects Built with ZMPT101B

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Based Environmental Monitoring System with Ethernet Connectivity: A project utilizing ZMPT101B in a practical application
ESP32-Based Environmental Monitoring System with Ethernet Connectivity

This circuit features an ESP32 microcontroller interfaced with a W5500 Ethernet module for network connectivity, a DHT22 sensor for measuring temperature and humidity, and an Adafruit SHTC3 sensor for additional temperature and humidity readings. The ZMPT101B module is connected to the ESP32 for voltage measurement in an AC power line. The ESP32 manages data collection from the sensors and communicates with the Ethernet module, likely for data logging or remote monitoring purposes.

Open Project in Cirkit Designer
Image of ESP32 and W5500 Ethernet Module for Smart Energy Monitoring: A project utilizing ZMPT101B in a practical application
ESP32 and W5500 Ethernet Module for Smart Energy Monitoring

This circuit features an ESP32 microcontroller interfaced with a W5500 Ethernet module, a ZMPT101B voltage sensor, and a DHT22 temperature and humidity sensor. The ESP32 is configured to communicate with the W5500 module for network connectivity and to read analog signals from the ZMPT101B and digital signals from the DHT22. The purpose of the circuit is likely for environmental monitoring with the capability to report data over a network.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

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

Pin Configuration and Descriptions

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

Usage Instructions

The ZMPT101B module is straightforward to use in a circuit. Follow the steps below to integrate it into your project:

Step 1: Wiring the Module

  1. Connect the VCC pin to a 5V DC power supply.
  2. Connect the GND pin to the ground of your circuit.
  3. Connect the OUT pin to the analog input pin of your microcontroller (e.g., Arduino).

Step 2: Adjusting the Sensitivity

Step 3: Reading the Output

Example: Using ZMPT101B with Arduino UNO

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
}

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Voltage

    • Ensure the module is powered with 5V DC.
    • Verify all connections, especially the input AC voltage and the output pin.
  2. Inaccurate Voltage Readings

    • Adjust the onboard potentiometer for proper calibration.
    • Check the calibration factor in your code and fine-tune it based on your setup.
  3. Fluctuating Readings

    • Add a software filter or average multiple readings to stabilize the output.
    • Ensure the input AC voltage is stable and free from noise.
  4. Arduino Not Detecting Output

    • Verify that the OUT pin is connected to the correct analog input pin on the Arduino.
    • Check the Arduino code for errors and ensure the ADC is functioning correctly.

FAQs

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).