Connecting a motor module to a micro:bit
Motor is a kind of device which can transfer electric energy into kinetic energy according to the law in electromagnetic induction. In this experiment, we are going to use a switch to control the start and stop of a motor
What you will need
1 × micro:bit SOKIT (BBC micro:bit + SOKIT Pad)
1 × Micro USB cable
1 × Motor Module
1 × NPN Transistor Module
2 × SOKIT CONNECTOR "I" 8 Cm
1 × SOKIT CONNECTOR "I" 12 Cm
1 × SOKIT CONNECTOR "I" 16 Cm
Hardware Connect

Programming
You can see the whole program in the page below. Click “Edit” on the right top corner, and then “download”, you can download your code into Micro:bit.
VIDEO