mille-feuilleAutomatic Schematic Creation Tool

DC Motor Driver
(DCモータードライバ)

step

Features


step


対応プラットフォーム
o ATMEGA328P
o Raspberry Pi


Download datasheet
Main component : BD6211F - DC ブラシモータードライバー (最大電圧7V)

• Built-in one channel configuration
• VREF Voltage Setting Pin Enables PWM Duty Control
• Cross-Conduction Prevention Circuit
• Four Protection Circuits Provided: OCP, OVP, TSD and UVLO

step

Programming

Sample program for Arduino IDE
mille-feuile_DCMotor1ch.ino
Libフォルダの中身を、サンプルコードと同じフォルダにコピペしてからお使いください。

Sample program
DCMotorTest.py

* functions *
import DCMotor

def getInfo(Number) : デバイスボードの情報を取得します
Number : 接続するベースボードのコネクタ番号を指定します

def turnMotor(milModClass, HighLow1, HighLow2) : モーターの回転コントロールします.
milModClass : モジュールインスタンス
HighLow1 and HighLow2 : モーター出力のコントロール
  1,0 : 正転
  0,1 : 逆転
  1,1 : 停止
  0,0 : OFF