Voltage Sensor Proteus Library «2025»
Use a VSINE source (set to 220V RMS, 50/60Hz) to represent the mains. Connect the sensor input to the AC source. Connect the output to the Arduino Analog pin.
Default voltmeters in Proteus display numerical values but lack interfacing pins for microcontrollers like Arduino, PIC, or STM32. A dedicated voltage sensor module simulation replicates real-world hardware, such as the ZMPT101B AC voltage sensor or the standard 0–25V DC voltage divider sensor module. Using a dedicated library allows you to: Simulating analog pin connections accurately. Step down high voltages safely in simulation. Test your microcontroller calibration code. 2. Where to Download the Library Files
Vout=Vin×(R2R1+R2)V sub o u t end-sub equals V sub i n end-sub cross open paren the fraction with numerator R2 and denominator R1 plus R2 end-fraction close paren voltage sensor proteus library
Connect the pin of the Arduino to the RXD pin of the Virtual Terminal. Run the simulation to see live voltage updates. Troubleshooting Common Errors
Ensure your resistor values won't fry your virtual MCU. Use a VSINE source (set to 220V RMS,
Since Proteus does not always include specific sensor modules in its default installation, you must manually add the library files.
Simulating a voltage sensor for mains requires a model. Since this is not native to Proteus, advanced users build it using: Default voltmeters in Proteus display numerical values but
In a physical circuit, a voltage sensor typically steps down a high voltage to a safe, measurable level (0–5V) for a microcontroller's Analog-to-Digital Converter (ADC). In Proteus, you can achieve voltage sensing in two ways:
Forgot to connect the GND pin of the sensor to the GND of the microcontroller. Fix: All grounds must be common in Proteus simulation. Check the "Netlist" via the Design menu.
To measure a variable DC source (like a battery), connect a (potentiometer) across a DC voltage source in Proteus. Connect the wiper pin of the potentiometer to the IN+ pin of the voltage sensor. Connect the sensor's S pin to Arduino pin A0 . Add a Virtual Terminal to the Arduino TX/RX pins to view the measured voltage on screen. 6. Sample Arduino Calibration Code
C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Library Step 3: Copy and Paste the Files Extract the downloaded ZIP file. Copy both the .IDX and .LIB files.