Git Product home page Git Product logo

solar-logger's Introduction

Solar-logger

WiFi-based data logger for solar thermal collectors, developed on an ESP32 board.

Sensors

Physical quantity Sensor Interface Board
Temperature PT100/PT1000 SPI MAX31865
Irradiance Pyranometer I2C ADS1115
RH SHT20 I2C -
Flow Pulse flowmeter - -
Wind speed Pulse anemometer - -

Workflow

On each iteration of the main loop(), the ESP32 checks for connection status.

When the specified sampling interval has passed, all sensors are read and the measurement stats min, max, mean, stdev are calculated and stored in the Measurement object.

When the upload interval has passed, the JSON payload is updated with mean and stdev values.

The Measurenent stats are reset and the payload is published to the MQTT broker.

flowchart

Configuration

Set the WiFi network and MQTT broker credentials in src/credentials.h.

Configure the sampling and upload intervals as well as the sensors parameters (pins, labels etc) in the src/main.cpp.

Thats all!

Structure

To simplify the configuration process and avoid duplicate code, the project has been structured like this:

class_diagram

Requirements

An MQTT broker is necessary to receive the payload and a really simple back end to insert the measurements to a database.

This project uses the Logger-stack, a dockerized Mosquitto+NodeRed+MySQL+Grafana server stack to receive, store and visualize measurements.

solar-logger's People

Contributors

orestispanago avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.