The micro:bit has a USB type-B micro connector.
You can use the USB interface to load code onto the micro:bit, and to power it.
The USB lead that you require will depend on what device you are plugging the micro:bit in to:
- Usually, you will need a USB type-A plug at one end, and a USB micro-B plug for the other end, to be plugged into the micro:bit. This is the type of cable supplied in the micro:bit Go and micro:bit Club packs.
Cable with micro USB type B on one end (left) and USB-A on the other (right)
- Newer computers or Android devices typically have USB type-C sockets (a small connector with rounded corners that you can plug in any way around). Apple refer to these as "Thunderbolt" connectors. For these devices you can either:
- Use an adapter: this could be a single adapter from USB-A to USB-C or a multi-port adapter/hub that you connect between the supplied cable and your computer/Android device. These are widely available.
- Use a micro USB to USB-C cable: use a cable that has micro USB at one end and USB-C at the other end (instead of USB-A). Again these are widely available to purchase.
Example of an adapter with (plug) USB-C on one end and (socket) USB-A on the other
Example of a micro USB (top left) to USB-C (bottom right) cable
The cable must be designed to be a data transfer cable rather than just a charging cable (most modern cables are). Some (typically older or low cost) charging cables only have the power wires fitted - which means that your micro:bit will power up when plugged into it, but it will not show up on the computer as a MICROBIT drive.
When the micro:bit is powered from USB, the yellow system LED on the back will light.
If a successful data connection is made over your USB cable, your computer will add a MICROBIT drive into the file manager view. If it is unsuccessful and you are sure you are using the correct type of cable, follow our advice on fault finding with a micro:bit.
Unfortunately, you cannot use a cable with an Apple iPhone or iPad as iOS prevents this sort of usage. To transfer code to a micro:bit from an Apple iPhone or iPad you will need to use the iOS app with bluetooth.