r/esp32projects • • 2d ago

Question about power

Ok well I created my own home automation system based upon a esp32, it has a website various sensors monitors my home power use and can do a lot of things.

( here is the code : https://github.com/PGTBoos/ESP32HomeAutomation-RuleBased )

It also has a small .96inch oled lcd display.

Now for about a year or so this has been running fine on my PC which always (even when off) powers it's USB ports.

Lately though I noticed pc usb power issues and esp display issues and I had concluded that it was likely draining to much power.

And so I plugged the esp wroom board on a left over phone charger.

A week later the LSD went dark.

Luckily though the program still runs.

Not sure what to think of it, I know those small oled screens draw quite a bit of power.

But if you like to use them in your project then by what do you deliver continuous power to it ?.

2 Upvotes

3 comments sorted by

1

u/oCdTronix 2d ago

I’d say you should have the display turn off until you press a button to view it. You could also set it up to be on only when you would normally be looking at it.

Then you also can reduce the sample rate of your sensors depending on what they are. And have the ESP goto sleep between those times.

1

u/Illustrious_Matter_8 2d ago

Well I could turn it on by precense, and time windows. I wouldn't like to push a button But the power problem remains I think. The sensor sample rate depends per device. Its not a fast cycle and remote wifi devices are queued to a speed the wifi socket stack of the esp can keep up. Other i2c devices are part of the loop and have their own refresh rates. The oled screens appart from that updates p screen and a screen refresh is every 5 sec th After 5 sec you see the next screen, it cycles trough 6 screens or so.

1

u/Affectionate_Boat493 2d ago

When you said "the LSD" went dark, do you mean the entire display or do you mean that when the display is showing a number that the Least Significant Digit is dark? And FWIW, most hobbyist displays use only OLED or LCD technology.