{"id":614,"date":"2009-10-19T15:52:38","date_gmt":"2009-10-19T21:52:38","guid":{"rendered":"http:\/\/alliwalk.com\/blog\/?p=614"},"modified":"2009-10-29T12:48:01","modified_gmt":"2009-10-29T18:48:01","slug":"phys-comp-week-6-serial-communication-part-2","status":"publish","type":"post","link":"https:\/\/alliwalk.com\/blog\/2009\/10\/phys-comp-week-6-serial-communication-part-2\/","title":{"rendered":"Phys Comp &#8211; Week 6: Serial Communication, Part 2"},"content":{"rendered":"<p><figure id=\"attachment_619\" aria-describedby=\"caption-attachment-619\" style=\"width: 135px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" class=\"size-thumbnail wp-image-619\" title=\"Working with an accelerometer for serial communication\" src=\"http:\/\/alliwalk.com\/blog\/wp-content\/uploads\/2009\/10\/img_2801-150x150.jpg\" alt=\"Working with an accelerometer for serial communication\" width=\"135\" height=\"131\" \/><figcaption id=\"caption-attachment-619\" class=\"wp-caption-text\">Working with an accelerometer for serial communication<\/figcaption><\/figure><br \/>\n<br clear =\"right\"\/><\/p>\n<p>For our second lab exercise with Serial Communication (which I&#8217;m doing early because it seems fun), I got to use an accelerometer for the first time. (Borrowed temporarily from another student.)<\/p>\n<p>In the first half of the lab, I was able to get the ball to move around, and added the <strong>smooth();<\/strong> command to Processing to make the edges of the ellipse to smooth out.<\/p>\n<p>In the second half, I had trouble. I actually couldn&#8217;t get the call and response connection to work. I&#8217;m not sure what happened. I got the <strong>hello<\/strong> as we&#8217;d programmed from the Arduino, but as soon as I picked up the breadboard and got input from the accelerometer, the serial monitor seemed like it wasn&#8217;t sure if it should be outputting bytes or ASCII and put out both numbers and letters that sometimes made sense as words(?).<\/p>\n<p>I&#8217;m not sure what the issue was, but hopefully we&#8217;ll go over this in class. I&#8217;ll raise my hand and ask, for sure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For our second lab exercise with Serial Communication (which I&#8217;m doing early because it seems fun), I got to use an accelerometer for the first time. (Borrowed temporarily from another student.) In the first half of the lab, I was able to get the ball to move around, and added the smooth(); command to Processing &hellip; <a href=\"https:\/\/alliwalk.com\/blog\/2009\/10\/phys-comp-week-6-serial-communication-part-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Phys Comp &#8211; Week 6: Serial Communication, Part 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,77,76],"tags":[116,82,337,115],"_links":{"self":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/614"}],"collection":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":7,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions\/620"}],"wp:attachment":[{"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alliwalk.com\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}