{"id":170,"date":"2018-11-14T23:47:13","date_gmt":"2018-11-15T07:47:13","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=170"},"modified":"2019-09-24T22:43:36","modified_gmt":"2019-09-25T05:43:36","slug":"pinouts","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspberrypi\/pinouts\/","title":{"rendered":"Pinouts"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">RASPBERRY PI 2, 3 &amp; ZERO<\/h2>\n\n\n\n<p>Connecting devices to the Raspberry Pi Broadcom processor using the 40 pin GPIO. The pins can be configured and set up to interface with other devices.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft is-resized\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"212\" height=\"374\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2018\/11\/RaspberryPi-GPIO.png\" alt=\"\" class=\"wp-image-171\" style=\"height: 35vmax;width: 20vmax\"><\/figure><\/figure><\/div>\n\n\n\n<p style=\"background-color:#fffdc3\" class=\"has-text-color has-background has-very-dark-gray-color\">GPIO (General Purpose Input Output) connections used to send&nbsp; signals to devices such as&nbsp;on and off to a LED.<\/p>\n\n\n\n<p style=\"background-color:#8fba65\" class=\"has-background\">I2C (<a href=\"https:\/\/en.wikipedia.org\/wiki\/I%C2%B2C\">Inter-Integrated Circuit<\/a>) pins connect and talk to hardware modules that support I2C Protocol. Typically using 2 pins.<\/p>\n\n\n\n<p style=\"background-color:#e39156\" class=\"has-background\">SPI (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Serial_Peripheral_Interface_Bus\">Serial Peripheral Interface Bus<\/a>) pins connect to devices using SPI protocol.<\/p>\n\n\n\n<p style=\"background-color:#c9e6f9\" class=\"has-background\">UART (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Universal_asynchronous_receiver\/transmitter\">Universal asynchronous receiver\/transmitter<\/a>) are the serial pins used to communicate with other devices.<\/p>\n\n\n\n<p><strong>DNC<\/strong>&nbsp;do not connect, ID_SD and ID_SC pins are reserved for EEPROM ID that identifies attached pi hat board<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-vivid-red-background-color\">3.3V\/5V power pins&nbsp;provide constant voltage from the power bus.<\/p>\n\n\n\n<p class=\"has-text-color has-background has-very-light-gray-color has-very-dark-gray-background-color\"><strong>GND&nbsp;<\/strong>are the pins connected to ground reference for your devices. The ground pins&nbsp;are all connected to the same ground bus.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><figure><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"413\" scale=\"0\" class=\"alignnone size-full wp-image-198\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2018\/11\/RaspberryPi-GPIO-Schematic.png\" alt=\"\"><\/figure><\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"281\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/09\/RaspberryPi_Pin1_Pin40.png\" alt=\"\" class=\"wp-image-1751\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Configuring and using the Pins<\/strong><\/h2>\n\n\n\n<p>This section covers how to setup the pins so you can use them on the Raspberry Pi using Raspbian operating system(OS).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"GPIO\"><strong>Configuring GPIO<\/strong><\/h2>\n\n\n\n<p>To get the latest version packages of Raspbian and GPIO update on your Pi run the following commands<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#If you don\u2019t have GPIO installed run the command:\nsudo apt-get install rpi.gpio<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"I2C\"><strong>Configuring Raspberry Pi I2C&nbsp;&nbsp;<\/strong><\/h2>\n\n\n\n<p>Set up the I2C pins on the Raspi-Config tool by entering the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo raspi-config<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"318\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2018\/11\/raspi-config-2018.png\" alt=\"\" class=\"wp-image-192\"\/><\/figure><\/div>\n\n\n\n<p>Navigate to Interfacing options and then enable I2C. An alert will indicate that I2C was enabled.<\/p>\n\n\n\n<p>To verify modules were successfully enabled enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">lsmod | grep i2c<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"295\" height=\"91\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2018\/11\/grep-i2c.png\" alt=\"\" class=\"wp-image-193\"\/><\/figure>\n\n\n\n<p>The command will return any modules that are running starting with i2c.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"SPI\"><strong>Configuring Raspberry Pi SPI<\/strong><\/h2>\n\n\n\n<p>Configure the Raspberry Pi SPI go to the Raspi-Config tool by entering the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo raspi-config<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"336\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2018\/11\/raspi-config-SPI-2018.png\" alt=\"\" class=\"wp-image-195\"\/><\/figure><\/div>\n\n\n\n<p>Once the config tool has loaded navigate to advanced options and then to SPI. Enable SPI which will require a reboot. Raspi-Config tool will&nbsp;ask if it is to be loaded by default. Select yes if using it every time the Pi boots up.&nbsp;To check that SPI is successfully up and running use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">lsmod | grep spi<\/pre>\n\n\n\n<p>This command will return any modules that are running starting with SPI. It should return something like:<\/p>\n\n\n\n<p>spidev&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7034 0<br>spi_bcm2835 &nbsp;&nbsp;7424 0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"UART\"><strong>Configuring Raspberry Pi UART<\/strong><\/h2>\n\n\n\n<p>Under Development&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RASPBERRY PI 2, 3 &amp; ZERO Connecting devices to the Raspberry Pi Broadcom processor using the 40 pin GPIO. The pins can be configured and set up to interface with other devices. GPIO (General Purpose Input Output) connections used to send&nbsp; signals to devices such as&nbsp;on and off to a LED. I2C (Inter-Integrated Circuit) pins &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspberrypi\/pinouts\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Pinouts&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":151,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-170","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/170\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/151"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}