Zmpt101b Proteus Library
The operational amplifier IC used for signal conditioning. CAP: A 10uF decoupling capacitor. Circuit Schematic Setup
#include // Ensure you have the Filters library installed via Arduino Library Manager float testFrequency = 50.0; // target frequency in Hz float windowLength = 40.0 / testFrequency; // how long to average the signal (2 cycles) int SensorInputPin = A0; // ZMPT101B output connected to A0 float intercept = -0.04; // calibration intercept float slope = 0.0405; // calibration slope (adjust to match 220V in simulation) float current_Volts; // variables to hold values RunningStatistics inputStats; // creates an instance to track signal statistics void setup() Serial.begin(9600); pinMode(SensorInputPin, INPUT); inputStats.setWindowLength(windowLength); void loop() int sensorValue = analogRead(SensorInputPin); inputStats.input(sensorValue); // log the analog reading if ((unsigned long)(millis() - startTime) >= 1000) startTime = millis(); // Calculate RMS value from statistics current_Volts = inputStats.sigma() * slope + intercept; // In simulation, if input is 0, force display to 0 if(current_Volts < 5.0) current_Volts = 0.0; Serial.print("Voltage RMS: "); Serial.print(current_Volts); Serial.println(" V"); Use code with caution. Running the Simulation Double-click the Arduino Uno component in Proteus. zmpt101b proteus library
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. The operational amplifier IC used for signal conditioning
| Parameter | Typical Value | |-----------|----------------| | Supply voltage | 3.3 V – 5 V DC | | Max measurable AC voltage | 250 V AC (can be extended to 1000 V with external resistors) | | Output signal | Sinusoidal AC waveform, max amplitude ≈ 5 V | | Input‑output current ratio | 1000 : 1 (2 mA input → 2 mA output) | | Galvanic isolation | Up to 3000 V | | Linearity | 1 % | This link or copies made by others cannot be deleted
However, this is not a dead end. By understanding how the sensor works, you can easily build its equivalent circuit using the standard parts that Proteus already offers. A current transformer, a couple of operational amplifiers, a potentiometer, and a handful of passive components are all you need to achieve an accurate simulation.
Alternative path: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY (Note: ProgramData is a hidden folder).