tag:blogger.com,1999:blog-6227791252039855587.post5972890588661056993..comments2024-03-26T14:09:38.697-05:00Comments on Lucid Mesh: Everyday DSP for Programmers: Signal EnvelopesSam Koblenskihttp://www.blogger.com/profile/16088649179174139591noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6227791252039855587.post-4189517386339756872020-08-31T22:33:02.277-05:002020-08-31T22:33:02.277-05:00Hi Ivan,
Thanks, I ended up using Pixi.js for the...Hi Ivan,<br /><br />Thanks, I ended up using Pixi.js for the graphs, and I wrote up a post on that as well: https://sam-koblenski.blogspot.com/2015/08/a-barely-adequate-guide-to-javascript.html.<br /><br />As for your clap detector, I would start experimenting with the signal envelope and setting a threshold for the spike in the signal from the clap. The spike should be pretty high and narrow, so calculating the duration, like I do in this post, and setting a fairly short duration threshold should work. Your dsPIC should be able to handle those fairly simple calculations, and the algorithm lends itself well to doing the calculations as the samples come in realtime.Sam Koblenskihttps://www.blogger.com/profile/16088649179174139591noreply@blogger.comtag:blogger.com,1999:blog-6227791252039855587.post-53287220015488804922020-08-31T13:47:14.911-05:002020-08-31T13:47:14.911-05:00Sam, I am amazed by the beauty of the posts (how d...Sam, I am amazed by the beauty of the posts (how did you do the graphs??). I learned a lot from these visuals.<br /><br />I am working on a project, where i read signal from digital microphone (via I2S data comes as 2's complement 18-bit). Since I am using dsPIC 16-bit processor, I chop of two (highest) bits to convert it to 16-bits.<br /><br />My question is how would you approach with such a small processor a request to recognize the sound of hand-clapping and blink a LED only to that sound?<br /><br />Would the learning/teaching be useful - recording let's say 10 envelopes and later comparing them? A big issue is the LED must blink as soon as possible after the clapping.<br /><br />Thank you so much!<br />Ivan Kotzig<br />EmbeddedGuyhttps://www.blogger.com/profile/00268603254773879337noreply@blogger.com