{"id":13999,"date":"2016-01-08T12:09:09","date_gmt":"2016-01-08T11:09:09","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=13999"},"modified":"2023-08-18T09:43:49","modified_gmt":"2023-08-18T08:43:49","slug":"shutdown-your-raspberry-pi-using-a-paper-clip","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=13999","title":{"rendered":"Shutdown your Raspberry Pi using a paper clip"},"content":{"rendered":"<p><a href=\"https:\/\/www.recantha.co.uk\/blog\/?attachment_id=14002\" rel=\"attachment wp-att-14002\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14002\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=560%2C156&#038;ssl=1\" alt=\"paper-clip\" width=\"560\" height=\"156\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?w=1039&amp;ssl=1 1039w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=300%2C83&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=768%2C214&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=1024%2C285&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=560%2C156&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=260%2C72&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?resize=160%2C45&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>When you&#8217;re running your Raspberry Pi headless, one of the first things you should concern yourself with is how to shut it down safely.\u00a0Shutting it down by simply pulling the power out can result in a corrupt SD card or damaged files. If you had it connected to a network, you could of course just SSH into it and issue the &#8216;halt&#8217; command. However, what if you couldn&#8217;t connect to it? Or what if you just wanted a way to simply and easily shut it down without touching a keyboard at all?<\/p>\n<p>Here&#8217;s where Adafruit steps in and gives us a simple script that will monitor a GPIO pin and shut down if it detects a change in state. What use is that? Well, it means you just simply need to connect two pins on the GPIO together with a paper clip (or anything\u00a0conductive) to issue the halt command. I&#8217;ve taken the Adafruit tutorial and some other guides online and put together the following instructions.<\/p>\n<p><em>Please note: the current version of the software provided by Adafruit takes a second parameter &#8211; this is how long you need to &#8220;hold&#8221; the connection in order to trigger the shutdown. For consistency with Adafruit, I&#8217;ve made this &#8220;hold time&#8221; 3000 milliseconds (3 seconds).<\/em><\/p>\n<h2>Installation<\/h2>\n<p>First of all, you will need a Pi with Git installed on it.<\/p>\n<pre>sudo apt-get install git<\/pre>\n<p>Next, you download the script from Adafruit&#8217;s Github:<\/p>\n<pre><span class=\"pln\">git clone https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/github.com\/adafruit\/Adafruit-GPIO-Halt<\/span><\/pre>\n<p>If this doesn&#8217;t work, try:<\/p>\n<pre>git clone git:\/\/github.com\/adafruit\/Adafruit-GPIO-Halt<\/pre>\n<p><em>An aside:<\/em> The script is written in C, so is able to be modified\u00a0if you want to, say, light up an LED when the halt command is issued. You\u00a0<em>could<\/em> re-write it as a Python program, of course, which might make it easier for some to adapt.<\/p>\n<p>Change into the new directory, compile and install:<\/p>\n<pre><span class=\"pln\">cd <\/span><span class=\"typ\">Adafruit<\/span><span class=\"pun\">-<\/span><span class=\"pln\">GPIO<\/span><span class=\"pun\">-<\/span><span class=\"typ\">Halt\r\n<\/span><span class=\"pln\">make\r\n<\/span><span class=\"pln\">sudo make install<\/span><\/pre>\n<p>This installs the script to \/usr\/local\/bin\/gpio-halt. You then need to run it as a service.<\/p>\n<h2>Please note<\/h2>\n<p><em>In the following sections, if you&#8217;re using an older Pi with a 26-pin GPIO header, use GPIO pin 7 instead of 21.<\/em><\/p>\n<h2>Run it automatically on Jessie\/Buster<\/h2>\n<p>If you&#8217;re running Raspbian Jessie, you will need to do it via systemd:<\/p>\n<pre>sudo nano \/lib\/systemd\/system\/gpio-halt.service<\/pre>\n<p>This will create a file and open it. The following is the contents of that file:<\/p>\n<pre>[Unit]\r\nDescription=Short pins 21 and ground to shutdown the Pi\r\nAfter=multi-user.target\r\n\r\n[Service]\r\nType=idle\r\nExecStart=\/usr\/local\/bin\/gpio-halt 21 3000 &amp;\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>Then, make the script executable by the right users:<\/p>\n<pre>sudo chmod 644 \/lib\/systemd\/system\/gpio-halt.service<\/pre>\n<p>Then, tell systemd to use the script:<\/p>\n<pre>sudo systemctl daemon-reload\r\nsudo systemctl enable gpio-halt.service<\/pre>\n<p>And reboot your Pi<\/p>\n<pre>sudo reboot<\/pre>\n<p>When the Pi comes back up, you can check the status of the service by doing:<\/p>\n<pre>sudo systemctl status gpio-halt.service<\/pre>\n<h2>Run it automatically on Wheezy<\/h2>\n<p>If you&#8217;re\u00a0running the older Raspbian Wheezy, you will need to do it via rc.local:<\/p>\n<pre>sudo nano \/etc\/rc.local<\/pre>\n<p>Before &#8216;exit 0&#8217;, add the line:<\/p>\n<pre><span class=\"str\">\/usr\/<\/span><span class=\"kwd\">local<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">bin<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">gpio<\/span><span class=\"pun\">-<\/span><span class=\"pln\">halt <\/span><span class=\"lit\">21<\/span> 3000 <span class=\"pun\">&amp;<\/span><\/pre>\n<p>Now reboot your Pi:<\/p>\n<pre>sudo reboot<\/pre>\n<h2>Now use it<\/h2>\n<p>Take a paper clip (or other conductive object) and touch the last two vertical GPIO pins at the same time and hold for at least 3 seconds. If you&#8217;re using a 26-pin Pi, it will be GND and GPIO7. If you&#8217;re using a 40-pin Pi, it will be GND and GPIO21. See the diagram below. The first time you do this, it might be worth having a monitor connected so that you can see it happening. Wait about 15 seconds for the halt procedure to complete and then unplug your Pi safely.<\/p>\n<p><a href=\"https:\/\/www.recantha.co.uk\/blog\/?attachment_id=14001\" rel=\"attachment wp-att-14001\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14001\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=560%2C420&#038;ssl=1\" alt=\"raspberry_pi_gpio-shutdown-pins\" width=\"560\" height=\"420\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=560%2C420&amp;ssl=1 560w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=260%2C195&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/raspberry_pi_gpio-shutdown-pins.png?resize=160%2C120&amp;ssl=1 160w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<h2>Acknowledgements<\/h2>\n<p><em>Thanks to <a href=\"http:\/\/raspi.tv\" target=\"_blank\" rel=\"noopener noreferrer\">Alex Eames<\/a> for spotting <a href=\"https:\/\/learn.adafruit.com\/dotstar-pi-painter\/raspberry-pi-setup#success\" target=\"_blank\" rel=\"noopener noreferrer\">the Adafruit shutdown script<\/a>. Thanks to Adafruit, obviously. Thanks to <a href=\"http:\/\/www.raspberrypi-spy.co.uk\/2015\/10\/how-to-autorun-a-python-script-on-boot-using-systemd\/\" target=\"_blank\" rel=\"noopener noreferrer\">Matt Hawkins for the systemd instructions<\/a>. Thanks to commenter Bartwick for noticing that my instructions were out-of-date.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you&#8217;re running your Raspberry Pi headless, one of the first things you should concern yourself with is how to shut it down safely.\u00a0Shutting it down by simply pulling the power out can result in a corrupt SD card or&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\">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":[39,51],"tags":[],"class_list":["post-13999","post","type-post","status-publish","format-standard","hentry","category-programming","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shutdown your Raspberry Pi using a paper clip - 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=13999\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shutdown your Raspberry Pi using a paper clip - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"When you&#8217;re running your Raspberry Pi headless, one of the first things you should concern yourself with is how to shut it down safely.\u00a0Shutting it down by simply pulling the power out can result in a corrupt SD card or&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\" \/>\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-01-08T11:09:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-18T08:43:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.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=\"3 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=13999#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Shutdown your Raspberry Pi using a paper clip\",\"datePublished\":\"2016-01-08T11:09:09+00:00\",\"dateModified\":\"2023-08-18T08:43:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\"},\"wordCount\":581,\"commentCount\":24,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png\",\"articleSection\":[\"Programming\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\",\"name\":\"Shutdown your Raspberry Pi using a paper clip - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png\",\"datePublished\":\"2016-01-08T11:09:09+00:00\",\"dateModified\":\"2023-08-18T08:43:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13999\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?fit=1039%2C289&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?fit=1039%2C289&ssl=1\",\"width\":1039,\"height\":289},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13999#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shutdown your Raspberry Pi using a paper clip\"}]},{\"@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":"Shutdown your Raspberry Pi using a paper clip - 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=13999","og_locale":"en_US","og_type":"article","og_title":"Shutdown your Raspberry Pi using a paper clip - Raspberry Pi Pod","og_description":"When you&#8217;re running your Raspberry Pi headless, one of the first things you should concern yourself with is how to shut it down safely.\u00a0Shutting it down by simply pulling the power out can result in a corrupt SD card or&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=13999","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2016-01-08T11:09:09+00:00","article_modified_time":"2023-08-18T08:43:49+00:00","og_image":[{"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Shutdown your Raspberry Pi using a paper clip","datePublished":"2016-01-08T11:09:09+00:00","dateModified":"2023-08-18T08:43:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999"},"wordCount":581,"commentCount":24,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage"},"thumbnailUrl":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png","articleSection":["Programming","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13999#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999","url":"https:\/\/www.recantha.co.uk\/blog\/?p=13999","name":"Shutdown your Raspberry Pi using a paper clip - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage"},"thumbnailUrl":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png","datePublished":"2016-01-08T11:09:09+00:00","dateModified":"2023-08-18T08:43:49+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13999"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?fit=1039%2C289&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/01\/paper-clip.png?fit=1039%2C289&ssl=1","width":1039,"height":289},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13999#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Shutdown your Raspberry Pi using a paper clip"}]},{"@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-3DN","jetpack-related-posts":[{"id":19245,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=19245","url_meta":{"origin":13999,"position":0},"title":"New power board for the Raspberry Pi on Kickstarter is perfect for an in-car situation","author":"Michael Horne","date":"2 December 2018","format":false,"excerpt":"Good evening all. I just thought I'd share with you this Kickstarter for a Raspberry Pi power board. Designed to go in a car, and to take a 12V input and a signal from the ignition, the board sports the following features: 12V power input (reduced to 5V for the\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\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/12\/powerboard.jpg?fit=1024%2C576&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/12\/powerboard.jpg?fit=1024%2C576&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/12\/powerboard.jpg?fit=1024%2C576&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/12\/powerboard.jpg?fit=1024%2C576&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1229,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1229","url_meta":{"origin":13999,"position":1},"title":"Great Sites for the Pi #5 &#8211; BerryIO","author":"Michael Horne","date":"7 January 2013","format":false,"excerpt":"Daniel Bull, who attends the Milton Keynes Raspberry Jam, has created a stunning web interface for the Pi's GPIO pins called BerryIO. It's a great tool for beginners and experts alike to explore what the Pi can do with the pins. Here's the summary from the Github site: Project Details\u2026","rel":"","context":"In &quot;Great Sites&quot;","block_context":{"text":"Great Sites","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=23"},"img":{"alt_text":"","src":"https:\/\/camo.githubusercontent.com\/ad4bc37e7b5f5fe0184d1f35a1939021f40124f5\/687474703a2f2f66726f7a656e6d6973742e636f2e756b2f646f776e6c6f6164732f6265727279696f2f494d414745532f6265727279696f2e706e67","width":350,"height":200,"srcset":"https:\/\/camo.githubusercontent.com\/ad4bc37e7b5f5fe0184d1f35a1939021f40124f5\/687474703a2f2f66726f7a656e6d6973742e636f2e756b2f646f776e6c6f6164732f6265727279696f2f494d414745532f6265727279696f2e706e67 1x, https:\/\/camo.githubusercontent.com\/ad4bc37e7b5f5fe0184d1f35a1939021f40124f5\/687474703a2f2f66726f7a656e6d6973742e636f2e756b2f646f776e6c6f6164732f6265727279696f2f494d414745532f6265727279696f2e706e67 1.5x"},"classes":[]},{"id":11971,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11971","url_meta":{"origin":13999,"position":2},"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":17557,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17557","url_meta":{"origin":13999,"position":3},"title":"Make a digital clock with the SenseHAT on the Raspberry Pi","author":"Michael Horne","date":"29 August 2017","format":false,"excerpt":"Here's a quick tutorial to build a digital clock with your SenseHAT and your Raspberry Pi. The tutorial takes you through installing the necessary software and includes the code for the project. To make it start automatically on power-up, take a look at the instructions in my Paper Clip tutorial.","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\/2017\/08\/digital-clock.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11836,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11836","url_meta":{"origin":13999,"position":4},"title":"Raspberry Pi Debug Clip &#8211; RyanTeck launches new Kickstarter","author":"Michael Horne","date":"22 January 2015","format":false,"excerpt":"Ryan Walmsley from Stevenage, who produced the excellent RTK Motor Controller Board as well as a great value-for-money budget robotics kit, has just launched a new Kickstarter. It's for a tiny board called the \"Raspberry Pi Debug Clip\". The Debug Clip pushes onto the GPIO and, with the aid of\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\/s3.amazonaws.com\/ksr\/assets\/003\/157\/557\/eb7f1cdc1273a1c57a39d9a82efe1a03_large.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/s3.amazonaws.com\/ksr\/assets\/003\/157\/557\/eb7f1cdc1273a1c57a39d9a82efe1a03_large.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/s3.amazonaws.com\/ksr\/assets\/003\/157\/557\/eb7f1cdc1273a1c57a39d9a82efe1a03_large.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/s3.amazonaws.com\/ksr\/assets\/003\/157\/557\/eb7f1cdc1273a1c57a39d9a82efe1a03_large.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":15818,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15818","url_meta":{"origin":13999,"position":5},"title":"Bare Conductive&#8217;s Pi Cap proves to be a versatile Raspberry Pi add-on","author":"Michael Horne","date":"7 November 2016","format":false,"excerpt":"Bare Conductive's Pi Cap\u00a0is an add-on board for the Raspberry Pi that plugs into the GPIO pins. It provides the following features: 12 conductive crocodile clip-compatible connection points High quality audio output via a 3.5mm jack A user-programmable RGB LED A tiny button 7 unused GPIO pins broken out A\u2026","rel":"","context":"In &quot;Audio&quot;","block_context":{"text":"Audio","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=4"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/11\/miniature.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/11\/miniature.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/11\/miniature.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/11\/miniature.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/11\/miniature.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13999","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=13999"}],"version-history":[{"count":4,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13999\/revisions"}],"predecessor-version":[{"id":21635,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13999\/revisions\/21635"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}