To test the simulation, upload a program that samples the analog pin rapidly to capture the peak-to-peak AC wave, calculates the Root Mean Square (RMS) voltage, and outputs the result via the Virtual Serial Monitor.

Sampling alternating current at high frequencies places a heavy load on the Proteus simulation engine. To alleviate this, right-click your Arduino component, enter its properties, and verify that the clock frequency is set realistically (16MHz). Avoid running other intensive virtual instruments simultaneously.

Because microcontrollers cannot handle negative or high alternating voltages, the module uses an onboard LM358 operational amplifier IC circuit. The op-amp steps down the current, introduces a DC offset voltage (typically

To simulate this module, you need a simulation model (usually a .LIB or .IDX file) that behaves like the actual sensor. How to Install the Library

Here’s a review of the , based on common user experiences and technical considerations:

Connect Channel A of the OSCILLOSCOPE tool directly to the ZMPT101B output line to observe the resulting waveform modifications. Interfacing with Code: Arduino Calibration Sketch

Download the ZMPT101B library zip file and extract it. Step 2: Copy the .LIB and .IDX files.

To simulate an AC voltage measurement system, you will need to interface the ZMPT101B with an AC source and a processing unit like an Arduino Uno. Circuit Components Required (From your new library) Arduino Uno (Requires the Arduino Proteus library) ALTERNATOR (To simulate 220V/110V AC mains) VSOURCE / VSINE (Alternative AC source) VIRTUAL TERMINAL (To view Serial Monitor data) OSCILLOSCOPE (To visualize the input vs. output waveforms) GROUND and POWER (+5V) terminals Wiring the Schematic The High-Voltage Side (Input):

To get meaningful results from your simulation, you must compile and upload a hex file to your virtual Arduino that processes the analog wave. The objective is to sample the wave, extract the Peak-to-Peak voltage, and calculate the Root Mean Square (RMS) value.

: Connected to the AC voltage source you wish to measure (up to 250V AC). Microcontroller Integration (Arduino IDE)

To process the sensor's signal in your simulation, use a library such as the ZMPT101B Arduino Library by Abdurraiq Bachmid.

Ensure the IM358 op-amp in the library is powered with to avoid "supply voltage exceeded" errors.

JaypeeOnline