This program finds three-resistor voltage dividers created from real-world resistor values (EIA E24 and/or E96) with divider ratios closest to some target. There are two upper resistors in the divider circuit to provide current limiting even if one of them shorts. Resistor tolerance and overall divider string resistance are taken into account. The calculator is a single .html file with inline Javascript.
Download Download the latest release of high_voltage_divider.html and run it in any browser that supports modern Javascript and HTML/CSS.
I would love to receive bug reports and user feedback. If you have improvements to the code, please get in touch.
Ben Tesch - slugrustle
high_voltage_divider.html contains the functions download_csv and download_xlsx, which are modified from this Stack Overflow post and are therefore distributed under the CC BY-SA 3.0 license.
The remainder of the high_voltage_divider project is distributed under the CC0 1.0 Universal Public Domain Dedication. See also LICENSE.txt or the first comment in high_voltage_divider.html.
svgo was handy for reducing the size of the inline .svg images used in this project.