{"id":561,"date":"2016-04-05T12:34:21","date_gmt":"2016-04-05T19:34:21","guid":{"rendered":"http:\/\/pididu.com\/wordpress\/solarbike\/?p=561"},"modified":"2016-04-05T12:34:21","modified_gmt":"2016-04-05T19:34:21","slug":"switching-converter-needs-a-snubber","status":"publish","type":"post","link":"http:\/\/pididu.com\/wordpress\/solarbike\/switching-converter-needs-a-snubber\/","title":{"rendered":"Switching Converter Needs a Snubber"},"content":{"rendered":"<figure id=\"attachment_571\" aria-describedby=\"caption-attachment-571\" style=\"width: 604px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Snubber-Experiment.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-571\" alt=\"conceptual snubber schematic\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Snubber-Experiment.gif\" width=\"604\" height=\"574\" \/><\/a><figcaption id=\"caption-attachment-571\" class=\"wp-caption-text\">The actual circuit has 12 stages of transformer windings and energy storage capacitors. For simplicity, only two are shown here.<\/figcaption><\/figure>\n<p>The core circuit for the Solar Bike&#8217;s power converter is conceptually shown above. \u00a0A positive-going pulse goes into the PUMP input, turning on Q3 for a few microseconds. \u00a0Current builds up in L1, reaching a peak of perhaps 40 Amps. \u00a0When Q3 turns off, the voltage across L1 zooms up to whatever it takes to maintain the 40A current. This current passes through the body diodes of Q1 and Q2, charging capacitors C1 and C2. \u00a0Extra windings on L1 generate a voltage on the gates of Q1 and Q2 at this time, turning them on briefly. \u00a0In addition to making the charging of C1 and C2 a little more efficient, this also provides some voltage equalization.<\/p>\n<p>Engineering question: What voltage must Q3 withstand on its drain? \u00a0The input voltage of +24V is a start, but since it comes from a solar panel, perhaps it could be as high as 40 volts. \u00a0Added to that is the voltage stored on C1 and C2, the voltage used to drive the motor. \u00a0Let&#8217;s say that the motor voltage is 30 volts absolute maximum. \u00a040 + 30 = 70, so a beginning designer might think that a MOSFET rated 70 volts Vds would be enough &#8211; perhaps 80 or 100 volts to provide a safety margin. \u00a0But hold on a minute. \u00a0Take a look at the real-life waveform on the drain of Q3 below.<\/p>\n<figure id=\"attachment_567\" aria-describedby=\"caption-attachment-567\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Ring-across-L1.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-567\" alt=\"ringing across L1\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Ring-across-L1.gif\" width=\"732\" height=\"503\" \/><\/a><figcaption id=\"caption-attachment-567\" class=\"wp-caption-text\">This is the waveform on the drain of Q3 just as the pulse driving the gate goes away. Since the ground of the scope is put on the +24V line, L1 appears to be driven 24V (perhaps 30V) below the vertical center line. \u00a0There is overshoot of about 50 volts, and lots of ringing, which finally settles out at the 8 volts across C1+C2.. R84 and C122 have not been installed, yet.<\/figcaption><\/figure>\n<p>In a perfect world, when the PUMP pulse goes away, the voltage would clamp at 24 volts plus the output voltage across C1+C2, but in reality, it overshoots and rings. In anticipation of this happening, I put the following pad patterns down for R84 and C122:<\/p>\n<figure id=\"attachment_572\" aria-describedby=\"caption-attachment-572\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/snub1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-572\" alt=\"snubber layout\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/snub1.jpg\" width=\"800\" height=\"600\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/snub1.jpg 800w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/snub1-300x225.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-572\" class=\"wp-caption-text\">R84 and C122 are intended to be a snubber.<\/figcaption><\/figure>\n<p>The idea of an RC snubber is to absorb and dampen the ringing. But what value of components should be used? We can see the resonant frequency (about 4.5 MHz) of the ringing from the previous trace, but we need to know the individual L and C in the circuit, in order to match impedances at that frequency. To figure that out, a zero-ohm jumper was installed for R84, and 10 nF (0.01 uF) was installed as C122.<\/p>\n<figure id=\"attachment_568\" aria-describedby=\"caption-attachment-568\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Ring-across-L1-add-10-nF.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-568\" alt=\"10 nF added\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/03\/Ring-across-L1-add-10-nF.gif\" width=\"732\" height=\"504\" \/><\/a><figcaption id=\"caption-attachment-568\" class=\"wp-caption-text\">This is the same waveform, with R122 = 0 ohms, and C84 = 10 nF.<\/figcaption><\/figure>\n<p>As expected, the frequency of the ringing is lowered from the original 4.5 Mhz, to about 3.6 MHz. Using the basic engineering formula of<\/p>\n<p align=\"center\"><img src='http:\/\/l.wordpress.com\/latex.php?latex=f%20%3D%20%5Cfrac%7B1%7D%7B2%5Cpi%5Csqrt%7BLC%7D%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='f = \\frac{1}{2\\pi\\sqrt{LC}}' style='vertical-align:1%' class='tex' alt='f = \\frac{1}{2\\pi\\sqrt{LC}}' \/><\/p>\n<p>we can determine that the equivalent original capacitance is 16 nF, and using<\/p>\n<p align=\"center\"><img src='http:\/\/l.wordpress.com\/latex.php?latex=X%20%3D%20%5Cfrac%7B1%7D%7B2%5Cpi%20fC%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='X = \\frac{1}{2\\pi fC}' style='vertical-align:1%' class='tex' alt='X = \\frac{1}{2\\pi fC}' \/><\/p>\n<p>that its impedance at the original ring frequency was 2.2 \u03a9. The details of the calculations are in my handwritten notes.<\/p>\n<p>Again, skipping over theoretical details, this means that we would want C122 and R84 to be in that ballpark. I didn&#8217;t have those exact values on hand in 1206 surface-mount size, so I used a 10 nF, 50V capacitor, and a 2.7 \u03a9 resistor. I put a few pulses through the circuit, and took the following trace:<\/p>\n<figure id=\"attachment_588\" aria-describedby=\"caption-attachment-588\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/Snub-blew-out-2.7-ohm-.01-uf.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-588\" alt=\"what happened?\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/Snub-blew-out-2.7-ohm-.01-uf.gif\" width=\"732\" height=\"504\" \/><\/a><figcaption id=\"caption-attachment-588\" class=\"wp-caption-text\">Funny, I expected it to work better than this.<\/figcaption><\/figure>\n<p>The snubber acted like it wasn&#8217;t even there. Turned out, it wasn&#8217;t! I measured the 2.7 ohm resistor, and found it to be open. Apparently, the supposed 1\/4 watt film resistor couldn&#8217;t handle the surge current and blew out. Learning: this must be why in some switching applications, manufacturers specify that resistors must be carbon composition. I replaced the blown resistor with an old-style 1\/2 watt carbon composition resistor:<\/p>\n<figure id=\"attachment_589\" aria-describedby=\"caption-attachment-589\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-589\" alt=\"carbon composition resistor\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub2.jpg\" width=\"800\" height=\"600\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub2.jpg 800w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub2-300x225.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-589\" class=\"wp-caption-text\">The hope was that this carbon composition resistor would withstand the current surge better than the earlier SMT film resistor.<\/figcaption><\/figure>\n<p>But when power was applied to the circuit, there was an incandescent glow on the board.<\/p>\n<figure id=\"attachment_590\" aria-describedby=\"caption-attachment-590\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub3.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-590\" alt=\"capacitor blew\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub3.jpg\" width=\"800\" height=\"600\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub3.jpg 800w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub3-300x225.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-590\" class=\"wp-caption-text\">The resistor survived. But the capacitor glowed yellow-hot. It had turned into a resistor. I had used a cap rated at 50 volts (what was I thinking?), and the ringing voltage definitely exceeded that. Also, the cap may have been further damaged from soldering heat when I replaced the resistor.<\/figcaption><\/figure>\n<p>I remembered something that an analog CRT sweep designer (I think his name was Rick) told me in 1981, at my first permanent job. He said that those snubber resistors get hot. I didn&#8217;t think too much about it at the time, but the memory resurfaced after this incident. My next try was with a 2.7 ohm resistor, and a 16 nF mylar capacitor rated for 100 volts.<\/p>\n<figure id=\"attachment_591\" aria-describedby=\"caption-attachment-591\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub4.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-591\" alt=\"2.7 ohm plus 16 nF Mylar\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub4.jpg\" width=\"800\" height=\"600\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub4.jpg 800w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/snub4-300x225.jpg 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-591\" class=\"wp-caption-text\">The PCB copper was destroyed in the last burn, so R84 and C122 are just soldered point to point.<\/figcaption><\/figure>\n<figure id=\"attachment_592\" aria-describedby=\"caption-attachment-592\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/16-nF-mylar-and-2.7-ohm-snub.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-592\" alt=\"first successful snub\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/16-nF-mylar-and-2.7-ohm-snub.gif\" width=\"732\" height=\"502\" \/><\/a><figcaption id=\"caption-attachment-592\" class=\"wp-caption-text\">Okay, that&#8217;s what I&#8217;m talking about. The snubbing is not perfect, but the ringing is substantially reduced. This hasn&#8217;t done much to lower the initial overshoot voltage, though.<\/figcaption><\/figure>\n<p>In an ideal world, I should have been able to move the snubber from being across the drain and source of Q1, and put it across L1, instead. In theory, those points should be the same for AC purposes. And that would mean that the capacitor voltage would swing from -24 volts to +75 volts, instead of from 0 to 99 volts. That would mean less stress on the capacitor, as the peak voltage across it would be lower. So I tried it.<\/p>\n<figure id=\"attachment_595\" aria-describedby=\"caption-attachment-595\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/16-nf-2.7-ohm-directly-across-L1.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-595\" alt=\"snub across L1\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/16-nf-2.7-ohm-directly-across-L1.gif\" width=\"732\" height=\"502\" \/><\/a><figcaption id=\"caption-attachment-595\" class=\"wp-caption-text\">There is only about one cycle of ringing, but the overshoot voltage is actually worse with the snubber across L1, than with the snubber across Q1. The scope probe is measuring close to the drain of Q1.<\/figcaption><\/figure>\n<p>The overshoot voltage was actually worse with the snubber across L1. Lesson: if the snubber is supposed to protect a transistor (Q1 in this case) from overvolage, put the snubber as close to the transistor as possible. To put it elsewhere is like having a guard dog in a house a block away, and expecting it to watch your back yard.<\/p>\n<figure id=\"attachment_598\" aria-describedby=\"caption-attachment-598\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-598\" alt=\"1.8 ohm\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf.gif\" width=\"732\" height=\"504\" \/><\/a><figcaption id=\"caption-attachment-598\" class=\"wp-caption-text\">We&#8217;re back to putting the snubber across Q1. R84 has been lowered to 1.8 ohm from 2.7 ohm, in an attempt to cut down the overshoot more. This was ineffective.<\/figcaption><\/figure>\n<p>Up until now, we have been ignoring R4, the gate resistor of Q1. Originally, this was 2 ohms. When designing, I put in a resistor because every design I&#8217;ve seen puts one in. As a novice designer, I thought that the faster I could drive the transistor, the more efficient it would be. But I had neglected the overshoot that occurs when a waveform switches too fast. I&#8217;m beginning to see why a gate resistor is important.<\/p>\n<figure id=\"attachment_599\" aria-describedby=\"caption-attachment-599\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf-gate-res-10.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-599\" alt=\"Gate resistor R??? has been increased to 10 ohms to try to slow the risetime a little.\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf-gate-res-10.gif\" width=\"732\" height=\"502\" \/><\/a><figcaption id=\"caption-attachment-599\" class=\"wp-caption-text\">Gate resistor R4 has been increased to 10 ohms to try to slow the risetime a little. This did seem to help, very slightly.<\/figcaption><\/figure>\n<figure id=\"attachment_600\" aria-describedby=\"caption-attachment-600\" style=\"width: 732px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf-gate-res-100.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-600\" alt=\"100 ohms\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2016\/04\/1.8-ohm-16-nf-gate-res-100.gif\" width=\"732\" height=\"502\" \/><\/a><figcaption id=\"caption-attachment-600\" class=\"wp-caption-text\">R4 has now been increased to 100 ohms. The risetime of the signal is now about 250 nS. This seems like an eternity to people like me who are used to digital, but it does help reduce the ringing, so I&#8217;m going to keep R4 at 100 ohms for the time being. Q1 may heat more now, but if anything is set to dissipate heat, it&#8217;s Q1, which is mounted on an actual heat sink.<\/figcaption><\/figure>\n<p>To be safe, I&#8217;m going to increase the voltage ratings of both Q1 and the snubber capacitor.<\/p>\n<p>My next investigation will be into what destroyed Q2 in a previous experiment.  My hunch is that it was overvoltage on the gate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The core circuit for the Solar Bike&#8217;s power converter is conceptually shown above. \u00a0A positive-going pulse goes into the PUMP input, turning on Q3 for a few microseconds. \u00a0Current builds up in L1, reaching a peak of perhaps 40 Amps. \u00a0When Q3 turns off, the voltage across L1 zooms up to whatever it takes to &hellip; <a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/switching-converter-needs-a-snubber\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Switching Converter Needs a Snubber<\/span> <span class=\"meta-nav\">&rarr;<\/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":[97,94,5,23,93,96,95],"_links":{"self":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts\/561"}],"collection":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":0,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"wp:attachment":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}