Skip to content

An ESP8266 (Node MCU) -based open-source weather station.

License

Notifications You must be signed in to change notification settings

gitaroktato/espweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An ESP8266 -based Weather Station

Realtime Measurements

View it on ThikgSpeak

Schematic

EasyEDA schematics schematic

Fritzing diagram schematic

Look & Feel

Energy Consumption and Battery Life

Powered by a 18650 battery with the capacity of 3300mAh.

State Consumption Period
Wake - with onboard LEDs ON 100mA ~1s
Sleep - with onboard LEDs ON 30mA ~1s
Wake - with onboard LEDs OFF 80mA ~5s
Deep Sleep - with onboard LEDs OFF 2mA ~15 min

Battery life estimation

Over an hour period we expect to have 4 times 5s spent on reporting. During these intervals the energy consumption is 20mA. In the remaining time we expect to consume 2mA. This period lasts for 3600s - (4 * 5s)) = 3580s.

The total battery consumption over an hour is around 80mA * 5s * 4 for the reporting periods, and 2mA * (3600s - (4 * 5s)) for the deep sleep. Consumption over an hour is (1600mA + 7160mA) / 3600s ~= 2.44mA

On average expected reporting time should be 56 days (3300mAh / ~2.44mA / 24h)!

  • Current reporting time without deep sleep and both LEDs blinking ~22 hrs
  • Last reporting time with deep sleep ~3 days (on balcony, but suspecting continuous connection problems. See issue #12)

Hardware Modifications

Cutting of the onboard USB UART bridge

In order to reduce power consumption Node MCU requires hardware modifications. This is mainly due to the fact, that the CP2102 UART bridge is getting powered even if we use the 3V3 pin. The estimated power consumption is around ~15mA. This can be done with an exacto knife.

Programming and flashing firmware for the ESP8266 can be done with an FTDI chip (see Fritzing diagram)

First we scrape of the resin from the surface to reveal the ciruit.

Next we break the connection.

External SMA antenna

Another improvement we can do is to include an external antenna. You can solder it directly, or use an U.FL connector for nicer look & feel.

If you want to solder in an U.FL socket, you need to arrange it the following way. Start with cutting off the connection for the onbard antenna.

Arrange the U.FL socket the following way:

For the direct wire connection you can secure your work usgin hot glue. See the images below:

More about this topic is available on YouTube and on other sites, here and here.

Measurements

Measurements made using an oscilloscope through a shunt resistor of 1 Ohm. See the setup below:

Wake - with onboard LEDs ON shows 60mA usage on average.

Deep sleep with periodic wake times - shows 17mA usage on average with 80mA peak. See the table above with estimated battery life.

Deep sleep after hardware modifications - shows 2mA usage on average with 80mA peak. See the table above with estimated battery life.

References

3D Designs

Powering ESP8266

Power Consumption Comparison

Deep Sleep

Photocells

FTDI Upload

https://community.platformio.org/t/esp32-pio-unified-debugger/4541/19

About

An ESP8266 (Node MCU) -based open-source weather station.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages