Motor-Driver-Microbit
From SB-Components Wiki
Motor Driver for Micro:Bit
Motor Driver for micro:bit is introduced as the latest edition of a range of SB Components that can interface with up to 2 DC motors and 3 pwm based Servo motors. It works on Motor Power supply: 6V~12V (VIN terminal) an output current of up to 3A with a powerful integrated TB6612FNG Module IC that scales up the performance. VIN terminal can be used for providing the power to the Motor driver for micro:bit.
Features
Specifications
Pinout
PIN | Description |
---|---|
Vcc | Power (6~12V) |
GND | Ground |
MA1 | Positive Terminal of motor A |
MA2 | Negative Terminal of motor A |
MB1 | Positive Terminal of motor B |
MB2 | Negative Terminal of motor B |
P0 | Servo 1 Control Pin |
P1 | Servo 2 Control Pin |
P2 | Servo 3 Control Pin |
Programming
Drag and Drop
Many people want to learn the process to learn more about micro:bit by getting an understanding of the potential of micro:bit. If one wants to run servo motor and C motor with the micro:bit motor driver then they can do the following steps.
A user needs to connect the PWM servo motor to the connector(3 pin header) of the servo driver board, labelled as P0, P1, and P2 to connect up to 3 servo motors. Take micro:bit and stack it on the motor driver board’s edge connector. Connect VIN and ground or the external power supply to the motor driver to provide power to it. A user needs to switch on the slider switch of the motor driver. See the example codes and drag and drop features on makecode Start a new project by clicking on create project A user needs to add an extension for SB motor driver via clicking on the tab(advanced) >> Extensions and enter the mentioned URL below. https://github.com/sbcshop/Micro-Bit-Motor-Driver
micro:bit motor controller Click on search Now look for the search result to add the extension to the project(current). makecode micro:bit Control your servo motor by motor driver Extension feature. micro:bit DC motor controller