-12%

Micro:bit 電機馬達驅動擴展板 Micro:bit Driver Expansion Board

原始價格:NT$430。目前價格:NT$380。 (未稅)

狀態: 已售完 貨號: BDB-004190 分類: 標籤: , , , ,

描述

Micro:bit 電機馬達驅動擴展板 Micro:bit Driver Expansion Board 含使用說明、圖形化、python編程範例9個micro:bit板載 GPIO 接口,還搭載了 4路電機驅動和8個舵機接口,4路電機驅動可複用為2路步進電機驅動

自micro:bit問世以來,以其簡單實用的編程方式廣受創客,學生和老師的喜愛。其簡潔的設計,配上豐富的管腳資源,賦予了其無限的可能性。此款  Micro:bit 電機馬達驅動擴展板 不僅引出了9個micro:bit板載 GPIO 接口,還搭載了 4路電機驅動和8個舵機接口,其中4路電機驅動可複用為2路步進電機驅動。
micro:bit電機驅動擴展採用IIC外擴驅動芯片的方式控制電機和舵機,僅佔用IIC兩個管腳,不佔用其他資源,即可完成電機與舵機的雙重控制。採用HR8833電機驅動,最大持續工作電流1.5A,可驅動普通小型馬達和N20微型金屬電機,每一個電機端口還帶有正反轉指示燈,方便識別電機運行方向,非常適用於學生和創客的一些小製作。擴展的GPIO口和舵機接口均採用DFRobot_Gravity標準接口,支持支持數量眾多的模塊和傳感器,舵機接口更是直接與Vin電源相連,增加供電電流便可支持多個舵機同時工作。

Micro:bit 電機馬達驅動擴展板 支持3.5V~5.5V電源供電,提供DC2.1插頭和接線端子兩種電源接口方式,可直接接3節乾電池盒。產品附帶一根USB轉DC2.1轉接線,可使用充電寶供電,更加經濟環保。

Micro:bit 電機馬達驅動擴展板 產品參數

  • 供電電壓:3.5~5.5V DC
  • 數字輸出電壓:0V/3.3V
  • 模擬輸出電壓:0~3.3V DC
  • 使用標準Gravity接口
  • micro:bit接口:9(P0 P1 P2 P8 P12 P13 P14 P15 P16)
  • 舵機接口:8
  • 電機接口:直流電機x4/步進電機x2(與電機接口復用)
  • 模塊尺寸:63 x 58(mm)
  • 安裝孔數:4個
  • 安裝孔尺寸:內徑3.1mm 外徑6.0mm

Micro:bit 電機馬達驅動擴展板 Micro:bit Driver Expansion Board

Mind+圖形化離線編程

軟件下載地址:http://mindplus.cc
基礎使用流程:
1、切換到“上傳模式”
2、“擴展”中選擇“micro:bit電機舵機專用擴展板”
3、編寫程序
4、連接設備
5 、上傳程序

Mind+操作

Micro:bit 電機馬達驅動擴展板 驅動電機

驅動電機

程序執行結果:電機M1以200速度正轉2秒,然後停止2秒,然後所有電機以200速度正轉2秒,之後所有電機停轉1秒,循環執行以上部分。

驅動舵機

驅動舵機

程序執行結果:按下micro:bit板上的A按鍵,S1引腳上的舵機轉動到90度的位置,按下micro:bit板上的B按鍵,S2引腳上的舵機轉動到90度的位置,當同時按下A和B按鍵時,S1和S2上的舵機同時轉到150度。

驅動步進電機

驅動步進電機

程序執行結果:當開機時,步進電機順時針旋轉180度,逆時針旋轉180度,無限循環。

Micro:bit 電機馬達驅動擴展板 makecode圖形化在線編程

MakeCode基礎教程:點擊進入makecode在線圖形化編程基礎操作教程
圖形化模塊軟件庫地址:https://github.com/DFRobot/pxt-motor 關於如何添加軟件庫

驅動電機

驅動電機CN

驅動電機EN

以上程序執行結果:電機M1和電機M2以150的速度正轉2秒,然後反轉2秒,無限循環;

驅動電機CN

驅動電機EN

以上程序執行結果:當按下A鍵的時候,M1正轉,M2停止;當按下B鍵的時候,M2正轉,M1停止;當同時按下AB鍵的時候,所有電機停止;

驅動舵機

驅動舵機CN

驅動舵機EN

以上程序執行結果:當按下A鍵的時候,舵機置角度為180度,當按下B鍵的時候,舵機置角度為0度

Micro:bit 電機馬達驅動擴展板 驅動步進電機

步進電機按角度

以上程序執行結果:當開機時,步進電機順時針旋轉180度,逆時針旋轉180度,無限循環。

步進電機按圈數

以上程序執行結果:當開機時,步進電機順時針旋轉2圈,逆時針旋轉2圈,無限循環。

BXY平台python編程

下載《BXY》python編程軟件

《BXY》pthon編程平台官方下載地址:https://gitee.com/dfrobot/iPy/raw/master/BXY.exe

《BXY》pthon編程平台官方教程:http://docs.dfrobot.com.cn/ bxy/

python函數列表

驅動電機

設置電機轉速

函數原型:speed(speed)
參數:speed速度值,取值範圍0~255的整數

設置轉動方向並執行

函數原型:run(dir)
參數:dir:轉動方向,CW正轉(順時針), CCW反轉(逆時針)

電機停止轉動

函數原型:stop()
參數:無

驅動步進電機

按圈數方式驅動步進電機

函數原型:circle(num,dir)
參數:num:設置轉動圈數(如果設置為0,則一直轉動) dir :旋轉方向(CW正轉CCW反轉)

按角度方式驅動步進電機

函數原型:angle(ang,dir)
參數:
ang:轉動角度
dir :旋轉方向CW正轉CCW反轉

步進電機停止

函數原型:stop()
參數:無

驅動舵機

按角度驅動舵機

函數原型:Angle(angle)
參數:angle舵機角度值,取值範圍:0~180度整型數

Micro:bit Driver Expansion Board

Since the advent of micro:bit, its simple and practical way of programming is widely loved by makers, students and teachers. Its sample design, coupled with a wealth of pin resources, give it infinite possibilities. This expansion board not only leads to 9 micro:bit onboard GPIO interfaces, but also comes with 4-way motor drives and 8 servo interfaces, of which 4-way motor drives can be reused as 2-way stepper motor drives.

Micro:bit 電機馬達驅動擴展板

Micro:bit Driver Expansion Board adopts IIC external drive chip to control the motor and servo motor, only takes up two IIC pins and can complete the motor and servo dual control without occupying other resources. Using HR8833 motor driver, the maximum continuous operating current is 1.5A, it can drive the ordinary small motor and N20 mini metal motor. Each motor port comes with a positive and negative rotating indicator to identify the motor running direction conveniently, which is very suitable for students and makers to make small projects. Both the extended GPIO and the servo interface use the DFRobot-Gravity standard interface, supporting a large number of modules and sensors. The servo interface is directly connected to the Vin power supply, thus increasing the supply current which can support multiple servos to work at the same time.

SPECIFICATION

  • Digital Output Voltage: 0V / 3.3V
  • Analog Output Voltage: 0~3.3V DC
  • Standard Gravity Interface
  • Micro: bit Interface: 9 (P0 P1 P2 P8 P12 P13 P14 P15 P16)
  • Servo Interfaces x 8
  • Motor Interface: DC Motor x 4 / Step Motor x 2
  • Dimension: 63x58mm / 2.48×2.28in

DOCUMENTS

商品評價

目前沒有評價。


搶先評價 “Micro:bit 電機馬達驅動擴展板 Micro:bit Driver Expansion Board”