Files
electronics_scripts/README.md

30 lines
779 B
Markdown

# Electronics scripts
This repository aim to be a collection of useful scripts when working on small electronic projects.
for input values, n, u or µ, m, k, M and G suffixes are accepted, respectively for nano, micro, milli, kilo, mega and giga.
The inputs are asked through CLI, when multiple values are possible they can be separated with commas or spaces.
---
## voltage\_divider.py
#### input:
+ a list of resistors values
*example: 10 50 47 100 5K 1M*
+ a desired ratio \(0 ≤ ratio ≤ 1\) for the voltage divider
*example: 0.4096*
#### output:
The 5 best resistor pairs (closest to the desired ratio).
---
## parallel\_resistors.py
#### input:
+ a list of resistors values
#### output
+ the total resistance with the resistors connected in parallel
---