Adding an accelerometer to SmartQ V7

Oct 12, 2010   #accelerometer  #kxps5  #mod  #smartq  #v7 

* Originally written as a guide at SmartQ MID Unofficial Wiki, hence the DIY-type text. *

One of the features the SmartQ Q/V series lack is an accelerometer. This project will be about adding one to the SmartQ V7. I’m sure this mod can be adapted to the others models/series as well, but unfortunately, I own just the V7.

  <dd class='wp-caption-text gallery-caption' id='gallery-1-89'>
    KXPS5 Board populated.
  </dd>
</dl>

<dl class='gallery-item'>
  <dt class='gallery-icon landscape'>
    <a href="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/i2c_bus.jpg" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/i2c_bus.jpg', '']);" ><img width="150" height="150" src="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/i2c_bus-150x150.jpg" class="attachment-thumbnail" alt="I²C Bus" aria-describedby="gallery-1-95" /></a>
  </dt>
  
  <dd class='wp-caption-text gallery-caption' id='gallery-1-95'>
    I²C Bus
  </dd>
</dl>

<dl class='gallery-item'>
  <dt class='gallery-icon landscape'>
    <a href="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power.jpg" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power.jpg', '']);" ><img width="150" height="150" src="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power-150x150.jpg" class="attachment-thumbnail" alt="Power supply points." aria-describedby="gallery-1-101" /></a>
  </dt>
  
  <dd class='wp-caption-text gallery-caption' id='gallery-1-101'>
    Power supply points.
  </dd>
</dl>

<br style="clear: both" />

<dl class='gallery-item'>
  <dt class='gallery-icon landscape'>
    <a href="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power_3.3.jpg" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power_3.3.jpg', '']);" ><img width="150" height="150" src="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/power_3.3-150x150.jpg" class="attachment-thumbnail" alt="Alternative 3.3V point." aria-describedby="gallery-1-102" /></a>
  </dt>
  
  <dd class='wp-caption-text gallery-caption' id='gallery-1-102'>
    Alternative 3.3V point.
  </dd>
</dl>

<dl class='gallery-item'>
  <dt class='gallery-icon landscape'>
    <a href="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/kxps5_testing.jpg" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/kxps5_testing.jpg', '']);" ><img width="150" height="150" src="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/kxps5_testing-150x150.jpg" class="attachment-thumbnail" alt="Testing the board before final positioning." aria-describedby="gallery-1-100" /></a>
  </dt>
  
  <dd class='wp-caption-text gallery-caption' id='gallery-1-100'>
    Testing the board before final positioning.
  </dd>
</dl>

<dl class='gallery-item'>
  <dt class='gallery-icon landscape'>
    <a href="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/smartqv7_accel.jpg" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/smartqv7_accel.jpg', '']);" ><img width="150" height="150" src="http://www.tripleoxygen.net/wp/wp-content/uploads/2010/10/smartqv7_accel-150x150.jpg" class="attachment-thumbnail" alt="Board installed inside SmartQ V7&#039;s case. Final version." aria-describedby="gallery-1-103" /></a>
  </dt>
  
  <dd class='wp-caption-text gallery-caption' id='gallery-1-103'>
    Board installed inside SmartQ V7&#8217;s case. Final version.
  </dd>
</dl>

<br style="clear: both" />
    <td>
      <div class="bash codecolorer">
        <span class="kw2">sudo</span> <span class="kw2">apt-get install</span> i2c-tools
      </div>
    </td>
  </tr>
</table>
    <td>
      <div class="bash codecolorer">
        <span class="kw2">sudo</span> i2cdetect <span class="re5">-y</span> i2c-gpio4
      </div>
    </td>
  </tr>
</table>
    <td>
      <div class="bash codecolorer">
        <span class="kw2">sudo</span> i2cget <span class="re5">-y</span> i2c-gpio4 0x18 0x00 <span class="kw2">w</span>
      </div>
    </td>
  </tr>
</table>
    <td>
      <div class="bash codecolorer">
        <span class="kw2">sudo</span> <span class="kw2">watch</span> <span class="re5">-n1</span> <span class="st0">"i2cget -y i2c-gpio4 0x18 0x00 w"</span>
      </div>
    </td>
  </tr>
</table>