Giter VIP home page Giter VIP logo

gaerbox's Introduction

Building a temperature control for sour dough (Gärbox)

Componentns

  • SHT31
  • Wio Link from seed with ESP8266 (any ESP8266 board will do)
  • relay that can be controlled through GPIO
  • heating mat, e.g. for cats or for reptiles or ... Mine was with 12V power supply, so the controller had to switch 1A 12V power to the heating

Setup/configuration

  • create wifisecrets.h file and define WIFI_SSID and WIFI_PASSWORD (look at main.cpp)
  • default temperature is 26, if you set it via the webserver route, it will be stored in EEPROM of the ESP8266

WebServer Routes

  • /temperature: retrieve json with temperature, humidity, heating status and target temperature, if you pass in ?target_temperature=xx as parameter, the target temperature will be set

Test methods

  • /relay/on: will switch on the relay (until temperature management switches it off again)
  • /relay/off: will switch off the relay (until temperature management switches it on again)

Implementation notes

  • webserver is running async
  • did produce crashes when reading sensor data in async handlers
  • all sensor reads, pin writes are now triggered through the loop()
  • only changes relay every x clock ticks through temperature mesaurements, to avoid flapping of relay
  • last target temperature is stored in EEPROM

SHT31

  • Grove connector for I2C:
    • pin 1 - Yellow (for example, SCL on I2C Grove Connectors)
    • pin 2 - White (for example, SDA on I2C Grove Connectors)
    • pin 3 - Red - VCC on all Grove Connectors
    • pin 4 - Black - GND on all Grove Connectors

Relays on GPIO 14

  • 1 is on
  • 0 is off

gaerbox's People

Contributors

mccare 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.