{"id":510,"date":"2014-11-24T00:39:32","date_gmt":"2014-11-24T00:39:32","guid":{"rendered":"http:\/\/blogs.discovery.wisc.edu\/wearable14\/?p=510"},"modified":"2014-11-24T00:39:32","modified_gmt":"2014-11-24T00:39:32","slug":"1123-typesafe","status":"publish","type":"post","link":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/2014\/11\/24\/1123-typesafe\/","title":{"rendered":"11\/23 TypeSafe"},"content":{"rendered":"<p>FInally got to do a bit of work this week.<\/p>\n<p>1) I managed to get the Flora board working on my lab computer, though it is still quite unreliable and\u00a0needs to be reset all the damn time.<\/p>\n<p>2)\u00a0To establish I2C communication with my IMU, I had to first\u00a0make a small modification\u00a0to\u00a0the FreeSixIMU library. Apparently in order to get sensor readings from the accelerometer, it is necessary to disable internal pullup resistors on the SDA and SCL pins. FreeSixIMU library did not do this properly for\u00a032u4, which is what Flora uses.<\/p>\n<p>3) Good news end here: data I&#8217;m getting from the IMU seems to be junk. While\u00a0initial readings from the IMU are not always the same, they don&#8217;t change at all as I move the IMU around. Also, the device seems to freeze frequently. Assuming the IMU isn&#8217;t defective, I suspect wiring issues, some problem with my modifications to FreeSixIMU, or maybe even an\u00a0issue\u00a0with serial communication (possibly caused by Flora driver issues.)<\/p>\n<p>My next steps:<\/p>\n<p>1) I plan to switch back to using the LilyPad for my device. Upon further inspection, I have determined there is no reason whatsoever why\u00a0either\u00a0LilyPad and LilyPad Simple should lack support for I2C. Moreover, LilyPad doesn&#8217;t use the 32u4 chip and therefore doesn&#8217;t suffer from Flora&#8217;s annoying driver issues. I suspect\u00a0the reason why I couldn&#8217;t get the IMU working on the LilyPad previously was because of the internal pullup resistor thing, and\u00a0possibly wiring issues (the IMU is very sensitive to those apparently.)<\/p>\n<p>2) Once I get the IMU working properly with the LilyPad,\u00a0I will be able to start getting sensor\u00a0data and implementing my prototype device.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FInally got to do a bit of work this week. 1) I managed to get the Flora board working on my lab computer, though it is still quite unreliable and\u00a0needs to be reset all the damn time. 2)\u00a0To establish I2C communication with my IMU, I had to first\u00a0make a small modification\u00a0to\u00a0the FreeSixIMU library. Apparently in &hellip; <a href=\"https:\/\/blogs.discovery.wisc.edu\/wearable14\/2014\/11\/24\/1123-typesafe\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">11\/23 TypeSafe<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":90,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/posts\/510"}],"collection":[{"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/users\/90"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":1,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/posts\/510\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/wearable14\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}