Giter VIP home page Giter VIP logo

seeohtwo's Introduction

SeeOhTwo

A datalogger intended for measuring equivalent CO2 to compare "air freshness" in different spaces.

For more information about this project, see https://articles.hotelexistence.ca/posts/inexpensivesensorsproxycovidrisk/.

The data logger is implemented in NodeJS and I'm using the Adafruit SHTC3 Humidity & Temperature breakout board and the Adafruit SGP30 gas sensor breakout board on the Arduino platform.

Arduino Source

The Arduino source is in SeeOhTwo/arduino-seeohtwo/arduino-seeohtwo.ino . The board can be used without the data logger / Node server, and provides some guidance with each indicator LED.

Arduino GPIO Output Pin CO2eq range
5 400
0 401-599
4 600-799
13 800-999
16 1000-1199
15 1200+

The sensor takes a reading every 5 seconds, and sends a JSON payload with the following format over USB.
{ "co2":400, "voc":0, "abshumidity":3.04, "relhumidity":16.09, "temperature":21.56}

With the ESP8266, it would be quite easy to send this to a web service hosted on the cloud, however, I chose local logging, as I wanted to capture readings in places without internet connectivity, like elevators and parking garages.

Data Logger

I'm using a Raspberry Pi as my data logger, but anything that runs Node will do. Download the code and run ‘npm install’ to install the dependencies and launch the server application as follows:

node SeeOhTwo.js

The code looks for a USB connected device based on the manufacturer's string defined in seeohtwoconfig.json - for the SparkFun board I'm using, this is "FTDI" - you may have to update this setting for your board. The logger allows you to start/stop logging, associate a location with the data being logged, and to download a CSV file with the collected data.

seeohtwo's People

Contributors

raudette avatar

Watchers

 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.