<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takashiski</author_name>
  <author_url>https://blog.hatena.ne.jp/takashiski/</author_url>
  <blog_title>takashiskiのブログ</blog_title>
  <blog_url>https://takashiski.hatenablog.com/</blog_url>
  <categories>
    <anon>Arduino</anon>
    <anon>電子工作</anon>
  </categories>
  <description>ロータリーエンコーダーを使うことになった。ライブラリを使うほどではないだろうということで自分で書いたけどなかなかめんどくさかった。 ロータリーエンコーダー くるくる回すとカチカチ言いながら無限に回るやつ。 www.marutsu.co.jp 接点が二つずれておいてあるらしい（AとB）。 ずれていることにより正転・逆転でハイローの立ち上がりタイミングがずれるので、それを監視して、正転もしくは逆転に1段階分動いたと判断する。 一段階回すと以下の図のように立ち上がるらしい。1がハイ、0がローとする。 考え方 AかBに変化が生じたときに、前の状態に対して今の状態がなんであるか、を読むことで状態が判断で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakashiski.hatenablog.com%2Fentry%2F2018%2F06%2F30%2F222355&quot; title=&quot;ロータリーエンコーダーを使う - takashiskiのブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takashiski/20180630/20180630212700.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-06-30 22:23:55</published>
  <title>ロータリーエンコーダーを使う</title>
  <type>rich</type>
  <url>https://takashiski.hatenablog.com/entry/2018/06/30/222355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
