{"id":107,"date":"2015-11-24T22:19:58","date_gmt":"2015-11-24T22:19:58","guid":{"rendered":"http:\/\/www.hardwarehacker.co.uk\/blog\/?p=107"},"modified":"2015-11-24T22:19:58","modified_gmt":"2015-11-24T22:19:58","slug":"proximity-alert","status":"publish","type":"post","link":"https:\/\/www.hardwarehacker.co.uk\/blog\/proximity-alert\/","title":{"rendered":"Proximity Alert"},"content":{"rendered":"<p>With the rebuild complete, we can finally move on to fine tuning the code for the events. \u00a0John had a great weekend here, with working code for the proximity alert.<\/p>\n<p>The robot uses optical sensors to spot the wall &#8211; we&#8217;re using A to D converters on the Arduino to read the amount of reflected IR light. \u00a0Away from the wall, virtually no light is reflected. \u00a0As you get closer, the reflection gets brighter. \u00a0The trick is to decide at what level you should stop. \u00a0We have multiple sensors on the front so that if the robot doesn&#8217;t approach the wall perfectly straight on, one of the side sensors will still spot the wall and stop us before collision.<\/p>\n<p>The next task in the tuning will be to test many times and against different types of wall &#8211; that&#8217;ll tell us what sort of repeat-ability we have\u00a0&#8211; which will be key to getting a good result on the day.<\/p>\n<p><iframe loading=\"lazy\" width=\"660\" height=\"371\" src=\"https:\/\/www.youtube.com\/embed\/DOlnePMsZEQ?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the rebuild complete, we can finally move on to fine tuning the code for the events. \u00a0John had a great weekend here, with working code for the proximity alert. The robot uses optical sensors to spot the wall &#8211; we&#8217;re using A to D converters on the Arduino to read the amount of reflected &hellip; <a href=\"https:\/\/www.hardwarehacker.co.uk\/blog\/proximity-alert\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Proximity Alert<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[2],"_links":{"self":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":1,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}