Proteus — Zmpt101b Library For

Exploring the ZMPT101B Library for Proteus: A Practical Guide

AC mains voltage sensing is a common requirement for hobby and professional electronics projects. The ZMPT101B small AC voltage sensor module is popular for measuring mains voltage safely and affordably. This post examines using a ZMPT101B library within Proteus for circuit simulation, shows how to model the sensor, integrates it with microcontroller projects, and highlights practical tips and limitations.

Part 5: Using the ZMPT101B Component – Pinout and Connections

Once installed, place the component on your schematic. It typically has 5 pins:

| Pin Name | Function | Connect To | |----------|----------|-------------| | AC_IN1 | AC Line input (Live) | AC voltage source (e.g., 230V RMS) | | AC_IN2 | AC Neutral input | AC voltage source ground | | VCC | Power supply (5V DC) | +5V DC terminal | | GND | Ground | System ground (0V) | | OUT | Analog output (0-5V) | Microcontroller ADC pin | zmpt101b library for proteus

Important: In simulation, AC_IN1/2 are galvanically isolated from VCC/GND. This models the real transformer isolation. You can connect a high-voltage sine wave on the AC side and a 5V DC supply on the low-voltage side without ground loops.


Step 4: Restart Proteus

Close and reopen Proteus to refresh the library index. Exploring the ZMPT101B Library for Proteus: A Practical

🛠️ Recommendation

  • Use for conceptual design & learning – Good for testing logic of an AC voltage sensing circuit (e.g., with Arduino, op-amps).
  • Don’t rely on it for precise measurements – Real-world calibration and noise filtering are not modeled.
  • Best alternative – If you need higher fidelity, simulate using a transformer + rectifier + voltage divider, or directly test with hardware.

Calibration Simulation Process:

  1. Apply a known voltage (e.g., 100V RMS using VSINE).
  2. Read the ADC output.
  3. Compute the ratio: (ADC RMS) / (input RMS).
  4. Adjust the SENSITIVITY parameter or multiply the reading by the inverse ratio in firmware.

Because it’s simulation, you can automate this with a DC Voltmeter probe on the OUT pin to see the waveform center and amplitude.


Simulation Execution:

  1. Click Run.
  2. The Arduino will read the ZMPT101B output.
  3. The LCD should display 220.3 V or similar.
  4. Change the VSINE amplitude to 156V (110V RMS) → LCD updates dynamically.

This confirms your library works perfectly. Step 4: Restart Proteus Close and reopen Proteus


Step 5: Verify Installation

  1. Click on Component Mode (P button).
  2. In the Keywords search, type ZMPT101B.
  3. You should see the component appear.

![How to search ZMPT101B in Proteus library]

If nothing appears, you may need to manually add the library path:

  • Go to System > Set Paths.
  • Add your custom library folder to the list.