Library ((new)): Voltage Sensor Proteus
) to an analog pin on your simulated microcontroller, such as A0 on an Arduino Uno. Connect the module's ground pin to the Arduino's ground. Sample Arduino Code for Simulation
2. How to Download and Install a Voltage Sensor Proteus Library
💡 Check if the sensor model requires a "Hex" file or a specific property setting (right-click the component -> Edit Properties) to function.
void loop() Measured Voltage: "); Serial.print(actualVoltage); Serial.println("V"); voltage sensor proteus library
Before we dive into the software specifics, let’s establish a clear understanding of the hardware we’re dealing with. In the physical world, a voltage sensor module is a straightforward yet indispensable device. Its core function is to measure voltage—often at levels that would instantly fry a standard microcontroller’s sensitive analog-to-digital converter (ADC).
For the changes to take effect, you must restart the Proteus software. This is crucial for the new component to appear in the search list. How to Use the Voltage Sensor in Proteus
This article provides a complete guide to finding, installing, and using a , enabling you to simulate AC/DC voltage monitoring projects seamlessly. What is a Voltage Sensor Module? ) to an analog pin on your simulated
In Proteus, "Voltage Sensor" content typically refers to simulating a 0-25V Voltage Sensor Module (commonly used with Arduino) or using built-in measurement tools. 1. The Voltage Sensor Module (0-25V)
| Category | Library/Component | Key Features | Primary Source | Use Cases | | :--- | :--- | :--- | :--- | :--- | | | Generic Voltage Sensor Module | - Simple voltage divider - Measures 0-25V DC - Outputs 0-5V signal | Schematic World | Battery monitoring, basic voltmeters, Arduino sensor projects | | AC Voltage Sensor | ZMPT101B | - Measures AC voltage - Galvanic isolation - Commonly used for mains monitoring | Community libraries / GitHub repositories (e.g., Karan-nevage/PROTEUS-LIBRARY) | Power monitoring, automatic power factor correction, energy meters | | Specialized DC Monitor | INA219 | - High-side sensing - Measures voltage & current - I2C communication | Schematic World | Battery management systems, precision power supplies, energy monitoring | | Voltage Detector | MC34064 | - Under-voltage detection - Provides reset signal on brown-out - Simple 3-pin design | Schematic World | Microcontroller reset circuits, system protection from low voltage, safety applications | | Generic Sensor Collection | Karan-nevage/ PROTEUS-LIBRARY | - Repository with 20+ libraries - Includes gas, PIR, heartbeat, soil moisture sensors - Arduino compatible | GitHub - Karan-nevage/PROTEUS-LIBRARY | Various embedded system projects requiring multiple sensor types | | Arduino Sensor Archive | xuan2261/ Proteus-arduino-libraries | - Archive of Arduino-focused libraries - Organized by sensor and device type - Actively maintained | GitHub - xuan2261/Proteus-arduino-libraries | All Arduino-based simulation projects, complete system prototyping |
Are you planning to use this sensor with a like an Arduino or PIC? How to Download and Install a Voltage Sensor
To make the voltage sensor available in your Proteus component list, you must manually move the downloaded files into the software's root directory. Step 1: Locate the Proteus Library Folder
Make sure the Proteus software is completely closed before adding new files.
const int sensorPin = A0; float vOut = 0.0; float vIn = 0.0; float R1 = 30000.0; // 30k ohm resistor float R2 = 7500.0; // 7.5k ohm resistor void setup() Serial.begin(9600); void loop() int value = analogRead(sensorPin); vOut = (value * 5.0) / 1024.0; vIn = vOut / (R2 / (R1 + R2)); // Reconstruct the original voltage Serial.print("Input Voltage: "); Serial.println(vIn); delay(500); Use code with caution. 4. Simulating an AC Voltage Sensor (ZMPT101B)
) from community sites like The Engineering Projects or GitHub.
This is the most common error. If you apply 12V to the sensor input and the Arduino reads 12V on the ADC, you might be overloading the ADC (since 12V > 5V).