# GPIO on RB5 drone

Source: https://forum.modalai.com/topic/1480/gpio-on-rb5-drone
Category: Development Drones (https://forum.modalai.com/category/44/development-drones)
Tags: rb5
Posted: 2022-10-24 13:25:28 UTC by umlr
Replies: 1 · Views: 638

## umlr · 2022-10-24 13:25:28 UTC

Hello,

I would need to use GPIO to attach a payload to the drone. I could not find much information on if GPIO are present or usable.

The documentation mentions some connectors being GPIO (J3 & J5) but they do not seem to be accessible and seem to be already used internally.

## Reply by modaltb (ModalAI staff) · 2022-10-24 15:08:38 UTC

Hi @umlr ,

Here's some info for VOXL 2 which shares most of the design.

https://docs.modalai.com/voxl2-linux-user-guide/#gpios

For the RB5, qualcomm had some sample code here:
   https://github.com/quic/sample-apps-for-Qualcomm-Robotics-RB5-platform/tree/master/GPIO-samples

For example, we are using it here:
   https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L58

GPIO 46 going to J10 pin 6.

GPIOs 82, 83 and 84 control the onboard LED which you can use and get visual feedback.
