diff --git a/README.md b/README.md index 6031859..e9538ea 100644 --- a/README.md +++ b/README.md @@ -111,14 +111,23 @@ Place these sounds in the folder `system` on the SD card: sleep.mp3 will be played just before the timed shutdown, start.mp3 will be played if the box started and initialized successfully. +## Battery Voltage + +The battery voltage is measured by the ADC of pin 13. A voltage divider halves the voltage so that the pin can not be overloaded (max 3.3V). +The voltage divider consists of two 100kOHM resistors, the voltage is measured between them. One side is connected to the battery and the other to ground. +Pin 13s ADC (ADC2) can not be used while WIFI is on... damn. + ## TODOs + * Card Reader with SPI. Configure hspi, second SPI channel? Or does SD Card + RFID run at the same channel? ![](images/wemos-d1-mini-esp32.png) ## Schematic without modules + ### Charging circuit + https://ww1.microchip.com/downloads/en/AppNotes/01149c.pdf MCP73837 ? diff --git a/src/WebContent.h b/src/WebContent.h index 9746fc8..702b75f 100644 --- a/src/WebContent.h +++ b/src/WebContent.h @@ -9,6 +9,8 @@ const char index_html[] PROGMEM = R"rawliteral(

HannaBox



+
+
@@ -16,16 +18,17 @@ const char index_html[] PROGMEM = R"rawliteral(

- + + onchange="postValue('progress',document.getElementById('progressSlider').value);lastChange = Date.now()" + > +
-
- +
+ onchange="postValue('volume',document.getElementById('volumeSlider').value);lastChange = Date.now()" + > +