# Quick Start
This tutorial helps you quickly get started with the **micro:bit Smart Hub** and guides you through application development with a practical example. In this example, we will show how to control the fan and the red LED using button presses.
+ **Press the button**: The fan starts, and the red LED lights up.
+ **Release the button**: The fan stops, and the red LED turns off.
## Hardware Preparation
|  |  |  |
| :---: | :---: | :---: |
| micro:bit Smart Hub×1 | Button Sensor×1 | Grove Cables ×3 |
|  |  | |
| Fan Module×1 | Red LED Module×1 | |
### Power on the micro:bit Smart Hub
|  |  |  |
| :---: | :---: | :---: |
| | | |
Press and hold the power button to turn on the device. Once powered up, check the battery status. The device has four indicator LEDs representing the following battery levels: 25%, 50%, 75%, and 100%. If only one LED is blinking, it indicates a low battery. In that case, use the micro USB cable to connect the device to a charger for recharging. All four LEDs will be solid when fully charged, indicating that the battery is full.
### Connect the Potentiometer, Fan, and Red LED Modules to the Smart Hub
When connecting, ensure that the Grove cables are connected correctly, paying attention to the orientation. These cables are designed to prevent reverse insertion, so ensure that they are fully plugged in with proper contact.

At this point, the hardware Preparation for the quick start example is complete. Now, let’s proceed with coding the **micro:bit Smart Hub**.
## Software Preparation
**Get the Software**The **micro:bit Smart Hub** is based on the micro:bit core board, and any software supporting micro:bit can be used for programming. This tutorial uses **Microsoft MakeCode for micro:bit**.
### **Get the Software**
You can use the programming software in two ways: online through the [cloud platform](https://makecode.microbit.org/#editor), or by downloading and installing the [offline software](https://makecode.microbit.org/offline-app). In this tutorial, we will use the online programming platform.
Click the link above to access the online programming platform, where you will see the main interface as shown below.

### **Get the Extension**
The **MakeCode** coding platform has a dedicated **Microbit extension** for the **micro:bit Smart Hub**. You can add this extension to both the online and offline versions of the platform. Click [here](https://drive.google.com/drive/folders/1BelSOfzXOhKQjtSsvhnTnV4FC-a3zJ6A) to download the latest version of the **Microbit extension**, and extract it to your computer.
### **Add the Extension**
Follow the steps below to add the **Microbit extension** to the **MakeCode** platform:
**Step 1:**

**Step 2:**

**Step 3:**

**Step 4:**

**Step 5:**

The overall process for adding an extension is as follows:

Once you've completed these steps, the extension will be successfully added.
### Start Coding
Now, let's write a sample program on the programming platform.

This program will allow the fan and the red LED to turn on when the button is pressed, and turn off when the button is released.
The coding process is as follows:

## Program Download
Now you can connect the hub to your computer and download the program
**Step 1**: Use a microUSB cable to connect the hub to your computer.

**Step 2**: Connect the device on the coding platform and download the program

Notes:
Sometimes, due to an unstable USB connection, the download may fail. As shown below, the left side shows a successful download, while the right side shows a failed download. If the download fails, the program will be saved as a `**.hex**` file on your computer. In case of failure, please reconnect the USB cable between the computer and the hub, and repeat Step 2.
|  |  |
| :---: | :---: |
| **Successful Download**: When the message “Downloaded” appears. | **Failed Download**: When the message “Download Complete” appears, and the file is saved to your computer via the browser. |
## Run the Program
