{"id":2689,"date":"2021-04-04T07:14:36","date_gmt":"2021-04-04T14:14:36","guid":{"rendered":"https:\/\/www.donluc.com\/?p=2689"},"modified":"2021-04-04T07:14:36","modified_gmt":"2021-04-04T14:14:36","slug":"project-16-sound-white-noise-mk16","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2689","title":{"rendered":"Project #16: Sound &#8211; White Noise &#8211; Mk16"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2689-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#donluc #sound #whitenoise #mozzi #arduino #sparkfun #project #programming #electronics #microcontrollers #consultant #zoom #patreon #videoblog<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01a.png\" alt=\"White Noise\" width=\"720\" height=\"403\" class=\"alignnone size-full wp-image-2691\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01a-300x168.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\/2021\/04\/DL2104Mk01b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01b.png\" alt=\"White Noise\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2692\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01b-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\/2021\/04\/DL2104Mk01c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01c.png\" alt=\"White Noise\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2693\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/04\/DL2104Mk01c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>White Noise<\/strong><\/p>\n<p>Thus, random signals are considered &#8220;white noise&#8221; if they are observed to have a flat spectrum over the range of frequencies that are relevant to the context. For an audio signal, the relevant range is the band of audible sound frequencies (between 20 and 20,000 Hz). Such a signal is heard by the human ear as a hissing sound. In music and acoustics, the term &#8220;white noise&#8221; may be used for any signal that has a similar hissing sound. It is sometimes used analogously in nontechnical contexts to mean &#8220;random talk without meaningful contents&#8221;.<\/p>\n<p><strong>DL2104Mk01<\/strong><\/p>\n<p>1 x Arduino Pro Mini 328 &#8211; 5V\/16MHz<br \/>\n1 x Audio Jack 3.5mm<br \/>\n1 x SparkFun Audio Jack Breakout<br \/>\n1 x Hamburger Mini Speaker<br \/>\n4 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>SPK &#8211; Digital 9<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2104Mk01p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ ***** Don Luc Electronics \u00a9 *****\r\n\/\/ Software Version Information\r\n\/\/ Project #16: Sound - White Noise - Mk16\r\n\/\/ 04-01\r\n\/\/ DL2104Mk01p.ino 16-16\r\n\/\/ 1 x Arduino Pro Mini 328 - 5V\/16MHz\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\/\/ 4 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\/\/ Mozzi\r\n#include &lt;MozziGuts.h&gt;\r\n#include &lt;mozzi_rand.h&gt;\r\n\/\/ Oscillator template\r\n#include &lt;Oscil.h&gt;\r\n\/\/ Sine table for oscillator whitenoise\r\n#include &lt;tables\/whitenoise8192_int8.h&gt;\r\n\r\n\/\/ Oscil &lt;table_size, update_rate&gt; oscilName (wavetable), look in .h file of table #included above\r\nOscil &lt;WHITENOISE8192_NUM_CELLS, AUDIO_RATE&gt; aSin(WHITENOISE8192_DATA);\r\n\r\n\/\/ Mini Speaker\r\nint SPK = 9;\r\n\r\n\/\/ Set the input for the volume\r\n\/\/ To convey the volume level from updateControl() to updateAudio()\r\nbyte volume;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;16-16&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ Audio Hook\r\n  audioHook();\r\n  \r\n}\r\n<\/pre>\n<p><strong>getMozzi.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Mozzi\r\n\/\/ Update Control\r\nint updateAudio()\r\n{\r\n  \r\n  \/\/ White Noise\r\n  char whitenoise = rand((byte)255) - 128;\r\n  return ((whitenoise * aSin.next()) * volume)&gt;&gt;8;\r\n  \r\n}\r\n\/\/ Update Audio \r\nvoid updateControl(){\r\n  \r\n  \/\/ Map it to an 8 bit range for efficient calculations in updateAudio\r\n  \/\/ Volume\r\n  volume = 255;\r\n\r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup() {\r\n\r\n  \/\/ Mozzi Start\r\n  startMozzi();\r\n  \/\/ Set the frequency\r\n  aSin.setFreq(0.05f);\r\n  \r\n}\r\n<\/pre>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\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>PIC Microcontrollers<\/li>\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\/DLE\/LucPaquinCVEngMk2021a.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\/DLE\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.donluc.com\/DLHackster\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Web:<\/strong> https:\/\/zoom.us\/<br \/>\n<strong>Patreon:<\/strong> https:\/\/www.patreon.com\/DonLucElectronics<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\/neosteamlabs\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #donluc #sound #whitenoise #mozzi #arduino #sparkfun #project #programming #electronics #microcontrollers #consultant #zoom #patreon #videoblog &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; White Noise Thus, random signals are considered &#8220;white noise&#8221; if they are observed to have a flat spectrum over the range of frequencies that are relevant to the context. For an audio signal, the relevant range &#8230; <a title=\"Project #16: Sound &#8211; White Noise &#8211; Mk16\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2689\" aria-label=\"Read more about Project #16: Sound &#8211; White Noise &#8211; Mk16\">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,59,5,58,10,43],"tags":[6,102,4,19,85,24,9,27,120,33,34,108,150],"class_list":["post-2689","post","type-post","status-publish","format-standard","hentry","category-sound","category-arduino","category-fritzing","category-microcontrollers","category-arduino-programming","category-projects","category-sparkfun","tag-arduino","tag-components","tag-consultant","tag-electronics","tag-fritzing","tag-microcontroller","tag-programming","tag-projects-2","tag-sound","tag-technology","tag-video-blog","tag-vlog","tag-white-noise"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2689","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=2689"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2689\/revisions"}],"predecessor-version":[{"id":2694,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2689\/revisions\/2694"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}