# 未來板Kittenblock編程快速入門

Kittenblock是未來板的主要編程平台。

Kittenblock下載: [Kittenblock安裝](https://sharinghub.kittenbot.hk/programmingplatforms/kittenblock/an-zhuang-ban-kittenblock/kttenblockgreen)

### KittenBlock快速開始

### 1.數據線連接未來板

#### 使用數據線連接未來板

要在Kittenblock對未來板編程，我們首先要與未來板建立連接。

#### 1. 將未來板連接電腦，並打開電源。

![](https://kittenbothk.readthedocs.io/en/latest/_images/usb.png)

#### 2. 打開Kittenblock，在硬件欄選擇未來板。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock11.png)

#### 3. 點擊感嘆號，連接未來板。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock2.png)

選擇數據線連接。

![](https://kittenbothk.readthedocs.io/en/latest/_images/connect_usb.png)

等待數秒，未來板會自動連接Kittenblock。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock31.png)

等待數秒，未來板上會顯示hello world的字句。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock4.jpg)

假如你使用Windows 7作業系統，系統可能缺乏所需的串口驅動程式。請下載此檔案，手動安裝驅動程式。

### 2.藍牙連接未來板(在線版KittenBlock)

{% hint style="info" %}
此功能只支援在線版KittenBlock
{% endhint %}

#### 1.按實未來板的A按鍵， 打開電源。

![](https://kittenbothk.readthedocs.io/en/latest/_images/usb.png)

#### 2.開啟網絡選項，選擇Start Bluetooth。

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FTRpHsJ2ICB2QxHzuNfmk%2F20250121_124054.jpg?alt=media&#x26;token=fae87504-ee3d-4191-b55c-1183626ca57d" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FKeVdwvzG4M0OhGERcJtd%2F20250121_124119.jpg?alt=media&#x26;token=4cea7f0b-7130-4858-bb4c-5faab35a67d6" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F3LhPTHDMfKKvmaG3zI97%2F20250121_124131.jpg?alt=media&#x26;token=6df36589-2573-4cbd-8ff8-e5c948d9e08e" alt=""><figcaption></figcaption></figure></div>

#### 3. 打開Kittenblock，在硬件欄選擇未來板。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F5texqVgnUTtnRKvdtKCo%2Fimage.png?alt=media&#x26;token=13663d79-3ff5-4a1f-9bb7-79a837c6af26" alt=""><figcaption></figcaption></figure>

#### 4.選擇藍牙連接

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fj5Yptyj6jyuUugAnGdlt%2Fimage.png?alt=media&#x26;token=251169b2-0f16-4e4a-852e-938d00f373f0" alt=""><figcaption></figcaption></figure>

#### 5.按照未來板上顯示的藍芽ID選擇相應的未來板。

<div><figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fyt0mBHxQKa7FWkgmFlWC%2Fimage.png?alt=media&#x26;token=cb13a386-9c98-4361-a1d5-64f40c06270b" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FXeF2FALTCalJELWNUrDd%2Fimage.png?alt=media&#x26;token=dc142ac0-8433-4001-8396-2cce61635bf7" alt=""><figcaption></figcaption></figure> <figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F3LhPTHDMfKKvmaG3zI97%2F20250121_124131.jpg?alt=media&#x26;token=6df36589-2573-4cbd-8ff8-e5c948d9e08e" alt="" width="375"><figcaption></figcaption></figure></div>

#### 6.完成後未來板會顯示Hello Future

{% hint style="info" %}
注意：在藍芽模式下，未來板不能使用IoT相關的網絡功能
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FyKK697IqZHk7xUyUIfCM%2F20250121_125103.jpg?alt=media&#x26;token=9d0d8e4d-2ac0-4cd3-8070-c2d678732b27" alt=""><figcaption></figcaption></figure>

## 在線使用: Kittenblock實時編程

在連接了KittenBlock的情況下，KittenBlock的編程效果可以實時運行。

請下載以下範例程式。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FIp9spUzhAFASOxdsHJpA%2Fimage.png?alt=media&#x26;token=07f4988a-6bb5-47dd-841e-a65b58a2af37" alt=""><figcaption></figcaption></figure>

{% file src="<https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FU4bKPujvDjsK8JePH8ME%2Fled_demo_live.sb3?alt=media&token=38a4bc59-3ee2-4418-a60f-f445c6c50b23>" %}

可以在"檔案->從電腦挑選"中載入程式。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F0mm5x97A8nVoPsBiiZZv%2Fimage.png?alt=media&#x26;token=6f1e0bc4-d106-4e6d-ae12-c28f0c9db2c5" alt=""><figcaption></figcaption></figure>

直接點擊綠色旗子，程式就會即時運行。

{% embed url="<https://www.youtube.com/watch?v=fJmy5LE3ifI>" %}

## 離線使用: 上傳程式到未來板

除了在線運行之外，亦可以將程式上傳到未來板離線運行。

在KittenBlock打開代碼模式，程式的積木會變成Python編碼。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1qajplefuwbBkXO5BDFv%2Fimage.png?alt=media&#x26;token=5694bb1a-d415-494e-b682-8ef69171b642" alt=""><figcaption></figcaption></figure>

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FtN6ohXoh8NbSRHWbbj3S%2Fimage.png?alt=media&#x26;token=dc1148f6-b134-44ee-8ed4-3842e167335a" alt=""><figcaption></figcaption></figure>

點擊上傳，程式就會上傳到未來板。

{% hint style="info" %}
程式默認名稱為main.py。
{% endhint %}

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FGSpoXBqSiMuofyjlBXQv%2Fimage.png?alt=media&#x26;token=f84eab9b-586a-4b7b-ad2d-dbe1bff21079" alt=""><figcaption></figcaption></figure>

使用另存上傳就可以更改程式的檔案名。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FzRkZxnLk5jbvuUxj1Xqo%2Fimage.png?alt=media&#x26;token=4d7a71e7-d30d-4ed2-8747-fdddf3c6767d" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/FFUPHanvQeQ>" %}

## 資源分享: 未來板入門PPT與參考程式

為了方便各位同工試玩及備課，KittenBot HK準備了以下PowerPoint和參考程式。有興趣的同工們可以點擊以下Google Drive連結下載相關資源。

#### [未來板入門 資源分享](https://drive.google.com/drive/folders/1Hr3R63DSuIFj589QeIfEtEgAwYeVcnhi?usp=drive_link)

#### 使用無綫網絡連接未來板(需要微信賬號)

要在Kittenblock對未來板編程，我們首先要與未來板建立連接。

#### 1. 將未來板打開電源。

![](https://kittenbothk.readthedocs.io/en/latest/_images/usb.png)

#### 2. 打開Kittenblock，在硬件欄選擇未來板。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock11.png)

#### 3. 點擊感嘆號，連接未來板。

![](https://kittenbothk.readthedocs.io/en/latest/_images/kittenblock2.png)

選擇無綫連接。

![](https://kittenbothk.readthedocs.io/en/latest/_images/connect_usb.png)

手機連上路由器(5Ghz 網絡不適用)。

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss1.png)

未來板開啟Airkiss模式。

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss2.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss3.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss4.png)

![../../\_images/airkiss5.png](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss5.png)

在微信關注Kittenbot帳號，然後在下方點擊智能配網。

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss6.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss7.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss8.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss9.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss10.png)

在Kittenblock輸入未來板的IP地址。

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss11.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/airkiss12.png)

### Windows 7用家注意事項

由於Windows 7可能缺乏驅動程式，請下載此檔案，手動安裝驅動程式。

[未來板Windows 7驅動程式](https://drive.google.com/file/d/1Ldx1baDITzg-bHGvWpbgyQ0NdWDFdGD4/view?usp=sharing)
