Skip to content

Commit

Permalink
docs: update voltmeter drawing and added geogebra
Browse files Browse the repository at this point in the history
  • Loading branch information
sondresjolyst committed Dec 31, 2024
1 parent ed2ad03 commit 7593ac0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@

![Liz Sensor Voltmeter](</assets/svg/Liz Sensor Voltmeter.svg>)


### Voltage Divider Calculation for Wemos D1 Mini

To measure a higher voltage than 3.3V using the Wemos D1 Mini's ADC port, you can create a voltage divider with 47kΩ and 4.7kΩ resistors.

#### Voltage Divider Formula

$`V_{out} = V_{in} \times \frac{R2}{(R1 + R2)}`$

#### Given Values

- $`R1 = 47kΩ`$ (47000Ω)
- $`R2 = 4.7kΩ`$ (4700Ω)
- $`V_{out} = 3.3V`$ (ADC input maximum)

#### Calculate Maximum

$`V_{in} = \frac{V_{out} \times (R1 + R2)}{R2}`$

Plugging in the values:

$`V_{in} = \frac{3.3V \times (47000Ω + 4700Ω)}{4700Ω}`$

$`V_{in} = 3.3V \times \frac{51700Ω}{4700Ω}`$

$`V_{in} \approx 36.3V`$

## Liz Sensor BME280

![Liz Sensor Voltmeter](</assets/svg/Liz Sensor BME280.svg>)
Binary file added assets/geogebra/power-graph.ggb
Binary file not shown.
4 changes: 2 additions & 2 deletions assets/svg/Liz Sensor BME280.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions assets/svg/Liz Sensor Voltmeter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7593ac0

Please sign in to comment.