Skip to content

Commit d9097a7

Browse files
authored
Apply suggestion from @jhansson-ard
1 parent 8b34702 commit d9097a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ void loop()
188188
voltADC = rawADC * 3.3 / 4096.0;
189189
```
190190

191-
**14.** The `voltADC` variable gives us the voltage sensed directly on the PB09 pin. This voltage is passed through the voltage divider, so it is a fraction of the actual battery voltage. We can then calculate the equivilanet battery voltage as follows.
191+
**14.** The `voltADC` variable gives us the voltage sensed directly on the PB09 pin. This voltage is passed through the voltage divider, so it is a fraction of the actual battery voltage. We can then calculate the equivalent battery voltage as follows.
192+
192193
```arduino
193194
voltBat = max_Source_voltage * rawADC / 4096.0;
194195
```

0 commit comments

Comments
 (0)