Article Image
Article Image
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
#BATTERY LIFE #ENERGY SCAVENGING #EPAPER DISPLAY #ESP32 #SOLAR POWER

A while back, I tried to power my Christmas lights using solar power, but it didn’t work out as planned - there simply wasn’t enough daylight (and more importantly sunlight) to charge up the battery.

Undeterred, I decided to see if I could power my low-energy ePaper weather display using the not-so-strong Scottish winter sun. The weather display is super energy-efficient, thanks to the ESP32’s deep sleep mode. With a 1000mAh battery, it can last up to 2-3 months without recharging. My goal? Extend that battery life even more with some solar power - maybe even keep it running indefinitely…

If you prefer to watch a video, you can do so here.

The Challenge

The biggest issue with solar power up here in Scotland is the short days and weak sun. When I was playing with solar power before it was very rare to get more than the 4 volts that the TP4056 charging board needs to run. And to actually fully charge a lithium cell, we would need more than 4.2 volts.

Available Power

However, the ePaper weather display is amazingly power efficient. It spends almost all its time in deep sleep and the realy nice thing about ePaper displays is that they use zero power once the display has been set up. I measured the current draw of the weather display when it was in deep sleep and it was only 167uA. In theory the ESP32 can go down to 10uA so potentially there’s room for improvement here.

Power Usage

To get an idea of what I was dealing with I updated the code for the weather display so that it would send up the current battery level every time it woke up. This produced this slightly noisy graph. Looking at the slope the battery drains by about 2.2% every day.

Battery Drain

Playing with BQ25504 and BQ25570 Boards

To get the most from the solar cell, I decided to try a bit of energy scavenging. I tested two energy-harvesting boards from AliExpress, the BQ25504 and BQ25570, to see if they could help keep my battery happy.

BQ25504 and BQ25570

Initially I wanted to use the BQ25504 as it’s a bit simpler than the BQ25570 which includes a buck regulated output for powering the load. My initial experiments were pretty promising, even with the solar panel outputting quite a low voltage the board was able to charge up the built in capacitor to a much higher voltage. Unfortunately, it maxed out at 3.172 volts which is not enough to charge a lithium cell.

The maximum voltage is controlled by a couple of resistors on the board.

BQ25504 Schematic

And can be worked out using the formula:

\[VBAT\_OV=\frac{3}{2}VBIAS\left(1+\frac{R_{OV2}}{R_{OV1}}\right)\]

Where VBIAS is typically 1.25 volts.

I could have changed the resistors on the board to get the correct output voltage - but honestly, life is a bit too short to be messing around with these tiny components.

BQ25504 Resistors

After looking at the BQ25570 board I found that it was already set up with the right voltage levels.

BQ@5570 Schematic

The BQ25570 board is a bit more complicated than the BQ25504, it includes a buck regulator that can be used to power the load - it’s quite nice as you can use the output of the VBAT_OK pin to enable and disable the buck regulator - so it will switch off the load if the battery voltage is too low. The buck regulator on my board was setup to output 2.5 volts. Initialy you might things this is too low to power an ESP32 which is typically run from 3.3 volts. But an ESP32 will actually run on anything between 2.3 and 3.6 volts.

Here’s my ESP32 dev board running the blink sketch off the buck regulator. It’s completely happy.

Blink Sketch

However, the buck regulator is limited to a maximum of 100mA. This is fine, unless you want to run WiFi, which is pretty important if you want to get a weather forecast. I checked how much current the ESP32 was drawing when it was refreshing the weather display and it has current spikes of 400-600mA.

Current Spikes

Fortunately, we can just ignore the buck regulator and directly connect the weather display to the battery without any issues.

To check that the BQ25570 does actually work, I measured the battery level and left it on the window sill for a few hours. We actually got a small amount of sunshine and managed to charge the battery from 3.85 volts to 3.88 volts - now that doesn’t sound like very much, but if you map it onto a lithium cell discharge curve, it’s actually around 4-5% of the battery capacity (this has to be taken with a bit of salt as the battery discharge curve is very approximate).

Battery Charging

Initial Results

I left this running for a week or so in the usual position for the weather display and got some pretty interesting results. I was initially pretty dissapointed, the battery was still draining over time. But, the drain was now only 1.4% per day. So despite the graph looking pretty bad - we did actually make some progress. The slope is now 1.4% per day, which is a lot better than the 2.2% per day we were seeing before.

Battery Drain With Energy Scavenging

Making an obvious change

One smart idea to save battery life would be to let the weather display take a long nap overnight when everyone’s snoozing. I tweaked the code to make it deep sleep for 6 hours after 11pm and left the experiment running for a few weeks while I was away on holiday. The results are more promising. We still see the battery draining, but it’s now only 0.9% per day.

Battery Drain With Overnight Sleep

The Verdict

With this new code in place, I think that the battery could last through the winter months through to spring when the days start to get much longer. And I think during the summer months, the battery could get recharged up to 100%. I believe my weather display might just keep running forever and never need charging again.

Results

The only issue now is that I need a new box to put it in - it’s a bit of a mess right now…

What a mess

#BATTERY LIFE #ENERGY SCAVENGING #EPAPER DISPLAY #ESP32 #SOLAR POWER

Related Posts

The PCBs are in production - what have I messed up? - Explore the design and creation of a seven-segment clock using high-voltage and 3V LED filaments, driven by an ESP32 microcontroller and innovative driver chips. Learn about the author's decision-making process and how they overcame challenges during the PCB design phase.
Self Organising WS2811 LEDs - Dive into this informative blog post and discover the process of organizing addressable WS2811 LED strings with an ESP-CAM board using an ESP32 dev board, FastLED library, and JavaScript image processing.
We don't need no stinking badges - Or maybe we do? Arduino Build Badges - Enhance your Arduino projects with GitHub build badges, create GitHub actions to ensure your code's stability, and get started with a simple ESP32 project workflow.
Picking up Free Lithium Cells Off the Street and Making them Safe for Use - Learn to recycle lithium cells from disposable vape devices, test their capacity with DIY battery testers, and add battery protection to make them safe for use in your projects, contributing to a cleaner environment.
DIY 20,000mAh Power Bank - Was it worth it? - This blog post explores the process of creating a DIY USB-C power bank using lithium cells and a charging board, testing its efficiency, and examining how it stacks up against commercially available options. Discover the steps involved in building the power bank, battery capacity tests, and overall performance results, shedding light on whether it's worth it to create a DIY version or to invest in a commercial one.

Related Videos

Energy Harvesting Doesn't Work - Or Maybe... It Does! - Explore the use of low-power electronics and energy harvesting from the Scottish winter sun to create a self-sustaining e-paper weather display. The device utilizes the ESP32's deep sleep mode and e-paper display for efficient operation and exhibits promising results.
-
ESP32 Deep Dive into Deep Sleep - Maximize the battery life of your IoT projects with ESP32 deep sleep mode, including waking up with timers, GPIO pins, and touch sensors. Retain state and ensure efficient power management in your next IoT project.
DIY eBook Reader - Build your own Kindle using an ESP32 - Create a DIY e-Reader using an ESP32 and an e-paper display, capable of decoding ePUB files and rendering text and images. This project delivers a responsive, power-efficient e-Reader, showcasing the potential for ESP32 e-paper displays.
Solar Powered Christmas Lights? In the Scottish Winter? - Can Christmas lights be powered by solar energy during the Scottish winter? This in-depth experiment explores the potential of small solar panels to charge a lithium cell and provide a sustainable and eco-friendly solution for holiday lighting.
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts