{"id":835,"date":"2021-01-22T14:35:55","date_gmt":"2021-01-22T13:35:55","guid":{"rendered":"http:\/\/www.glui.de\/wp\/?p=835"},"modified":"2021-02-05T15:09:10","modified_gmt":"2021-02-05T14:09:10","slug":"a-digital-brezel","status":"publish","type":"post","link":"http:\/\/www.glui.de\/wp\/?p=835","title":{"rendered":"A digital brezel"},"content":{"rendered":"\n<p>(Brezel is German for pretzel and it&#8217;s what the good folks at former citymusic, Karlsruhe mockingly called my guitar when they saw it the first time. Somehow the name stuck&#8230;)<\/p>\n\n\n\n<p>As mentioned in my first post about the new guitar, one goal was to do the analog-to-digital conversion right inside the guitar, to cut noise and hum and other interferences to an absolute minimum. <\/p>\n\n\n\n<p>I know that many guitar players are kinda strangely immune to the constant 50\/60Hz buzz from their rig, but I hang out a lot with the Berlin echtzeitmusik scene where musicians often play so reduced, that any fridge or what-not gets disconnect before the show, so its ambient buzzes and gurgles don&#8217;t interfere with the music (except when the fridges are part of the line-up of course). There&#8217;s also certain experimental playing styles where I have to apply a lot of gain where it helps to have a super-low noise floor.<\/p>\n\n\n\n<p>Converting a guitar to digital also means that one has to modify the whole system, including all the other guitars. So I decided to start this process with my old guitar, in order to gain some experience towards an optimized implementation for the new guitar. It&#8217;s also the guitar with the smallest compartment for the electronics, so I wanted to make sure the design would fit in there.<\/p>\n\n\n\n<p>Here&#8217;s the analog &amp; converter section of the board:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/9B4493F0-1B73-4F3D-8676-2E291D69755E_1_105_c.jpeg\"><img loading=\"lazy\" width=\"1021\" height=\"770\" src=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/9B4493F0-1B73-4F3D-8676-2E291D69755E_1_105_c.jpeg\" alt=\"\" class=\"wp-image-836\" srcset=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/9B4493F0-1B73-4F3D-8676-2E291D69755E_1_105_c.jpeg 1021w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/9B4493F0-1B73-4F3D-8676-2E291D69755E_1_105_c-300x226.jpeg 300w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/9B4493F0-1B73-4F3D-8676-2E291D69755E_1_105_c-768x579.jpeg 768w\" sizes=\"(max-width: 1021px) 100vw, 1021px\" \/><\/a><\/figure>\n\n\n\n<p>There&#8217;s a transistor stage that&#8217;s tuned for the high impedance input required by piezo pickups, followed by an OpAmp that does the proper conditioning of the signal towards the ADC inputs, like filtering and balancing. I picked the TI OPA2209 for its low noise floor of 2.2nV\/sqrt(Hz). <\/p>\n\n\n\n<p>The ADC is a Cirrus CS5366 which is their best multi-channel option. The CS5381 has better noise figures but it&#8217;s only stereo, so then I&#8217;d need 3 of them which introduces other problems. The situation for AKM chips is similar.<\/p>\n\n\n\n<p>Finally, there&#8217;s the LT3045 regulator. Getting the power supply right is just as important as the chips in the signal chain, so I picked an ultra-low noise type with a high PSRR.<\/p>\n\n\n\n<p>So how low could I get the noise in the end? Well, I don&#8217;t have professional audio measurement equipment, so take my numbers with a grain of salt. I simply ran the signal into a MaxMSP patch and fed it into an RMS meter. The lowest I could get was -108dB, which required quite some tweaking &#8211; at this level even 1cm of exposed, un-shielded cable picks up quite a bit of hum. I also gave the compartment a proper conductive coating at long last. <br>In any case that noise figure is close to the theoretical limit of 114dB that the CS5366 datasheet lists, so I stopped further tweakings for the time being<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Converting the guitar signal to digital is of course only half of the job &#8211; you also need a way to send it across a cable. In the past I had used ADAT and MADI for multi-channel digital transmission. These days it&#8217;s all about Ethernet-based protocols like Dante and AES67. However, in the end I opted for an automotive protocol called A2B, which is easier to implement with a smaller PCB footprint:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c.jpeg\"><img loading=\"lazy\" width=\"1024\" height=\"618\" src=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c-1024x618.jpeg\" alt=\"\" class=\"wp-image-839\" srcset=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c-1024x618.jpeg 1024w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c-300x181.jpeg 300w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c-768x464.jpeg 768w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/2D507F30-8CC5-4B98-9187-20B257D32F9E_1_105_c.jpeg 1141w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>It still requires (semi-) advanced PCB techniques, like impedance-matched signal routing. Still, with a ~50Mbaud data rate not half as complicated as Gbps-Ethernet (of course you can buy modules that do it for you, but those don&#8217;t fit in this guitar. They&#8217;re also expensive). A2B allows for &#8220;only&#8221; 32 signals on one bus, but that&#8217;s plenty for my current scenarios. It supports bi-directional communication which will come in handy for the new guitar where I also want to send signals back!<\/p>\n\n\n\n<p>At the receiving end, things are not quite as cleaned up yet: the A2B transceiver is still on a perfboard that is patched into an MCH Streamer from MiniDSP which serves as the USB interface. Plus an extra Teensy to do configuration via I2C. Still lots of work ahead!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o.jpeg\"><img loading=\"lazy\" width=\"768\" height=\"1024\" src=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o-768x1024.jpeg\" alt=\"\" class=\"wp-image-840\" srcset=\"http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o-768x1024.jpeg 768w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o-225x300.jpeg 225w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o-1152x1536.jpeg 1152w, http:\/\/www.glui.de\/wp\/wp-content\/uploads\/2021\/01\/8C13841E-1891-4225-9114-B8AF793FEE85_1_102_o.jpeg 1536w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Brezel is German for pretzel and it&#8217;s what the good folks at former citymusic, Karlsruhe mockingly called my guitar when they saw it the first time. Somehow the name stuck&#8230;) As mentioned in my first post about the new guitar, one goal was to do the analog-to-digital conversion right inside the guitar, to cut noise &hellip; <a href=\"http:\/\/www.glui.de\/wp\/?p=835\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A digital brezel<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":850,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[229],"tags":[],"_links":{"self":[{"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/835"}],"collection":[{"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=835"}],"version-history":[{"count":6,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/835\/revisions"}],"predecessor-version":[{"id":871,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/835\/revisions\/871"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=\/wp\/v2\/media\/850"}],"wp:attachment":[{"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.glui.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}