# Sugar Camera Module

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FLKPFUtubf0Nm6j6xVic6%2Fcam_render.png?alt=media&#x26;token=971ecced-1556-4fb4-a74e-80cc54b1d750" alt=""><figcaption></figcaption></figure>

This is a multifunctional camera module, it can be used as a local IP Cam to transmit video over WiFi, it is also capable of scanning QR codes, voice recording and playback, and MQTT functions. It is suitable for applications requiring wireless video monitoring such as remote control car, code scanner, or monitoring. It also supports Teachable Machine for AI education.

### Product Specifications

* Chipset: ESP32-S3
* Voltage: 5V
* Current: 500mA
* Resolution: 2 megapixel
* Port: USB Type-C, 4pin connector
* Dimensions: 40x40x16mm
* Onboard functions: Programmable Buttons\*2, RGB LED\*2, MEMS Microphone, Mono Speaker, MicroSD Card Slot
* Support for: Micro:bit, Futureboard

### Product Details

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fgidd6qXvzRMUO2UThB6o%2Fcam_details.png?alt=media&#x26;token=98fb5b3b-2aa1-4c13-9c04-841567277f0c" alt=""><figcaption></figcaption></figure>

### List of Functions

* WiFi Video Transmission
  * Viewable on Kittenblock, Futureboard or Webpage
* AI Image Recognition
  * Using Kittenblock built-in AI plug-in
  * Teachable Machine
* QR Code Scanning
* Taking Photos
* Voice Clip Record and Playback
* Voice Recognition
* Programmable RGB LED
* Programmable Buttons
* Remote via Webpage

### Set Up Tutorial

#### WiFi Settings

Connect the camera to the computer with a USB C cable.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1XSt9HLXUHeNUmLsj0gg%2Fcam_typec.png?alt=media&#x26;token=b1f1653a-afb4-4d4a-80b2-37f3f863103e" alt=""><figcaption></figcaption></figure>

Open config.json in SUGAR-CAM.

```
用任何文字編輯器都可以打開。
```

<div><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FRmskjFgnn4yLq08pEgVs%2Fcam_usb1.png?alt=media&#x26;token=edca024f-b982-4939-9e76-3552a809cd04" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FnX67dNzsaVEw8oFycsQx%2Fcam_usb2.png?alt=media&#x26;token=969cc889-7b66-440a-9ba4-af58be80cc7b" alt=""><figcaption></figcaption></figure></div>

Input the WiFi credentials.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FH3AAwfEIcUPtjsZ9y7Uj%2Fcam_usb4.png?alt=media&#x26;token=d2637611-1a93-4296-82d3-de28c7feacf4" alt=""><figcaption></figcaption></figure>

After saving, the module will reboot. The LEDs are lit green when it is connected to the WiFi.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FJ98VmpuapNOdtOYoP6RO%2Fcam_usb3.png?alt=media&#x26;token=174a3408-2feb-407a-b130-59c53e2f3120" alt=""><figcaption></figcaption></figure>

### Switching Between Modes

To switch mode, change the value in the parameter "model" in the file "config.json".

* Command Mode: commandProcessing
* Remote Mode: remoteControl

<div><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FsGjDg9upNGJiuiAt7aWN%2Fcam_commandprocessing.png?alt=media&#x26;token=5a382152-0fee-4a5d-92dd-158ed82ccc06" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FvQyhC4Oe56fCXrQRRpFd%2Fcam_remotecontrol.png?alt=media&#x26;token=c5e7d53e-dab9-4aaf-bc57-62591f985980" alt=""><figcaption></figcaption></figure></div>

### Firmware Update

There maybe updates to the firmware to improve functionalities of the module.

Download the latest firmware:

{% file src="/files/zwkS3Hri56OnyP17MtVs" %}

Connect the module to the computer.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F1XSt9HLXUHeNUmLsj0gg%2Fcam_typec.png?alt=media&#x26;token=b1f1653a-afb4-4d4a-80b2-37f3f863103e" alt=""><figcaption></figcaption></figure>

Copy all the files onto the SUGAR-CAM device.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FzS07B0pbNiiSiKQ95jid%2Fcam_update.png?alt=media&#x26;token=7b41be7b-567d-4b48-80aa-36dffb26f3e2" 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-eng.kittenbot.hk/functional_module/sugar/cam.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.
