Upgrade to Pro — share decks privately, control downloads, hide ads and more …

tokaido lug 2019-03-09

ahiru
March 09, 2019

tokaido lug 2019-03-09

tokaido lug 2019-03-09

ahiru

March 09, 2019
Tweet

More Decks by ahiru

Other Decks in Technology

Transcript

  1. RASPI CO2

    20193
    IN

    View full-size slide



  2. • EJUG, mikutter, Tokaido LUG

    View full-size slide





  3. )'!*%(3&$…
    .3*%+2&
    #,3&-1…
    /0

    " …
    2…

    View full-size slide


  4. • RasPi 3B(+)
    • MH-Z19
    • Winsen
    • CO2


    • 0 ~ 2,000 ppm, 0 ~ 5,000 ppm
    • (50ppm + 3% reading value)
    • PWM, UART
    • https://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf

    View full-size slide



  5. • 400 ppm
    • https://ds.data.jma.go.jp/ghg/kanshi/ghgp/co2_trend.html
    • ppm
    • Parts Per Million

    • 1ppm = 0.0001%
    • 400 ppm = 400 x 0.0001 % = 0.04%

    View full-size slide



  6. • 1,000 ppm (0.1%)
    • https://www.mhlw.go.jp/bunya/kenkou/seikatsu-eisei10/
    • !" 1,000 ppm
    $ %"
    #

    View full-size slide

  7. MY NEW GEAR…

    View full-size slide


  8. • 5V, GND, Tx, Rx

    View full-size slide



  9. • Python
    • https://github.com/UedaTakeyuki/mh-z19
    • null

    • Pre-Heat 3min

    View full-size slide



  10. • 400 ppm

    !"
    • 20 $ 400ppm
    #

    View full-size slide


  11. • : 740
    • : 580

    View full-size slide


  12. • *+ &'
    • &'2: 398 ~ 500, 972: 650 ~ 1450
    • -,)
    • &'2: 550 ~ 600, 972: 700 ~ 900
    • !# 1534.(56
    • .8$
    • 0"/%
    8$

    View full-size slide

  13. GOLANG
    • Python &!%/- Golang .29
    • Serial 7;*5
    # #$1F
    https://github.com/tarm/serial
    • Serial A3"&:,)46 API endpoint @

    • &>A3'+E29
    • API endpoint Golang + PostgreSQL + gorm + docker
    • POST B0(=8C? DB D<

    View full-size slide



  14. • Web UI

    • ' "#!
    • Slack
    • CO2

    %
    • TVOC &$

    View full-size slide