Zmpt101b Proteus Library [patched] ⚡
I cannot directly give you a pre-built ZMPT101B Proteus library file (.IDX, .LIB, or .HEX) because:
- ZMPT101B is a real AC voltage sensor module (based on a precision voltage transformer).
- Proteus does not include it in the default libraries — it’s not a standard simulation model.
- Pre-made third-party libraries are often unreliable, not calibrated, or missing AC characteristics unless you create your own model.
9. Example Proteus Files & Code (Conceptual)
- Proteus schematic: AC source → transformer equivalent → burden → coupling cap → bias buffer → amplifier → Virtual MCU ADC.
- MCU code (pseudocode):
setup ADC;
while(1)
sample N points at Fs >> 2*f_line;
remove DC offset;
compute Vrms = sqrt(mean(v^2)) * scale_factor;
// if current present: compute instantaneous power and average
delay(some_interval);
How to simulate ZMPT101B in Proteus (recommended approach)
- Symbol: Use a standard small-signal transformer symbol or create a custom component representing the module pinout (VCC, GND, OUT).
- Behavioral model: Implement with SPICE elements:
- Primary: AC source representing mains (e.g., 230VAC or 120VAC) through appropriate series resistor to approximate transformer coupling.
- Secondary: Scaled sine source or ideal transformer (turns ratio matching measured module ~1:1 with attenuation via resistor divider).
- Add coupling capacitor and bias network to shift output to mid-rail for ADC input (two resistors forming Vcc/2, 0.1–10uF coupling capacitor).
- Include gain-adjust potentiometer as variable resistor.
- Add low-pass filter (RC) to reduce high-frequency noise.
- Calibration: Adjust scaling components so the simulated RMS output corresponds to the real module’s Vout per VAC (typical module yields small AC voltage centered at mid-rail; measure/define expected amplitude).
- ADC interface: Model microcontroller ADC input by connecting the output node to an Arduino virtual model (Proteus supports Arduino); ensure DC biasing to Vcc/2 and input impedance.
5. Example: Proteus Component Settings (numbers for 230 VAC → 1 Vpk sensor output)
- AC Source: 230 V RMS, 50 Hz.
- Transformer:
- L1 = 10 H, L2 = 0.00019 H (turns ratio ~ sqrt(10/0.00019) ≈ 230:1), K = 0.999
- Rpri = 5 Ω, Rsec = 1 Ω
- Burden resistor: Rbur = 1 kΩ (adjust to desired Vpk)
- Coupling cap: 4.7 µF
- Bias resistors: Rb1 = Rb2 = 100 kΩ (gives 2.5 V)
- Op-amp: generic rail-to-rail powered from 5 V/GND, configured as buffer then non-inverting gain of 2 if needed.
Adjust values iteratively until the simulated sensor output matches measured behavior of a real ZMPT101B module. zmpt101b proteus library
The ZMPT101B in Proteus: Navigating Simulation Gaps for AC Voltage Measurement