# Sugar二期 稱重模組

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FSw9BTpLFvvFEVvoPGyrm%2Fweight1.jpg?alt=media&#x26;token=7cc20696-b16a-480f-9b60-f1311437aa38" alt=""><figcaption></figcaption></figure>

Sugar 稱重模組可以量度物件的重量。

## 產品參數：

* 尺寸: 88x56x33mm
* 訊號: I2C
* 類型：I2C 模組
* 可量度範圍: 0-5kg
* 精準度: 0.1g
* 電壓: 3.3V/5V

## 產品接線

#### Robotbit EDU

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FOptAch4H09wdhVrOd1Wz%2Floadcell_wiring_edu.png?alt=media&#x26;token=8e196308-22b9-431d-ae3e-d8d5ac85b845" alt=""><figcaption></figcaption></figure>

#### Robotbit 2.2

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1iP4hbOm0Ck18UuJdhO5%2Floadcell_wiring_2.2.png?alt=media&#x26;token=fae7daa2-cd88-4ea9-becd-cbd3b7251bcc" alt=""><figcaption></figcaption></figure>

## 參考程式

#### MakeCode編程教學

#### 加載Sugar插件：

#### 在擴展頁直接搜尋sugar (sugar已經過微軟認證，可以直接搜尋)

![](https://kittenbothk.readthedocs.io/en/latest/_images/sugar_search.gif)

#### 你亦可以用插件地址搜尋

Sugar插件：<https://github.com/KittenBot/pxt-sugar>

#### [詳細方法](https://sharinghub.kittenbot.hk/programmingplatforms/makecode/kittenbotandmakecode)

### 量度重量

Micro:bit上使用稱重模組需要手動輸入校正數值。首先打開以下參考程式。

#### 參考程式

{% embed url="<https://makecode.microbit.org/_HmwKUrD8iPW9>" %}

[下載參考程式](https://makecode.microbit.org/_HmwKUrD8iPW9)

在程式中將模組背後印有的校正數值填在程式的 設定校準值 積木裡面。

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FHpkczFBOAMQittXhq2j7%2Floadcell_calibrate_mb.png?alt=media&#x26;token=f4366c69-3ce9-4fcb-8855-acf6064d846e" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/functional_modules/sugar/loadcell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
