Raspberry Pi Connect GPIO input with 5 or 12 volts

The input and output level of a GPIO of Raspberry Pi for “High” is at a voltage of 3.3 volts. But if you have a larger input level then you can not apply this voltage directly to a GPIO. The GPIO would be overloaded and broken.
[Read more…] about Connect Raspberry Pi GPIO input with 5 or 12 volts