: Measures 0–250V AC with high galvanic isolation.
However, for (Firmware + Schematic), Proteus + the ZMPT101B library remains the gold standard.
int sensorPin = A0; float offset = 2.5; // Simulated offset (2.5V) float sensitivity = 0.185; // Simulated sensitivity (adjust this) float vRMS; float sum = 0;
Because Proteus lacks a stock ZMPT101B model, you must download a third-party library block (often packaged as a combination of standard component shapes or a custom .IDX and .LIB file compilation). Step 1: Download the Library Files zmpt101b proteus library
Wire the components according to this standard simulation configuration:
Open the schematic capture in Proteus, press on your keyboard to open the "Pick Devices" window, and search for the following components: ZMPT101B : The newly installed module. Arduino Uno R3 : (Or your preferred microcontroller block). ALTERNATER : To act as the 220V AC mains power supply.
Files usually include:
Use a to mimic the ZMPT101B.
Run the simulation. You will likely see an inaccurate voltage (e.g., 210V instead of 230V). To calibrate:
: Connects to the AC source (e.g., a VSINE component in Proteus) to simulate mains power. VCC : Connects to a +5V DC power source. GND : Connects to the common ground of your DC circuit. : Measures 0–250V AC with high galvanic isolation
void setup() Serial.begin(9600);
Finding a to download the specific pre-made ZMPT101B .LIB and .IDX files.
The analog output of the ZMPT101B is a sine wave oscillating around a 2.5V DC offset. Your Arduino code must sample this waveform rapidly, find the peak values, or calculate the Root Mean Square (RMS) value. Sample Simulation Code (EmonLib or Standard Sampling) Step 1: Download the Library Files Wire the
To use a pre-made ZMPT101B visual module in Proteus, you need to download third-party library files. These are widely available on electronics community blogs and GitHub repositories. Step 1: Download the Library Files
You can test different values for the voltage divider, the RC filter, and the gain of the operational amplifier without soldering or ordering extra components.