model, and you are ready to monitor the output on a virtual oscilloscope!
For those who want to avoid manual construction, existing Proteus project files (e.g., the automatic power factor correction circuit on GitHub) can serve as working examples that you can clone and adapt. Once the simulation is up and running, the same microcontroller code—whether it is for an Arduino or an ESP32—can be co‑simulated, giving you a complete virtual prototype of your AC voltage measurement system.
I can provide the exact code or troubleshooting steps tailored to your design. Share public link
Even with a faithful simulation model, you need to emulate the calibration of the real ZMPT101B. In physical hardware, you turn the on‑board trimmer so that the output matches the true RMS voltage. In software, you then apply a calibration factor. The Arduino library ZMPT101B.h (developed by leech001 and based on Ruslan Koptev’s ACS712 work) is an excellent reference: it samples the analogue pin, computes the true RMS value, and stores a calibration factor. zmpt101b proteus library
zmpt101b proteus library, install zmpt101b in proteus, ac voltage simulation proteus, arduino ac voltmeter simulation, proteus library download, zmpt101b arduino code.
Working with 220V/110V mains electricity carries severe shock risks and equipment damage hazards. Simulating the circuit in Proteus allows you to debug your code, calibrate your analog-to-digital converter (ADC) math, and check filter designs before wiring a live circuit. How to Download and Install the ZMPT101B Proteus Library
Simulating AC voltage measurements in Labcenter Proteus requires accurate components. The ZMPT101B active single-phase AC voltage transformer module is the standard choice for DIY electronics, Arduino projects, and industrial prototypes. However, Proteus does not include a ZMPT101B model in its default library. model, and you are ready to monitor the
Your target (e.g., 220V/50Hz or 110V/60Hz)?
The microcontroller must sample the analog wave, find the peak values, and calculate the Root Mean Square (RMS) voltage. Upload this optimized code into your Proteus Arduino block:
The module uses two operational amplifiers (e.g., LM358 or a similar rail‑to‑rail op‑amp) configured as inverting band‑pass filters. The first stage provides a gain of approximately at 50 Hz, while the second stage provides a gain of about 9.1 , resulting in a total gain that maps the 200 mV signal up to a 5 V output suitable for an ADC. I can provide the exact code or troubleshooting
The ZMPT101B module operates through a series of stages to safely interface high-voltage AC with low-voltage digital inputs. Isolation Stage
What are you simulating? (Arduino, PIC, ESP32, etc.)
(signal) pin that connects to your microcontroller’s analog pin (e.g., Arduino A0). Sensitivity : Some simulations may require adding a 1MΩ resistor
For a deeper dive into the inner workings of the ZMPT101B, the following resources are highly recommended: