Raspberry Pi Gpio Voltage Levels
The raspberry pi has 40 gpio pins that connect to sensors lights motors and other devices.
Raspberry pi gpio voltage levels. Hence if connecting these pins to 5v or higher without level conversion circuitry is a bad idea and will damage your pi. There are three gpio banks on bcm2835. If you apply 5v to a gpio pin you risk permanently damaging it. The first 26 pins are the same as p1 on the a b boards with the remaining 14 pins providing additional gpio and ground pins and an eeprom id feature for auto configuration with add on hat boards.
The raspberry pi gpio pins work with 3 3v logic levels and are not 5v tolerant. These pins provide constant power when you turn on the raspberry pi and these are not programmable by any means whatsoever. However you can easily use 5v sensors or modules if you convert their 5v outputs to 3 3v using a level shifter. The raspberry pi model a and b boards and the pi 2 model b have a 40 pin header marked j8 arranged as 2x20 pins.
The outputs do not have much current capability but you can drive leds or other low current devices. The raspberry pi gpio s use 3 3v logic levels and are directly connected to the microprocessor chip. The logic level threshold on the arduino is however lower than 3 3v. On raspberry pi all gpio banks are supplied from 3 3v.
6 9 14 20 25 30 34 and 39 provide the ground connection. So as the raspberry pi gpio can be safely handled it is reasonable to suggest that it can therefore be safely connected to a voltage greater than 3 3 volts just as long as it is connected via a suitably high resistance to limit input current. Connection of a gpio to a voltage higher than 3 3v will likely destroy the gpio block within the soc. The raspberry pi provides general purpose digital input output pins called gpio pins that you can use for reading digital logic signals or for outputting digital logic levels.
A selection of pins from bank 0 is available on the p1 header on raspberry pi. Of course to use them effectively and safely you need to know their voltage levels and drive capability and. The raspberry pi gpio pins including the tx and rx serial port pins are not 5v compatible therefore we must ensure the arduino does not deliver the full 5v to the pi.