Raspberry pi 3 b gpio diagram. The comprehensive gpio pinout guide for the raspberry pi. These are called general purpose input output pins or gpio pins. The raspberry pi is a series of small single board computers developed in the united kingdom by the raspberry pi foundation to promote teaching of basic computer science in schools and in developing countries. The raspberry pis gpio header provides power and general purpose input output pins.
I am now trying to extend it to do the i2c interface and was trying to setup the defines when i noticed the pwm defines were not what i was expecting. Import rpigpio as gpio. These properties are set for the gpio block as a whole not on a pin by pin basis. The led will initially be off because normally the gpio pins are initialised as inputs at power on time.
The raspberry pis gpio pins are quite versatile and you can modify many of their characteristics from software. Gordon thanks for you wiring pi code i have used it with jni to get my java code interfacing with gpio pins. The original model became far more popular than anticipated selling outside its target market for uses such as roboticsit does not include peripherals such as keyboards and mice and. The first line tells the python interpreter the thing that runs the python code that it will be using a library that will tell it how to work with the raspberry pis gpio pins.
The header either has 26 or 40 pins depending on model. Adeept new ultimate starter learning kit for raspberry pi 3 2 model bb python adxl345 gpio cable dc motor. These pins allow your rpi to be connected to the external world. 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.
Do check against the wiring diagram to work out which pin on the connector to use.