{"id":2281,"date":"2014-03-10T09:49:24","date_gmt":"2014-03-10T13:49:24","guid":{"rendered":"http:\/\/www.diyode.com\/?p=2281"},"modified":"2025-01-18T13:55:13","modified_gmt":"2025-01-18T18:55:13","slug":"counting-rpm-with-an-arduino","status":"publish","type":"post","link":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/","title":{"rendered":"Counting RPM with an arduino"},"content":{"rendered":"<p>For the latest IgniteGuelph contest, we needed a way to measure the speed of homebuilt electric motors. Simple RPM, not torque was the goal, so we opted to go with a light sensor on an arduino to count the light\/dark cycles.<\/p>\n<p>First, we need to figure out the threshold value of the light sensor. \u00a0We started with a CdS photocell, but the response time was too slow to count anything faster than 150 rpm. \u00a0Working with what we had on hand, we built a photo sensor with an LED. This tested out fine up to 600 RPM, or so. \u00a0Ideal would be a proper photodiode or phototransistor, but we were limited to what we had on hand.<\/p>\n<p style=\"padding-left: 30px;\">#define LED_N_SIDE 3<br \/>\n#define LED_P_SIDE 2<\/p>\n<p style=\"padding-left: 30px;\">void setup() {<br \/>\nSerial.begin (115200);<br \/>\nSerial.println(&#8220;Start&#8221;);<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">void loop() {<br \/>\nSerial.print(&#8220;Sensor : &#8220;);<br \/>\nSerial.println(readLight());<br \/>\ndelay(100);<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">int readLight() {<br \/>\nunsigned int j;<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Apply reverse voltage, charge up the pin and led capacitance<br \/>\npinMode(LED_N_SIDE,OUTPUT);<br \/>\npinMode(LED_P_SIDE,OUTPUT);<br \/>\ndigitalWrite(LED_N_SIDE,HIGH);<br \/>\ndigitalWrite(LED_P_SIDE,LOW);<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Isolate the pin 2 end of the diode<br \/>\npinMode(LED_N_SIDE,INPUT);<br \/>\ndigitalWrite(LED_N_SIDE,LOW); \/\/ turn off internal pull-up resistor<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Count how long it takes the diode to bleed back down to a logic zero<br \/>\nfor ( j = 10000; j &gt; 1; j&#8211;) {<br \/>\nif ( digitalRead(LED_N_SIDE)==0) break;<br \/>\n}<br \/>\nreturn j;<br \/>\n}<\/p>\n<p>Once we have a threshold value for the light sensor, we use the code below to spit out the RPM to the Serial<\/p>\n<p style=\"padding-left: 30px;\">#define PHOTOCELL 5<br \/>\n#define LED_N_SIDE 2<br \/>\n#define LED_P_SIDE 3<\/p>\n<p style=\"padding-left: 30px;\">int photocellThreshold = 2000;<br \/>\nint currentState = 0;<br \/>\nint leeway = 4;<br \/>\nunsigned long lastOnTime = 0;<br \/>\nunsigned long times[5] = {0,0,0,0,0};<br \/>\nint timesPos = 0;<\/p>\n<p style=\"padding-left: 30px;\">void setup() {<br \/>\nSerial.begin (115200);<br \/>\nSerial.println(&#8220;Start&#8221;);<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">void loop() {<br \/>\n\/\/Serial.print(&#8220;Photocell Value: &#8220;);<br \/>\nint currentVal = readLight();<br \/>\nif (currentState == 1 &amp;&amp; currentVal &lt; photocellThreshold &#8211; leeway) {<br \/>\nlightOff();<br \/>\n} else if (currentState == 0 &amp;&amp; currentVal &gt; photocellThreshold + leeway) {<br \/>\nlightOn();<br \/>\n}<br \/>\n\/\/Serial.println(analogRead(PHOTOCELL));<br \/>\ndelay(5);<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">void lightOff() {<br \/>\ncurrentState = 0;<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">void lightOn() {<br \/>\ncurrentState = 1;<br \/>\nunsigned long now = millis();<br \/>\nif (lastOnTime) {<br \/>\nunsigned long thisTime = now &#8211; lastOnTime;<br \/>\ntimes[timesPos] = thisTime;<br \/>\naverageTimes();<br \/>\ntimesPos = (timesPos + 1) % 5;<br \/>\n}<br \/>\nlastOnTime = now;<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">void averageTimes() {<br \/>\nunsigned long sum = times[0] + times[1] + times[2] + times[3] + times[4];<br \/>\nfloat avg = 300000 \/ float(sum);<br \/>\nSerial.print(&#8220;RPM : &#8220;);<br \/>\nSerial.println(avg);<br \/>\n}<\/p>\n<p style=\"padding-left: 30px;\">int readLight() {<br \/>\nunsigned int j;<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Apply reverse voltage, charge up the pin and led capacitance<br \/>\npinMode(LED_N_SIDE,OUTPUT);<br \/>\npinMode(LED_P_SIDE,OUTPUT);<br \/>\ndigitalWrite(LED_N_SIDE,HIGH);<br \/>\ndigitalWrite(LED_P_SIDE,LOW);<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Isolate the pin 2 end of the diode<br \/>\npinMode(LED_N_SIDE,INPUT);<br \/>\ndigitalWrite(LED_N_SIDE,LOW); \/\/ turn off internal pull-up resistor<\/p>\n<p style=\"padding-left: 30px;\">\/\/ Count how long it takes the diode to bleed back down to a logic zero<br \/>\nfor ( j = 10000; j &gt; 1; j&#8211;) {<br \/>\nif ( digitalRead(LED_N_SIDE)==0) break;<br \/>\n}<br \/>\nreturn j;<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the latest IgniteGuelph contest, we needed a way to measure the speed of homebuilt electric motors. Simple RPM, not torque was the goal, so we opted to go with a light sensor on an arduino to count the light\/dark cycles. First, we need to figure out the threshold value of the light sensor. \u00a0We [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3844,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[101],"tags":[],"class_list":["post-2281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogposts"],"featured_image_src":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","author_info":{"display_name":"Simon Clark","author_link":"https:\/\/diyode.com\/blog\/author\/simon-clark\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Counting RPM with an arduino - DIYode Community Workshop<\/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:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Counting RPM with an arduino - DIYode Community Workshop\" \/>\n<meta property=\"og:description\" content=\"For the latest IgniteGuelph contest, we needed a way to measure the speed of homebuilt electric motors. Simple RPM, not torque was the goal, so we opted to go with a light sensor on an arduino to count the light\/dark cycles. First, we need to figure out the threshold value of the light sensor. \u00a0We [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"DIYode Community Workshop\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-10T13:49:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-18T18:55:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Simon Clark\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Simon Clark\" \/>\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:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/\"},\"author\":{\"name\":\"Simon Clark\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#\\\/schema\\\/person\\\/7873ab1ed8120da0625d17ef81d817c1\"},\"headline\":\"Counting RPM with an arduino\",\"datePublished\":\"2014-03-10T13:49:24+00:00\",\"dateModified\":\"2025-01-18T18:55:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/\"},\"wordCount\":450,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/03\\\/Arduino-for-Beginners-1.jpg\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/\",\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/\",\"name\":\"Counting RPM with an arduino - DIYode Community Workshop\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/03\\\/Arduino-for-Beginners-1.jpg\",\"datePublished\":\"2014-03-10T13:49:24+00:00\",\"dateModified\":\"2025-01-18T18:55:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#primaryimage\",\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/03\\\/Arduino-for-Beginners-1.jpg\",\"contentUrl\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/03\\\/Arduino-for-Beginners-1.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/2014\\\/03\\\/counting-rpm-with-an-arduino\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/diyode.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Counting RPM with an arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/\",\"name\":\"DIYode Community Workshop\",\"description\":\"Make \u2022 Share \u2022 Play\",\"publisher\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/diyode.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#organization\",\"name\":\"DIYode Community Workshop\",\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/diyodeLogo.png\",\"contentUrl\":\"https:\\\/\\\/diyode.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/diyodeLogo.png\",\"width\":238,\"height\":130,\"caption\":\"DIYode Community Workshop\"},\"image\":{\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/diyode.com\\\/blog\\\/#\\\/schema\\\/person\\\/7873ab1ed8120da0625d17ef81d817c1\",\"name\":\"Simon Clark\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g\",\"caption\":\"Simon Clark\"},\"sameAs\":[\"http:\\\/\\\/www.zebraspot.com\\\/\"],\"url\":\"https:\\\/\\\/diyode.com\\\/blog\\\/author\\\/simon-clark\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Counting RPM with an arduino - DIYode Community Workshop","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:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/","og_locale":"en_US","og_type":"article","og_title":"Counting RPM with an arduino - DIYode Community Workshop","og_description":"For the latest IgniteGuelph contest, we needed a way to measure the speed of homebuilt electric motors. Simple RPM, not torque was the goal, so we opted to go with a light sensor on an arduino to count the light\/dark cycles. First, we need to figure out the threshold value of the light sensor. \u00a0We [&hellip;]","og_url":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/","og_site_name":"DIYode Community Workshop","article_published_time":"2014-03-10T13:49:24+00:00","article_modified_time":"2025-01-18T18:55:13+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","type":"image\/jpeg"}],"author":"Simon Clark","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Simon Clark","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#article","isPartOf":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/"},"author":{"name":"Simon Clark","@id":"https:\/\/diyode.com\/blog\/#\/schema\/person\/7873ab1ed8120da0625d17ef81d817c1"},"headline":"Counting RPM with an arduino","datePublished":"2014-03-10T13:49:24+00:00","dateModified":"2025-01-18T18:55:13+00:00","mainEntityOfPage":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/"},"wordCount":450,"commentCount":0,"publisher":{"@id":"https:\/\/diyode.com\/blog\/#organization"},"image":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/","url":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/","name":"Counting RPM with an arduino - DIYode Community Workshop","isPartOf":{"@id":"https:\/\/diyode.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#primaryimage"},"image":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","datePublished":"2014-03-10T13:49:24+00:00","dateModified":"2025-01-18T18:55:13+00:00","breadcrumb":{"@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#primaryimage","url":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","contentUrl":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2014\/03\/Arduino-for-Beginners-1.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/diyode.com\/blog\/2014\/03\/counting-rpm-with-an-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyode.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Counting RPM with an arduino"}]},{"@type":"WebSite","@id":"https:\/\/diyode.com\/blog\/#website","url":"https:\/\/diyode.com\/blog\/","name":"DIYode Community Workshop","description":"Make \u2022 Share \u2022 Play","publisher":{"@id":"https:\/\/diyode.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/diyode.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/diyode.com\/blog\/#organization","name":"DIYode Community Workshop","url":"https:\/\/diyode.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/diyode.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2024\/09\/diyodeLogo.png","contentUrl":"https:\/\/diyode.com\/blog\/wp-content\/uploads\/2024\/09\/diyodeLogo.png","width":238,"height":130,"caption":"DIYode Community Workshop"},"image":{"@id":"https:\/\/diyode.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/diyode.com\/blog\/#\/schema\/person\/7873ab1ed8120da0625d17ef81d817c1","name":"Simon Clark","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f5cf6af276ab5435b38796a8103060b32db0be379f0ff385237e579fda6e0ba4?s=96&d=mm&r=g","caption":"Simon Clark"},"sameAs":["http:\/\/www.zebraspot.com\/"],"url":"https:\/\/diyode.com\/blog\/author\/simon-clark\/"}]}},"_links":{"self":[{"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/posts\/2281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/comments?post=2281"}],"version-history":[{"count":1,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/posts\/2281\/revisions"}],"predecessor-version":[{"id":2282,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/posts\/2281\/revisions\/2282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/media\/3844"}],"wp:attachment":[{"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/media?parent=2281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/categories?post=2281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyode.com\/blog\/wp-json\/wp\/v2\/tags?post=2281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}