{"id":83,"date":"2020-05-31T12:07:13","date_gmt":"2020-05-31T01:07:13","guid":{"rendered":"http:\/\/dcyale.com\/blog\/?p=83"},"modified":"2026-01-19T12:10:04","modified_gmt":"2026-01-19T00:10:04","slug":"a-dcc-friendly-dcc-to-dc-voltage-converter","status":"publish","type":"post","link":"http:\/\/dcyale.com\/blog\/?p=83","title":{"rendered":"A DCC friendly DCC to DC voltage converter"},"content":{"rendered":"\n<p>It&#8217;s been about five years since I worked on this blog, that means there was A LOT of spam comments waiting for me.  Thank goodness for anti-spam apps.  <\/p>\n\n\n\n<p>Recently I have been working on an electronic circuit to convert either DC or DCC track power to around 5 volts or so. At that voltage I can power LEDs, an Arduino Nano, or a bunch of other electronic devices.  It uses a capacitor to store enough voltage to compensate for momentary flickers from dirty track or wheels.  It was pretty similar to a lot of circuits out there.  <\/p>\n\n\n\n<p>My first design used a bridge rectifier feeding the DCC signal in and getting DC out.  I was reading however, that they are not fast devices and can let negative voltage out of the positive lead as the polarity of the DCC changes.  (DCC changes from positive to negative very quickly and it is the timing of these changes that is the &#8220;code&#8221; that a DCC device reads so it knows what to do).  I found information that reverse voltage can damage the capacitor, but nothing that told me how much was safe.    I can build a circuit from a schematic, and figure a little out, but i am not an electronics answer person.  <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"733\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD-1024x733.jpg\" alt=\"\" class=\"wp-image-84\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD-1024x733.jpg 1024w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD-300x215.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD-768x549.jpg 768w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD-1200x858.jpg 1200w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/comverter-w-BD.jpg 2048w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption class=\"wp-element-caption\">This is my original design using a bridge rectifier feeding a buck dc-dc converter<\/figcaption><\/figure>\n\n\n\n<p>So I fired up my $20 oscilloscope and took a look at the voltage coming out of the bridge rectifier when i input DCC track voltage.  Sure enough, there were negative spikes coming out of the positive leg of the rectifier.  Why take a chance I thought.  Since I am milling my own PCBs on a cheap chinese CNC mill (more on this later), some experiments were easy.  <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"731\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/OC-negative-spike.jpg\" alt=\"\" class=\"wp-image-85\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/OC-negative-spike.jpg 960w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/OC-negative-spike-300x228.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/OC-negative-spike-768x585.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption class=\"wp-element-caption\">These are the negative spike coming out of the bridge rectifier when DCC track voltage is fed in.  This is the feed to the capacitor.<\/figcaption><\/figure>\n\n\n\n<p>I designed a very simple board that had four schottky diodes instead of the bridge rectifier.  I hooked the oscilloscope up to this circuit and there was absolutely no reverse spike- it was very smooth with these fast diodes doing the conversion.   So, since these diodes are cheap, and do not take up much space, I can&#8217;t think of a reason not to use them instead of a bridge rectifier.  Why take a chance?  Of course, I am waiting for someone who knows about electronics to explain why I am wrong.    <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter-1024x576.jpg\" alt=\"\" class=\"wp-image-87\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter-1024x576.jpg 1024w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter-300x169.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter-768x432.jpg 768w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter-1200x675.jpg 1200w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/converter.jpg 1280w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption class=\"wp-element-caption\">Here is the converter using the diodes<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"656\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/after-diodes.jpg\" alt=\"\" class=\"wp-image-88\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/after-diodes.jpg 816w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/after-diodes-300x241.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/05\/after-diodes-768x617.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><figcaption class=\"wp-element-caption\"> <br>This is the scope of the output from the diodes, no negative spikes. <\/figcaption><\/figure>\n\n\n\n<p>And the proof is in the pudding.  Here it is hooked up to a cheap MP3 player feeding an IPhone 4 speaker running off DCC track power.  And any sound effect can be installed on the memory card.  It will keep going for about half a second after power is removed to compensate for dirty track or wheels.  That could be increased with a bigger, or additional capacitor.  Can anyone say cheap sound car?  <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\"  style=\"display: block; margin: 0px auto;\"  id=\"_ytid_67861\"  width=\"840\" height=\"473\"  data-origwidth=\"840\" data-origheight=\"473\"  data-relstop=\"1\" src=\"https:\/\/www.youtube.com\/embed\/gPD2AX9aDXY?enablejsapi=1&#038;origin=http:\/\/dcyale.com&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=0&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  epyt-is-override  no-lazyload\" title=\"YouTube player\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>This is the circuit diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"825\" height=\"269\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker01.jpg\" alt=\"\" class=\"wp-image-99\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker01.jpg 825w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker01-300x98.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker01-768x250.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>This is a diagram of the circuit layout:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"359\" src=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker02-1024x359.jpg\" alt=\"\" class=\"wp-image-100\" srcset=\"http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker02-1024x359.jpg 1024w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker02-300x105.jpg 300w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker02-768x269.jpg 768w, http:\/\/dcyale.com\/blog\/wp-content\/uploads\/2020\/09\/antiflicker02.jpg 1046w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The voltage converter is similar to these on amazon ( <br><a href=\"https:\/\/www.amazon.com\/HiLetgo-Super-Converter-Module-Adjustable\/dp\/B00LODGDYE\/ref=sr_1_40?dchild=1&amp;keywords=dc-dc+buck+converter&amp;qid=1598994185&amp;sr=8-40\">https:\/\/www.amazon.com\/HiLetgo-Super-Converter-Module-Adjustable\/dp\/B00LODGDYE\/ref=sr_1_40?dchild=1&amp;keywords=dc-dc+buck+converter&amp;qid=1598994185&amp;sr=8-40<\/a> ), although I got the cheaper ones off aliexpress. <\/p>\n\n\n\n<p>The MP3 player was from aliexpress, too:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.aliexpress.com\/item\/4000188516180.html?spm=a2g0s.9042311.0.0.74f94c4dP7cx37\">https:\/\/www.aliexpress.com\/item\/4000188516180.html?spm=a2g0s.9042311.0.0.74f94c4dP7cx37<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been about five years since I worked on this blog, that means there was A LOT of spam comments waiting for me. Thank goodness for anti-spam apps. Recently I have been working on an electronic circuit to convert either DC or DCC track power to around 5 volts or so. At that voltage I &hellip; <a href=\"http:\/\/dcyale.com\/blog\/?p=83\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A DCC friendly DCC to DC voltage converter&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-3d-printing"],"_links":{"self":[{"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83"}],"version-history":[{"count":6,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":211,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions\/211"}],"wp:attachment":[{"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dcyale.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}