Skip to content

VeyDlin/ResistorSearch

Repository files navigation

ResistorSearch

A cross-platform terminal app for finding voltage-divider resistor pairs (R1/R2) for DC-DC converters and LDOs straight from the datasheet formula.

Enter the formula, the target output voltage and an E-series — ResistorSearch brute-forces every R1/R2 combination (in parallel via AngouriMath) and shows the closest matches in a live, sortable table.

ResistorSearch screenshot

Features

  • Terminal UI (Terminal.Gui v2): set inputs, press Search (or F5) to compute.
  • Automatic formula validation as you type.
  • Interactive sorting by clicking a column header (Vout / R1 / R2 / Error%).
  • Configurable resistance range and result count.

Usage

  • Use r1, r2 and v in the formula. Replace fixed references like Vref with their numeric value.
  • The formula must contain a single = sign. Left/right sides may be swapped.
  • Case and spaces do not matter.

Examples:

  • MT3608: v = 0.6 * (1 + (r1 / r2))
  • TPS61088: r1 = ((v - 1.204) * r2) / 1.204

Build & run

Requires the .NET 10 SDK.

dotnet run --project src/ResistorSearch.Tui

Download

Prebuilt single-file binaries for Windows (x64), Linux (x64) and macOS (arm64) are attached to each GitHub Release.

Run tests

dotnet test

About

A simple console application that allows you to find a voltage divider for DCDC and LDO using the formula

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages