Skip to content

Instantly share code, notes, and snippets.

@ati
ati / electric_imp_co2_k30
Last active December 10, 2015 01:38
Electric imp code for K30 CO2 sensor communication using RS-232 protocol
//K30 CO2 sensor interface
// using RS-232 communication
/*
250 - 350 ppm – background (normal) outdoor air level
350- 1,000 ppm - typical level found in occupied spaces with good air exchange.
1,000 – 2,000 ppm - level associated with complaints of drowsiness and poor air.
2,000 – 5,000 ppm – level associated with headaches, sleepiness, and stagnant, stale, stuffy air.
Poor concentration, loss of attention, increased heart rate
and slight nausea may also be present.
>5,000 ppm – this indicates unusual air conditions where high levels of other gases could also be present.
@ati
ati / gist:3638457
Created September 5, 2012 15:29
мобильная версия vozduh.msk.ru
Пишу по поводу мобильной версии vozduh.msk.ru
Моё лучшее представление о мобильной версии такое: программа состоит из нескольких экранов. Их число равно количеству датчиков + 1.
Последний экран -- текст о проекте, с описанием железки, методологии, с благодарностями и пр.
Остальные экраны -- информация с датчиков. Выглядят они примерно так: http://i.imgur.com/uZi2G.jpg. Последовательно сверху вниз, слева направо:
1. название датчика, ссылка на "последнюю" страничку
2. точечки, соответствующие активной странице
3. "сейчас": время, кнопка refresh
4. текущее значение, большими буквами, с единицами измерения.