Connect the DC voltmeter and ammeter correctly and measure quickly with probes. Calculate a voltage divider that brings 24 V down to a level a microcontroller can read, and see the loading effect.
In a solar power system you want to monitor the voltage of a 24 V battery bank with a microcontroller. But the microcontroller's analog input tolerates at most 5 V (3.3 V on some). Connect 24 V directly and you destroy the input. The answer is a simple voltage divider made of two resistors. In this lesson you will calculate the divider and learn to measure correctly with Proteus's virtual instruments.
Theory: the voltage divider
When two resistors are in series, the same current flows through both. The voltage is shared in proportion to the resistances. If you take the output across the lower resistor (R2):
Vout = Vin x R2 / (R1 + R2)
Example: Vin = 24 V, R1 = 39 kOhm, R2 = 10 kOhm
Vout = 24 x 10 / (39 + 10) = 24 x 0.2041 = 4.90 V
Divider current: I = 24 / 49000 = 0.49 mA
R1 power: P = I^2 x R1 = (0.00049)^2 x 39000 = 9.4 mW
4.90 V is just below a 5 V analog input; safe. The current is around half a milliamp, so the divider barely drains the battery. That is why we choose resistors in the kilohm range.
Build and measure the divider in Proteus
- From Pick Devices (P) add two RES parts and one BATTERY.
- Set the battery to 24V. Set one resistor to 39k and the other to 10k (you can type the value with the letter k).
- Wire them in series: battery positive → R1 (39k) → R2 (10k) → battery negative. Place GROUND from terminals mode on the battery negative.
- Switch to virtual instruments mode and choose DC VOLTMETER. Connect its positive lead to the junction of R1 and R2 and its negative lead to ground. A voltmeter goes in parallel with what it measures.
- Put the DC AMMETER in series between the battery positive and R1; set its range to milliamps.
- Start the simulation and read both instruments.
DC VOLTMETER: 4.90 V
DC AMMETER : 0.49 mA
Double-click an instrument to change its display range (volts, millivolts; amps, milliamps, microamps). For small currents lower the range, otherwise you will see 0.00 and think the circuit is dead.
Probes: measuring without extra wires
Connecting a voltmeter to every node clutters the drawing. Proteus has probes for this. Find probe mode on the left toolbar; you get a voltage probe and a current probe. Drop a voltage probe on a wire and it shows that node's voltage relative to ground. Place a current probe on a wire with its arrow pointing in the current direction.
Depending on your version, probe values appear next to the probe during live simulation; probes are also used later as measurement points in graph-based analyses. A good habit: probes for quick checks, voltmeters and ammeters for permanent, readable measurements.
Loading: what happens when you connect something to the divider?
If you connect a load to the divider output, the load goes in parallel with R2 and the lower resistance shrinks. Say we connect a circuit with a 10 kOhm input resistance:
R2 // Rload = (10 x 10) / (10 + 10) = 5 kOhm
Vout = 24 x 5 / (39 + 5) = 2.73 V (instead of 4.90 V!)
In Proteus add another 10k resistor in parallel with R2 and watch the voltmeter drop to 2.73 V. That is why a divider is only suitable for feeding inputs with very high input resistance (a microcontroller ADC input, an op-amp input); never use it to power a motor or a relay.
Doesn't the voltmeter itself load the circuit? Like real meters, the Proteus voltmeter has an internal resistance; you can see it in its properties, and the default is very high. In kilohm circuits its effect is negligible. When you work with megohm resistors, keep that value in mind.
Try it with the mini simulator
In the mini simulator below, change the input voltage, R1 and R2. Watch the output rise as R2 grows and fall as R1 grows. Then, with the rule "the output must not exceed 5 V", find your own resistor pair for a 30 V input and verify it in Proteus.
Common mistakes
Connecting the voltmeter in series: its internal resistance is so high that almost no current flows, and you read a wrong value.
Choosing resistors that are too small: 390 ohm and 100 ohm give the same ratio but draw 49 mA, and R1 dissipates about 0.9 W. Same ratio, very different waste.
Ignoring the load: connecting a low-resistance load to the divider output collapses the output voltage.
Exercise
You will monitor a car's 12 V battery with a microcontroller that runs on 3.3 V. While charging, the battery can reach 14.4 V. R2 = 10 kOhm is fixed; the output must never exceed 3.3 V. Choose R1 from standard values and verify it in Proteus at 14.4 V.
Hint: solve the formula for R1, then pick the next standard value up (a lower value pushes the output above 3.3 V).
Solution
3.3 = 14.4 x 10 / (R1 + 10)
R1 + 10 = 144 / 3.3 = 43.64 kOhm
R1 = 33.6 kOhm
With 33 kOhm: 14.4 x 10 / 43 = 3.35 V (limit exceeded)
With 39 kOhm: 14.4 x 10 / 49 = 2.94 V (safe)
Choose R1 = 39 kOhm. In Proteus set the battery to 14.4V and read about 2.94 V on the voltmeter. 33 kOhm looks "closer" but exceeds the limit; in measurement circuits always stay on the safe side.
In short: voltmeter in parallel, ammeter in series; a divider only feeds high-impedance inputs. In the next lesson you will measure signals that change over time with the oscilloscope and signal generator.
// Mini simulator
Move the sliders; the circuit and the values update instantly. Build the same circuit in Proteus and compare.
// Spot the bug +10 XP
Exactly one line below is wrong. Click the faulty line.
A voltmeter goes in parallel with what it measures: positive lead to the R1-R2 junction, negative lead to ground. In series, its high internal resistance lets almost no current flow and the reading is meaningless.
// Mini quiz
Click an option; you will see right away, with the reason, whether it is correct or not.
Mark it when you finish: your progress is saved and you earn +20 XP.
Tip: ← → keys let you move between lessons.


