> For the complete documentation index, see [llms.txt](https://www.projectpanoptes.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.projectpanoptes.org/build/software/installation/power-distribution-arduino-software.md).

# Installing PowerBoard

{% hint style="info" %}
For details on hardware installation, see the [12V Power Distribution](/build/hardware/control-box/12v-power-distribution.md) instructions.
{% endhint %}

## Installation

The POCS repository includes a script that will perform all the necessary steps for the Power Board installation. After successfully [Installing POCS](/build/software/installation/installing-pocs.md) you should have all the required tools. First make sure that the Arduino is connected directly to the Raspberry Pi and then issue the following commands at a terminal:

```
cd $HOME/pocs/resources/arduino
bash install-arduino.sh
```

The above script will download all the required libraries, compile the Arduino sketch, and upload the script from the Raspberry Pi to the Arduino.

After installing Arduino, you will need to reboot the Pi. After the Pi has restarted check and make sure the [Services](/build/software/appendix/services.md)are running, finish the [Configuration](/build/software/configuration.md), then start [Testing](/build/testing.md)!

## PowerBoard Configuration

The relays are numbered `0` to `4` and given the generic names `RELAY_0`, `RELAY_1`, etc. You can assign labels to each of these relays by editing the [Configuration](/build/software/configuration.md), with the default labels matching the suggested instructions in the [Power Distribution](/build/hardware/control-box/12v-power-distribution.md) setup instructions. By default, those labels are:

| Relay    | Label            | Default status |
| -------- | ---------------- | -------------- |
| RELAY\_0 | weather\_station | on             |
| RELAY\_1 | unused1          | off            |
| RELAY\_2 | fans             | on             |
| RELAY\_3 | unused2          | off            |
| RELAY\_4 | mount            | on             |

As a reminder, in the current configuration the camera box power is delivered via the mount.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://www.projectpanoptes.org/build/software/installation/power-distribution-arduino-software.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
