Failing to use the servo rail pins

Hello, everybody! How are you all doing?
I’ve been experimenting with the Navio2 HAT and recently I’ve been trying to use the servo rail pins as GPIO pins, following what’s described in the Navio2 documentation.

Here is the issue, when I try to export one of the pins with the command

echo 501 > /sys/class/gpio/export

It fails and returs the following:
echo: write error: Invalid argument

Is there something wrong with the Navio OS distribution I’m using? Am I missing some step I should do before doing the export?

I don’t know what I’m doing wrong, neither have an idea of how to fix this.

Hi Augusto!

Welcome to the forum! Can you run emlidtool test and post the results here?

Hi Olesia! Thank you for the welcome!

After posting the issue I ended up discovering the emilidtool package myself. I ran emlidtool test and turns out the the rpio_firmware package needed an update.
After the update everything is working as supposed to.

But thanks for the attention and quick response anyway!

1 Like

Augusto,

I’m glad to hear it’s working now!

1 Like