<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>engetu21</author_name>
  <author_url>https://blog.hatena.ne.jp/engetu21/</author_url>
  <blog_title>技術メモ</blog_title>
  <blog_url>https://engetu21.hatenablog.com/</blog_url>
  <categories>
    <anon>Raspberry Pi</anon>
    <anon>プログラム</anon>
    <anon>Linux設定</anon>
    <anon>電子工作</anon>
  </categories>
  <description>ラズパイとPIRモーションセンサを使って、照明の点灯/消灯を制御します。 概要図は以下の様な感じ。 サーボモータによる角度変更については、以下にまとめました。 engetu21.hatenablog.com １．必要なもの 人感センサに関しては、こちらを参照。 また、赤外線モジュールは以下の記事で取り上げたirMagicianを使います。 ２．ラズパイで動かす人感センサとHTTP送信を組み合わせたソース 人感センサでの検知をトリガにしてHTTPを実現するためには、以下の様な形でのソースコードにしました。 基本的には30秒間誰もいなければ消灯、５秒間のうち誰か居れば点灯をします。 PIR_mot…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fengetu21.hatenablog.com%2Fentry%2F2015%2F11%2F22%2F191203&quot; title=&quot;【Raspberry Pi】【電子工作】PIRモーションセンサで照明の点灯/消灯を制御 - 技術メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/e/engetu21/20151122/20151122184514.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-22 19:12:03</published>
  <title>【Raspberry Pi】【電子工作】PIRモーションセンサで照明の点灯/消灯を制御</title>
  <type>rich</type>
  <url>https://engetu21.hatenablog.com/entry/2015/11/22/191203</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
