{"id":187,"date":"2020-07-09T16:44:32","date_gmt":"2020-07-09T23:44:32","guid":{"rendered":"https:\/\/boom-tracker.com\/tracker\/?p=187"},"modified":"2020-07-09T16:44:33","modified_gmt":"2020-07-09T23:44:33","slug":"first-look-at-the-data","status":"publish","type":"post","link":"https:\/\/boom-tracker.com\/tracker\/blog\/first-look-at-the-data\/","title":{"rendered":"First look at the data"},"content":{"rendered":"\n<p>I did some simple plotting of measurements taken by a single microphone.  I clapped several times a few feet away from it.  The first two claps were quite loud:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-1024x520.png\" alt=\"\" class=\"wp-image-169\" width=\"739\" height=\"375\" srcset=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-1024x520.png 1024w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-300x152.png 300w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-768x390.png 768w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-1536x780.png 1536w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-250x127.png 250w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-550x279.png 550w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-800x406.png 800w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-354x180.png 354w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-591x300.png 591w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0-985x500.png 985w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.0.png 1593w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><figcaption>Clap 1<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-1024x515.png\" alt=\"\" class=\"wp-image-170\" width=\"773\" height=\"388\" srcset=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-1024x515.png 1024w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-300x151.png 300w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-768x386.png 768w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-1536x773.png 1536w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-250x126.png 250w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-550x277.png 550w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-800x402.png 800w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-358x180.png 358w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-596x300.png 596w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1-994x500.png 994w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.1.png 1604w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><figcaption>Clap 2<\/figcaption><\/figure>\n\n\n\n<p>Full scale on the ADC is 12 bits, or 0-4095 units.  Each unit represents about 3.3V\/4095 = 0.8 millivolts.  You can see that when idle it hovers around 2090, which is approximately half scale, so that&#8217;s good.  A very loud sound sends it almost full scale (+\/- 1500 units), which is also good.  The RMS variation when quiet is around 10-20 units, which indicates there&#8217;s not a lot of noise in the system.<\/p>\n\n\n\n<p>I&#8217;m trying to decide how to identify the time of the arrival of the wavefront.  I could pick the reading that is furthest from the mean value and key off of the time of that, and I think this is what I&#8217;ll try first. I&#8217;m figuring that this translates into the peak of the initial attack, and that will be close to the same position in all the microphones.<\/p>\n\n\n\n<p>The other strategy is to just pick the first reading that is more than handful of standard deviations away from the mean, but that requires a more sophisticated analysis of the data leading up to the wavefront, and in the case where the wavefront is at the beginning of the packet of data, I may not have enough data in those few points to get a meaningful statistical picture, which means I need to get long-term averages from the microphone controllers themselves, which means more computation on the microcontrollers.<\/p>\n\n\n\n<p>Quieter sounds (soft clapping) produced simpler and easier to interpret waveforms:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-1024x502.png\" alt=\"Experiment 1 clap 3\" class=\"wp-image-171\" width=\"758\" height=\"371\" srcset=\"https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-1024x502.png 1024w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-300x147.png 300w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-768x377.png 768w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-1536x753.png 1536w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-250x123.png 250w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-550x270.png 550w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-800x392.png 800w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-367x180.png 367w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-612x300.png 612w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2-1019x500.png 1019w, https:\/\/boom-tracker.com\/tracker\/wp-content\/uploads\/2020\/07\/Clap-1.2.png 1627w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><figcaption>Clap 3<\/figcaption><\/figure>\n\n\n\n<p>Here you can see that there is only really one big spike with a 300 unit deviation, and so keying off of that single value is likely the right strategy.<\/p>\n\n\n\n<p>I&#8217;m going to have to wait till I have 2 microphones to see if I can synchronize their detection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I did some simple plotting of measurements taken by a single microphone. I clapped several times a few feet away from it. The first two claps were quite loud: Full scale on the ADC is 12 bits, or 0-4095 units. Each unit represents about 3.3V\/4095 = 0.8 millivolts. You can see that when idle it&hellip; <a class=\"more-link\" href=\"https:\/\/boom-tracker.com\/tracker\/blog\/first-look-at-the-data\/\">Continue reading <span class=\"screen-reader-text\">First look at the data<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-blog","category-experimentation"],"_links":{"self":[{"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":2,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/posts\/187\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boom-tracker.com\/tracker\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}