{"id":135,"date":"2006-02-11T18:04:38","date_gmt":"2006-02-11T17:04:38","guid":{"rendered":"http:\/\/www.nobugs.org\/blog\/archives\/2006\/02\/11\/uav-talks-serial\/"},"modified":"2006-02-11T18:04:38","modified_gmt":"2006-02-11T17:04:38","slug":"uav-talks-serial","status":"publish","type":"post","link":"https:\/\/www.nobugs.org\/blog\/archives\/2006\/02\/11\/uav-talks-serial\/","title":{"rendered":"UAV talks serial"},"content":{"rendered":"<p>I&#8217;ve managed to get the Atmega16 chip talking to my PC over an RS232 serial link.  The Atmega has a built in UART, which makes serial comms easy.  You just write the data you want to send into a register and the chip does the rest.  A MAX232 chip converts from the 5v levels used by the atmega into +10\/-10v used in RS232.  I can leave my circuit plugged into the serial line and the in-circuit-programming cable and control everything from my PC.  I had to work through a few problems with a logic probe to figure out what was going wrong, which made me think that an oscilloscope would be a Fine Idea.  So, a quick trip to ebay resulted in a purchase of a basic but very useful oscilloscope, yay!<\/p>\n<p>I&#8217;m trying to get <a href=\"http:\/\/krue.net\/avrforth\/\">Avrforth<\/a> running at the moment.  It runs okay, but whenever I try to store anything to memory, it hangs.  I&#8217;m going to dig a bit more into this, but it&#8217;s not really directly relevant to the UAV project so I&#8217;m not going to spend ages on it.<\/p>\n<p>Next task is to get to grips with timers and PWM input.  This will let me use my ultrasonic range finder board, which indicates distance by varying the pulse-width.  As ever, there is <a href=\"http:\/\/roderickmann.org\/log\/archives\/2006\/01\/atmega32_pwm.html\">plenty<\/a> of <a href=\"http:\/\/members.shaw.ca\/climber\/avrtimers.html\">information<\/a> out there about this.  I also found an old i2c temperature sensor IC which I might try using too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve managed to get the Atmega16 chip talking to my PC over an RS232 serial link. The Atmega has a built in UART, which makes serial comms easy. You just write the data you want to send into a register and the chip does the rest. A MAX232 chip converts from the 5v levels used [&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-135","post","type-post","status-publish","format-standard","hentry","category-uav"],"_links":{"self":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/135","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=135"}],"version-history":[{"count":0,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}