I have RPI's GPIO connected to a relay board, everything works fine, and relays are nicely controlled, but there is one problem: when the RPI restarts, the GPIO pins have unstable state and keeps changing very quickly, which in turns causes the relays connected to them to flicker very quickly, which can destroy the devices connected to them.

P.S. I'm talking about GPIO 14

What is going on here, and how to stop that?

  • The GPIOs do not have an unstable state. Which GPIO are you using? Please add that detail to your question.
    – joan
    Commented Dec 7, 2015 at 12:08
  • GPIO 14, and this only happens on start/restart. A note added in the question Commented Dec 7, 2015 at 12:21

1 Answer 1


GPIO 14 (pin 8 on the expansion header) is the UART TXD. It will be active during boot as boot messages are sent on the serial link. After boot the UART may also be used to login to the Pi.

You can disable most (but not all) of the boot messages with the raspi-config tool of Raspbian. The same tool will also disable the use of the UART for a login console.

I suggest you use a different GPIO.

  • Thanks joan, will check it and confirm throughout the day! Commented Dec 7, 2015 at 12:36
  • I confirm your answer is correct. Commented Dec 7, 2015 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.