RaspberryPi3 + RCWL-0516で取得した情報をAmbientにアップロード

RaspberryPi3 + RCWL-0516の情報収集がうまく動作しているみたいなのね。
そんでもって、Ambientに情報をアップロードすると、センサの検出範囲内に誰か来たらAmbient上にログが残るようになるわけだ。
実際のコードは以下の通り。

DigitalInputDeviceを読み込んで、センサが人間の接近を検出すると、Ambientに”1”の値を送信するようにしている。
Ambient上で、受信した値から棒グラフを描画することで誰か来たなってのがひと目で分かるからくりになってる。
散りあえず、家のサーバ室と寝床に仕組んだw。
以上

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny