# Sugar Solar Panel and Power Management Module

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2Fxx85CMzqWTORAUqLrXc1%2Fsolar.png?alt=media&#x26;token=4417f5ce-88f0-48c9-b282-d0a8cad45444" alt=""><figcaption></figcaption></figure>

This Solar Panel can charge the Lithium Battery with sunlight. It can also be used with controller boards such as Micro:bit or Futureboard to control the power output on the Power Bank. The built-in RTC allows for time keeping.

## Product Specifications

* Solar Panel Dimensions: 80 x 40 x 32.5 mm
* Weight: 646g(Solar Panel+Power Bank)
* Type: I2C
* Solar Panel Output: 6V 6W

## Wiring

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FwIFkE69kJP3CEYlTNbE3%2Fsolarmodule_wiring_edu.png?alt=media&#x26;token=f82e8806-7dcf-403f-a1bf-43d077f93882" alt=""><figcaption></figcaption></figure>

### Sample Wiring for Robotbit EDU

{% hint style="info" %}
Power the Futureboard with the Power Bank.
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FGX30tLy3MkMRyVsirxbX%2Fsolar_wiring.jpg?alt=media&#x26;token=6968f1af-bd8d-49e3-a710-dde07470c9e7" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Turn the Power Bank on.
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FO3CsjImhX2mcGCdK9IYQ%2Fsolarmodule_transparent2.png?alt=media&#x26;token=7803fb0b-138e-4fd4-9e0d-afea4871a5b6" alt=""><figcaption></figcaption></figure>

## LED Indicators

#### Power Output Indicator

The Indicator lights up blue when power outout is enabled.

<div><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FJFjh31N0Q8hPe17knz5z%2F20240709_112948.jpg?alt=media&#x26;token=d953b299-0488-4d63-9293-c4364d327642" alt=""><figcaption></figcaption></figure> <figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FVv5bMbSuqEYkd4Jaa9vI%2F20240709_110504.jpg?alt=media&#x26;token=1e234c91-6109-4c3a-b020-b5c930baa942" alt=""><figcaption></figcaption></figure></div>

#### Power Input Indicator

When the lithium battery is being charged, the indicator lights up red.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FsDzzdIcYrmCfUvOQYuo7%2F20240709_110103.jpg?alt=media&#x26;token=a115ae98-b8d0-4dcd-871b-5596fbdf8ec0" alt=""><figcaption></figcaption></figure>

### Programming Tutorial

#### MakeCode Programming Tutorial

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

#### Import Sugar Extension

#### Search for sugar in the search bar (Kittenbot products has been verified by Microsoft)

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

[Importing Extensions Tutorial](/programming-platforms/makecode-tutorial/kittenbot-and-makecode.md)

#### Extension URL

Sugar extension: <https://github.com/KittenBot/pxt-sugar>

## Sample Program

### Power Output Control

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

[Sample Program](https://makecode.microbit.org/_Mpk3PkF1YLVu)

### Sets Sleep Timer for Power Output

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

[Sample Program](https://makecode.microbit.org/_RYM4k5L1m7k3)

### Sets Real Time Clock

{% hint style="info" %}
Warning: The Time data is cleared when the power switch is turned off or power output is disabled.
{% endhint %}

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

[Sample Program](https://makecode.microbit.org/_7i10L2HmyDzA)


---

# 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/sugar-solar-panel-and-power-management-module.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.
