{"id":1792,"date":"2013-02-03T06:35:27","date_gmt":"2013-02-03T06:35:27","guid":{"rendered":"http:\/\/178.62.14.192\/?p=1792"},"modified":"2013-02-03T06:35:27","modified_gmt":"2013-02-03T06:35:27","slug":"simple-adc-with-the-raspberrypi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=1792","title":{"rendered":"Simple ADC with the #RaspberryPi"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/scruss.com\/blog\/2013\/02\/02\/simple-adc-with-the-raspberry-pi\/comment-page-1\/#comment-244140\"><img src='\/blog\/wp-content\/uploads\/2013\/02\/IMG_0443-1024x7681.jpg' alt='' \/><\/a><\/p>\n<p>Stewart Russell at &#8220;We Saw a Chicken&#8221; has done a very comprehensive tutorial on using a simple analog to digital converter (ADC) via SPI to read a temperature sensor with Python. It is based on the work for the <a href=\"http:\/\/178.62.14.192\/?p=1423\">Quite Rubbish Clock<\/a> featured on this blog recently.<\/p>\n<p><a href=\"http:\/\/scruss.com\/blog\/2013\/02\/02\/simple-adc-with-the-raspberry-pi\/comment-page-1\/#comment-244140\">Read Stewart&#8217;s article here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stewart Russell at &#8220;We Saw a Chicken&#8221; has done a very comprehensive tutorial on using a simple analog to digital converter (ADC) via SPI to read a temperature sensor with Python. It is based on the work for the Quite&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[51],"tags":[],"class_list":["post-1792","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple ADC with the #RaspberryPi - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple ADC with the #RaspberryPi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Stewart Russell at &#8220;We Saw a Chicken&#8221; has done a very comprehensive tutorial on using a simple analog to digital converter (ADC) via SPI to read a temperature sensor with Python. It is based on the work for the Quite&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-03T06:35:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/IMG_0443-1024x7681.jpg\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Simple ADC with the #RaspberryPi\",\"datePublished\":\"2013-02-03T06:35:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\"},\"wordCount\":57,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=1792#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\",\"name\":\"Simple ADC with the #RaspberryPi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-02-03T06:35:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=1792\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=1792#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple ADC with the #RaspberryPi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simple ADC with the #RaspberryPi - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=1792","og_locale":"en_US","og_type":"article","og_title":"Simple ADC with the #RaspberryPi - Raspberry Pi Pod","og_description":"Stewart Russell at &#8220;We Saw a Chicken&#8221; has done a very comprehensive tutorial on using a simple analog to digital converter (ADC) via SPI to read a temperature sensor with Python. It is based on the work for the Quite&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=1792","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-02-03T06:35:27+00:00","og_image":[{"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/IMG_0443-1024x7681.jpg","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Simple ADC with the #RaspberryPi","datePublished":"2013-02-03T06:35:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792"},"wordCount":57,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=1792#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792","url":"https:\/\/www.recantha.co.uk\/blog\/?p=1792","name":"Simple ADC with the #RaspberryPi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-02-03T06:35:27+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=1792"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=1792#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Simple ADC with the #RaspberryPi"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-sU","jetpack-related-posts":[{"id":14907,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14907","url_meta":{"origin":1792,"position":0},"title":"New Enviro pHAT for the Raspberry Pi launched by Pimoroni","author":"Michael Horne","date":"16 June 2016","format":false,"excerpt":"Teased in a video stream some weeks ago, the Enviro pHAT has now been launched by Pimoroni. It includes the following: BMP280 temperature\/pressure sensor TCS3472 light and RGB colour sensor Two LEDs for illumination LSM303D accelerometer\/magnetometer sensor ADS1015 4-channel analog to digital converter\u00a0(ADC) As well as the included sensors, the\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/Enviro_pHAT_1_of_2_1024x1024.JPG?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/Enviro_pHAT_1_of_2_1024x1024.JPG?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/Enviro_pHAT_1_of_2_1024x1024.JPG?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/Enviro_pHAT_1_of_2_1024x1024.JPG?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":886,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=886","url_meta":{"origin":1792,"position":1},"title":"Frustration with the MCP3008 ADC","author":"Michael Horne","date":"1 December 2012","format":false,"excerpt":"I don't often vent my spleen on my blog. This time, however, my frustration has boiled over. I've been trying to get an analog to digital converter working with my Pi. Now, I should say going into this I'm not feeling my best at the moment, and my patience is\u2026","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"\/blog\/wp-content\/uploads\/2012\/12\/twist1.jpg","width":350,"height":200},"classes":[]},{"id":848,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=848","url_meta":{"origin":1792,"position":2},"title":"Gasser &#8211; mobile gas sensor box","author":"Michael Horne","date":"27 November 2012","format":false,"excerpt":"An interesting project which mashes a Pi, a battery, an ADC and a sensor together to create a standalone gas sensing gadget. WikiLabo | Hardware \/ Gasser.","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"\/blog\/wp-content\/uploads\/2012\/11\/gasser-v21.jpg","width":350,"height":200},"classes":[]},{"id":1403,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1403","url_meta":{"origin":1792,"position":3},"title":"Accessories and Boards and Cases (oh my!) for #RaspberryPi &#8211; Round-up","author":"Michael Horne","date":"20 January 2013","format":false,"excerpt":"This is just a round-up of boards and items I've found recently and some exciting news for those of us who like to shop at Maplin. Let's start with Maplin. On their website, they are currently showing out-of-stock on three items of interest. I daresay they'll be back in stock\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.maplin.co.uk\/images\/v3\/maplin-logo.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":11045,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11045","url_meta":{"origin":1792,"position":4},"title":"Video tutorial: read analog inputs with the Raspberry Pi","author":"Michael Horne","date":"21 September 2014","format":false,"excerpt":"Video blogger Fraser May has done a great, very in-depth video, on analog inputs and reading them with the Pi using an ADC chip. Well worth a watch, though at over 45 minutes it's possibly too long for many people.","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10838,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=10838","url_meta":{"origin":1792,"position":5},"title":"French-language site for Raspberry Pi and Arduino","author":"Michael Horne","date":"22 August 2014","format":false,"excerpt":"As you know, I normally only cover English news and projects on the blog. This isn't due to any xenophobic tendencies, I'm just not very good at other languages. However, a site has just come to my attention that might be interesting for any of you French speakers out there.\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.geekofyou.fr\/wp-content\/uploads\/2014\/08\/thermometre_raspberry.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1792"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1792\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}