artarch
Works Posts Make Category Tags About

Raspberry Piに挿せるモータードライバを試す

Published Dec 4, 2016 by Ato Araki in Make, やってみた at https://blog.artarch.net/notes/device/pololu_drv8835-motor-driver/

raspberry pi に直接挿せるデュアルモータードライバを試したのでメモ。

Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi

DRV8835 image: https://www.pololu.com/product/2753

ザクッと挿せてDCモータを2つ扱えるので楽です。

用意するもの

  • Raspberry Pi 2 or 3
  • Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi
    • わたしはここで買いました
  • 適当なDCモータ(動作確認用)

ドライバのセットアップ

https://github.com/pololu/drv8835-motor-driver-rpi を見ながら:

sudo apt-get update
sudo apt-get install -y python-dev python-pip
sudo pip install wiringpi
git clone https://github.com/pololu/drv8835-motor-driver-rpi.git --depth 1
pushd drv8835-motor-driver-rpi
sudo python setup.py install
popd

で完了。

動作確認

sudo python example.py

でモータの動作確認をしておきましょう。

See Also

  • DigisparkとLM61で温度を測る
  • Pomodoro Timer
  • Train Controller
  • ライトのちらつき(フリッカー)を調べてみる
  • MadgwickFilter + MPU9250 で遊ぶ
  • Home Rover Robot (micro:bit+robot)

LastModified: 2016-12-04T09:17:22Z

© 2023 Ato Araki