User Manual

VMM403
V. 01 18/03/2020 3 ©Velleman nv
Specifications
input voltage ...................................................................................................... 6-12 VDC
number of channels ........................................................................................................2
interface working current ................................................................... 1.2 A (peak 2 A max.)
dimensions ............................................................................... 70 x 58 mm (2.75 x 2.28")
chipset ........................................................................................................... TB6612FNG
Overview
1
3
micro:bit connector
2
4
motor interface
5. Connection
Connect the VMM403 to your micro:bit.
A1 + A2 + and of DC motor 1
B1 + B2 + and of DC motor 2
G + VM 6-12 VDC power supply
Connect the micro:bit-VMM403 assembly to your computer (USB).
6. Test
Open MakeCode for micro:bit or go to https://microbit.org/code/. With this example both
motors will run forward for 3 seconds, then backwards for 3 seconds and so on.
Code
led.enable(false)
pins.digitalWritePin(DigitalPin.P14, 1)
basic.forever(function () {
pins.analogWritePin(AnalogPin.P1, 900)
pins.digitalWritePin(DigitalPin.P13, 1)
pins.digitalWritePin(DigitalPin.P12, 0)