{"id":137,"date":"2006-02-24T23:46:39","date_gmt":"2006-02-24T22:46:39","guid":{"rendered":"http:\/\/www.nobugs.org\/blog\/?p=137"},"modified":"2006-02-24T23:49:53","modified_gmt":"2006-02-24T22:49:53","slug":"flies-with-eyes","status":"publish","type":"post","link":"https:\/\/www.nobugs.org\/blog\/archives\/2006\/02\/24\/flies-with-eyes\/","title":{"rendered":"Flies with eyes"},"content":{"rendered":"<p>After being waylaid a bit by stomach bugs, I got a lot more hardware stuff working over the last two days.   I got my ultrasonic range finder board wired up to the main microcontroller.  It figures out distance using the method which bats use &#8211; emit a chirp, and then listen for the echo.  In terms of coding, this means I&#8217;ve got external interrupts and 16-bit timer stuff working pretty well.   I&#8217;ve been putting all of the code into a class &#8220;MyLibrary&#8221; &#8230; a bundle of code I hope to reuse in the future.  Anyway, on with the pretty photos &#8230;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.nobugs.org\/engineer\/uav\/images\/20060224-range-sensor.jpg\" alt=\"Range sensors\" style=\"margin: 10px;\"\/><\/p>\n<p>This is the ultrasonic range-finder board, with the emitter\/listener pair.<br \/>\n<br clear=\"all\"\/><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.nobugs.org\/engineer\/uav\/images\/20060224-range-circuit.jpg\" alt=\"Range circuit\" style=\"margin: 10px;\" \/><br \/>\nThis is my main microcontroller circuit.  The Atmega16L is the big chip in the foreground, with  8Mhz timer crystal, reset circuitry and in-circuit programming connector.  A couple of super-bright green LED&#8217;s are there to increase the blinkenlight coefficient.  In the background, a MAX232 uses a capacitor charge-pump to convert the voltage levels so that the Atmega chip can talk to the serial port on my PC.  And at the back-right, there&#8217;s a simple 5v power supply with filtering caps.<br \/>\n<br clear=\"all\"\/><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.nobugs.org\/engineer\/uav\/images\/20060224-ir-sensors.jpg\" alt=\"IR sensors\" style=\"margin: 10px;\" \/><br \/>\nThere are coming up next.  They&#8217;re infrared thermopiles, which detect IR radiation and are a simple and effective way of detecting where the horizon is.  More importantly, they&#8217;re very shiny. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After being waylaid a bit by stomach bugs, I got a lot more hardware stuff working over the last two days. I got my ultrasonic range finder board wired up to the main microcontroller. It figures out distance using the method which bats use &#8211; emit a chirp, and then listen for the echo. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-uav"],"_links":{"self":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}