Raspberry Pi Zero Gpio
March 17 2016 march 17 2016 dbakevlar gpio raspberry pi rpi zero.
Raspberry pi zero gpio. Although the raspberry pi 3 is now available many people are still interested in it s cheaper smaller version the raspberry pi zero. To install on raspbian lite or other operating systems including for pcs using remote gpio see the installing chapter. The most intriguing difference for hackers and makers is that the pi zero does not come with the soldered gpio header. These pins offer connections to the system on chip soc which can be used to communicate and control with electronic.
The gpio is an important part of the raspberry pi more so for the pi zero. The gpio zero library is made to work on all raspberry pi models and is compatible with both python 2 and python 3. How to use gpio zero. From gpiozero import button led from signal import pause btn button 2 led led 17 led source btn values pause.
A simple gpio zero python script looks like this. The comprehensive gpio pinout guide for the raspberry pi. This version isn t just smaller it also requires a wi fi dongle for internet access one of the new great features on the 3 model. It also includes dozens of pinouts for raspberry pi add on boards hats and phats.
A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w. A powerful feature of the raspberry pi is the row of gpio general purpose input output pins along the top edge of the board. The rpi gpio library is bare bones and provides all the essential functionality to do simple things with the pi s gpio pins set up pins as inputs or outputs read inputs set outputs high or low and so on. 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 pi s gpio interfaces.
Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header.