From ffc1d774a92b07478b5fc336a21456a7efb4dd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Mon, 15 Sep 2025 12:36:08 +0000 Subject: [PATCH] Update Readme.md --- Readme.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index 7a735f9..9b68261 100644 --- a/Readme.md +++ b/Readme.md @@ -148,13 +148,22 @@ As defined in the [example config](https://git.kopic.hr/tomislav/SmartCubeV1/src ![Step9](https://git.kopic.hr/tomislav/SmartCubeV1/raw/branch/main/hardware/pictures/build9.jpg) --- -5. **Power Supply Setup**: - Battery is not required and you can skip this step if you want to but it is much cuter when it's portable. A single 700mAh 14250 lasts about 24 hours. +**Battery Setup** - - Solder the 14250 battery to the TP4056 module input pins. - - Wire the output of the TP4056 to the **3.3V pin** on the D1 Mini to power the device. - - Connect the **5V output pin** from the D1 Mini to the **input port** on the TP4056 module to allow charging through the Data USB port on the ESP8266. +The battery is optional. Your SmartCube will work fine without it at this point; however, adding one makes it portable (and much cuter). + +A single 700 mAh 14250 battery lasts about 24 hours. Keep in mind there's currently no way to manually power the Cube off, it will continue running until the battery is depleted. The TP4056 prevents the cell from being completely drained and should protect it from damage. + +* Solder the 14250 battery to the **TP4056 input pins**. +* Wire the **TP4056 output** to the **3.3V pin** on the D1 Mini to power the device. +* Connect the **5V output pin** from the D1 Mini to the **TP4056 input port** to allow charging through the USB data port on the ESP8266. +* *(Optional)* Add a **voltage divider** to monitor battery level with the ESP8266 **A0 pin**. + + * **R1 = 220kΩ** (between battery positive and A0) + * **R2 = 56kΩ** (between A0 and GND) + + This safely scales 4.2V down to \~0.85V, allowing the software to read and estimate the battery’s charge level. ![batt1](https://git.kopic.hr/tomislav/SmartCubeV1/raw/branch/main/hardware/pictures/batt1.jpg)