Ks0308 keyestudio Motor Drive Breakout Board for micro bit: Difference between revisions
Keyestudio (talk | contribs) (Created page with " == Keyestudio Motor Drive Breakout Board for micro:bit == <br>500px|frameless|thumb<br> == Description == [http://microbit.org/ micro bit ] is an entr...") |
Keyestudio (talk | contribs) |
||
(41 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<br>[[File:Ks0308.png|800px|right|thumb]]<br> | |||
<br> | |||
== Description == | == Description == | ||
[http://microbit.org/ micro bit | [http://microbit.org/ The BBC micro:bit ] is a powerful handheld, fully programmable, computer designed by the BBC. It was designed to encourage children to get actively involved in technical activities, like coding and electronics. <br> | ||
It features a 5x5 LED Matrix, two integrated push buttons, a compass, Accelerometer, and Bluetooth. <br> | |||
It supports the PXT graphical programming interface developed by Microsoft and can be used under Windows, MacOS, IOS, Android and many other operating systems without downloading the additional compiler.<br> | |||
<br>[[File:Ks0308-3.png| | |||
Looking to do more with your BBC micro:bit? Unlock its potential with this motor drive breakout board for the BBC micro:bit! <br> | |||
The motor drive breakout board integrates TB6612FNG chip. Its per channel can output up to 1.2 A continuous drive current, with peak current up to 2A/3.2A. <br> | |||
There are 4 motor control modes: Forward/Reverse /Brake /Stop. And PWM supporting frequency is up to 100 kHz. <br> | |||
The BBC micro:bit pins are broken out to 3PIN headers. These provide an easy way of connecting circuits using 3PIN jumper wires.<br> | |||
At the same time, a 3.3V and 5V voltage-regulator chip is integrated on the breakout board, breaking out 3.3V and 5V power output interfaces. <br> | |||
The board also comes with serial port communication pins.<br> | |||
<br>[[File:Ks0308-3.png|700px|frameless|thumb]] <br> | |||
<br> | |||
<span style=color:red>Note: <big>'''we adopt V1.5 micro:bit in the whole tutorial, but our tutorial is also compatible with the latest version micro:bit. | |||
When doing experiment with latest micro:bit, you need to transfer code into Makecode online editor first, save code again then download it to micro:bit.'''</big></span> | |||
== Features == | == Features == | ||
* | * Four motor control modes: Forward/Reverse /Brake /Stop. | ||
* | * Access to 3Pin headers connection | ||
* | * Integrated with 3.3V and 5V voltage-regulator chip | ||
* Comes with | * Comes with serial port communication pins | ||
<br> | |||
== Parameters == | == Parameters == | ||
Line 20: | Line 37: | ||
* Size:70mm*58mm | * Size:70mm*58mm | ||
<br> | |||
==Details Display== | |||
<br>[[File:0308-1.png|600px|frameless|thumb]] <br> | |||
<br>[[File:Ks0308 (7).jpg|500px|frameless|thumb]]<br> | <br>[[File:Ks0308 (7).jpg|500px|frameless|thumb]]<br> | ||
<br> | |||
== Wiring Diagram == | == Wiring Diagram == | ||
Here show you the wiring diagram below, connect the microbit and motor to our motor drive breakout board, you can observe the motor rotation.<br> | Here show you the wiring diagram below, connect the microbit and motor to our motor drive breakout board, you can observe the motor rotation.<br> | ||
Connect the two motors to terminal block A1,A2,B1,B2; GND to battery negative end, VM terminal to battery positive end. | Connect the two motors to terminal block A1,A2,B1,B2; GND to battery negative end, VM terminal to battery positive end. <br> | ||
<br>[[File:Ks0308- | <br>[[File:0308.png|700px|frameless|thumb]]<br> | ||
<br> | |||
== Test Code == | |||
You can directly copy the below code to microbit or try to edit it on [http://microbit.org/code/ micro bit Blocks Editor ] <br> | |||
If you can get the code edit successfully, you will be crazy with delight.<br> | |||
<br>[[File:Ks0308-2.png|600px|frameless|thumb]]<br> | |||
= | <br> | ||
<span style=color:red> <big>'''The code explanation as below:'''</big> </span><br> | |||
<pre> | |||
< | Motor1 forward: | ||
P13 - HIGH | |||
P12 - LOW | |||
Speed PWM: P1 | |||
Motor2 forward: | |||
P15 - HIGH | |||
P16 - LOW | |||
Speed PWM: P2 | |||
Motor1 Backward: | |||
P13 - LOW | |||
P12 - HIGH | |||
Speed PWM: P1 | |||
Motor2 Backward: | |||
P15 - LOW | |||
P16 - HIGH | |||
Speed PWM: P2 | |||
</pre> | |||
<br> | |||
== Test Result == | |||
Wiring as the above diagram, done powering up and uploading the code, two motors first turn forward for 3 seconds, then reverse for 3 seconds, circularly.<br> | |||
<br>[[File:Ks0308-1-1.png|600px|frameless|thumb]]<br> | |||
<br> | |||
== Go Further == | |||
You can use the motor drive breakout board to control the 1-digit LED segment display. Design the circuit with your micro:bit main board and breadboard and more. <br> | |||
<br>[[File:Ks0308-2-2.png|600px|frameless|thumb]]<br> | |||
<br> | |||
== Resources == | == Resources == | ||
https:// | https://fs.keyestudio.com/KS0308 | ||
* [http://microbit.org/ BBC micro:bit website ] <br> | |||
* [https://makecode.microbit.org/ Micro:bit MakeCode Block Editor ]<br> | |||
* [http://microbit.org/guide/ Meet micro:bit starter programming] <br> | |||
* [http://microbit.org/guide/features/ BBC micro:bit Features Guide ] <br> | |||
* [http://microbit.org/guide/features/ BBC micro:bit Safety Warnings ] <br> | |||
* [http://microbit.org/guide/quick/ BBC micro:bit Quick Start Guide ] <br> | |||
* [http://microbit.org/guide/hardware/pins/ BBC micro:bit Pins ] | |||
<br> | |||
== Buy From == | == Buy From == | ||
''' | *[https://www.keyestudio.com/keyestudio-motor-drive-breakout-board-for-micro-bit-p0106.html '''Official Website'''] | ||
*[https://www.amazon.com/KEYESTUDIO-Motor-Drive-Breakout-Board/dp/B07BQPC9ZV From Amazon] | |||
*[https://www.aliexpress.com/store/product/Keyestudio-Motor-Drive-Breakout-Board-For-Micro-Bit/1452162_32854082000.html?spm=2114.12010612.8148356.19.105373f2uQwzwQ From AliExpress ] | |||
[[Category:Micro:bit]] | [[Category:Micro:bit]] |
Latest revision as of 11:07, 27 April 2021
Description
The BBC micro:bit is a powerful handheld, fully programmable, computer designed by the BBC. It was designed to encourage children to get actively involved in technical activities, like coding and electronics.
It features a 5x5 LED Matrix, two integrated push buttons, a compass, Accelerometer, and Bluetooth.
It supports the PXT graphical programming interface developed by Microsoft and can be used under Windows, MacOS, IOS, Android and many other operating systems without downloading the additional compiler.
Looking to do more with your BBC micro:bit? Unlock its potential with this motor drive breakout board for the BBC micro:bit!
The motor drive breakout board integrates TB6612FNG chip. Its per channel can output up to 1.2 A continuous drive current, with peak current up to 2A/3.2A.
There are 4 motor control modes: Forward/Reverse /Brake /Stop. And PWM supporting frequency is up to 100 kHz.
The BBC micro:bit pins are broken out to 3PIN headers. These provide an easy way of connecting circuits using 3PIN jumper wires.
At the same time, a 3.3V and 5V voltage-regulator chip is integrated on the breakout board, breaking out 3.3V and 5V power output interfaces.
The board also comes with serial port communication pins.
Note: we adopt V1.5 micro:bit in the whole tutorial, but our tutorial is also compatible with the latest version micro:bit.
When doing experiment with latest micro:bit, you need to transfer code into Makecode online editor first, save code again then download it to micro:bit.
Features
- Four motor control modes: Forward/Reverse /Brake /Stop.
- Access to 3Pin headers connection
- Integrated with 3.3V and 5V voltage-regulator chip
- Comes with serial port communication pins
Parameters
- Input Voltage:DC 6-12V
- Drive Partial Working Current:≤1.2A
- Size:70mm*58mm
Details Display
Wiring Diagram
Here show you the wiring diagram below, connect the microbit and motor to our motor drive breakout board, you can observe the motor rotation.
Connect the two motors to terminal block A1,A2,B1,B2; GND to battery negative end, VM terminal to battery positive end.
Test Code
You can directly copy the below code to microbit or try to edit it on micro bit Blocks Editor
If you can get the code edit successfully, you will be crazy with delight.
The code explanation as below:
Motor1 forward: P13 - HIGH P12 - LOW Speed PWM: P1 Motor2 forward: P15 - HIGH P16 - LOW Speed PWM: P2 Motor1 Backward: P13 - LOW P12 - HIGH Speed PWM: P1 Motor2 Backward: P15 - LOW P16 - HIGH Speed PWM: P2
Test Result
Wiring as the above diagram, done powering up and uploading the code, two motors first turn forward for 3 seconds, then reverse for 3 seconds, circularly.
Go Further
You can use the motor drive breakout board to control the 1-digit LED segment display. Design the circuit with your micro:bit main board and breadboard and more.
Resources
https://fs.keyestudio.com/KS0308
- BBC micro:bit website
- Micro:bit MakeCode Block Editor
- Meet micro:bit starter programming
- BBC micro:bit Features Guide
- BBC micro:bit Safety Warnings
- BBC micro:bit Quick Start Guide
- BBC micro:bit Pins