{"id":2450,"date":"2020-10-16T07:29:00","date_gmt":"2020-10-16T14:29:00","guid":{"rendered":"http:\/\/www.donluc.com\/?p=2450"},"modified":"2020-10-16T07:29:00","modified_gmt":"2020-10-16T14:29:00","slug":"project-16-sound-brownian-noise-mk02","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2450","title":{"rendered":"Project #16: Sound &#8211; Brownian Noise &#8211; Mk02"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2450-1\" width=\"720\" height=\"406\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2010Mk01M.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2010Mk01M.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2010Mk01M.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#donluc #sound #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01a-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01a-1.png\" alt=\"Brownian Noise\" width=\"720\" height=\"442\" class=\"alignnone size-full wp-image-2452\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01a-1.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01a-1-300x184.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01b-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01b-1.png\" alt=\"Brownian Noise\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2453\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01b-1.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01b-1-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01c-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01c-1.png\" alt=\"Brownian Noise\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2454\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01c-1.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2020\/10\/DL2009Mk01c-1-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Brownian Noise<\/strong><\/p>\n<p>White noise has equal intensity at equal frequencies. This sounds tinny and harsh to humans. The problem is due to the high frequencies. In order to produce a more pleasant sound, we need to attenuate those high frequencies. This is called a \u201clow pass filter\u201d. Brownian noise is noise with a power density which decreases 6 dB per octave with increasing frequency and, when heard, has a &#8220;damped&#8221; or &#8220;soft&#8221; quality compared to white and pink noise.<\/p>\n<p>In science is the kind of signal noise produced by Brownian motion, hence its alternative name of random walk noise. The graphic representation of the sound signal mimics a Brownian pattern. The sound is a low roar resembling a waterfall or heavy rainfall. <\/p>\n<p><strong>Brown Noise Sleep Machine<\/strong><\/p>\n<p>Brown noise can be produced by integrating white noise. That is, whereas white noise can be produced by randomly choosing each sample independently, Brown noise can be produced by adding a random offset to each sample to obtain the next one. Note that while the first sample is random across the entire range that the sound sample can take on, the remaining offsets from there on are a tenth or thereabouts, leaving room for the signal to bounce around.<\/p>\n<p>This is a pretty common diode. It acts as a flyback, a protective measure to against voltage spikes caused by inductive loads, in this case the speaker. It is basically the same setup, except that an electrolytic decoupling capacitors has been added. I found that 33uF to be suitable. If the output sounds too tinny, which I think is unlikely, then increase the capacitance. As you increase the capacitance, the output volume will go down. So you might try experimenting with a lower capacitance and potentiometer.<\/p>\n<p><strong>DL2010Mk01<\/strong><\/p>\n<p>1 x Arduino Pro Mini 328 &#8211; 5V\/16MHz<br \/>\n1 x 1K Potentiometer<br \/>\n1 x Knob<br \/>\n1 x Diode Small Signal &#8211; 1N4148<br \/>\n1 x Electrolytic Decoupling Capacitors &#8211; 33uF\/63V<br \/>\n1 x Audio Jack 3.5mm<br \/>\n1 x SparkFun Audio Jack Breakout<br \/>\n1 x Hamburger Mini Speaker<br \/>\n9 x Jumper Wires 3in M\/M<br \/>\n1 x Full-Size Breadboard<br \/>\n1 x SparkFun Cerberus USB Cable<br \/>\n1 x SparkFun FTDI Basic Breakout &#8211; 5V<\/p>\n<p><strong>Arduino Pro Mini 328 &#8211; 5V\/16MHz<\/strong><\/p>\n<p>SPT &#8211; Digital 6<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2010Mk01p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"asm\">\r\n\/\/ ***** Don Luc Electronics \u00a9 *****\r\n\/\/ Software Version Information\r\n\/\/ Project #16: Sound - Brownian Noise - Mk02\r\n\/\/ 09-02\r\n\/\/ DL2010Mk01p.ino 16-02\r\n\/\/ 1 x Arduino Pro Mini 328 - 5V\/16MHz\r\n\/\/ 1 x 1K Potentiometer\r\n\/\/ 1 x Knob\r\n\/\/ 1 x Diode Small Signal - 1N4148\r\n\/\/ 1 x Electrolytic Decoupling Capacitors - 33uF\/63V\r\n\/\/ 1 x Audio Jack 3.5mm\r\n\/\/ 1 x SparkFun Audio Jack Breakout\r\n\/\/ 1 x Hamburger Mini Speaker\r\n\/\/ 9 x Jumper Wires 3in M\/M\r\n\/\/ 1 x Full-Size Breadboard\r\n\/\/ 1 x SparkFun Cerberus USB Cable\r\n\/\/ 1 x SparkFun FTDI Basic Breakout - 5V\r\n\r\n\/\/ Include the Library Code\r\n\r\n\/\/ Mini Speaker\r\nint SPK = 6;\r\nlong randNumber;\r\n\r\n\/\/ Software Version Information\r\nString sver = \"16-02\";\r\n\r\nvoid loop() {\r\n\r\n  \/\/ Mini Speaker\r\n  randNumber = random();\r\n  digitalWrite( SPK , randNumber ); \r\n    \r\n  \/\/ Delay the actual frequency of updates\r\n  delayMicroseconds (50);\r\n  \r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"asm\">\r\n\/\/ Setup\r\nvoid setup() {\r\n\r\n  \/\/ Connect a speaker between ground\r\n  pinMode(SPK, OUTPUT);\r\n  \/\/ Random Seed\r\n  randomSeed(analogRead( SPK ));\r\n  \r\n}\r\n<\/pre>\n<p><strong>Technology Experience<\/strong><\/p>\n<ul>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc&#8230;)<\/li>\n<li>Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc&#8230;)<\/li>\n<li>Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc&#8230;)<\/li>\n<li>Social Media Programming &#038; Integration (Facebook, Twitter, YouTube, Pinterest, etc&#8230;)<\/li>\n<li>Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc&#8230;)<\/li>\n<li>Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc&#8230;)<\/li>\n<li>eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc&#8230;)<\/li>\n<\/ul>\n<p><strong>Instructor<\/strong><\/p>\n<ul>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<li>DOS, Windows, OSX, Linux, iOS, Android, Multi-OS<\/li>\n<li>Linux-Apache-PHP-MySQL<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>J. Luc Paquin \u2013 Curriculum Vitae<\/strong><br \/>\nhttps:\/\/www.donluc.com\/DLHackster\/LucPaquinCVEngMk2020a.pdf<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> http:\/\/www.jlpconsultants.com\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.donluc.com\/DLHackster\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/channel\/UC5eRjrGn1CqkkGfZy0jxEdA<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/luc.paquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #donluc #sound #programming #arduino #fritzing #electronics #microcontrollers #consultant #vlog &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Brownian Noise White noise has equal intensity at equal frequencies. This sounds tinny and harsh to humans. The problem is due to the high frequencies. In order to produce a more pleasant sound, we need to attenuate those high frequencies. This &#8230; <a title=\"Project #16: Sound &#8211; Brownian Noise &#8211; Mk02\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2450\" aria-label=\"Read more about Project #16: Sound &#8211; Brownian Noise &#8211; Mk02\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119,50,38,59,5,58,10,43],"tags":[6,121,102,19,85,24,9,27,120,109,34,108],"class_list":["post-2450","post","type-post","status-publish","format-standard","hentry","category-sound","category-arduino","category-digitalelectronics","category-fritzing","category-microcontrollers","category-arduino-programming","category-projects","category-sparkfun","tag-arduino","tag-brownian-noise","tag-components","tag-electronics","tag-fritzing","tag-microcontroller","tag-programming","tag-projects-2","tag-sound","tag-sparkfun","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2450"}],"version-history":[{"count":4,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2450\/revisions"}],"predecessor-version":[{"id":2458,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2450\/revisions\/2458"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}