<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pongsuke</author_name>
  <author_url>https://blog.hatena.ne.jp/pongsuke/</author_url>
  <blog_title>Raspberry Pi 備忘録 / Mbedもあるよ！</blog_title>
  <blog_url>https://pongsuke.hatenablog.com/</blog_url>
  <categories>
    <anon>ステッピングモーター</anon>
  </categories>
  <description>２つL6470で、２つのモーターを制御します。 まず、Raspbery Pi 2,3 には、SPI_CE0 と SPI_CE1 があり、２つのSPIデバイスを制御できます。 配線の仕方 上記のように、 SCLK, MISO, MOSI は、共有します。 CE0, CE1 で、どちらか片方を HIGH に、片方を LOW にすることで、制御するデバイスを指定するようです。 BUSY_PIN ですが、独立して数値を読み取る必要がある（はずな）ので、２本用意し、GPIO２箇所に刺しました。 wiringpiでの実装 import wiringpi as wp wp.wiringPiSPISetup …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpongsuke.hatenablog.com%2Fentry%2F2016%2F09%2F26%2F144638&quot; title=&quot;ステッピングモーターその３　２つのモーターを制御する - Raspberry Pi 備忘録 / Mbedもあるよ！&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/p/pongsuke/20160926/20160926144844.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-26 14:46:38</published>
  <title>ステッピングモーターその３　２つのモーターを制御する</title>
  <type>rich</type>
  <url>https://pongsuke.hatenablog.com/entry/2016/09/26/144638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
