
Learn how to:
- Code the BBC microbit to control a crane via the built-in accelerometer.
- Convert a toy crane into a BBC microbit controlled crane.
Parts List:

- 1 x BBC microbit.
- 1 x Toy Crane kit. (Note: If using a different crane the wiring and motor control may be different).
- 1 x Motor Driver Board for the BBC microbit.
- 1 x 4xAA Battery box with switch and leads.
- 4 x AA Batteries.
- Laser cutting enclosure files (.dxf).
- 8 x M3 6mm machine screws.
- M3 12mm machine screws.
- 4 x M3 Nuts.
- 4 x 6mm plastic spacers.
- Translucent Box.
- 8 x M3 6mm machine screws.
- 6mm plastic spacers. x 4
- Wire strippers.
- Small flat-head screwdriver.
- Phillips screwdriver.
- Drill with a 3.3mm drill bit.
- A computer with a spare USB port and internet access.
- A USB to micro USB cable.
Step by Step Guide to building the BBC micro:bit controlled crane
Step 1
Build the toy crane as described in the instructions that are supplied with it.
Step 2
Remove the supplier controller by cutting the cable. Do this near to the controller to leave as much cable as possible.
Step 3:
Strip away a section of the black insulation and then strip the insulation off the end of each of the four internal wires, leaving the copper internal wire exposed.
Step 4
Connect the blue and yellow wire to the ‘Motor 1’ input on the Kitronik Motor Driver board and the red and white wire into the ‘Motor 2’ input (see below).
Step 5
Insert the batteries into the battery holder and connect it to the power terminal on the Motor Driver Board for the BBC microbit. The battery pack has as on/off switch to turn on the power.Step 6 Coding The BBC micro:bit controlled crane
You can download from the embedded MakeCode editor above. The code can then be dropped onto you microbit in File Explorer or drag and dropped into the MakeCode editor.Step 7
Insert your coded BBC microbit into the connector on the Kitronik Motor Driver board and tilt the Motor Driver Board to try it out!
Casing (Optional)
We housed our BBC microbit in a simple laser cut case (see below) but there are many suitable casing options or it could be used without one at all. You can download a zipped copy of the .dxf files here.
Customise an existing enclosure
In this example we used a Hammond Blue Translucent Box 193mm x 113mm x 61mm (pictured below) as a case.




©Kitronik Ltd – You may print this page & link to it, but must not copy the page or part thereof without Kitronik's prior written consent.
2 comments
Rob Haywood
Hi Phil, Don't forget to send us some photos for the gallery! Rob
Phil Grimley
This looks like such a fun project. The crane looks identical to the one in Argos marketed as “Chad Valley Crane” :) Awesome stuff, looking to maybe do it with small group of Year 8s using their micro bits. Hmmmm!