Measure How Two Schottky Diodes Hand a Load From One Source to Another
Give two bench supply outputs a way to feed one load through separate Schottky diodes. Measure the current in each branch as one source goes from lower than the other to higher. With matched terminal voltages, both branches can supply current. Measuring only the shared load voltage would hide that change.
Give each source its own path to the load
This circuit is a diode OR. Either source can feed the shared node BUS through its own diode. The two diode cathodes meet at BUS. The anodes face separate source branches. A source with enough voltage above BUS forward-biases its diode, so current flows toward the load. If its anode falls below BUS, its diode becomes reverse-biased and mostly blocks current in the opposite direction. Small reverse leakage can remain.
A Schottky diode uses a metal–semiconductor junction. Its forward drop depends on current and temperature. Use two Vishay 1N5819-E3/54 parts in the axial DO-204AL package, also called DO-41. The body band marks the cathode. The data sheet lists a 40 V maximum direct-current blocking voltage and a 0.60 V maximum instantaneous forward drop at its specified 1 A pulse test. The fixture stays below 5.55 V and reads at tens of milliamperes. Measure the actual diode drops in the experiment.
The two 22 Ω shunts are small known resistors whose voltage drops reveal branch current. They also add some ballast, making each branch drop more voltage as it contributes more current. This encourages sharing when both sources are close together. Exact 50/50 sharing still depends on the shunts, the supply voltages and the two diodes. The two 220 Ω bleeds are separate local loads. Each makes its own source deliver current even when that branch's diode is reverse-biased, as long as leakage remains below the bleed load.
Wire the independent supply channels
Use adjustable channels 1 and 2 on a Siglent SPD3303X in Independent mode. Disable its Series and Parallel tracking modes. These two outputs are isolated in this mode. With both outputs off, tie their negative output terminals together at G0, the circuit reference. Keep the protective earth connection of the supply in place. Use one handheld Fluke 87V MAX for measurements. Keep its black lead in the common jack and its red lead in the voltage jack.
| Path | Connect |
|---|---|
| A branch | Channel 1 positive → RA 22 Ω → diode A anode. Its banded cathode → BUS. |
| B branch | Channel 2 positive → RB 22 Ω → diode B anode. Its banded cathode → BUS. |
| A and B bleeds | One separate 220 Ω from each positive supply terminal to G0, before its shunt. |
| Bus load | One 220 Ω from BUS to G0. |
Use 1% Vishay MRS25 metal-film resistors: MRS25000C2209FCT00 for 22 Ω and MRS25000C2200FCT00 for 220 Ω. Their rated dissipation is 0.6 W at 70 °C under the data sheet's conditions. Measure the two shunts and the bus load out of circuit with both sources disabled. Null the shorted lead reading on the low resistance range if needed. Keep those resistance measurements for the analyzer. The source-positive terminals each reach BUS through their own shunt and diode. Keep the two local bleeds in place during every measurement. A wire directly between the two positive terminals would bypass the diodes and allow the higher source to drive into the lower source.
Set the current limit to 80 mA on each channel and use a resistive load only. Keep the source targets at or below 5.50 V, with 5.55 V used as a conservative calculation limit. With a minimum 217.8 Ω load, the greatest load current at 5.55 V is about 25.5 mA. A local bleed can take another 25.5 mA, so a source stays near or below 51 mA in the intact circuit, allowing another fraction of a milliampere for the other branch's signed current. The highest calculated load or bleed dissipation is about 0.142 W. The 80 mA setting gives that normal load headroom. Both channels must show constant voltage during a recorded trial.
Read signed currents without inserting an ammeter
Measure each drop directly across its shunt on the meter's 600.0 mV direct-current (DC) range. For either shunt the red lead goes on the source side and the black lead on the anode side. With drop in millivolts and resistance in ohms, IA = ΔVA/RA and IB = ΔVB/RB yield milliamperes. A negative value points from BUS back toward that source. Record the sign even when the magnitude is small. The meter's 0.1 mV resolution is about 4.5 µA per reading count on 22 Ω. Its accuracy includes a term proportional to the reading plus a count. Resistor measurement, offsets and changing contacts also limit a small signed-current claim.
Even with zero forward diode drop, the stronger branch's shunt voltage is approximately bounded by RS(Vmax + RL|Irev|)/(RS + RL) if the other branch is drawing reverse current. Taking RS = 22.22 Ω, RL = 217.8 Ω and the 0.25 mA screening allowance gives about 0.519 V at 5.55 V, within the 600 mV range. This is an intact-circuit calculation with the declared reverse-current allowance. Stop and investigate overload, unexpected heating, a reading outside the range or a current-limit indication.
Use the 6.000 V DC meter range to read the actual A and B positive terminals and BUS, each relative to G0. The load current is IL = VBUS/RL. Kirchhoff's current law says the currents flowing into a node equal those flowing out. Here it predicts IA + IB ≈ IL. Keep each value signed. The local bleed currents bypass BUS and are excluded from this sum.
Take four settled stages with the same load
- Verify diode bands and source/G0 wiring with power off. Set source A to 4.50 V and B to 3.50 V, enable both outputs and confirm constant voltage (CV). Current limit, or constant current, invalidates a reading. Observe BUS first to catch an open load or wrong polarity.
- For one repeat, read A, B and BUS relative to G0, then the two signed shunt drops. Recheck BUS at the end. If it has changed more than 10 mV or either source left CV, wait and retake the repeat after finding the cause. Save three separate settled repeats on the worksheet. Mark
cvas 1 only if both sources stayed in CV throughout the repeat. - Leave A at 4.50 V and move B to 4.50 V. Use the meter to check that the actual terminal readings agree within 35 mV. Run three repeats again. Then move B to 5.50 V and repeat. Return B to 3.50 V and take the three restore repeats. Keep the same load, lead positions and room-temperature conditions. Turn both outputs off before changing any connection.
- Save a comma-separated values (CSV) copy with fields matching the worksheet. The three terminal readings are in volts and the signed drops are in millivolts. Use the actual measured shunt and load values as command-line inputs, in ohms.
The analyzer checks current closure within 0.48 mA at each repeat and again for the stage medians. It requires both branches to provide at least 18% of the measured load current in the shared stage. In the dominant stages it checks for one positively conducting branch, with at least 12 mA, and one reverse-biased branch whose current magnitude falls within 0.25 mA. This is a practical inactive guard, not a proof of zero leakage. The repeat and restoration checks catch drift, movement and an open connection.
Read the handover and its voltage cost
For a rough nominal example, model each conducting diode as a 0.25 V fixed drop. With only A supplying a 220 Ω load through 22 Ω, I ≈ (4.50 − 0.25)/(22 + 220) = 17.6 mA and BUS is near 3.86 V. When both sources are matched and both diode drops are equal, each sees half the load current. The same split would look like an 11 Ω series ballast at the total load. The following worksheet is constructed from a simple fixed-drop model including a small illustrative reverse leakage and resistance variation.
| Stage | BUS (V) | A (mA) | B (mA) |
|---|---|---|---|
| A | 3.862 | +17.591 | −0.014 |
| Shared | 4.047 | +9.192 | +9.234 |
| B | 4.773 | −0.014 | +21.737 |
| Restore | 3.862 | +17.591 | −0.014 |
Use the terminal voltage, branch drop and BUS voltage to infer a diode's bias. For A, the anode is at VA − ΔVA when both terms are in volts. Subtract VBUS to get its anode-to-cathode voltage. When the constructed B stage puts BUS about 0.27 V above the A terminal, A is reverse-biased. A small display reading on its shunt needs the repeat, closure and bias checks before interpretation.
The bus voltage changes between stages, and the load current changes with it. This circuit demonstrates a static source handover under a resistive load. It does not measure the interruption time during a power failure, qualify a backup battery, or establish reverse leakage over temperature. The numbers in the worksheet are synthetic. Actual bench results still need to be taken.
Run the complete offline analyzer
Use Python 3.9 or later and its standard library. Download the analysis code, tests, editable diagram, worksheet and synthetic example. Exit 0 means the comparison passed all controls, exit 1 leaves the run unresolved, and exit 2 indicates malformed input or invalid command syntax.
python3 diode_or.py readings.csv --ra-ohm 22.04 --rb-ohm 21.94 --load-ohm 219.7
python3 diode_or.py synthetic/example.csv --ra-ohm 22.04 --rb-ohm 21.94 --load-ohm 219.7
python3 -m unittest -v test_diode_or
"""Compare steady source handover using signed shunt voltages and load current."""
import argparse
import csv
import math
import statistics
from dataclasses import dataclass
from pathlib import Path
HEADER = ("stage", "repeat", "a_v", "b_v", "bus_v", "drop_a_mv", "drop_b_mv", "cv")
STAGES = (("a", 3.50), ("shared", 4.50), ("b", 5.50), ("restore", 3.50))
ROUNDING = 1e-9
class BadInput(ValueError):
pass
class Unresolved(ValueError):
pass
@dataclass(frozen=True)
class Reading:
a_v: float
b_v: float
bus_v: float
drop_a_mv: float
drop_b_mv: float
cv: str
@dataclass(frozen=True)
class Result:
a_v: float
b_v: float
bus_v: float
drop_a_mv: float
drop_b_mv: float
a_ma: float
b_ma: float
load_ma: float
@property
def closure_ma(self):
return self.a_ma + self.b_ma - self.load_ma
def constrain(value, low, high, label, error=Unresolved):
if not low - ROUNDING <= value <= high + ROUNDING:
raise error(f"{label} is {value:.6g}; expected {low:g} to {high:g}")
return value
def read_records(path):
try:
if path.stat().st_size > 16000:
raise BadInput("worksheet exceeds 16000 bytes")
with path.open(newline="", encoding="utf-8-sig") as file:
reader = csv.reader(file, strict=True)
if tuple(next(reader, ())) != HEADER:
raise BadInput("header must be " + ",".join(HEADER))
rows = list(reader)
except (OSError, csv.Error, UnicodeError) as error:
raise BadInput(str(error)) from error
if len(rows) != 12:
raise BadInput("expected 12 readings, three per stage")
parsed = {}
for index, (stage, _) in enumerate(STAGES):
group = []
for ix, row in enumerate(rows[3*index:3*index+3], 1):
if len(row) != len(HEADER) or row[:2] != [stage, str(ix)]:
raise BadInput(f"{stage}: expected stage/repeat sequence 1, 2, 3")
try:
numeric = tuple(float(cell) for cell in row[2:7])
except ValueError as error:
raise BadInput(f"{stage} repeat {ix}: expected numeric samples") from error
if not all(map(math.isfinite, numeric)):
raise BadInput(f"{stage} repeat {ix}: expected finite samples")
if row[7] not in ("0", "1"):
raise BadInput(f"{stage} repeat {ix}: cv must be 0 or 1")
group.append(Reading(*numeric, row[7]))
parsed[stage] = group
return parsed
def active(current, diode_drop, label, minimum):
constrain(current, minimum, 26, f"signed {label} current (mA)")
constrain(diode_drop, .08, .60, f"{label} forward drop (V)")
def inactive(current, diode_drop, label):
constrain(current, -.25, .25, f"inactive {label} signed current (mA)")
constrain(diode_drop, -2, -.05, f"inactive {label} diode bias (V)")
def evaluate(stage, target, raw, resistors):
ra, rb, rl = resistors
a_v, b_v, bus, drop_a, drop_b = (
raw.a_v, raw.b_v, raw.bus_v, raw.drop_a_mv, raw.drop_b_mv)
if raw.cv != "1":
raise Unresolved("both sources must remain in constant voltage")
constrain(a_v, 4.47, 4.53, "A source terminal (V)")
constrain(b_v, target-.03, target+.03, "B source terminal (V)")
constrain(bus, 3.35, 4.95, "bus voltage (V)")
for drop, label in ((drop_a, "A"), (drop_b, "B")):
constrain(drop, -20, 590, f"{label} raw shunt (mV)")
a, b, load = drop_a/ra, drop_b/rb, 1000*bus/rl
va_diode = a_v - drop_a/1000 - bus
vb_diode = b_v - drop_b/1000 - bus
if stage == "shared":
constrain(a_v-b_v, -.035, .035, "shared source matching (V)")
if min(a,b) < .18*load - ROUNDING:
raise Unresolved("both branches must supply at least 18% of the measured load")
active(a, va_diode, "A", 2)
active(b, vb_diode, "B", 2)
elif stage == "b":
active(b, vb_diode, "B", 12)
inactive(a, va_diode, "A")
else:
active(a, va_diode, "A", 12)
inactive(b, vb_diode, "B")
result = Result(a_v,b_v,bus,drop_a,drop_b,a,b,load)
constrain(result.closure_ma, -.48, .48, "current closure (mA)")
return result
def reportable(stage, records, limit_v=.025, limit_drop=5):
for attribute, limit in (("a_v",limit_v),("b_v",limit_v),("bus_v",limit_v),
("drop_a_mv",limit_drop),("drop_b_mv",limit_drop)):
readings = [getattr(item, attribute) for item in records]
constrain(max(readings)-min(readings), 0, limit, stage+" repeat spread for "+attribute)
center = Result(*(statistics.median(getattr(row, attribute) for row in records)
for attribute in Result.__dataclass_fields__))
constrain(center.closure_ma, -.48, .48, stage + " median current closure (mA)")
return center
def verify_restore(old, new):
for name, margin in (("a_v",.03),("b_v",.03),("bus_v",.035),("a_ma",.40),("b_ma",.25)):
error = abs(getattr(old,name)-getattr(new,name))
constrain(error, 0, margin, "restored comparison "+name)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("capture", type=Path, help="12-row settled DC worksheet")
parser.add_argument("--ra-ohm", required=True, type=float)
parser.add_argument("--rb-ohm", required=True, type=float)
parser.add_argument("--load-ohm", required=True, type=float)
args = parser.parse_args()
try:
ra = constrain(args.ra_ohm,21.6,22.4,"ra-ohm",BadInput)
rb = constrain(args.rb_ohm,21.6,22.4,"rb-ohm",BadInput)
rl = constrain(args.load_ohm,216,224,"load-ohm",BadInput)
resistors = ra,rb,rl
raw = read_records(args.capture)
result = {}
for stage, target in STAGES:
checked = []
for repeat, sample in enumerate(raw[stage],1):
try:
checked.append(evaluate(stage,target,sample,resistors))
except Unresolved as error:
raise Unresolved(f"{stage} repeat {repeat}: {error}") from error
result[stage] = reportable(stage,checked)
verify_restore(result["a"],result["restore"])
except BadInput as error:
parser.exit(2,f"INPUT: {error}\n")
except Unresolved as error:
parser.exit(1,f"UNRESOLVED: {error}\n")
for stage, data in result.items():
print(f"{stage:7} | BUS {data.bus_v:.3f} V | A {data.a_ma:+.3f} mA | "
f"B {data.b_ma:+.3f} mA | load {data.load_ma:.3f} mA | "
f"closure {data.closure_ma:+.3f} mA")
print("PASS: dominance A → shared → B → A restored. At matched voltage both branches supplied current.")
return 0
if __name__ == "__main__":
raise SystemExit(main())
Tell which current belongs at the bus
Source A's local bleed draws 20.5 mA, and its shunt indicates 17.6 mA toward BUS. Source B contributes almost no branch current. What load current should you expect at BUS?
Show the answer
The bus load should draw about 17.6 mA. The 20.5 mA bleed current returns to G0 ahead of A's shunt. A's supply therefore delivers about 38.1 mA in total while only 17.6 mA reaches BUS.
Primary sources and related experiments
- Vishay 1N5817/18/19 data sheet, document 88525 for the exact orderable part, band and test conditions. The MRS25 data sheet gives the resistor range and rated dissipation.
- Siglent SPD3303X quick-start manual for Independent mode and CV status, and the Fluke 87V MAX manual for meter ranges and resolution.
- Texas Instruments Basics of Ideal Diodes, Rev. B illustrates conventional two-source Schottky ORing and discusses forward loss and reverse leakage.
- On Tricky Circuit, compare one source feeding two diode loads through ballast and the battery charger load-path experiment.