3

This page at elinux.org describes a few methods of protecting the GPIO pins. It does not however list the pros and cons of them, or what limitations they have.

What methods are suitable for protecting the GPIO pins from damage due to miswiring? When and why would I choose one method over another?

Particularly, what methods:

  • Work with output pins
  • Work with input pins (and does it make it safe to connect a 5v logic device? Does it make a 5v logic device work, or just not fry the board?)
  • Work with SPI? I2C?
3
  • 1
    That is a good question. Possibly needs to be moved to Electronic Engineering?
    – Piotr Kula
    Dec 7, 2012 at 9:58
  • It might be a better fit for EE. Not sure how to go about doing that.
    – Grant
    Dec 7, 2012 at 15:11
  • Flag for migration maybe? Or just ask it on EE too? I mean, it's not off-topic here, since it's about Raspberry Pi, but I guess it would be on-topic on EE as well.
    – AndrejaKo
    Dec 7, 2012 at 18:28

1 Answer 1

6

Besides the requirements of the electronics that is connected to the GPIO port, cost is normally an important factor in choosing a form of protection (if implemented at all).

The page you are referring to is a mix of various methods for various types of potential hazards. Input and Output is thrown together in one overview, without any notice for the usage of the described type of protection. I hope this page (which is under construction) categorizes it's chapters in the future a little better, because in this way it is pretty useless for in-experienced technicians, and just a summary of frequently used techniques.

But for every type of protection you need to find a balance between cost and effectiveness, you cannot protect against everything and still make something that is affordable.

All types of protection depend on factors, like:

  • From what you do want protection ?
  • Do you want input protection ?
  • Do you want output (current limitation) protection ?

If you're just looking for some protection for normal level digital signals within a normal frequency spectrum, a general purpose buffer or general purpose opto-couplers will do just fine. Both (depending on type and how they are used) can work as input or output protection.

If you have special needs for protection, like:

  • static discharge or lightning etc,
  • very high frequencies,
  • (very) high voltage signals,
  • [a lot of other (more rare) requirements]

different types or protections/electronics are required that can have a totally different price tag then the couple of cents the normal buffers and optos cost.

So the question 'when and why' you're asking for is not a question with one answer, it depends on the context.

Your Answer

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

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