{"id":1288,"date":"2017-10-08T17:03:51","date_gmt":"2017-10-08T17:03:51","guid":{"rendered":"http:\/\/stompville.co.uk\/?p=1288"},"modified":"2020-10-11T11:43:28","modified_gmt":"2020-10-11T11:43:28","slug":"ab-switcher-with-true-bypass","status":"publish","type":"post","link":"https:\/\/stompville.co.uk\/?p=1288","title":{"rendered":"A-B Switcher with true bypass"},"content":{"rendered":"<p><strong>Update: Kits now available in the shop <a href=\"https:\/\/stompville.co.uk\/cart\/kits-modules\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/strong><\/p>\n<p><strong>Update: Carsten posted a <a href=\"https:\/\/youtu.be\/FzmXsCwEFC0\" target=\"_blank\" rel=\"noopener noreferrer\">YouTube video here<\/a>.<\/strong><\/p>\n<p>Carsten M\u00f8ller of <a href=\"https:\/\/www.facebook.com\/mollermod\/\" target=\"_blank\" rel=\"noopener noreferrer\">M\u00f8ller Mod<\/a> in Denmark got in touch to enquire about modifying the Stompville <a href=\"https:\/\/stompville.co.uk\/?p=260\" target=\"_blank\" rel=\"noopener noreferrer\">True Bypass Relay<\/a> project to make an A-B switcher. After a few emails and some discussion, we agreed on a specification and we present the latest Stompville project: An A-B Switcher with two relays to facilitate true overall bypass and selection of A or B effect when not in bypass mode. Carsten initially intends to use the board to make a dual-channel drive pedal. We discussed different ways of achieving this:<\/p>\n<p><a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/260SV.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1289 size-full\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/260SV.png\" alt=\"260SV\" width=\"620\" height=\"594\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/260SV.png 620w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/260SV-300x287.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>You can see that the different topologies give different options for what may be selected. We chose option 2 because when the effect is in bypass, the signal is only passing through one relay.<\/p>\n<p>Our design has two stomp switches and two relays. We will refer to the switches as <em>A<\/em> and <em>B<\/em> and the relays as the <em>bypass<\/em> relay and the <em>select<\/em> relay. The relays are latching and have a <em>reset<\/em> (NC) position and a <em>set<\/em> (NO) position.<\/p>\n<ul>\n<li>When the system is in bypass mode, the bypass relay is reset.<\/li>\n<li>When the effect is on (A mode or B mode), the bypass relay is set.<\/li>\n<li>When the A switch is pressed, the select relay is reset (A mode).<\/li>\n<li>When the B switch is pressed, the select relay is set (B mode).<\/li>\n<\/ul>\n<p>There are three LED outputs:<\/p>\n<ol>\n<li>Power status.<\/li>\n<li>A is active.<\/li>\n<li>B is active.<\/li>\n<\/ol>\n<p>Let&#8217;s start in bypass mode. The bypass relay is reset and LEDs 2 and 3 are off:<\/p>\n<ul>\n<li>Pressing A switch sets the bypass relay and resets the select relay. LED 2 is on.<\/li>\n<li>Pressing B switch sets the bypass relay and sets the select relay. LED 3 is on.<\/li>\n<\/ul>\n<p>Starting from A mode. The bypass relay is set and the select relay is reset. LED 2 is on and LED 3 is off:<\/p>\n<ul>\n<li>Pressing A switch resets the bypass relay. LED 2 is off. (i.e. back to bypass).<\/li>\n<li>Pressing B switch sets the select relay, switches LED 2 off and switches LED 3 on. (now in B mode).<\/li>\n<\/ul>\n<p>Starting from B mode. The bypass relay is set and the select relay is set. LED 2 is off and LED 3 is on.<\/p>\n<ul>\n<li>Pressing A switch resets the select relay, switches LED 3 off and switches LED 2 on. (now in A mode).<\/li>\n<li>Pressing B switch resets the bypass relay. LED 3 is off. (i.e. back to bypass).<\/li>\n<\/ul>\n<p>To explain this another way, if we are in bypass mode, pressing A or B puts the system into A or B mode respectively. If we press the button that is currently active, we go back to bypass and if we press the button that is not active, we switch to the other active mode.<\/p>\n<p>Here&#8217;s the schematic:<\/p>\n<p><a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/261SV.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1291 \" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/261SV.png\" alt=\"261SV\" width=\"697\" height=\"478\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/261SV.png 900w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/261SV-300x206.png 300w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/261SV-768x527.png 768w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/a><\/p>\n<p>On the PCB design, all twelve relay pins are available for you to wire them up to your effects however it suits you. Clearly, the hardware design is very straightforward and the logic is in the microprocessor software. In a similar fashion to the original <a href=\"http:\/\/stompville.co.uk\/?p=260\">true bypass relay<\/a>, the power LED flashes ten times if the supply voltage drops below about 8.3V. If you are battery powering the circuit and you want to save the battery, you can omit the power LED altogether and save about 4mA of constant current draw.<\/p>\n<p>Here&#8217;s the software development and programming setup:<\/p>\n<p><a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P189SV.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1293\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P189SV.jpg\" alt=\"P189SV\" width=\"600\" height=\"425\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P189SV.jpg 800w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P189SV-300x213.jpg 300w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P189SV-768x544.jpg 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>And here&#8217;s the prototype dimensions are 35mm x 34mm:<\/p>\n<p><a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P190SV.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1294 \" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P190SV.jpg\" alt=\"P190SV\" width=\"363\" height=\"400\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P190SV.jpg 550w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P190SV-272x300.jpg 272w\" sizes=\"(max-width: 363px) 100vw, 363px\" \/><\/a><\/p>\n<p>After testing the design in a real project, we decided to make two modifications to the design. Firstly, we would add some more components to the switch inputs to allow the switches to be remote wired. Secondly, we decided we only needed two LED&#8217;s not three, and finally, as we are likely not trying to retrofit the PCB into an existing pedal, we should add some mounting holes for the PCB&#8217;s. The production PCB&#8217;s are 37 x 50mm (with 39mm mounting centres) and look like this:<a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P191SV.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1297\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P191SV.jpg\" alt=\"P191SV\" width=\"349\" height=\"502\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P191SV.jpg 450w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/P191SV-209x300.jpg 209w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><\/a>And here is the revised schematic:<\/p>\n<p><a href=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/262SV.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1298\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/262SV.png\" alt=\"262SV\" width=\"697\" height=\"478\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/262SV.png 900w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/262SV-300x206.png 300w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2017\/10\/262SV-768x527.png 768w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><\/a><\/p>\n<p>Kits are available from the shop. <a href=\"https:\/\/stompville.co.uk\/cart\/kits-modules\" target=\"_blank\" rel=\"noopener noreferrer\">Click here<\/a>.\u00a0 <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/02\/svfavicon.png\" alt=\"\" width=\"16\" height=\"16\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: Kits now available in the shop here. Update: Carsten posted a YouTube video here. Carsten M\u00f8ller of M\u00f8ller Mod in Denmark got in touch to enquire about modifying the Stompville True Bypass Relay project to make an A-B switcher. After a few emails and some discussion, we agreed on a specification and we present\u2026 <span class=\"read-more\"><a href=\"https:\/\/stompville.co.uk\/?p=1288\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[54,55,56],"_links":{"self":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1288"}],"collection":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1288"}],"version-history":[{"count":9,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1288\/revisions"}],"predecessor-version":[{"id":1364,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1288\/revisions\/1364"}],"wp:attachment":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}