Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to extend solar and battery power in a weather station

By Ayush Jain August 11, 2022

Experiment 2

Aim
To run an MCU on low power mode, read the temperature, pressure, and humidity readings using AHT10 and BMP280 Sensors, and send the readings over wifi.

Requirements

  1. MCU: ESP32-WROOM-32D (Generic Wi-Fi + Bluetooth + Bluetooth LE MCU module)
  2. Temperature/Humidity Sensor: AHT10 (Temperature and humidity sensor)
  3. Pressure and Altitude Sensor: BMP280(Absolute Barometric Pressure Sensor)
  4. Battery: KP 903048 (3.7V, 1000mAh)

Theory
In this experiment, we are using MCU ESP32-WROOM-32D. The ESP32 will remain in active mode for 6 seconds, take the temperature and humidity reading and send it over wifi. It will stay in deepsleep() mode for 5 minutes. After that time, the ESP32 will be back in deep sleep mode.

Schematic

Fig: 1 Schematic of Weather Station

Experiment Setup
Below showing the image is the Setup of the Experiment:

Fig: 2 Experiment Setup

 Code 


Observation
Below is the image showing the results of the sleep and the active mode of the MCU. So, we can see that the sleep time is 5 minutes, and the active mode remains for ~6 seconds. In six seconds, the whole device takes a current of about 120mA.

Fig: 3 Active v/s sleep mode of MCU

 In sleep mode, the device takes 10-150 uA of current.

Below are the images showing the device’s current consumption from sleep mode to active mode. It reaches ~122mA of current in active mode.

Fig: 4, 5 Current Consumption in sleep mode

 

 

 

 

Fig: 6, 7 Current Consumption in active mode

 

 

 

 

 

Now battery capacity is 1000mAh. Solar will charge the battery whenever the battery goes low, and this device will run for a long time.

Current consumption when the solar charges the battery is shown below.

Fig: 9 Current Consumption in while solar charging battery

The current consumption while charging the battery is about 47mA.

Battery life: If we don’t use solar to charge the battery, the battery life will be about 16 days.

Results

Below are the results of the data which the device sent to the ThinkSpeak platform

  1. When the device is away from the sun, it means there is no charging by solar.

Fig: 10 Readings of pressure from BMP280 sensor

Fig: 11 Readings of Temperature from AHT10 sensor

  1. The temperature remained below 31 degrees celsius as the device was placed inside the building.

Fig: 12 Readings of Humidity from AHT10 sensor

Fig: 13 Readings of Current from INA219 sensor

  1. Battery power consumption is shown, which is between 450-500 mW.

Fig: 14 Readings of Current from INA219 sensor

  1. Solar power is zero as the device was inside the building, and no charging is done.

When solar charges the battery:

Fig: 15 Readings of pressure from BMP280 sensor

Fig: 16 Readings of Temperature from AHT10 sensor

  1. The temperature rose above 50 degrees celsius as the device was placed outside the building.

Fig: 17 Readings of Humidity from AHT10 sensor

Fig: 18 Readings of Current from INA219 sensor

Fig: 19 Readings of Current from INA219 sensor

  1. When aolar charges the battery, the power consumption is shown in the above analysis.

So, This was the experiment in which the MCU’s deep sleep mode was performed. The data and the results show that deep sleep mode helps reduce power consumption.

You may also like:


  • How to use MicroPython’s watchdog timer in ESP8266 and ESP32

  • MicroPython: How to program a real-time clock (RTC) in ESP8266…

  • How to achieve longer MCU battery life with low power…

  • Getting started with MicroPython on ESP8266

  • How to use ESP8266’s sleep modes in MicroPython

  • MicroPython – Digital input/output in ESP8266 and ESP32

Filed Under: Tech Articles
Tagged With: batteries, battery power, ESP32, low power, solar power
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Voltage mode pushpull is a nonsense SMPS?
  • Input impedance matching network
  • High Side current sensing
  • The comparison of different Tcl script checkers
  • Reducing "shoot-through" in offline Full Bridge SMPS?

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe