Author Topic: Another one Resister Divider calculator  (Read 1028 times)

0 Members and 4 Guests are viewing this topic.

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Another one Resister Divider calculator
« on: June 01, 2024, 06:16:36 pm »
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.html

Lack of documentation and some non-intuitive aspects, but overall it can be useful.
 
The following users thanked this post: golden_labels, jwet

Offline aliarifat794

  • Regular Contributor
  • *
  • !
  • Posts: 138
  • Country: bd
Re: Another one Resister Divider calculator
« Reply #1 on: June 02, 2024, 12:38:55 pm »
Not sure how to use this :(
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #2 on: June 02, 2024, 01:14:46 pm »
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'
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #3 on: June 02, 2024, 02:32:08 pm »
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.

 

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 746
  • Country: nl
Re: Another one Resister Divider calculator
« Reply #4 on: June 02, 2024, 03:25:49 pm »
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.
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #5 on: June 02, 2024, 03:39:08 pm »
It wasn't design for blank theme, sorry. Some tuning needed 🤔
 
The following users thanked this post: RAPo

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2496
  • Country: gb
  • Recovering Electrical Engineer
Re: Another one Resister Divider calculator
« Reply #6 on: June 03, 2024, 01:39:45 pm »
I made one in excel with an array search macro.
No fuss.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6273
  • Country: us
Re: Another one Resister Divider calculator
« Reply #7 on: June 03, 2024, 04:29:59 pm »
Couldn't figure out how to use it. You may want to revisit the usability.
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #8 on: June 03, 2024, 05:22:55 pm »
Couldn't figure out how to use it. You may want to revisit the usability.
Instruction in post #3 wouldn't help?
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #9 on: June 03, 2024, 08:41:56 pm »
Added help tab in UI.
Theme aware drawing will be followed (not yet ready, sorry)
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #10 on: June 03, 2024, 09:34:25 pm »
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.
How 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)
 

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 746
  • Country: nl
Re: Another one Resister Divider calculator
« Reply #11 on: June 04, 2024, 06:48:59 am »
I use chrome browser with Screen shader dark the plugin. See here.


http://
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.
How 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)
 

Offline golden_labels

  • Super Contributor
  • ***
  • Posts: 1322
  • Country: pl
Re: Another one Resister Divider calculator
« Reply #12 on: June 04, 2024, 06:51:12 am »
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. :)
« Last Edit: June 04, 2024, 06:57:10 am by golden_labels »
People imagine AI as T1000. What we got so far is glorified T9.
 
The following users thanked this post: RAPo

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #13 on: June 04, 2024, 11:57:35 am »
  • 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.
 
The following users thanked this post: RAPo

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #14 on: June 04, 2024, 04:10:25 pm »
Quote
I use chrome browser with Screen shader dark the plugin. See here.
Sorry, still not work for me. Browser turned to dark, but calcualtor still stays light  :-//
Nevertheless, 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 supported
  • Visual feedback for clickable items on schema page added
 

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 746
  • Country: nl
Re: Another one Resister Divider calculator
« Reply #15 on: June 04, 2024, 05:12:45 pm »
Thanks, this is much, much better; see screenshot.
Thanks for developing this tool; it is bookmarked.
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #16 on: June 04, 2024, 05:43:49 pm »
Thanks, this is much, much better; see screenshot.
Pls, Take a look into 'Values table' tab. I suspect that table could be unreadable. Drop me a note if it is.
 

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 746
  • Country: nl
Re: Another one Resister Divider calculator
« Reply #17 on: June 05, 2024, 07:03:09 am »
no worries, looks fine

Thanks, this is much, much better; see screenshot.
Pls, Take a look into 'Values table' tab. I suspect that table could be unreadable. Drop me a note if it is.
 

Offline xvrTopic starter

  • Frequent Contributor
  • **
  • Posts: 404
  • Country: ie
    • LinkedIn
Re: Another one Resister Divider calculator
« Reply #18 on: June 05, 2024, 07:57:08 am »
Ok, it's visible. Good
 
The following users thanked this post: RAPo


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf