This is a representation of the gpio connector as viewed looking at the board from above. Any of the gpio pins can be designated in software as an input or output pin and used for a wide range of purposes.
Fd 8119 Raspberry Pi Potentiometer Wiring Diagram
Raspberry pi gpio wiring diagram. As well as supplying power gnd 33v and 5v all the gpio pins can be used as either digital inputs or outputs. The following tables give the mapping of the raspberry pi gpio pins to the p1 gpio connector in relation to the pin numbers and the physical location on the connector. It also includes dozens of pinouts for raspberry pi add on boards hats and phats. A quick glance at the raspberry pi gpio examples shows that there are dozens of programming language choices. The comprehensive gpio pinout guide for the raspberry pi. A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w.
The diagram below show gpio pinouts used on different models of the raspberry pi. The earlier revisions of the raspberry pi were 26 pin based while the newer models are 40 pin. Ive tried to imitate the below diagram for my raspberry pi using gpio 0 without a receiver. The diagram seems to show a resistor going to ground and an emitter going to ground as well. Programming in what language. I know nothing about electronics as you can tell but i wired it together using this diagram.
Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header. Support pinoutxyz on patreon. Python and c using the wiringpi library. The pins labelled scl and sda can be used for i2c. Wiring pi gpio interface library for the raspberry pi. This gpio pinout is designed to be both a quick and interactive reference to the raspberry pi gpio pins plus a comprehensive guide to your raspberry pis gpio interfaces.
Driving the raspberry pis io lines requires a bit of programming. Weve pared that list down and ended up with two really solid easy tools for driving io.