{"id":5157,"date":"2021-07-18T02:34:56","date_gmt":"2021-07-18T02:34:56","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5157"},"modified":"2021-07-18T02:34:56","modified_gmt":"2021-07-18T02:34:56","slug":"raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect","title":{"rendered":"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\ Hall Effect"},"content":{"rendered":"<p>Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect Sensor<\/p><p><strong>Reed Switch with Hardware Pull Down ( Resistors )\u00a0<\/strong><\/p><p><img decoding=\"async\" src=\"https:\/\/www.rs-online.com\/designspark\/rel-assets\/dsauto\/temp\/uploaded\/external_pull-down.jpg?w=1042\" alt=\"What inputs can I use with my Raspberry Pi? Part 1 - Switches and  logic-level sensors\" \/><\/p><p>On the Pie this looks like<\/p><p>&nbsp;<\/p><p id=\"BBORJSa\"><img decoding=\"async\" src=\"https:\/\/www.digikey.com\/-\/media\/MakerIO\/Images\/blogs\/2018\/How%20To%20Use%20GPIO%20on%20the%20Raspberry%20Pi%20with%20C\/Featured-image.jpg?la=en-US&amp;ts=833891f6-59d8-466f-b438-55add7cbd410\" alt=\"How To Use GPIO on the Raspberry Pi with C++\" \/><\/p><p><strong>Reed Switch with Internal Pull Down Resistor\u00a0<\/strong><\/p><p>see below , gpios 0-8 are pulled high, the rest are pulled low. They are all inputs. Those initial power on states can not be changed &#8211; it&#8217;s wired into the SoC. So if you are wanting to use below make sure you use GPIO over 8 so it can withstand a reboot<\/p><p id=\"ZXUgvNi\"><img loading=\"lazy\" decoding=\"async\" width=\"1091\" height=\"537\" class=\"alignnone size-full wp-image-5208  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3907b70067.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3907b70067.png 1091w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3907b70067-300x148.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3907b70067-1024x504.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3907b70067-768x378.png 768w\" sizes=\"auto, (max-width: 1091px) 100vw, 1091px\" \/><\/p><p><strong>Hall Effect Sensor with Hardware Pull Down ( Resistors )\u00a0<\/strong><\/p><p>This has three pins ( Extra Digital Out )\u00a0 so needs to be Wired differently , we just need to protect the GPIO Pins<\/p><p>&nbsp;<\/p><p id=\"KcpSftk\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-5207 img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect.jpg\" alt=\"\" width=\"2000\" height=\"1334\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect.jpg 2000w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect-300x200.jpg 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect-1024x683.jpg 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect-768x512.jpg 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/halleffect-1536x1025.jpg 1536w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p><p>&nbsp;<\/p><p id=\"VWlsYqB\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"660\" class=\"alignnone size-full wp-image-5205  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3859c8b487.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3859c8b487.png 977w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3859c8b487-300x203.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2021\/07\/img_60f3859c8b487-768x519.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/p><p>I used GPIO&#8217;s 4,5,6<\/p><p>#enables GPIO 4<br \/>echo 4 &gt; \/sys\/class\/gpio\/export<br \/><br \/>#marks 4 as input ( not Output )<br \/>sudo echo in &gt; \/sys\/class\/gpio\/gpio4\/direction<br \/><br \/>#Configure the gpios to trigger an interrupt on both edge ( An edge is the name of a transition from <a href=\"https:\/\/sourceforge.net\/p\/raspberry-gpio-python\/wiki\/Inputs\/\">HIGH to LOW (<em>falling edge<\/em>) ) &#8211; LOW to HIGH (rising edge)<\/a>.<br \/>echo both &gt; \/sys\/class\/gpio\/gpio4\/edge<\/p><p>#<code dir=\"ltr\" translate=\"no\"><a href=\"https:\/\/developer.android.com\/reference\/com\/google\/android\/things\/pio\/Gpio#setActiveType(int)\">ActiveType<\/a><\/code>\u00a0constant to select active high, which means that logical\u00a0<code dir=\"ltr\" translate=\"no\">true<\/code> corresponds with high voltage. \u00a0active low, which means that logical\u00a0<code dir=\"ltr\" translate=\"no\">true<\/code> corresponds with low voltage. \u00a00 (false) or 1 (true)<\/p><p>echo 0 &gt; \/sys\/class\/gpio\/gpio4\/active_low<\/p><p><strong>How to read the current value of GPIO<\/strong><\/p><p>cat \/sys\/class\/gpio\/gpio4\/value<\/p><p>raspi-gpio get 4<\/p><p><strong>How to set GPIO Pull Down\u00a0<\/strong><\/p><p>On Boot gpios 0-8 are pulled high, the rest are pulled low. They are all inputs. Those initial power on states can not be changed &#8211; it&#8217;s wired into the SoC<\/p><p>raspi-gpio set 4 pd<\/p><p>pu set GPIO in-pad pull up<br \/>pd set GPIO pin-pad pull down<\/p><p>&nbsp;<\/p><p>&nbsp;<\/p><p>&nbsp;<\/p><pre>\u00a0<\/pre>","protected":false},"excerpt":{"rendered":"<p>Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3542,3541,3538,3540,3544,3543,3545,3539],"class_list":["post-5157","post","type-post","status-publish","format-standard","hentry","category-research","tag-bread-board","tag-edges","tag-gpio","tag-hall-effect","tag-pull-down","tag-pull-up","tag-rapsberry-pi","tag-reed-switch"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-07-18T02:34:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-07-18T02:34:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#article\",\"name\":\"Raspberry Pi \\u2013 How to get GPIO Outputs for Reed Relay \\\\ Hall Effect | Welcome to Pariswells.com\",\"headline\":\"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\\\ Hall Effect\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.rs-online.com\\\/designspark\\\/rel-assets\\\/dsauto\\\/temp\\\/uploaded\\\/external_pull-down.jpg?w=1042\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect\\\/#articleImage\"},\"datePublished\":\"2021-07-18T02:34:56+00:00\",\"dateModified\":\"2021-07-18T02:34:56+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage\"},\"articleSection\":\"Research, bread board, edges, GPIO, hall effect, pull down, pull up, rapsberry pi, reed switch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#listItem\",\"name\":\"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\\\ Hall Effect\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#listItem\",\"position\":3,\"name\":\"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\\\ Hall Effect\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect\",\"name\":\"Raspberry Pi \\u2013 How to get GPIO Outputs for Reed Relay \\\\ Hall Effect | Welcome to Pariswells.com\",\"description\":\"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2021-07-18T02:34:56+00:00\",\"dateModified\":\"2021-07-18T02:34:56+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com","description":"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They","canonical_url":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#article","name":"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com","headline":"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\ Hall Effect","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.rs-online.com\/designspark\/rel-assets\/dsauto\/temp\/uploaded\/external_pull-down.jpg?w=1042","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect\/#articleImage"},"datePublished":"2021-07-18T02:34:56+00:00","dateModified":"2021-07-18T02:34:56+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage"},"articleSection":"Research, bread board, edges, GPIO, hall effect, pull down, pull up, rapsberry pi, reed switch"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#listItem","name":"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\ Hall Effect"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#listItem","position":3,"name":"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\ Hall Effect","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#webpage","url":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect","name":"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com","description":"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2021-07-18T02:34:56+00:00","dateModified":"2021-07-18T02:34:56+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com","og:description":"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They","og:url":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect","article:published_time":"2021-07-18T02:34:56+00:00","article:modified_time":"2021-07-18T02:34:56+00:00","twitter:card":"summary","twitter:title":"Raspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect | Welcome to Pariswells.com","twitter:description":"Recently received my first Raspberry Pie and needed to get input sensors, especially a reed switch and also testing a Hall Effect SensorReed Switch with Hardware Pull Down ( Resistors ) On the Pie this looks like Reed Switch with Internal Pull Down Resistor see below , gpios 0-8 are pulled high, the rest are pulled low. They"},"aioseo_meta_data":{"post_id":"5157","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":{"locations":{"business":{"name":"","businessType":"","image":"","areaServed":"","urls":{"website":"","aboutPage":"","contactPage":""},"address":{"streetLine1":"","streetLine2":"","zipCode":"","city":"","state":"","country":"","addressFormat":"#streetLineOne\n#streetLineTwo\n#city, #state #zipCode"},"contact":{"email":"","phone":"","phoneFormatted":"","fax":"","faxFormatted":""},"ids":{"vat":"","tax":"","chamberOfCommerce":""},"payment":{"priceRange":"","currenciesAccepted":"","methods":""}}},"openingHours":{"useDefaults":true,"show":true,"alwaysOpen":false,"use24hFormat":false,"timezone":"","labels":{"closed":"","alwaysOpen":""},"days":{"monday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"tuesday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"wednesday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"thursday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"friday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"saturday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"sunday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"}}}},"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-06-25 11:47:34","updated":"2022-09-18 20:44:34","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRaspberry Pi \u2013 How to get GPIO Outputs for Reed Relay \\ Hall Effect\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Raspberry Pi &#8211; How to get GPIO Outputs for Reed Relay \\ Hall Effect","link":"https:\/\/pariswells.com\/blog\/research\/raspberry-pi-how-to-get-gpio-outputs-for-reed-relay-hall-effect"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5157"}],"version-history":[{"count":5,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5157\/revisions"}],"predecessor-version":[{"id":5209,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5157\/revisions\/5209"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}