# Getting Started

{% embed url="https://www.youtube.com/watch?v=Rf1xjUO-P40" %}
Brief tutorial on how to turn MUGIC on, configure your MUGIC® motion sensor device using Bluetooth and Wi-Fi with WIFI AP & WIFI Client modes. We’ll also talk about how to connect multiple MUGICs together.
{% endembed %}



{% hint style="info" %}
1\.  Connect MUGIC® via USB-C to power source to charge.

2\. Turn MUGIC® on by pressing power button for 2 seconds.

3\. Connect to MUGIC® Wi-Fi network (MugicConnectXXXXXX).

4\. Receive data via Wi-Fi on port 4000 (default).
{% endhint %}

### 1. Connect MUGIC® via USB-C to power source to charge.

<figure><img src="https://435851546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPoKql4UagPnMNfCWI59%2Fuploads%2FhRLoIagpFNrwJPyRvSTM%2FCharge%20MUGIC..jpg?alt=media&#x26;token=de6bc38a-f429-498c-9a47-27296e657812" alt=""><figcaption><p>Charge MUGIC with the USB-C cable included in the box. We recommend to charge MUGIC® before use (this will take approximately 2 hours).</p></figcaption></figure>

### 2. Turn MUGIC® on by pressing power button for 2 seconds.

<figure><img src="https://435851546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPoKql4UagPnMNfCWI59%2Fuploads%2FkuEuGwHBjkQc2zGzjr55%2FTurn%20MUGIC%20on.jpg?alt=media&#x26;token=8b00d2a3-8a1e-4eed-a4a1-a4aa2259db40" alt=""><figcaption><p>“Long Press” more than 2 seconds to power on. When the third LED is SOLID blue, MUGIC is ready to connect.</p></figcaption></figure>

### 3. Creating a Wi-Fi Network

<details>

<summary>MUGIC®  in default (AP) mode </summary>

MUGIC®  is in AP (Access Point) mode as default, which means MUGIC®  creates its own wireless network. You are now receiving data via UDP (User Datagram Protocol) over the default port, which is set to 4000.  (You can always return to this initial state by pressing the RESET button.

</details>

Turn on the power. The first time you do so, MUGIC®  will automatically start in **Wi-Fi AP mode**. The Wi-Fi/Bluetooth LED will glow solid blue, indicating that MUGIC® has successfully created a Wi-Fi network.&#x20;

<figure><img src="https://435851546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPoKql4UagPnMNfCWI59%2Fuploads%2Fr6ytDjYh6kGc5w5GU73W%2FConnect%20MUGIC%20to%20network.jpg?alt=media&#x26;token=296b88ce-33bc-429e-ac8b-424394fc0da6" alt=""><figcaption><p>When MUGIC® is first turned on, it will automatically start in Wi-Fi AP mode. The 3rd LED will glow solid blue, indicating that MUGIC® has successfully created a Wi-Fi network. </p></figcaption></figure>

The blue LED blinks slowly after successfully joining the network, indicating that MUGIC®  is sending data.



### 4. Receive Data via Wi-Fi on port 4000 (default)

**To change MUGIC® parameters, such as:**

{% hint style="info" %}
* AP Mode: network name (AP SSID) and password, and port number,
* Client Mode: network name (Wi-Fi SSID) and password, and port number, as well as Client IPs to send the MUGIC® data to,
* Bluetooth: device name (BLE Name),
* Other parameters: output data format, frequency, etc.
{% endhint %}

{% tabs %}
{% tab title="Via Bluetooth" %}
**Configure with BLE Configurator in Google Chrome**

<figure><img src="https://435851546-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEPoKql4UagPnMNfCWI59%2Fuploads%2FolJ258V1lIfHt7j6EPKZ%2FBluetooth%20Configurator.jpg?alt=media&#x26;token=61db0bd2-2191-4390-8aca-ef8f70e1990e" alt=""><figcaption></figcaption></figure>

1. Visit  [https://mugic-dev.github.io/ble-config/ble.html](https://mugic-dev.github.io/ble-config/ble.html) using Chrome or Microsoft Edge (will not work on Safari or Firefox).  Or visit [http://mugicmotion.com/](http://mugicmotion.com/), under documentation, and click the link [BLE Configurator.](https://mugic-dev.github.io/ble-config/ble.html)
2. Click on "Connect to Mugic Device", a popup window will open.
3. Press Power and Mode buttons simultaneously, the BLE name of your MUGIC®  should appear in the window, select it and click "Pair".
{% endtab %}

{% tab title="Via Wifi" %}
When connected to MUGIC® in AP mode, simply visit [http://192.168.4.1/configure](http://192.168.4.1/configure)

In Wi-Fi Client mode, use the IP address of MUGIC®  instead of 192.168.4.1
{% endtab %}
{% endtabs %}

**In either of these websites:**

1. Edit the existing value(s), then press "Send".
2.  A "Configuration accepted" popup will confirm the change.

    •   An "Error" popup with an explanation will indicate that the change was not applied to MUGIC®.

Next:&#x20;

Visit [mugic-r-datagram-and-description](../about-mugic-r/mugic-r-datagram-and-description "mention")for understanding the Data API and use with DAWS
