• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 1
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 2
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 3
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 4
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 5
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Image 6
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 1
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 2
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 3
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 4
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 5
ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code 3D Printer File Thumbnail 6

ESP8266 Multi Sensor BME280 (battery powerd) - T, Humidity and hPa, incl. Code

pansono avatarpansono

February 19, 2022

printables-icon
DescriptionCommentsTags

Description

I started my Home Assistant instalation a few day ago and now added these sensors to it (will make a window reed contact next on the same base).

The ESP ist running on the ESPhome software (you can find a good guide in how to wire up the esp12 here - http://domoticx.com/esp8266-wifi-esp-12-module-aansluiten/). For the deep sleep mode you need to connect the GPIO16 pin to reset. Otherwise the ESP will not wake up.

I'm using the following code in ESPhome - for the first test you can delete the deep sleep lines at the end.

With one meassurement every 10min. it should run for at least 6 month on two AA Eneloops. The ESP cunsumes ~70mA when active and 0,017mA when in deep sleep.

Right now I'm waiting for the 5mm nickel stripes for proper battery contacts.

esphomeyaml:

name: bme280

platform: ESP8266

board: esp12e

wifi:

ssid: 'XXXXXXXXXXXXXXX'

password: 'XXXXXXXXXXXXXXX'

manual_ip:

static_ip: 192.168.0.23

gateway: 192.168.0.1

subnet: 255.255.255.0 logger:

api:

ota:

i2c:

sda: 4

scl: 5

scan: False

sensor:

  • platform: bme280

temperature:

name: "BME280 Temperature"

id: bme280_temperature

pressure:

name: "BME280 Pressure"

id: bme280_pressure

humidity:

name: "BME280 Realtive Humidity"

id: bme280_humidity

address: 0x76

iir_filter: 16x

update_interval: 1s

  • platform: template

name: "Altitude"

lambda: |-

const float STANDARD_SEA_LEVEL_PRESSURE = 1013.25; //in hPa, see note

return ((id(bme280_temperature).state + 273.15) / 0.0065)* (powf((STANDARD_SEA_LEVEL_PRESSURE / id(bme280_pressure).state), 0.190234) - 1); // in meter

update_interval: 1s

  • platform: template

name: "Absolute Humidity"

lambda: |-

const float mw = 18.01534; // molar mass of water g/mol

const float r = 8.31447215; // Universal gas constant J/mol/K

return (6.112powf(2.718281828, (17.67 id(bme280_temperature).state) / (id(bme280_temperature).state + 243.5))id(bme280_humidity).state mw) / ((273.15 + id(bme280_temperature).state)* r); // in grams/m^3

update_interval: 1s

  • platform: adc

pin: VCC

name: "ESP voltage"

update_interval: 1s

deep_sleep:

run_duration: 3s

sleep_duration: 600s

Category: Household

License:

Creative Commons — Attribution

Related Models

Cable Corners... keep cables in corners! preview image

Cable Corners... keep cables in corners!

muzz64 profile image

muzz64

30,949

Headset Hanger 2.0 preview image

Headset Hanger 2.0

RMTB profile image

RMTB

16,677

PetsTags preview image

PetsTags

Dominik profile image

Dominik

1,116

Universal Filament Filter and Lubricator preview image

Universal Filament Filter and Lubricator

CreativeTools profile image

CreativeTools

26,087

3D4U by Miele Coffee Clip preview image

3D4U by Miele Coffee Clip

3D4U powered by Miele profile image

3D4U powered by Miele

8,592

AMS Decision coin, who will do the dishes? preview image

AMS Decision coin, who will do the dishes?

Blondied profile image

Blondied

10

SHARKZ... Fun Multipurpose Clips / Holders / Pegs with moving jaws that bite! preview image

SHARKZ... Fun Multipurpose Clips / Holders / Pegs with moving jaws that bite!

muzz64 profile image

muzz64

24,643

Mechanical wall clock preview image

Mechanical wall clock

Harald Andersson profile image

Harald Andersson

6,949