Battery and ESPEasy powered air monitor

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 997
Joined: 10 Sep 2020, 16:02
Location: germany

Battery and ESPEasy powered air monitor

#1 Post by chromo23 » 03 Mar 2025, 18:42

I wanted to introduce my most recent ESPEasy project.
Unfortunately my body doesn't like sitting in front of the computer at all lately, so i'll keep it short:

I really like my old CO2 monitor as it is very simple and easy to use, but it uses an MZH19 and is therefore not suitable for a battery powered project.
This is where the Scd41 sensor shines, with the added benefit of a temperature and humidity sensor. And as I had an Ens160 lying around, I made good use of it.

Features:
- ESP32S23 supermini with an integrated charge controller
- Scd41 CO2 sensor
- Ens160 VOC sensor
- 2 neopixels representing the air quality of each sensor
- 1 OLED display
- LDR to adjust the brightness of the neopixels
- A buzzer to provide audible feedback for the touch button and alarm
- A touch button on the top for waking up, scrolling through data on the OLED and starting an access point.

Pictures:

Old sensor:
oa.jpg
oa.jpg (207.55 KiB) Viewed 1781 times
New sensor:
a1.jpg
a1.jpg (49.06 KiB) Viewed 1781 times
a2.jpg
a2.jpg (116.5 KiB) Viewed 1781 times
a3.jpg
a3.jpg (84.13 KiB) Viewed 1781 times
a4.jpg
a4.jpg (180.9 KiB) Viewed 1781 times
a5.jpg
a5.jpg (51.75 KiB) Viewed 1781 times
a6.jpg
a6.jpg (48.06 KiB) Viewed 1781 times

TD-er
Core team member
Posts: 9861
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Battery and ESPEasy powered air monitor

#2 Post by TD-er » 03 Mar 2025, 22:12

Looks really good!

Rob73
Normal user
Posts: 79
Joined: 25 May 2022, 15:05

Re: Battery and ESPEasy powered air monitor

#3 Post by Rob73 » 18 Mar 2025, 12:10

How are you managing the module to run on batteries? Do you keep it awake the whole time or are you putting it to sleep and wake it up in intervals?

I am wanting to run a small module on batteries and charge with solar. I am wanting to keep the esp module alive somewhat to catch switch/button inputs. Is there a way to just shut down the whole wifi radio and just keep the esp module alive and awake? Then wake up, say every hour or whenever and send the time of the last switch/button press? This is a new area I am tiptoeing into and I dont really have any experience with putting them to sleep and the whole battery thing. If the esp can stay alive & shut down the radio, that would work good for my weather station, catching pulses from the anemometer, then just reporting every so often what the readings are.

It looks super confusing because of the assortment of batteries, holders, charging circuits, solar panel options.

Rob

chemmex
Normal user
Posts: 107
Joined: 15 Feb 2019, 16:18

Re: Battery and ESPEasy powered air monitor

#4 Post by chemmex » 20 Mar 2025, 22:42

chromo23 wrote: I wanted to introduce my most recent ESPEasy project.
Really a nice looking stuff!

chemmex
Normal user
Posts: 107
Joined: 15 Feb 2019, 16:18

Re: Battery and ESPEasy powered air monitor

#5 Post by chemmex » 20 Mar 2025, 23:15

Rob73 wrote: How are you managing the module to run on batteries?
The general strategy is to put the ESP asleep and wake up either by timer or by hardware interrupt, i e a button switch connected to the gpio pin. In deep sleep the mcu disables the radio and may consume just several microamps, so If the board is designed properly, you can concentrate on optimizing the active time consumption.
I am not particularly sure if the ESPEasy supports waking up by hardware interrupts as I mainly use the timer mode. However, it is absolutely supported in Arduino and ESP-IDF.
It looks super confusing because of the assortment of batteries, holders, charging circuits, solar panel options
That's correct, basically, the panel should fit the charger while the battery capacity must be sufficient to sustain the weather changes, so there's quite a number of variables to consider. If you are designing a solar powered device or choosing the components to build it, you should start from calculating the power consumption of all components, and then choose the battery, charger, and panel.
In fact, there are not so many to choose from on the market, and hopefully there is a board with everything integrated, so you only need to buy compatible panel and battery. I was positively surprised by Waveshare's ESP32-S3 LTE board which completely fit my expectations and worked with my panel out of the box

User avatar
chromo23
Normal user
Posts: 997
Joined: 10 Sep 2020, 16:02
Location: germany

Re: Battery and ESPEasy powered air monitor

#6 Post by chromo23 » 28 Mar 2025, 22:31

Rob73 wrote: 18 Mar 2025, 12:10 How are you managing the module to run on batteries? Do you keep it awake the whole time or are you putting it to sleep and wake it up in intervals?
Correct. When I unplug the power cable the air monitor automatically detects this and switches to low power mode. This means sensor readings for 3 minutes to stabilize the VOC readings and then it powers down for 10 minutes (all done with rules).
It is still possible to wake the device with the touch sensor in between. For now this is the only way to wake up an ESPEasy device with a GPIO.
Rob73 wrote: 18 Mar 2025, 12:10 Is there a way to just shut down the whole wifi radio and just keep the esp module alive and awake?
I don't think there is a way to turn only WiFi off but if I remember correctly it is on TD-er's todo list. (Which would be a really cool addition)
Rob73 wrote: 18 Mar 2025, 12:10 If the esp can stay alive & shut down the radio, that would work good for my weather station, catching pulses from the anemometer, then just reporting every so often what the readings are.
That would definitely work then. I was surprised how well a cheap charging module connected to a solar cell worked for my LoRa beehive scale and LoRa weather station.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest