{"id":14122,"date":"2016-02-03T11:56:04","date_gmt":"2016-02-03T10:56:04","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=14122"},"modified":"2016-02-03T11:56:04","modified_gmt":"2016-02-03T10:56:04","slug":"read-analog-sensors-with-the-mcp3008-and-gpio-zero-on-the-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=14122","title":{"rendered":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png?resize=560%2C640\" alt=\"\" width=\"560\" height=\"640\" \/><\/p>\n<p>Alex Eames <a href=\"https:\/\/www.recantha.co.uk\/blog\/?p=14105\" target=\"_blank\">recently announced<\/a>\u00a0a new reward level for his <a href=\"https:\/\/www.kickstarter.com\/projects\/raspitv\/raspio-pro-hat-protect-position-raspberry-pi-ports\" target=\"_blank\">RasPiO Pro Hat Kickstarter<\/a> &#8211; it includes an MCP3008 analog-to-digital chip and an analog temperature sensor (TMP36). Alex has now written a tutorial to show you how to use the chip and sensor to display temperature readings. The tutorial features the use of the <a href=\"http:\/\/pythonhosted.org\/gpiozero\/\" target=\"_blank\">GPIO Zero library<\/a>\u00a0and I think this is the first practical example of the MCP3008 functionality I&#8217;ve seen, so it&#8217;s well worth taking a look. <a href=\"http:\/\/raspi.tv\/2016\/using-mcp3008-to-measure-temperature-with-gpio-zero-and-raspio-pro-hat\" target=\"_blank\">Read the tutorial and see the code here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alex Eames recently announced\u00a0a new reward level for his RasPiO Pro Hat Kickstarter &#8211; it includes an MCP3008 analog-to-digital chip and an analog temperature sensor (TMP36). Alex has now written a tutorial to show you how to use the chip&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=14122\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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},"jetpack_post_was_ever_published":false},"categories":[13,20,39,62,51],"tags":[],"class_list":["post-14122","post","type-post","status-publish","format-standard","hentry","category-crowdfunding","category-gpio-boards","category-programming","category-sensors","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - 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=14122\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Alex Eames recently announced\u00a0a new reward level for his RasPiO Pro Hat Kickstarter &#8211; it includes an MCP3008 analog-to-digital chip and an analog temperature sensor (TMP36). Alex has now written a tutorial to show you how to use the chip&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=14122\" \/>\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=\"2016-02-03T10:56:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png\" \/>\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=14122#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi\",\"datePublished\":\"2016-02-03T10:56:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122\"},\"wordCount\":102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/raspi.tv\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/ProHat-MCP3008-TMP36c.png\",\"articleSection\":[\"Crowdfunding\",\"GPIO boards\",\"Programming\",\"Sensors\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122\",\"name\":\"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/raspi.tv\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/ProHat-MCP3008-TMP36c.png\",\"datePublished\":\"2016-02-03T10:56:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#primaryimage\",\"url\":\"http:\\\/\\\/raspi.tv\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/ProHat-MCP3008-TMP36c.png\",\"contentUrl\":\"http:\\\/\\\/raspi.tv\\\/wp-content\\\/uploads\\\/2016\\\/02\\\/ProHat-MCP3008-TMP36c.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=14122#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi\"}]},{\"@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:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"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":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - 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=14122","og_locale":"en_US","og_type":"article","og_title":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - Raspberry Pi Pod","og_description":"Alex Eames recently announced\u00a0a new reward level for his RasPiO Pro Hat Kickstarter &#8211; it includes an MCP3008 analog-to-digital chip and an analog temperature sensor (TMP36). Alex has now written a tutorial to show you how to use the chip&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=14122","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2016-02-03T10:56:04+00:00","og_image":[{"url":"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png","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=14122#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi","datePublished":"2016-02-03T10:56:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122"},"wordCount":102,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#primaryimage"},"thumbnailUrl":"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png","articleSection":["Crowdfunding","GPIO boards","Programming","Sensors","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=14122#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122","url":"https:\/\/www.recantha.co.uk\/blog\/?p=14122","name":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#primaryimage"},"thumbnailUrl":"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png","datePublished":"2016-02-03T10:56:04+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=14122"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#primaryimage","url":"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png","contentUrl":"http:\/\/raspi.tv\/wp-content\/uploads\/2016\/02\/ProHat-MCP3008-TMP36c.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=14122#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Read analog sensors with the MCP3008 and GPIO Zero on the Raspberry Pi"}]},{"@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:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","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-3FM","jetpack-related-posts":[{"id":14105,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14105","url_meta":{"origin":14122,"position":0},"title":"RasPiO Pro Hat &#8211; new reward level launched for Raspberry Pi add-on board","author":"Michael Horne","date":"27 January 2016","format":false,"excerpt":"Alex Eames has just announced\u00a0a new reward level for his RasPiO Pro Hat Kickstarter and I just thought I'd bring it to your attention. In case you missed it, the Pro Hat is a great new plug-in board for the Raspberry Pi that breaks out all the GPIO pins to\u2026","rel":"","context":"In &quot;Crowdfunding&quot;","block_context":{"text":"Crowdfunding","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=13"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ksr-ugc.imgix.net\/assets\/005\/173\/232\/f70a581c306ce0d7a02d290dbc911f6d_original.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ksr-ugc.imgix.net\/assets\/005\/173\/232\/f70a581c306ce0d7a02d290dbc911f6d_original.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/ksr-ugc.imgix.net\/assets\/005\/173\/232\/f70a581c306ce0d7a02d290dbc911f6d_original.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":14709,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14709","url_meta":{"origin":14122,"position":1},"title":"Analog adventures &#8211; the RasPiO Analog Zero &#8211; a quick preview","author":"Michael Horne","date":"9 May 2016","format":false,"excerpt":"Today has been all about trying new things. I tried out a great UPS board from Germany and then moved on to a new board from Alex Eames over at RasPiO. The Analog Zero is a Pi Zero-sized board that will work with any 40-pin Raspberry Pi. It comes as\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\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/05\/analogzerowideshot.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/05\/analogzerowideshot.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/05\/analogzerowideshot.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/05\/analogzerowideshot.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":14772,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14772","url_meta":{"origin":14122,"position":2},"title":"Use an analog to digital converter to get analog sensor readings on the Raspberry Pi","author":"Michael Horne","date":"18 May 2016","format":false,"excerpt":"Gus over at PiMyLifeUp\u00a0has done a great tutorial on using the \"famous\" MCP3008 analog-to-digital converter chip to read values from a light-dependent resistor. He goes through wiring it up and programming it using the spidev Python library. I prefer the GPIO Zero way of doing things now, but Gus' way\u2026","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pimylifeup.com\/wp-content\/uploads\/2016\/05\/Raspberry-Pi-ADC.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pimylifeup.com\/wp-content\/uploads\/2016\/05\/Raspberry-Pi-ADC.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/pimylifeup.com\/wp-content\/uploads\/2016\/05\/Raspberry-Pi-ADC.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/pimylifeup.com\/wp-content\/uploads\/2016\/05\/Raspberry-Pi-ADC.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6552,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6552","url_meta":{"origin":14122,"position":3},"title":"Read analog sensors on the #RaspberryPi with the MCP3008","author":"Michael Horne","date":"20 October 2013","format":false,"excerpt":"\u00a0 Matt over at Raspberry Pi Spy has done a great little tutorial that uses an MCP3008 analog-to-digital convertor to read a light-dependant resistor and TMP36 temperature sensor. He's kept it simple and clear and it's well worth a look if you want to read analog inputs. Read about it\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":"","width":0,"height":0},"classes":[]},{"id":9706,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=9706","url_meta":{"origin":14122,"position":4},"title":"The RasPiO Analog board for the #RaspberryPi","author":"Michael Horne","date":"19 May 2014","format":false,"excerpt":"Alex Eames (from RasPi.TV) gave me one of his new boards to take a look at. It's called the RasPiO Analog. It gives you the ability to add analog inputs to your Raspberry Pi.\u00a0It's essentially a GPIO plugin prototyping board with an MCP3008 analog-to-digital converter chip onboard. It has 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\/lh5.googleusercontent.com\/-2Er2RUdpE6k\/U3kSmlKMc-I\/AAAAAAAANY0\/hsODdwxFgkM\/w649-h865-no\/20140511_205500.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/lh5.googleusercontent.com\/-2Er2RUdpE6k\/U3kSmlKMc-I\/AAAAAAAANY0\/hsODdwxFgkM\/w649-h865-no\/20140511_205500.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/lh5.googleusercontent.com\/-2Er2RUdpE6k\/U3kSmlKMc-I\/AAAAAAAANY0\/hsODdwxFgkM\/w649-h865-no\/20140511_205500.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":20857,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=20857","url_meta":{"origin":14122,"position":5},"title":"Use an MCP3008 analog to digital chip to expand the Raspberry Pi Pico&#8217;s analog reading capabilities","author":"Michael Horne","date":"13 February 2021","format":false,"excerpt":"Back in 2013, I covered Matt Hawkins' excellent post about using an MCP3008 analog-to-digital chip with a Raspberry Pi to read analog values, something that the Pi was previously incapable of doing. Now, we have the Raspberry Pi Pico which gives us the ability to read analog signals using its\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/mcp3008-loopback_bb.png?fit=876%2C666&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/mcp3008-loopback_bb.png?fit=876%2C666&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/mcp3008-loopback_bb.png?fit=876%2C666&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2021\/02\/mcp3008-loopback_bb.png?fit=876%2C666&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14122","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=14122"}],"version-history":[{"count":1,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14122\/revisions"}],"predecessor-version":[{"id":14123,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14122\/revisions\/14123"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}