{"id":78,"date":"2018-12-02T04:10:33","date_gmt":"2018-12-02T04:10:33","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/?p=78"},"modified":"2018-12-03T13:19:36","modified_gmt":"2018-12-03T13:19:36","slug":"weekly-status-report-11-12-1","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/2018\/12\/02\/weekly-status-report-11-12-1\/","title":{"rendered":"Weekly Status Report #11: 12\/1"},"content":{"rendered":"<h1>Kevin<\/h1>\n<h2>Done this week<\/h2>\n<p>This week, I implemented and tested the beamforming algorithm described last week in Matlab.\u00a0 After finishing the matlab code, I was able to run preliminary tests to approximately see what signal attenuation we got.\u00a0 With one noise signal, we were able to achieve approximately 30 dB attenuation.\u00a0 I also worked with Bobbie on translating it to C.<\/p>\n<h2>Goals for next week<\/h2>\n<ul>\n<li>Finish translation to C<\/li>\n<li>Test C-code on pre-recorded microphone inputs (until we get real-time microphone input working)<\/li>\n<li>Help finish wearable microphone array setup<\/li>\n<li>Play around with # of filter taps and array<\/li>\n<li>Create poster for demonstration<\/li>\n<\/ul>\n<h1>Bobbie<\/h1>\n<h2>Done this week<\/h2>\n<p>This week I have put our old mic input problems to rest and now have new and exciting mic input problems.<\/p>\n<p>I found that some of the input selection functions actually returned status codes; we were getting I2C write errors (status code 4: other unknown error). In a long story short, after much de- and re-soldering and purchasing a new Teensy in case our first one had some flaw, I resolved the I2C error, but mic input still did not work.<\/p>\n<p>This entire search for audio input in the last few weeks came to an abrupt halt when I read all the Teensy documentation I could find and realized that the audio jack we were trying to use on the audio shield was never meant to take input (only headphone-level output).<\/p>\n<p>On this realization I bought a few breakout boards for splitting out audio jack line-in into individual pins. While I did not get the lapel mic to work, using the boards and the line-in holes on the audio shield I was able to use my computer as an audio source to send audio to the Teensy.<\/p>\n<p>The resulting output audio had interesting properties: it worked perfectly on a pure sine wave besides being inaudible for all but the few highest ticks of my computer\u2019s output volume; for speech, microphone loopback, and music it was completely inaudible; and for sine wave + other audio, it produced a recognizable sine wave with added unrecognizable distortion from the other audio.<\/p>\n<p>This suggested to me that the voltage ranges that the Teensy was looking for were not correct for the mic-level input. Line-out at headphone level is a far higher voltage range than line-in at mic level. However, when I tried to adjust the audio chip to a smaller voltage range using sgtl_5000.lineInLevel(N), this produced the same results.<\/p>\n<p>To summarize the current mic issues:<\/p>\n<ul>\n<li>Pure sine wave playable via computer line-out with high volume settings\n<ul>\n<li>I interpret that the audio shield ADC is looking in the wrong voltage range<\/li>\n<\/ul>\n<\/li>\n<li>But can\u2019t play speech or music at the same volume settings\n<ul>\n<li>Which is just strange. I didn\u2019t measure the voltages at line-out generated by the speech\/music, but I would expect them to be similar.<\/li>\n<\/ul>\n<\/li>\n<li>When playing sine wave + music, get sine wave + distorted when the music plays\n<ul>\n<li>I interpret that the (base?) voltage needs to be high, yet the range around that voltage is actually very low.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>I have not resolved the input issues yet and if I don\u2019t in the next few days, I will probably pivot to working on code for moving 4-channel audio on and off the board via USB or SD card, to run the signal processing there and output the result via the (working) headphone jack.<\/p>\n<p>I also worked with Kevin on translating his Matlab code to C.<\/p>\n<h2>Goals for next week<\/h2>\n<ul>\n<li>Get everything working<\/li>\n<\/ul>\n<h1>Sean<\/h1>\n<h2>Done this week<\/h2>\n<p>I spent a significant amount of time, along with Bobbie, trying to get four-channel audio through the board using the audio shields. Bobbie discovered that the Shields weren&#8217;t meant to take input through the audio jack,<\/p>\n<p>This week I hooked up mobile power using a battery to the Teensy. I did this by connecting a lithium ion battery to an Adafruit micro-USB charging port, then connecting the charging port to the external power pins on the Teensy.<\/p>\n<h2>Goals for next week<\/h2>\n<ul>\n<li>Get everything working<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kevin Done this week This week, I implemented and tested the beamforming algorithm described last week in Matlab.\u00a0 After finishing the matlab code, I was able to run preliminary tests to approximately see what signal attenuation we got.\u00a0 With one noise signal, we were able to achieve approximately 30 dB attenuation.\u00a0 I also worked with &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/2018\/12\/02\/weekly-status-report-11-12-1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Weekly Status Report #11: 12\/1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/posts\/78"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":3,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/posts\/78\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f18-team2\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}