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 computer 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 pack.
- Newer computers have USB type-C (a small round connector that you can plug in any way around). Apple refer to these as "Thunderbolt" connectors. For these, you will need USB type-C plug at one end, and a USB micro-B plug for the other end. You can purchase this type of cable, or use a USB A to USB C adaptor or hub.
- For connecting to an Android phone, you may need to use a USB On-the-Go cable that is compatible with your device.
You will need to make sure that this cable is designed to be a data transfer cable rather than just being a charging cable. Some charging cables that come with mobile phones and other portable devices only have the power wires fitted - which means that your micro:bit will power up when plugged into the USB of your computer, 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 microbit