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
    Dec 7 '15 at 12:08
  • GPIO 14, and this only happens on start/restart. A note added in the question Dec 7 '15 at 12:21

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! Dec 7 '15 at 12:36
  • I confirm your answer is correct. Dec 7 '15 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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