Another one Resister Divider calculator  - Page 1
Forum section: electronics / beginners

author: xvr
author_rank: Frequent Contributor
timestamp: June 01, 2024, 06:16:36 pm
content: What could be simpler than a resistive divider?Only 2 resistors. Or not?What about source resistance? What about the load?What about tolerance?What about power dissipation?Some time ago I made a calculator and now I want to present it.https://xvrxvr.github.io/ResDiv/index.htmlLack of documentation and some non-intuitive aspects, but overall it can be useful.

author: aliarifat794
author_rank: Regular Contributor
timestamp: June 02, 2024, 12:38:55 pm
content: Not sure how to use this

author: xvr
author_rank: Frequent Contributor
timestamp: June 02, 2024, 01:14:46 pm
content: Just enter parameters you want to obtain (including tolerance of input/output), restrictions (such as desirable current through divider or power dissipation) and press 'solve'

author: xvr
author_rank: Frequent Contributor
timestamp: June 02, 2024, 02:32:08 pm
content: I think I owe instructions.You can configure values ​​for any circuit components. You can do this by clicking the corresponding value in the diagram or through the table of all components (2nd tab in the accordion). In the table, you must click the button in the first column of the corresponding parameter. (Table has more parameters than schematic).Each value has a tolerance (in absolute or relative form).The system automatically evaluates all parameters that directly follow from those already known.Each parameter value can take one of 4 forms.1. Undefined. No value provided or derived.2. Basic. The value is assigned manually and used for further evaluation.3. Restricted. The value was derived from others and some restrictions were applied to it. This type of parameter is used in Solver.4. Derived. The value was derived from others.If a constrained parameter violates restrictions, it is highlighted in the schema and table.You can also click the "Solve" button. The system will attempt to select resistor values ​​to resolve the restricted parameter that was marked "Use as Solver Target".It will produce a list of possible solutions (in increasing order of deviation of the target parameter value from the required one).If a solution does not exist (due to a constraint violation), the system will display an error window and provide a brife list of solutions with violations.Supports a system using multiple resistors in each branch. Just set the resistors as "1% E24".Next, select the maximum number of resistors and the desired connection diagram.

author: RAPo
author_rank: Super Contributor
timestamp: June 02, 2024, 03:25:49 pm
content: I use a black theme. The circuit (and consequently the components to click on in order to set the bounding values is very hard to read. See screenshot.

author: xvr
author_rank: Frequent Contributor
timestamp: June 02, 2024, 03:39:08 pm
content: It wasn't design for blank theme, sorry. Some tuning needed 🤔

author: Terry Bites
author_rank: Super Contributor
timestamp: June 03, 2024, 01:39:45 pm
content: I made one in excel with an array search macro.No fuss.

author: zapta
author_rank: Super Contributor
timestamp: June 03, 2024, 04:29:59 pm
content: Couldn't figure out how to use it. You may want to revisit the usability.

author: xvr
author_rank: Frequent Contributor
timestamp: June 03, 2024, 05:22:55 pm
content: Quote from: zapta on June 03, 2024, 04:29:59 pmInstruction in post #3 wouldn't help?

author: xvr
author_rank: Frequent Contributor
timestamp: June 03, 2024, 08:41:56 pm
content: Added help tab in UI.Theme aware drawing will be followed (not yet ready, sorry)

author: xvr
author_rank: Frequent Contributor
timestamp: June 03, 2024, 09:34:25 pm
content: Quote from: RAPo on June 02, 2024, 03:25:49 pmHow you turn on black theme? I'd try to turn it on in Browser and/or system, but calculator still show everything in light theme (can't turn on black one)

author: RAPo
author_rank: Super Contributor
timestamp: June 04, 2024, 06:48:59 am
content: I use chrome browser with Screen shader dark the plugin. Seehere.http://Quote from: xvr on June 03, 2024, 09:34:25 pm

author: golden_labels
author_rank: Super Contributor
timestamp: June 04, 2024, 06:51:12 am
content: If not that I don’t star projects I don’t actively use, I swear I would star you on GH for that!Some issues found:It took me a moment to realize, that tolerances are taken into account. Not knowing that I was confused by the solver responding with “no solutions found” and then offering me with perfectly fitting solutions.Resistance inputs shouldn’t be limited to E-series. It makes sense for solutions and targets, but constraints are likely to be more relaxed. It’s not like somebody puts an E24 resistor in a voltage source.Also a bow for being one of those rare people, who do understand JavaScript.

author: xvr
author_rank: Frequent Contributor
timestamp: June 04, 2024, 11:57:35 am
content: Changed input method for all auxilary R (except R1 and R2)Message for 'no solution found' was update to include note of 'tolerance'Added automatic adjust of tolerance of Target (if it was not specified)Dark theme still in work.

author: xvr
author_rank: Frequent Contributor
timestamp: June 04, 2024, 04:10:25 pm
content: QuoteSorry, still not work for me. Browser turned to dark, but calcualtor still stays lightNevertheless, I did my best and tried to detect overal OS dark mode (or overriden in browser, if browser support override detection). At least schema pane now can be turned dark or light (separately from rest of the page).So, last update:Dark/light mode switch for schema pane supportedVisual feedback for clickable items on schema page added

author: RAPo
author_rank: Super Contributor
timestamp: June 04, 2024, 05:12:45 pm
content: Thanks, this is much, much better; see screenshot.Thanks for developing this tool; it is bookmarked.

author: xvr
author_rank: Frequent Contributor
timestamp: June 04, 2024, 05:43:49 pm
content: Quote from: RAPo on June 04, 2024, 05:12:45 pmPls, Take a look into 'Values table' tab. I suspect that table could be unreadable. Drop me a note if it is.

author: RAPo
author_rank: Super Contributor
timestamp: June 05, 2024, 07:03:09 am
content: no worries, looks fineQuote from: xvr on June 04, 2024, 05:43:49 pm

author: xvr
author_rank: Frequent Contributor
timestamp: June 05, 2024, 07:57:08 am
content: Ok, it's visible. Good