> For the complete documentation index, see [llms.txt](https://agamrobotics.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agamrobotics.gitbook.io/docs/analog-power-modules-apm/generic/hardware-setup.md).

# Hardware setup

### Setup:

1. Ensure the battery is **not** connected to the Analog Power Module.
2. Connect the APM to the Agam Autopilot v6X-R&#x54;**™** <mark style="color:yellow;">POWER1</mark> and <mark style="color:yellow;">AD\&I/O</mark> connectors as shown in Figure 1. To craft the cable on the Autopilot side,
   * Use a MOLEX CLIK-mate 2.00mm pitch 6-pin connector, this connector is used to power the APM.
     * **Pin 1**: Route 5V power from the APM connector. \
       In case your APM works at 3.3V VDD, you will need to route via some other appropriate port on the Autopilot, such as the DSM port with a JST-ZH 1.5mm pitch 3-pin connector.
     * **Pin 6**: Route GND from the APM connector.
   * Use a JST-GH 1.25mm pitch 8-pin connector, this connector is used for the ADC input data.
     * **Pin 6**: Route V\_SENSE signal from the APM connector.
     * **Pin 7**: Route I\_SENSE signal from the APM connector.
3. Connect the Autopilot to your computer via USB.
4. Connect the Battery to the APM. The complete setup is shown in Figure 2.
5. Proceed to setup the APM on your Ground Control software.

<figure><img src="/files/sn4KiG2Ke1c46tso8I4s" alt="APM connection to Autopilot"><figcaption><p>Figure 1</p></figcaption></figure>

<figure><img src="/files/eNur8xy5rR9aYuQ61Mlx" alt="Autopilot and APM complete setup"><figcaption><p>Figure 2</p></figcaption></figure>


---

# 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://agamrobotics.gitbook.io/docs/analog-power-modules-apm/generic/hardware-setup.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.
