Navigator GPIO availability

Hello,

I have a datalogger on the BlueBoat. I would like to use a simple indicator light (https://bluerobotics.com/store/thrusters/lights/indicator10-asm-r1/) to turn on when my logger is recording. Are there any GPIO pins available on the Navigator Raspberry Pi I can use to do this? Perhaps the leak indicator, or user-definable LED’s and solder my indicator LED to those pads?

Hi @CA_BlueBoat -
You should be able to connect that indicator light directly to one of the 16 GPIO outputs (normally used for ESCs), and configure it as a relay! You could then make a LUA script turn on and off the LED as desired…

Hey Tony,

So lets say I used GPIO16 on the navigator: (Edit: Made the red arrow on the wrong pin, but you get the idea)
image

Does that have any correlation to the original RPI4 GPIO Pins:

Is it still addressable as GPIO 16 (Physical pin 36) for example?

My datalogger is running on the onboard RPI4 (attached to the navigator) using python.

Cheers

Hi @CA_BlueBoat -
No, the GPIO 16 has no correlation with the Raspberry PI GPIO pins. You’ll get your output from the pin to the right of your arrow, (signal = s.)
Note that you can only draw 15mA! You’ll also need to be using the latest ArduSub (4.1.2)

To control the pin from lua, you would do something like this. Something similar should be possible to do with pymavlink and mavlink.MAV_CMD_DO_SET_RELAY