{"id":10315,"date":"2013-07-15T01:00:25","date_gmt":"2013-07-15T11:00:25","guid":{"rendered":"http:\/\/darkerview.com\/wordpress\/?p=10315"},"modified":"2013-07-15T10:34:37","modified_gmt":"2013-07-15T20:34:37","slug":"raspberry-pi-python-and-spi","status":"publish","type":"post","link":"https:\/\/darkerview.com\/wordpress\/?p=10315","title":{"rendered":"Raspberry Pi, Python and SPI"},"content":{"rendered":"<p>It has only taken me much of the day to get it working.  Hours spent reading documentation, searching for postings on the same issue, ripping up the code and trying completely different approaches.  Hours of frustration mixed with some solid learning.<\/p>\n<p>Victory was seen in three bytes.<\/p>\n<p>Three bytes shown on the logic analyzer display and in the Python console window.  The same three bytes&#8230;  The hardware and software agreed.  The serial timing also looked great, chip select going low when it was supposed to, a 500kHz clock, all of the edges just as the data sheet specified.<\/p>\n<p>Victory is connecting an eight channel <a href=\"http:\/\/www.microchip.com\/wwwproducts\/Devices.aspx?dDocName=en010530\" target=\"_blank\">A\/D converter IC<\/a> to a <a href=\"http:\/\/www.raspberrypi.org\/\" target=\"_blank\">Raspberry Pi<\/a> computer with the hardware SPI module.  Four channels for voltages, four channels for temperatures.  The project is coming along nicely.  Will talk about what in a later posting.  Meantime my thanks to <a href=\"http:\/\/eleflex.blogspot.com\/\" target=\"_blank\">Connor Wolf<\/a>, <a href=\"http:\/\/louisthiery.com\/spi-python-hardware-spi-for-raspi\/\" target=\"_blank\">Louis Thiery<\/a>, and <a href=\"http:\/\/www.brianhensley.net\/2012\/07\/getting-spi-working-on-raspberry-pi.html\" target=\"_blank\">Brian Hensley<\/a>.  It was their method and SPI code that worked!<\/p>\n<p>A small victory, another step forward, this is what hackers and makers do&#8230;<\/p>\n<figure id=\"attachment_10316\" aria-describedby=\"caption-attachment-10316\" style=\"width: 600px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/darkerview.com\/wordpress\/?attachment_id=10316\" rel=\"attachment wp-att-10316\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/darkerview.com\/wordpress\/wp-content\/uploads\/2013\/07\/CF55-25-13195-DC.jpg\" alt=\"Raspberry Pi Data Acquisition \" width=\"600\" height=\"900\" class=\"size-full wp-image-10316\" \/><\/a><figcaption id=\"caption-attachment-10316\" class=\"wp-caption-text\">A Raspberry Pi computer set up with an A\/D daughterboard<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It has only taken me much of the day to get it working. Hours spent reading documentation, searching for postings on the same issue, ripping up the code and trying completely different approaches. Hours of frustration mixed with some solid learning. Victory was seen in three bytes. Three bytes shown on the logic analyzer display &hellip; <a href=\"https:\/\/darkerview.com\/wordpress\/?p=10315\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi, Python and SPI&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[253],"tags":[1252,1253,1251,1255,1250,1254],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10315"}],"collection":[{"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10315"}],"version-history":[{"count":5,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10315\/revisions"}],"predecessor-version":[{"id":10323,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10315\/revisions\/10323"}],"wp:attachment":[{"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkerview.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}