Skip to content
Electronics manufacturer for IoT
  • Home
  • Shop
  • Posts
  • Contacts
  • English
    • Українська (Ukrainian)
  • 00грн.
00грн.
  • Home
  • Shop
  • Posts
  • Contacts
  • English
    • Українська (Ukrainian)
  • 00грн.

ESP8266 + door / window sensor (NodeMCU (LUA) – without Arduino)

  • Post published:17.10.2021
  • Post category:News / Tips

This guide shows you how to build a door / window sensor only with ESP8266 and NodeMCU (LUA) – without Arduino. The EasyIoT interface is used to display the status of doors / windows on your phone, tablet or desktop computer.

Read more

Tags: door-window, ESP8266, LUA, no-Arduino, NodeMCU, sensor

Read more articles

Next PostLua code example for GGreg20_V3 with NodeMCU firmware with ESP8266 / ESP32 controller

You Might Also Like

Learning on a smartphone. How technologies will change education in Ukraine

17.10.2021
Read more about the article New: I2CUI1 module – remote control panel and status display.

New: I2CUI1 module – remote control panel and status display.

17.10.2021
Read more about the article Are your devices spying on you?

Are your devices spying on you?

17.10.2021

Tags

Arduino Arduino UNO bus interface splitter DIY DIY (do it youself) door-window dosimeters driver DYI ESP32 ESP8266 ESP Home Geiger Geiger Geiger-Muller tube GGreg20_V3 GPIO high voltage generator Home Assistant I2C I2CHUB_V1 I2CUI4_V1 ionizing radiation Li-Ion 16340 lora LUA MCU no-Arduino NodeMCU PCA9538 sensor STM32 Tasmota tindie UART Розроблено і виготовлено в Україні дозиметр

Our contacts

  • Mobile+38 (098) 892-57-94Opens in your application
  • Mobile:+38 (063) 486-70-47Opens in your application

New publications

  • The GGreg20_V3 radioactive particle detector is installed in Dornstadt, Baden-Württemberg, Germany and connected to the radmon.org service.
    The GGreg20_V3 radioactive particle detector is installed in Dornstadt, Baden-Württemberg, Germany and connected to the radmon.org service.
    07.05.2022/
    0 Comments
  • The GGreg20_v3 dosimeter can now be ordered in 4 different configurations.
    The GGreg20_v3 dosimeter can now be ordered in 4 different configurations.
    02.05.2022/
    0 Comments
  • Resumed sales of modules on Tindie.
    Resumed sales of modules on Tindie.
    29.04.2022/
    0 Comments

We are in social networks

  • FACEBOOKOpens in a new tab
  • TWITTEROpens in a new tab
  • Cart
Copyright - IoT-devices.com.ua
Select your currency
UAH Ukrainian hryvnia
USD United States (US) dollar
×
×

Cart

Yaml

може сховати лістинг у акордеон?
####### ggreg20_esp8266_esphome.yaml #####
esphome:
  name: esphome_node1 # Controller Unique Name
  platform: ESP8266 # Platform type you have to select when creating new yaml-config in ESP Home
  board: nodemcuv2 # Controller type you have to select when creating new yaml-config in ESP Home

wifi:
  ssid: "YourWiFiSSID"
  password: "SSIDPassword"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome Node1 Fallback Hotspot"
    password: "Cpxg9hRIBU7M"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "APIpassword"

ota:
  password: "OTApassword"

# Just embedded test D3 (GPIO0) button on every ESP8266 Devboard
# You can press D3 button several times to simulate incoming GGreg pulses
binary_sensor:
  - platform: gpio
    name: "D3 Input Button"
    pin:
      number: 0
      inverted: True
      mode: INPUT_PULLUP

# Here we calc and include to the firmware a power and doze values of ionizing radiation as sensor outputs
sensor:
- platform: pulse_counter
  pin: D3
  unit_of_measurement: 'mkSv/Hour'
  name: 'Ionizing Radiation Power'
  count_mode: 
    rising_edge: DISABLE
    falling_edge: INCREMENT
  update_interval: 60s
  accuracy_decimals: 3
  id: my_doze_meter
  filters:
    - sliding_window_moving_average: # 5-minutes moving average (MA5) here
        window_size: 5
        send_every: 5      
    - multiply: 0.0054 # SBM20 tube conversion factor of pulses into mkSv/Hour 
- platform: integration
  name: "Total Ionizing Radiation Doze"
  unit_of_measurement: "mkSv"
  sensor: my_doze_meter # link entity id to the pulse_counter values above
  icon: "mdi:radioactive"
  accuracy_decimals: 5
  time_unit: min # integrate values every next minute
  filters:
    - multiply: 0.00009 # obtained doze (from mkSv/hour into mkSv/minute) conversion factor: 0.0054 / 60 minutes = 0.00009; so pulses * 0.00009 = doze every next minute, mkSv.
####### END of ggreg20_esp8266_esphome.yaml #####

 

[contact-form-7 id=”298″ title=”Contact form”]