{"id":13787,"date":"2015-11-27T23:54:52","date_gmt":"2015-11-27T22:54:52","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=13787"},"modified":"2015-11-28T08:35:43","modified_gmt":"2015-11-28T07:35:43","slug":"gpio-zero-for-the-raspberry-pi-by-george-i-think-ive-got-it","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=13787","title":{"rendered":"GPIO Zero for the Raspberry Pi &#8211; by George, I think I&#8217;ve got it!"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/i0.wp.com\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png?resize=500%2C369&#038;ssl=1\" alt=\"\" width=\"500\" height=\"369\" \/><\/p>\n<p>When Ben Nuttall announced his <a href=\"https:\/\/www.raspberrypi.org\/blog\/gpio-zero-a-friendly-python-api-for-physical-computing\/\" target=\"_blank\">GPIO Zero<\/a>\u00a0Python library a few weeks ago, I was very sceptical. It seemed to me to be dumbing-down the flexibility of RPi.GPIO. I didn&#8217;t like it. The truth is, I&#8217;d got so comfortable (and, perhaps, complacent) with RPi.GPIO that I was resistant to the idea that Python could be used in a different way to control the GPIO pins of the Pi.<\/p>\n<p>However, <a href=\"https:\/\/twitter.com\/CatLamin\" target=\"_blank\">Cat Lamin<\/a>, who came up with the idea of <a href=\"https:\/\/codingevening.wordpress.com\/\" target=\"_blank\">Coding Evenings<\/a>, asked on Twitter whether someone could help her to understand <a href=\"http:\/\/pythonhosted.org\/gpiozero\/\" target=\"_blank\">GPIO Zero<\/a> and whether it could be used to teach slightly younger children (year 6, I believe it was) about the basics of Python in an exciting way where they could interact with the real world. So, spurred on by Tim Richardson (who had attended a Peterborough Coding Evening where Ben spoke about the new library), I\u00a0decided to take the plunge. I took the robot I&#8217;d built using<a href=\"http:\/\/camjam.me\/edukit\"> CamJam EduKit 3<\/a>\u00a0and installed GPIO Zero on it. I then looked at <a href=\"http:\/\/pythonhosted.org\/gpiozero\/\" target=\"_blank\">the documentation for the library<\/a> and within about half an hour (some of which was me being\u00a0<em>really<\/em> stupid)\u00a0I had a working robot with very few lines of code:<\/p>\n<pre>from gpiozero import Robot\r\nimport time\r\nrobot = Robot(right=(10,9), left(8,7))\r\n\r\nrobot.forward()\r\ntime.sleep(1)\r\nrobot.left()\r\ntime.sleep(1)\r\nrobot.right()\r\ntime.sleep(1)\r\nrobot.backward()\r\ntime.sleep(1)\r\nrobot.stop()<\/pre>\n<p>The above is a\u00a0simple &#8216;demo&#8217; script that moves the robot in all four directions and then stops it. It&#8217;s so blindingly easy!<\/p>\n<p>RPi.GPIO still has its place (in fact, it&#8217;s what GPIO Zero is built on) if you want to do complicated things or if you want to drill down into the lower level stuff. But for just doing things like interacting with simple electrical components, and doing it in a clear, concise manner, GPIO Zero is tough to beat.<\/p>\n<p>From an education point of view, it&#8217;s got great possibilities. If a child is moving from a visual programming language like Scratch to text-based programming in Python, GPIO Zero is\u00a0a healthy stepping-stone.<\/p>\n<p><em>So, I guess that teaches me a valuable lesson &#8211; don&#8217;t jump to conclusions if you haven&#8217;t tried something!<\/em><\/p>\n<p>If you&#8217;d like to install and try out the library yourself, <a href=\"http:\/\/pythonhosted.org\/gpiozero\/\" target=\"_blank\">go to this page and follow the instructions<\/a>. If you want a concise presentation showing you what you can do with it at a basic level, check out the SpeakerDeck slides below (these are what Ben used at the Peterborough Coding Evening):<\/p>\n<p><script class=\"speakerdeck-embed\" src=\"\/\/speakerdeck.com\/assets\/embed.js\" async=\"\" data-id=\"edae9a49860040a593cb17c27ab5a9c6\" data-ratio=\"1.78086956521739\"><\/script><\/p>\n<p>I really commend Ben and <a href=\"https:\/\/twitter.com\/waveform80\" target=\"_blank\">Dave Jones<\/a>\u00a0for the development of this new library &#8211; it&#8217;s easy-to-use and has a commendable clarity. There are some exciting developments coming up in future versions, too, which is sure to make it more widely used. The future is bright for GPIO Zero.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When Ben Nuttall announced his GPIO Zero\u00a0Python library a few weeks ago, I was very sceptical. It seemed to me to be dumbing-down the flexibility of RPi.GPIO. I didn&#8217;t like it. The truth is, I&#8217;d got so comfortable (and, perhaps,&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\">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_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":[20,34,39],"tags":[],"class_list":["post-13787","post","type-post","status-publish","format-standard","hentry","category-gpio-boards","category-opinion","category-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GPIO Zero for the Raspberry Pi - by George, I think I&#039;ve got it! - 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=13787\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GPIO Zero for the Raspberry Pi - by George, I think I&#039;ve got it! - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"When Ben Nuttall announced his GPIO Zero\u00a0Python library a few weeks ago, I was very sceptical. It seemed to me to be dumbing-down the flexibility of RPi.GPIO. I didn&#8217;t like it. The truth is, I&#8217;d got so comfortable (and, perhaps,&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\" \/>\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=\"2015-11-27T22:54:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-11-28T07:35:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.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\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\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=13787#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"GPIO Zero for the Raspberry Pi &#8211; by George, I think I&#8217;ve got it!\",\"datePublished\":\"2015-11-27T22:54:52+00:00\",\"dateModified\":\"2015-11-28T07:35:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\"},\"wordCount\":463,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png\",\"articleSection\":[\"GPIO boards\",\"Opinion\",\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\",\"name\":\"GPIO Zero for the Raspberry Pi - by George, I think I've got it! - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png\",\"datePublished\":\"2015-11-27T22:54:52+00:00\",\"dateModified\":\"2015-11-28T07:35:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13787\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage\",\"url\":\"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png\",\"contentUrl\":\"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13787#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GPIO Zero for the Raspberry Pi &#8211; by George, I think I&#8217;ve got it!\"}]},{\"@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":"GPIO Zero for the Raspberry Pi - by George, I think I've got it! - 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=13787","og_locale":"en_US","og_type":"article","og_title":"GPIO Zero for the Raspberry Pi - by George, I think I've got it! - Raspberry Pi Pod","og_description":"When Ben Nuttall announced his GPIO Zero\u00a0Python library a few weeks ago, I was very sceptical. It seemed to me to be dumbing-down the flexibility of RPi.GPIO. I didn&#8217;t like it. The truth is, I&#8217;d got so comfortable (and, perhaps,&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=13787","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2015-11-27T22:54:52+00:00","article_modified_time":"2015-11-28T07:35:43+00:00","og_image":[{"url":"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"GPIO Zero for the Raspberry Pi &#8211; by George, I think I&#8217;ve got it!","datePublished":"2015-11-27T22:54:52+00:00","dateModified":"2015-11-28T07:35:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787"},"wordCount":463,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage"},"thumbnailUrl":"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png","articleSection":["GPIO boards","Opinion","Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13787#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787","url":"https:\/\/www.recantha.co.uk\/blog\/?p=13787","name":"GPIO Zero for the Raspberry Pi - by George, I think I've got it! - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage"},"thumbnailUrl":"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png","datePublished":"2015-11-27T22:54:52+00:00","dateModified":"2015-11-28T07:35:43+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13787"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#primaryimage","url":"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png","contentUrl":"https:\/\/www.raspberrypi.org\/wp-content\/uploads\/2015\/11\/GPIO_Zero_Diagram_3-500x369.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13787#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"GPIO Zero for the Raspberry Pi &#8211; by George, I think I&#8217;ve got it!"}]},{"@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-3An","jetpack-related-posts":[{"id":16867,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16867","url_meta":{"origin":13787,"position":0},"title":"CamJam EduKit for the Raspberry Pi receives GPIO Zero \/ Python 3 worksheet update","author":"Michael Horne","date":"24 May 2017","format":false,"excerpt":"Tim Richardson and I are pleased\u00a0to announce that there are brand new\u00a0versions of the CamJam EduKit 1 worksheets now available from the CamJam website. In addition to the classic RPi.GPIO versions being revised\u00a0to feature 40-pin Pis and various small typographical changes, we now have available worksheets that use the\u00a0GPIO Zero\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.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/05\/EduKit_large.jpg?fit=480%2C360&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":13491,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13491","url_meta":{"origin":13787,"position":1},"title":"New GPIO wrapper library for the Raspberry Pi","author":"Michael Horne","date":"2 October 2015","format":false,"excerpt":"Ben Nuttall has been working hard to create a library which will provide a simpler interface to the GPIO pins. The library is called GPIO Zero. At the moment, on the RPi.GPIO library, there are a couple of commands to set things like the pin numbering system that kids are\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.elektronik-kompendium.de\/sites\/raspberry-pi\/fotos\/raspberry-pi-15.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.elektronik-kompendium.de\/sites\/raspberry-pi\/fotos\/raspberry-pi-15.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.elektronik-kompendium.de\/sites\/raspberry-pi\/fotos\/raspberry-pi-15.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":13118,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13118","url_meta":{"origin":13787,"position":2},"title":"RPi.GPIO Python library for the Raspberry Pi undergoes a change","author":"Michael Horne","date":"10 August 2015","format":false,"excerpt":"Alex Eames has been looking at recent updates to the Python library everybody uses, RPi.GPIO, and has noticed something. The old variable RPI_REVISION has been deprecated (replaced) by something more useful: RPI_INFO. This new variable outputs a Python dictionary detailing the revision of GPIO pins, the amount of RAM onboard\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\/raspi.tv\/wp-content\/uploads\/2015\/08\/RPI_INFO-1024x261.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/08\/RPI_INFO-1024x261.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/08\/RPI_INFO-1024x261.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/raspi.tv\/wp-content\/uploads\/2015\/08\/RPI_INFO-1024x261.png?resize=700%2C400 2x"},"classes":[]},{"id":5167,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=5167","url_meta":{"origin":13787,"position":3},"title":"#RaspberryPi GPIO cheat sheet","author":"Michael Horne","date":"19 July 2013","format":false,"excerpt":"Alex over at RasPi.TV has been doing a series on the GPIO. His latest post is a quick-reference cheat sheet for using the GPIO from the popular Pi language Python.\u00a0Take a look at the cheat sheet here","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"RPi.GPIO basics 7 \u2013 RPi.GPIO cheat sheet and pointers to RPi GPIO advanced tutorials \u00bb RasPi.TV","src":"\/blog\/wp-content\/uploads\/2013\/07\/RasPiTV-RPi.GPIO-cheat-sheet-150x1501.jpg","width":350,"height":200},"classes":[]},{"id":11971,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11971","url_meta":{"origin":13787,"position":4},"title":"GPIO problems on the Raspberry Pi 2","author":"Michael Horne","date":"9 February 2015","format":false,"excerpt":"EDIT\/UPDATE: This issue is now resolved Simply update your Raspberry Pi to fix this issue: sudo apt-get update sudo apt-get upgrade There is currently an issue with using the GPIO pins on the Raspberry Pi 2. The issue concerns the RPi.GPIO Python library, which currently does not work properly. 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\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/02\/gpio.gif?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/02\/gpio.gif?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/02\/gpio.gif?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":19358,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=19358","url_meta":{"origin":13787,"position":5},"title":"Raspberry Pi physical computing library GPIO Zero gets an upgrade to v1.5 &#8211; includes physical pin numbering!","author":"Michael Horne","date":"13 February 2019","format":false,"excerpt":"Ben Nuttall over at Raspberry Pi has announced the release of GPIO Zero 1.5. This is a significant release and includes several enhancements. Improvements to the DistanceSensor class giving more accurate and reliable readings. Improvements to the source\/value functionality meaning you could just do: led.source = button to have a\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\/2019\/02\/gpio_zero_v15.jpg?fit=768%2C576&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2019\/02\/gpio_zero_v15.jpg?fit=768%2C576&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2019\/02\/gpio_zero_v15.jpg?fit=768%2C576&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2019\/02\/gpio_zero_v15.jpg?fit=768%2C576&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13787","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=13787"}],"version-history":[{"count":3,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13787\/revisions"}],"predecessor-version":[{"id":13790,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13787\/revisions\/13790"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}