{"id":1801,"date":"2019-10-10T22:16:17","date_gmt":"2019-10-10T14:16:17","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=1801"},"modified":"2020-05-12T13:40:28","modified_gmt":"2020-05-12T05:40:28","slug":"how-to-enable-spi-master-driver-in-raspbian-using-raspi-config","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/how-to-enable-spi-master-driver-in-raspbian-using-raspi-config\/","title":{"rendered":"How to enable SPI master driver in Raspbian using raspi-config"},"content":{"rendered":"<p>Your <a href=\"https:\/\/www.amazon.com\/s\/ref=as_li_ss_tl?k=raspberry+pi&ref=nb_sb_noss_2&linkCode=ll2&tag=clivsperswebs-20&linkId=0dbe16f044ece89756babc0e1d3042ac\" rel=\"noopener\" target=\"_blank\">Raspberry Pi<\/a> has the ability to communicate with hardware using the Serial Peripheral Interface specification. However, this master driver is disabled by default.<\/p>\n<p>If you want to use the SPI master driver to communicate with devices, then you will need to enable it.<\/p>\n<p>Let's look at how we can enable the SPI master driver using the Raspberry Pi Software Configuration Tool (<code>raspi-config<\/code>).<\/p>\n<p>If you are using Raspbian (for example Raspbian Buster) with a windowing system, then you will click on the terminal program icon to start a terminal program:<br \/>\n<img decoding=\"async\" width=\"363\" height=\"171\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Raspbian-Buster-20190710-taskbar-with-terminal-program-icon-hovered.gif\" alt=\"Raspbian Buster 20190710 taskbar with terminal program icon hovered\" class=\"aligncenter size-full wp-image-1712\" \/><\/p>\n<p>Once your terminal program had started, type in the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo raspi-config\r\n<\/pre>\n<p>When you do so, the Raspberry Pi Software Configuration Tool will start in your terminal program:<br \/>\n<img decoding=\"async\" width=\"643\" height=\"315\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-just-started-up.gif\" alt=\"20191010 screenshot of raspi-config just started up\" class=\"aligncenter size-full wp-image-1803\" \/><\/p>\n<p>Given that, select <strong>Interfacing Options<\/strong>:<br \/>\n<img decoding=\"async\" width=\"643\" height=\"315\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-with-Interfacing-Option-being-selected.gif\" alt=\"20191010 screenshot of raspi-config with Interfacing Option being selected\" class=\"aligncenter size-full wp-image-1804\" \/><\/p>\n<p>Next, select <strong>SPI<\/strong>:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-with-SPI-option-being-selected.gif\" alt=\"20191010 screenshot of raspi-config with SPI option being selected\" width=\"643\" height=\"315\" class=\"aligncenter size-full wp-image-1805\" \/><\/p>\n<p>After that, <code>raspi-config<\/code> prompts for confirmation. Select <strong>Yes<\/strong> to confirm your selection:<br \/>\n<img decoding=\"async\" width=\"492\" height=\"356\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-with-confirmation-of-SPI-selection-and-Yes-selected.gif\" alt=\"20191010 screenshot of raspi-config with confirmation of SPI selection and Yes selected\" class=\"aligncenter size-full wp-image-1806\" \/><\/p>\n<p>When you had done so, <code>raspi-config<\/code> informs you that SPI is configured:<br \/>\n<img decoding=\"async\" width=\"492\" height=\"356\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-confirming-that-SPI-interface-had-been-enabled.gif\" alt=\"20191010 screenshot of raspi-config confirming that SPI interface had been enabled\" class=\"aligncenter size-full wp-image-1807\" \/> <\/p>\n<p>After you had chose <strong>Ok<\/strong>, raspi-config brings you to the first screen. Select Finish to exit <strong>raspi-config<\/strong>:<br \/>\n<img decoding=\"async\" width=\"644\" height=\"311\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/20191010-screenshot-of-raspi-config-at-starting-screen-with-Finish-selected.gif\" alt=\"20191010 screenshot of raspi-config at starting screen with Finish selected\" class=\"aligncenter size-full wp-image-1808\" \/><\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-t3\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-t3&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-t3&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1801&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>Your <a href=\"https:\/\/www.amazon.com\/s\/ref=as_li_ss_tl?k=raspberry+pi&#038;ref=nb_sb_noss_2&#038;linkCode=ll2&#038;tag=clivsperswebs-20&#038;linkId=0dbe16f044ece89756babc0e1d3042ac\" rel=\"noopener\" target=\"_blank\">Raspberry Pi<\/a> has the ability to communicate with hardware using the Serial Peripheral Interface specification. However, this master driver is disabled by default.<\/p>\n<p>If you want to use the SPI master driver to communicate with devices, then you will need to enable it.<\/p>\n<p>Let&#8217;s look at how we can enable the SPI master driver using the Raspberry Pi Software Configuration Tool (<code>raspi-config<\/code>).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[484,240,412,596,438],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-t3","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/1801"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=1801"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/1801\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}