# 1.3 Teach & Play

## **0. Introduction to \[Teach & Play]**

The third option in **HUENIT OS** is **\[Teach & Play]**.\
This function allows users to manually teach movements to the robotic arm and verify whether it performs the movements correctly.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FzpYfW6lVWaZ0QE5H9WTu%2Fimage.png?alt=media&#x26;token=3f6d4258-1937-4c7a-bf74-c4183d7ed4de" alt=""><figcaption><p>HUENIT OS - [Robot Control] > [Teach&#x26;Play]</p></figcaption></figure>

## 1. Baisc UI

When selecting **\[Teach & Play]**, the main screen will appear.

* Initially, no movements are stored.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F43zd5AFXqW7keRdeS4EC%2Fimage.png?alt=media&#x26;token=a8fbeba7-75ac-4051-81cb-ef215117a159" alt="" width="371"><figcaption><p>[Teach&#x26;Play] Main UI</p></figcaption></figure>

## 2. How to Use Teach & Play

**(1) Adding a Movement**

* Click the **\[Add]** button to open the movement recording screen.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FGZOnBJUdNuXGQ0MCKyTY%2Fimage.png?alt=media&#x26;token=6b4c3438-7582-49d5-a2de-e0d9b70fd6da" alt=""><figcaption></figcaption></figure>

(2) Disabling Motors & Recording Movement

* Click the **\[Turn Motors Off]** button to disable all motors of the HUENIT robotic arm.
* The **\[Turn Motors Off]** button will then change to **\[Add Movement]**.
* With the motors disabled, manually move the robotic arm to the desired position and click **\[Add Movement]**.
* The motors will be re-enabled, and the current **(x, y, z)** coordinates of the robotic arm will be saved.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FySWdsktzwYws9dONl6rO%2Fimage.png?alt=media&#x26;token=1ad4f916-d500-4f73-9aa0-b125e5850062" alt=""><figcaption></figcaption></figure>

* Click the **\[Back]** button on the AI Camera to confirm that the new coordinate has been added.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FcKffzL2hQwWYsQi3lI1T%2Fimage.png?alt=media&#x26;token=cf0705fb-ddc5-4fa3-83ed-27bf288db8ac" alt=""><figcaption></figcaption></figure>

* If a **\[**![](https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/u91NrTJVmYWwSbLc7oTL/image.png)**]** mark appears next to the saved coordinate, the robotic arm can move to that position.
* If a **\[**![](https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/Rs1BhxLS0AHZZS1fHrVq/image.png)**]** mark appears next to a new coordinate, the movement to that position is not possible.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FLVDhU0OGLO9PZruFtosf%2Fimage.png?alt=media&#x26;token=5ed2bab0-dc9f-40e7-8264-5631503685a5" alt="" width="371"><figcaption></figcaption></figure>

(3) Adding a Delay Between Movements

* To set a waiting time between movements, select **\[wait 1 sec]** using the **\[Up/Down]** buttons.
* Then, click **\[Add Module]** as many times as needed to set the desired waiting time.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FsSqyDaDE7AMjlte6RUKo%2Fimage.png?alt=media&#x26;token=e2ccd9d0-ebde-4635-aa50-7e31ccbe5ad3" alt=""><figcaption></figcaption></figure>

(4) Executing the Saved Movements

* After adding all the desired movements, click **\[PLAY]** to execute the stored movements sequentially.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FmklTRg3MSB10ePxNjiQb%2Fimage.png?alt=media&#x26;token=3bddd0f6-2ea6-4b2a-9454-a74b0be6e90e" alt="" width="371"><figcaption></figcaption></figure>

(5) Deleting Unnecessary Movements

* To delete a movement, select the unwanted item using the **\[Up/Down]** buttons and click **\[DEL (Delete)]**.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FqmnJvDw5b1p7RsyPwZqB%2Fimage.png?alt=media&#x26;token=f7510310-10df-45b0-a059-52aae6e039fc" alt=""><figcaption></figcaption></figure>

(6) Adding Suction & Gripper Module Movements

* In addition to robotic arm movements, the **Suction Module** and **Soft Gripper Module** actions can be added.
* Click **\[Add]**, select the module movement using the **\[Up/Down]** buttons, and click **\[Add Module]**.
* **Note:** If module actions are added, the corresponding module must be attached before clicking **\[PLAY]** to ensure proper execution.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2Fce8RQpkiNl3Vx2hWECH7%2Fimage.png?alt=media&#x26;token=aff3a3f9-c7f4-431b-97ae-6b13ce6b099a" alt=""><figcaption></figcaption></figure>

## 3. **Saving Teach & Play Data**

* The recorded robotic arm movements in **Teach & Play** can be saved to the HUENIT OS memory.
* Click **\[Save]**, select the desired storage location, and the movements will be saved.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F9hvUU4fOokWV0eOoItwG%2Fimage.png?alt=media&#x26;token=f176eea8-73a7-4378-bc81-209fdceb7f8b" alt=""><figcaption></figcaption></figure>

## 4. Auto-Save Function

* If the connection between the robotic arm and AI Camera is lost while using **Teach & Play**, the progress will be **automatically saved**.
* When the AI Camera is reconnected to the robotic arm, the system will prompt the user **only once** to reload the **auto-saved data**.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FyW3zJCXCiTQa17pxq7iG%2Fimage.png?alt=media&#x26;token=ebd6c04f-d84e-43dc-bde4-c51974123157" alt="" width="368"><figcaption></figcaption></figure>
