Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SensorNodeESP

Data from sensor (PIR, CO2, smoke/water detectors...) is logged and sometimes sent to user (WhatsApp message, E-mail).

Server (Hub): ESP32 w/ buzzer

Server: ESP32 (SRX882, buzzer)

Web app - interface

Web app - interface

Windows desktop app: backup logs (data from sensors)

Windows desktop app

Air Quality Data

ESP wakes up every 10 minutes and sends data from sensors to the hub (server) via ESP-NOW.

SCD30 - CO2

Client: SCD30 & CO2

ENS160, DHT22 - air quality data (temp, hum, TVOC)

Client: ESP8266 & ENS160+AHT21

Client: ESP32, Li-Ion 18650 battery, ESP-NOW

ESP32 device wakes on a pin event (e.g. wires are submerged, PIR signals HIGH...), sends an ESP-NOW message to a predefined MAC address (hub) and then goes back to deep sleep.

Water detection

ESP32, Li-Ion 18650 battery, water detection wires

TODO

  • Adjust WinBackupApp so it can run @Vranic
  • Pay subscription to the CallMeBot: https://www.callmebot.com/support_callmebot/?phone=351919370635
  • Hub:
    • Make 2nd version of Hub project - Hub /wo internet for places without internet access or with unknown net credentials. Communication with clients is done via ESP-NOW or radio (HC-12, LoRa, http...). Maybe it could have its own wireless network for web app access?
    • Web App:
      • Improve interface (chart.js disappears, shrinks)
    • Messages to the hub: ESP32CAM - take a picture, indoor vehicle - start, move...
      • Send message from Azure to the hub
      • Send message from web app or ESP device to the hub
      • (WIP) Make ESP32-C3 client that sleeps and gets a message from the hub
      • Why doesn't ESP32-C3 XIAO work with PIR sensor
      • Test current hub code @BanovoBrdo
      • Put Azure code in a class (e.g. AzureMessages)
      • ESP32-C3 turn up ESP32CAM and forward message from the hub
  • Clients:
    • ClientLogger
      • Use it in SCD30 and ENS&DHT projects
    • (WIP) Put retrying logic in a class: Retryer
    • TimeSlotSend
      • Change getDeepSleepTime() so that it takes into account wake time and time spent in sending data
    • (OPT) Put TSS, LoggerMin and retrying logic in a class that will be used by most clients that report data regularly to the hub
    • (WIP) SCD30:
      • Button click: print log on Serial and send data (prev data or wait for new?) to the hub
    • esp32-wake-on-pin
    • Add more sensor nodes
      • Microphone (noise levels)

Add new client routine

  • my_esp_now.h:
    • setPeers(): add new setPeer() call
      • setPeer(): set parameters: mac address, sensor type, device
    • Increase length of peers array: peer_info peers[]
    • OnDataRecv(): if (p->type == SensorType::...)
  • lib/Common/src/ToString.cpp:
    • Add new members to arrays: StrSensorTypes[], SensorTypesComment[]
  • Enums.h: Add new members to SensorType, Device
  • index.html:
    • CmbChartParamsChange(): adjusting chart for sensors with temp and hum
    • lastChartParam: add default property for new sensor

Links

About

Data from sensor (PIR, CO2, smoke/water detectors...) is displayed (text and chart), logged and sometimes sent to user (WhatsApp message, E-mail).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages