small refactor + readme update
This commit is contained in:
18
README.md
18
README.md
@@ -1,13 +1,16 @@
|
||||
# Electronics scripts
|
||||
|
||||
This repository aim to be a collection of useful scripts when working on small electronic projects.
|
||||
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:
|
||||
(will ask the input through CLI if ran directly)
|
||||
+ a list of resistors values (floats) separated by commas or spaces, accept K and M suffixes for kilo and mega ohms values.
|
||||
+ 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*
|
||||
@@ -15,3 +18,12 @@ This repository aim to be a collection of useful scripts when working on small e
|
||||
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
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user