Giter VIP home page Giter VIP logo

co2_sensor_kit's Introduction

Self-made CO2 sensor kit

  • A CO2 sensor is embedded in the base of artificial plants.

Architecture

Parts

Parts Price(JPY) Link
Raspberry Pi 3B+ 5,775 https://www.switch-science.com/catalog/3850/
M5 ATOM Lite 1,287 https://www.switch-science.com/catalog/6262/
TVOC/eCO2 sensor unit 1,562 https://www.switch-science.com/catalog/6619/

Codes

SQL table setting

created_at(ISO8601) id(string) type(string) value(float)
2014-10-10T13:50:40 living_room CO2 400.5
2014-10-10T13:50:50 dining TEMP 20.0
...
  • IDは設置位置を表すものとした.
  • 1エッジが複数センサを持つ場合もある想定.
  • 投入側は created_at 不要とし,自動採番とした.
# SQLite table create
>> create table sensors_value(created_at TIMESTAMP DEFAULT (DATETIME('now', 'localtime')), id text, type text, value float);

Node-RED flow

./node-red_flow.json

M5 Lite code

./m5_flow.png


MISC

Comments

時系列データであることを考えれば,InfluxDB + Grafana という構成のがよかったかもしれません.

Embedded CO2 sensor

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.