Giter Club home page Giter Club logo

airquality's Introduction

AirQuality

air quality checker arduino

CO2 250-350ppm Normal background concentration in outdoor ambient air

350-1,000ppm Concentrations typical of occupied indoor spaces with good air exchange

1,000-2,000ppm Complaints of drowsiness and poor air.

2,000-5,000 ppm Headaches, sleepiness and stagnant, stale, stuffy air. Poor concentration, loss of attention, increased heart rate and slight nausea may also be present.

5,000 Workplace exposure limit (as 8-hour TWA) in most jurisdictions.

over 40,000 ppm Exposure may lead to serious oxygen deprivation resulting in permanent brain damage, coma, even death.

255 0 0 248 7 0 241 14 0 234 21 0

each step red -7, green +7, blue is not needed

0 255 0

при этом 400 ppm (минимум датчика) считать за 255 зелёный и 0 красный, а 5000 ppm - максимум по санитарным нормам, считать за 0 зелёный, 255 красный. между ними 254 смешанных цвета (+1 к одному и -1 к другому каждый шаг) т.е. каждые 18 ppm это изменение состояния цвета на 1 шаг

if (Nppm <400) { Nppm = 400; }

if (Nppm > 4990) { Nppm = 4990; }

K = (Nppm - 400) / 18

Red = K

Green = 255 - K

// жёлтый самый яркий на среднем значении N, и угасает к крайним в обе стороны if (N > 2300) // половина

{ Yellow = K*2; } else

{ Yellow = 255 - K*2; }

airquality's People

Contributors

whelpy avatar

Stargazers

dushyant basson avatar

Watchers

 avatar

Forkers

lilliputten

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.