Save on reference books, ebooks, manuals, and programs with our GD&T training material bundle deals
Save $100 on the Advanced Applications and Tolerance Stacks online course with the purchase of any Fundamentals online course. No code needed.
Save $10 on a GD&T workbook (ebook or printed version) with the purchase of any of the GeoTol Pro Online courses. No code needed.
Take 50% off the purchase of any individual Pocket Guide with the purchase of an Online course AND workbook (printed version only). No code needed.
PLEASE NOTE: The GeoTol store will be undergoing routine maintenance Feb 2-3rd, 2026. Please contact [email protected] if you need assistance with placing an order.
Run the simulation. Open Virtual Terminal. You will see the computed input voltage.
void loop() int adcValue = analogRead(A0); float voltage = (adcValue / 1023.0) * 5.0; // Voltage at divider output float inputVoltage = voltage * ((20000 + 5000) / 5000.0); // Rescale Serial.print("Input Voltage: "); Serial.print(inputVoltage); Serial.println(" V"); delay(500); voltage sensor proteus library
For max 25V input and 5V output: Choose R1 = 10kΩ, R2 = 5.6kΩ Then, ( V_out = 25 \times \frac5.615.6 \approx 8.97V ) — too high. Better: ( R1 = 20k\Omega, R2 = 5k\Omega ) ( V_out = 25 \times \frac525 = 5V ) – perfect. Run the simulation
Introduction In the realm of electronic circuit design and simulation, Proteus Design Suite stands as a cornerstone for engineers, hobbyists, and students. One of the most critical components in modern electronics—especially in microcontroller-based projects, IoT devices, and battery management systems—is the voltage sensor . void loop() int adcValue = analogRead(A0); float voltage