# 2.1  Adjust Pen Height (Z-Axis Calibration)

## **Z-Axis Calibration Pop-up**

The **Z-Axis Calibration Pop-up** automatically appears when entering the **\[Drawing]** tab for the first time.\
If the pop-up is closed, it can be reopened by clicking the **\[Z-Axis Calibration]** button in the **top-left corner** of the drawing interface.

1. **First-time Entry** → The pop-up appears automatically.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F31q96erUBe7bASIMtn1e%2Fimage.png?alt=media&#x26;token=86e59fd2-33d4-4019-b845-368ed8456806" alt=""><figcaption></figcaption></figure>

2. **Clicking the \[Z-Axis Calibration] Button** → Manually reopen the pop-up.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F9d7ddUFlBAyFIbvM5etb%2Fimage.png?alt=media&#x26;token=a8ad2269-55cf-49f1-a4c6-8fc372377efe" alt=""><figcaption></figcaption></figure>

## **Pen Height Adjustment (Z-Axis Calibration)**

Proper **pen height adjustment** is crucial for **high-quality drawing**.\
Precise settings ensure **clean and accurate** drawing results.\
HUENIT provides **three Z-Axis calibration options**:

> Z-Axis Calibration Modes

1️⃣ **Manual Calibration**

* Users manually adjust the **pen height** to the desired position.

2️⃣ **Use Current Position**

* Sets the Z value based on the **robotic arm's current pen position**.

3️⃣ **Use Default Position**

* Uses a system-defined **default** Z-axis value.

> ### **Work Area Visualization**

* As the **Z-axis height is set**, the **robotic arm's available drawing area** is displayed **in real time** on the screen.
* This feature helps users check the workspace and **make necessary adjustments** before drawing.

## **How to Perform Z-Axis Calibration for Each Mode**

> Preparation

✅ **Install the Pen Holder Module**

* Insert the **pen** into the **pen holder module** and **secure it tightly** with the provided screws.

{% hint style="warning" %}
If the pen is not properly fastened, it may shake or move upward during drawing, affecting accuracy.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/fV7WVUhVLFQT0BEqKIGq/image.png" alt=""><figcaption></figcaption></figure>

✅ **Place Paper on the Drawing Surface**

* Place paper where the pen tip will touch.

{% hint style="warning" %}
**Use paper of the same thickness** as the actual drawing paper for precise Z-Axis calibration.\
Keeping a **consistent work environment** is essential for accuracy.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/FaE6LGbKiROKaSQ6FegM/temp_1735538044924.png" alt=""><figcaption><p><strong>The Pen Holder Module Attached to the Robotic Arm</strong></p></figcaption></figure>

### **1. Manual Calibration**

{% hint style="warning" %}
Manual calibration is only available when the HUENIT robotic arm is connected.
{% endhint %}

> STEP 1: Connect the Robotic Arm

Click **\[Manual] Button** to initiate automatic connection to the **HUENIT robotic arm**.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FWXrnDfa689JBosHNWCoL%2Fimage.png?alt=media&#x26;token=154ab1a5-0e2f-4c10-b0b1-45814287bcc1" alt="" width="375"><figcaption></figcaption></figure>

If the connection **fails**, check the **PC and robotic arm connection** and click **\[🔗(Auto-Connect)]** to retry.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FgiTrRMrXoz7Zyol8iY8H%2Fimage.png?alt=media&#x26;token=fb309eba-19d6-4363-bcd7-2e6594218e70" alt="" width="375"><figcaption></figcaption></figure>

Once connected successfully, proceed with manual calibration.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F92sk5nUmujdShsaAzpef%2Fimage.png?alt=media&#x26;token=e673606c-9595-424c-b27b-12ab01e2dc0b" alt="" width="375"><figcaption></figcaption></figure>

> STEP 2: Adjust the Z-Axis

Use the **\[Z+], \[Z0], and \[Z-] buttons** to slowly lower the **pen tip** until it touches the paper.

{% hint style="warning" %}
The pen should not just lightly touch the paper; it needs to be lowered enough for the pen to lift slightly due to the spring in the pen holder.
{% endhint %}

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FdFk7wNnPP1byvO3NZHWB%2Fimage.png?alt=media&#x26;token=9a2db766-6144-47ad-af66-3ba83934532a" alt=""><figcaption></figcaption></figure>

> STEP 3: Apply & Verify the Work Area

* Click **\[Apply]** to finalize the Z-Axis calibration.
* The **work area is updated** according to the set Z-axis value.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FC5W5Fws8WpcS14YE8Ogx%2Fimage.png?alt=media&#x26;token=b6a25724-06bf-4094-b941-d7ddd1eecf53" alt=""><figcaption></figcaption></figure>

### &#x32;**. Use Current Position**

{% hint style="warning" %}
This method is only available when the HUENIT robotic arm is connected.
{% endhint %}

> STEP 1: Connect the Robotic Arm

Go to the **\[Control]** tab and click **\[Auto-Connect]** to connect the robotic arm to the PC.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FHLpRRN3UDQH3bjw83qs7%2Fimage.png?alt=media&#x26;token=fead8ee1-f5ef-4867-a7cf-a6ea6fe42d78" alt=""><figcaption></figcaption></figure>

> &#x20;STEP 2: Move the Robotic Arm to the Desired Position

* **Turn off the motor** before adjusting the position.
* **Manually move** the robotic arm so the **pen tip lightly touches the paper**.
* **Turn the motor back on** after positioning the pen.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2Faf4x9NWgBTu6Fk7jOr2C%2Fimage.png?alt=media&#x26;token=1a020d99-db40-4276-9a28-0f0dce8a342b" alt=""><figcaption></figcaption></figure>

> &#x20;Motor OFF → Adjust Pen Position → Motor ON

<figure><img src="https://content.gitbook.com/content/auX5vWu2xzL5b4Cvif21/blobs/Ha0vli5qGh9FIos6DK2h/20241230_170337_86383898068189.gif" alt=""><figcaption></figcaption></figure>

> STEP 3: Select & Apply "Use Current Position"

* In the **Z-Axis Calibration Pop-up**, click **\[Use Current Position]**.
* The robotic arm’s **current location is set** as the Z-Axis value.
* Click **\[Apply]** to finalize the calibration and update the work area.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2Fu2sBCI8gZ0EEGb7hzbiv%2Fimage.png?alt=media&#x26;token=75ff36d3-9262-4848-b454-58bc012a1fb9" alt=""><figcaption></figcaption></figure>

> ### <mark style="color:red;">\*</mark>Important Note

* If the **\[Auto-Connect 🔗]** button is clicked, the robotic arm will **automatically move to X:0, Y:200, Z:20**.
* **Z-Axis calibration cannot be performed at this position**, so users must manually move the robotic arm before setting the Z-Axis.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FVVxHQRtVV5Xei9ccdKk8%2Fimage.png?alt=media&#x26;token=c4050166-c02f-41a5-b0d4-f1247aaf6a3a" alt=""><figcaption></figcaption></figure>

### **3. Use Default Position**

* This mode is useful when users **want to maintain** the Z value from a **previous drawing session**.
* **Does not require** the robotic arm to be connected.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2F7q29yruEixY0noCmlVfr%2Fimage.png?alt=media&#x26;token=ecf7c127-a982-4231-ad4b-b9ba1f19a0c0" alt=""><figcaption></figcaption></figure>

> #### **How to Adjust the Z Value in Default Mode:**

1️⃣ **Direct Input**

* Manually enter a **specific Z value**.

2️⃣ **Adjust Using the Slider**

* Use the **slider** to modify the Z value.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FMmq1DQjc2sWy2wCEbRJf%2Fimage.png?alt=media&#x26;token=23ee9ff9-8f33-4e91-98e3-ddb784665985" alt=""><figcaption></figcaption></figure>
