Hello,

So when you ran echo “out” > /sys/class/gpio/gpio2/direction, the relay turned on?

I’m no expert with GPIO but I know when I tested this on a similar board (Raspberry Pi) running the opposite turned the relay off. Example:

echo “in” > /sys/class/gpio/gpio2/direction

 

I’m not sure if this is the correct way of doing this, so if someone else has any recommendations I too would love to hear them.