Skip to content

Latest commit

 

History

History
119 lines (86 loc) · 3.56 KB

README.md

File metadata and controls

119 lines (86 loc) · 3.56 KB

EcoStation

ESP32 based station for urban ecology.

PRE-REQUISITES (WIP)

BUILD INSTRUCTIONS

  • Arduino IDE ( add the lines in bold to ~/.arduino15/packages/espxxxx/hardware/espxxxx/{version}/platform.local.txt )

    • A sequential build number is embedded in the code every time a build is made (whether it is successful or not)

    recipe.hooks.prebuild.0.pattern={build.source.path}/../build_seq.sh {build.source.path}

    For the hook to work, you will also need to create a link (or copy the file) to the file "build.sh" from sketch directory to the path of the sketch book. Sorry for the mess ... if you have a better solution, you are most welcome!

STATUS & DEVELOPMENT

This is version 1.0 of the project. It is still work in progress.

The things that might be improved in v1.1 are:

  • Software
    • TBD
  • Hardware
    • TBD

FEATURES

  • Weather parameters:

    • Temperature
    • Pressure
    • Relative humidity
    • Cloud coverage
    • Solar irradiance
    • Sky Quality Meter for light pollution
  • Alarms for:

    • Sensor unavailability
    • Low battery
  • Operations:

    • External reboot button
    • Debug button (to be pushed when rebooting to activate debug mode)
    • External micro USB socket for debugging (serial console) and firmware updates
    • Configuration mode and runtime configuration updates activable via button

SPECIFICATIONS

This section is being reworked as there are different hardware setups.

  • Power consumption:
    • Solar panel version:
      • 12mA in sleep mode
      • ~40mA while active (for ~30s)
  • Autonomy: N/A (collecting data)
  • Measures (from sensor specs)
    • Illuminance range: 0-88k Lux ( up to ~730 W/m² )
    • Temperature range: -40°C to +85°C
    • Pressure: 300 to 1100 hPa

Runtime configuration interface

Alarms format

The station sends alarm to an HTTPS endpoint as a JSON string:

{ "subject": "reason for the alarm", "message": "what happened" }

Data format

The station sends the data to a web server as a JSON string:

{ "battery_level":92, "timestamp":1675767261, "temp":16.84000015, "pres":941.1413574, "rh":27.296875, "lux":68181, "ambient":21.42998695, "sky":-3.19000864, "sensors":63 }

Where

  • battery_level: in % of 4.2V
  • timestamp: Unix epoch time
  • temp: in °C
  • pres: in hPa (QFE)
  • rh: relative humidity in %
  • lux: solar illuminance
  • ambient: IR sensor ambient temperature
  • sky: IR sensor sky temperature (substract ambient to get sky temperature, if below -20° --> sky is clear)
  • sensors: available sensors (see source code)

REFERENCES

I found inspiration in the following pages / posts: