<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Duet 3.3V supply quality</title>
        <description>It seems to me that a good few problems might be attributable to the quality of the Microcontroller supply voltage. I think my Duet board is the latest spec and has an on-board 12V to 5V 2A Buck convertor supplying a 3.3V LDO regulator. The problems I suffer from are *all* intermittent ones such as a random inability to log-in over the network and sudden &quot;all stop&quot; crashes in the middle of printing. Early on I found that things seemed to be more reliable if I connected Duet to my PC via an externally powered USB hub but it did not entirely solve my issues.

The +12V supply from the ATX PSU is not something I trust entirely, and from a quick glance at the Duet schematic, the only bulk capacitance on the output of the 5V reg. is a single 100uF (plus 20uF worth of ceramic caps). Assuming peak currents from the micro in the order of 0.5A, if the 12V dips even for just one millisecond then the micro will not be happy.

To me, this doesn&#039;t seem like anywhere near enough bulk capacitance given the large amounts of current being switched around in motors and heaters on the (relatively crudely regulated) 12V side. So as an experiment, given that it has consistently failed part-way through a particularly long print run three times in succession (stopping at different places each time), I soldered a leaded 2200uF 16V capacitor with a measured ESR of 48 milliohms across the 0V and 5V legs of the 3.3V regulator. If that doesn&#039;t sort it - I&#039;ll consider my theory busted. So far though, so good... although I still have to press the reset button before I can get a network connection (a power-up reset might be necessary - especially since this extra capacitance will slow the 3.3V rise-time)</description>
        <link>https://reprap.org/forum/read.php?340,285306,285306#msg-285306</link>
        <lastBuildDate>Mon, 12 Oct 2026 17:57:17 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,289205#msg-289205</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,289205#msg-289205</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Rory166</strong><br />
Dmould<br />
<br />
Whilst not disagreeing with you. There is a post somwhere here that I have replicated Radians work using a battery scope and Duet powered from Laptop USB ie no mains at all, not even laptop charger.  There was a suggestion about using two scope probes in difference mode AC coupled with the two earth clips joined but not connected.  I have yet to try this but I believe Radian has.<br />
<br />
Rory</div></blockquote>
<br />
I tried loads of tricks Rory, but didn't really make any breakthoughs. I was investigating the transient response of both the switching and linear regulators and got some pretty wild looking waveforms, but I freely admit the results were hampered by measuring difficulties. As far as I could progress things, it remained the case in my opinion that there were very fast transients happening on the 3.3V rail and that the layout of inductors/capacitors around the microcontroller was not helping but hindering things. However I switched my attention to the cause of the transients when I found that reducing their severity increased printing reliability. Call me pragmatic - or anything you like  :P]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 13:30:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,289196#msg-289196</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,289196#msg-289196</link>
            <description><![CDATA[ Just to add that I've started a dedicated thread to discuss the <a href="http://forums.reprap.org/read.php?340,289182" target="_blank"  rel="nofollow">Heater switching transients</a> issue.Unfortunately this particular thread about the quality of the 3.3V supply contains an awful lot of discussion about the heater switching transients. The two are indeed related, but there are parallel issues to do with the "not so LDO" regulator and noise immunity that might be better continued here. I hope we can pick up the topic of heater switching transients in the new thread.]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 13:17:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288946#msg-288946</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288946#msg-288946</link>
            <description><![CDATA[ Dmould<br />
<br />
Whilst not disagreeing with you. There is a post somwhere here that I have replicated Radians work using a battery scope and Duet powered from Laptop USB ie no mains at all, not even laptop charger.  There was a suggestion about using two scope probes in difference mode AC coupled with the two earth clips joined but not connected.  I have yet to try this but I believe Radian has.<br />
<br />
Rory]]></description>
            <dc:creator>Rory166</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 05:56:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288945#msg-288945</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288945#msg-288945</link>
            <description><![CDATA[ Hi Treth, which spike are you talking about? If you mean the spike on the mosfet drain, I really don't think it's a problem as regards reliability and operation of the board. If you mean the spike on the +12V rail, then I agree that this is a problem.<br />
<br />
Some possible fixes are:<br />
<br />
1. Add capacitors on the +12V input, as close to the Duet board as possible. This is my least-preferred solution, and on its own, probably the least effective. It's more effective if you add the capacitor on the back of the Duet board, between bed heater +ve and the -ve side of the 12V input. I have added a 1uF ceramic capacitor here.<br />
<br />
2. Add a resistor in series with the mosfet gate. This is a tricky mod to do and I don't recommend it. I added 100 ohms here, but I think around 200 ohms would be better.<br />
<br />
3. Add a capacitor on the back of the Duet board, between bed heater -ve and the negative side (upper terminal) of the +12V input. This is an easy mod to do. I would not normally recommend connecting a capacitor directly across a mosfet, but the mitigating factor here is that the mosfet turns on slowly, so the discharge current is modest. Radian used 1uF, but I would choose 0.47uF because I am less worried by ringing on the mosfet drain than he is.<br />
<br />
Fixes (2) and (3) also get rid of the spike on the mosfet drain, or at least reduce its amplitude and sharpness. You could also get rid of the spike on the mosfet drain by adding a Schottky flyback diode, but I think this is pointless unless you tackle the spike on the 12V supply.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 05:55:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288939#msg-288939</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288939#msg-288939</link>
            <description><![CDATA[ @Radian, I am sceptical that the spikes you are seeing when unrelated main switching occurs are really there.  I suspect that the ringing is on the earth side of your 'scope probe,  You might try powering the Duet from just its USB port (or even a 12V battery) and see if you observe similar ringing when your soldering iron is switched.]]></description>
            <dc:creator>dmould</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 05:31:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288924#msg-288924</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288924#msg-288924</link>
            <description><![CDATA[ Treth<br />
<br />
What scope were you considering?  I bought a Hantek 1062B but have yet to fully master its capabilities.  Are you still quite sure about your sense comment?<br />
<br />
All<br />
<br />
This thread is getting very long and quite hard to follow.  Perhaps a thread for proven conclusions would be beneficial.<br />
<br />
Rory]]></description>
            <dc:creator>Rory166</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 04:52:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288911#msg-288911</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288911#msg-288911</link>
            <description><![CDATA[ This post is getting long so apologies if I missed something.<br />
<br />
The switching transients at switch off are obviously a concern on long term reliability. There is an interesting post here:-<br />
[<a href="http://reprap.org/wiki/Basics_about_switching_loads_with_MOSFETs#Problem_of_reverse_voltage_killing_the_MOSFET_device" target="_blank"  rel="nofollow">reprap.org</a>]<br />
<br />
I used to work in switch mode PSU design back in the 80's when things didn't switch fast and worked just above 20kHz if you were lucky!<br />
<br />
From memory and from recent reading this spike will eventually cause failure and it is likely to be bigger than you see due to scope and probe limitations, so I would like to cure it.<br />
<br />
Slowing down the MOSFET has been shown to work and is a good idea, but I would prefer not to mod the board at this stage. I also like to keep things switching fast, I spent lots of time trying to make slow devices fast!<br />
<br />
The use of a capacitor on the output can be useful, but does affect the FET switch on, so I would like to avoid that as well.<br />
<br />
The ribbon cable is a pain (but excellent for a flexible power cable!) as I can't add ferrite beads easily.<br />
<br />
So I come back to the clamp methods.<br />
The diode across the load is the easiest choice, but doesn't help the wiring inductance. I think I'll add this first, was this tried and did the spike reduce?<br />
<br />
A better solution is to add a diode with R and C, these dissipate the energy in a more controlled way in the "R". This method was used in the good old days of unipolar stepper drives to remove the energy from the de-energised coils. As the spike is very narrow only low power components are required, but the diode must be fast (the lead inductance will actually help here as it slows the prpogation towards the FET switch allowing the diode to turn on).<br />
<br />
There are other options such as transient (transorbs) suppressors, but has anyone tried this D,R,C combination at the load?<br />
<br />
My scope will be a bit 'iffy' for these measurements, in fact I was either going to buy a scope or a 3D printer! I'm pleased sense prevailed and I bought the Ormerod B)]]></description>
            <dc:creator>Treth</dc:creator>
            <category>Ormerod</category>
            <pubDate>Sat, 04 Jan 2014 03:56:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288418#msg-288418</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288418#msg-288418</link>
            <description><![CDATA[ I agree with you, capacitor to ground is best. With the capacitor across the load, the current drawn from +12V will still drop abruptly to zero, which is what gives the positive spike on the +12V supply in the absence of a local decoupling capacitor.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 08:00:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288380#msg-288380</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288380#msg-288380</link>
            <description><![CDATA[ So dc, now I find myslef wondering what the subtle difference is placing the capacitor across the load versus across the switch... both provide a path for the back-EMF and equally well prevent the rise above 12V at the Drain terminal. From a theoretical POV the two networks are identical AC wise due to the bulk capacitance of the PSU. In practical terms I think the difference is the series inductance of the supply leads, so without local decoupling on the 12V, snubber capacitor to ground is the best bet - do you agree? It would however be a very easy mod for the Bed Heater just to solder a leaded cap. in the unused terminal holes provided. Hmm...]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 06:31:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288370#msg-288370</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288370#msg-288370</link>
            <description><![CDATA[ It happened again.. your post crossed with my edit to my previous post.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 06:12:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288367#msg-288367</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288367#msg-288367</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
So I'm thinking that a capacitor of 0.22uF would probably be enough to prevent avalanching, saving 40uJ dissipation at turn-off, but only add 16uJ of dissipation at turn-on. </div></blockquote>
<br />
0.22uF certainly would prevent avalanching, but it would definatley "ring" all the way down. I most recently played around with values on the Extruder heater MOSFET which switches roughly half as much current than the bed and with 0.1uF between Drain and Source there was a significant amount of ringing. 0.22uF reduced it quite a bit, but I finally settled on 0.47uF for smoothness. This scales almost exactly to the Bed heater hence 1uF for the Bed MOSFET.<br />
<br />
The Extruder switch is potentially more significant due to being at the opposite end of the PCB to the 12V Supply terminals. It might have been bettern to locate the Extruder connector and Transistor at the other end of the PCB - where the Z-axis motor is now. Anyway, the capacitively coupled transients on the 12V rail from flyback is totally eliminated with the snubbers in place.]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 06:06:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288335#msg-288335</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288335#msg-288335</link>
            <description><![CDATA[ Thinking about this a little more, there is another effect. Without the gate resistor, the inductive energy in the bed is dissipated as avalanche energy in the mosfet. There is 45-50V on the mosfet drain for a little under 200ns, and during this time the current will drop smoothly from 10A to zero. So I estimate that around 40uJ of avalanche energy is dissipated in the mosfet. Your capacitor suppresses the positive spike so that the inductive energy is dissipated in the bed resistance + circuit resistance instead. So although your capacitor increases turn-on dissipation by 72uJ, it decreases turn-off dissipation by 40uJ.<br />
<br />
However, your capacitor is so effective at decreasing the positive spike that it is clear that a lower value capacitor would suffice. So I'm thinking that a capacitor of 0.22uF would probably be enough to prevent avalanching, saving 40uJ dissipation at turn-off, but only add 16uJ of dissipation at turn-on. Rise time would be about 500ns (double the rise time that my 100 ohm gate resistor achieves). And adding a capacitor between bed heater -ve and ground is a much easier mod than adding a gate series resistor!<br />
<br />
[EDIT: your post crossed with mine. Using a 0.22uF capacitor instead of 1uF might mean there is a little residual ringing. If you wanted to stop that as well, perhaps 0.47uF would be a good value. Also 0.1uF across the extruder heater mosfet drain and source.]]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 05:09:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288329#msg-288329</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288329#msg-288329</link>
            <description><![CDATA[ Hi dc - no worries. I guess it all comes down to priorities.(tu)<br />
<br />
My current priority, while trying to track down intermittent microprocessor crashing, is to keep voltage and current transients in the wiring looms to an absolute minimum. Comparing our two sets of scope traces for the Transistor Drain voltage, your sceme nicely rounds off the edges but still leaves us with a 45V transient that rings at around 5MHZ for a uS or two. I much prefer to integrate all this within the same period to keep it from exceeding the supply rail. I think the full analysis of the system plus snubber network is similar to that of a Class E amplifier - the likes of which could actually be developed into providing full analogue control of the heater(s) - but probably wouldn't be worth the extra effort.]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Fri, 03 Jan 2014 04:58:42 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288171#msg-288171</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288171#msg-288171</link>
            <description><![CDATA[ Hi Radian,<br />
<br />
I appreciate what you are trying to do, but I don't agree with your rationale.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Without knowing exactly what the present (or future) firmware is going to do with the gate drive, keeping the MOSFET in it's semi-conducting region with 10A flowing could soon turn into excessive dissipation. What I mean is, it depends on the number of on/off cycles in a given amount of time and we don't necessarily have any control over this.</div></blockquote>
<br />
With my added gate resistor, the turn-off time is increased to about 250ns. But the turn-on time of the mosfet is much higher - around 2us due to the gate charging through the 1K resistor to +5V. Given that the number of turn-off events is equal to the number of turn-on events, even if the firmware uses PWM in future, my change only causes a 10% increase in dynamic power dissipation. Ideally, the circuit would use a gate driver IC or similar, so that the turn-on and turn-off times can be kept similar. If I thought the dynamic power dissipation was a problem, I would reduce the 1K resistor to e.g. 470 ohms.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />So a 1uF suppression type capacitor between Source and Drain will have 12V across it when the MOSFET is turned on but the charge it's holding is insignificant given the characteristics of the MOSFET.</div></blockquote>
<br />
I was initially horrified at the thought of discharging a 1uF capacitor through the mosfet, because if the turn-on is fast then this will result in very high peak currents These may not harm the mosfet, but would cause large transients. However, the mitigating factor is that the mosfet turn-on is quite slow.<br />
<br />
Let's do some sums:<br />
<br />
Energy stored in your 1uF cap, which is dissipated mostly in the mosfet every time you turn it on, is 0.5*C*V^2 = 72uJ.<br />
<br />
Energy dissipated in the mosfet due to turning it off in 250ns rather than instantaneously is some fraction (probably well below 0.5) of (6V * 6V /1.3 ohms) * 250ns = 7uJ. [Explanation: if the load is resistive, then the worst case power dissipation is when the mosfet and the bed are both dropping 6V. In practice, the voltage across the mosfet won't be static at 6V but will move from 0V up to 12V, hence "some fraction". I'm ignoring the inductance of the bed, because in the original design, the inductive stored energy is dissipated as avalanche energy in the mosfet anyway.]<br />
<br />
So your 1uF cap causes the dynamic power dissipation in the mosfet to increase by more than 10 times more than my gate resistor (maybe a bit less if I take account of the gate resistor slightly increasing the turn-on time as well). I'll stick to my gate resistor!]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 18:22:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,288156#msg-288156</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,288156#msg-288156</link>
            <description><![CDATA[ @dc42<br />
I'm not so sure about deliberatley slowing the turn-off time to reduce the back-EMF. Without knowing exactly what the present (or future) firmware is going to do with the gate drive, keeping the MOSFET in it's semi-conducting region with 10A flowing could soon turn into excessive dissipation. What I mean is, it depends on the number of on/off cycles in a given amount of time and we don't necessarily have any control over this.<br />
<br />
I'm currently using a capacitor-only snubber between the Drain and Source. As you know, the turn-on time is relatively slow compared to the turn-off, but the inductance of the heater means the MOSFET is well on before any serious current flows. So a 1uF suppression type capacitor between Source and Drain will have 12V across it when the MOSFET is turned on but the charge it's holding is insignificant given the characteristics of the MOSFET. The capacitor current then falls as the bed current rises but the droop on the 12V rail is still negligable overall. However, at switch-off, the capacitor provides a nice path for the back-EMF letting it down without avalanche. The scope traces show the resulting Drain voltage - roughly 2us rise and fall with no nasties. This keeps 50V transients from developing in all those ribbon strands and, from there, coupling into the adjacent cable looms.<br />
<br />
Transistor on, Drain goes to 0V in a couple of uS:<br />
[attachment 23933 2014-01-0222.31.42.jpg]<br />
<br />
Transistor off, Drain goes to 12V in a couple of uS:<br />
[attachment 23934 2014-01-0222.31.47.jpg]]]></description>
            <dc:creator>Radian</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 17:56:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287894#msg-287894</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287894#msg-287894</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>kwikius</strong><br />
The flyback diode would be connected with anode to  TR2 drain and cathode to Vin, basically across the bed heater inductance.  On switching off  TR2 the diode starts to conduct with 10 A running through it into Vin. </div></blockquote>
<br />
Not quite, the current circulates round the bed and the flyback diode only, so your decoupling capacitor isn't involved. However, your decoupling capacitor (or my 1uF one) does help absorb the shock of the PSU load current decreasing abruptly by 10A.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>kwikius</strong><br />
Alternatively without the diode, on switching off TR2,  then the drain of TR2 reaches @50 V and then acts basically like a 50 V Zenner. In this case at switch off ( get a bit hazy here)  Vin continues to ( smoothly?) supply 10 A and the energy in the inductor is dissipated in the Mosfet.. so <i>ideally</i> a gentler solution, although maybe not working so great in practise?</div></blockquote>
<br />
Yes, although the waveform at the drain is very jagged, suggesting that avalanche breakdown is not happening uniformly. Adding the series gate resistor made it better.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 08:24:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287841#msg-287841</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287841#msg-287841</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
<br />
Andy, the body diode of a mosfet is in the wrong place in the circuit to act as a flyback diode in a single-mosfet circuit like this. It's different in a mosfet H-bridge, where the body diode of the upper mosfet acts as a flyback diode when the lower mosfet turns off, and vice versa.</div></blockquote>
<br />
Ah Apologies!  .. OK  I think I'm getting the hang of it.  The flyback diode would be connected with anode to  TR2 drain and cathode to Vin, basically across the bed heater inductance.  On switching off  TR2 the diode starts to conduct with 10 A running through it into Vin.    hmm.. In this case my large decoupling capacitor at the input would works nicely to sink the 10 A current from the supply inductance as well as the current through the diode, which add up at switch off to 20 A. If we assume a 0.1 ohm ESR from my capacitor stack then Vin rises at switch off by 20 * 0.1 == 2 volts. Without  decoupling though... not so good!<br />
<br />
Alternatively without the diode, on switching off TR2,  then the drain of TR2 reaches @50 V and then acts basically like a 50 V Zenner. In this case at switch off ( get a bit hazy here)  Vin continues to ( smoothly?) supply 10 A and the energy in the inductor is dissipated in the Mosfet.. so <i>ideally</i> a gentler solution, although maybe not working so great in practise?<br />
<br />
regards<br />
Andy]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 06:20:01 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287831#msg-287831</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287831#msg-287831</link>
            <description><![CDATA[ Hmmm... it doesn't appear to be doing its job though... I am going to have a good look at it when I get home tonight. I am still waiting for my replacement head which was never packed in to the box but it is built and working from every other point of view, so I can spend some time testing this and trying a few things.<br />
<br />
I was thinking the use of the other rails from the psu for 5v and 3v3 may work but they share a common gnd which means the problem will still be there but maybe to a lesser extent. I can quite see how this could cause it to reset or stall during a print. Switch mode PSUs all have recover times, some just have better cap arrangements on the outputs and circuit designs. <br />
<br />
The final solution to this that works 100% should be interesting.<br />
<br />
Dieter]]></description>
            <dc:creator>dieterzar</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 05:34:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287823#msg-287823</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287823#msg-287823</link>
            <description><![CDATA[ Dieter, I did add a flyback diode, but I removed it when I added the resistor in series with the mosfet gate. The back emf from the bed heater inductance isn't really the problem, the problem is the abrupt removal of a 10A load from the 12V supply along with the lack of local decoupling. Adding the gate series resistor to slow down the turn off speed alleviates both. I added a 1uF ceramic local decoupling capacitor too.<br />
<br />
Andy, the body diode of a mosfet is in the wrong place in the circuit to act as a flyback diode in a single-mosfet circuit like this. It's different in a mosfet H-bridge, where the body diode of the upper mosfet acts as a flyback diode when the lower mosfet turns off, and vice versa.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 05:17:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287815#msg-287815</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287815#msg-287815</link>
            <description><![CDATA[ Hi Dieter,<br />
<br />
AFAIK Power Mosfets have this diode integrally as part of their structure. See Wikipedia  <a href="http://en.wikipedia.org/wiki/Power_MOSFET#Body_diode" target="_blank"  rel="nofollow">Body Diode</a><br />
<br />
regards<br />
Andy]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 04:59:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287811#msg-287811</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287811#msg-287811</link>
            <description><![CDATA[ I see a diode was mentioned earlier in a post as a solution, was it given a go?<br />
<br />
<br />
Dieter]]></description>
            <dc:creator>dieterzar</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 04:51:31 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287808#msg-287808</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287808#msg-287808</link>
            <description><![CDATA[ I think that short sharp spike you see is back emf from the heater board, it must be acting like a coil as what you describe is typical of coil back emf. A diode across  the heater board should solve this, flyback diode, use a common 1N4007. This is a common issue switching relays. Brushless motors do the same. Over time you will possibly destroy the fet.<br />
<br />
I will have a go on mine and see what it does, I only have a DSO pocket scope, so it might be to slow to pick it up.<br />
<br />
Dieter]]></description>
            <dc:creator>dieterzar</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 04:45:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287786#msg-287786</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287786#msg-287786</link>
            <description><![CDATA[ Hi Dieter, I believe the biggest problem is that the bed heater mosfet switches off very abruptly (in &lt;20ns) and there is no local decoupling. This leads to a short, sharp positive spike on the 12V supply in the locality. Switch-on is less of a problem because it is much slower, around 2us. Using PWM to do a soft start and finish would result in many more of these spikes being generated.<br />
<br />
I have tackled the problem by adding a gate series resistor and a local decoupling capacitor.<br />
<br />
There is also a short-lived spike on the mosfet drain when it switches off, enough to make it avalanche, but the avalanche energy is well within the mosfet rating. Again, a gate series resistor to slow down the turn-off is enough to reduce the amplitude of this spike.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 04:09:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287771#msg-287771</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287771#msg-287771</link>
            <description><![CDATA[ I assume the heater bed is causing most of the issues, voltage spikes via back emf? Voltage sag when switched on. I have not looked at the circuit yet but I would imagine a diode would be needed to clip the spikes. Also it seems from what I understand, the mosfet it just being switched on? A small rewrite on the software side should sort the spikes out by ramping up the voltage to the heater bed by employing pulse width switching to the bed. May add some caps then on the bed wires to smooth it out? By pulse width switching the bed mosfet, much more accurate control over temp can be managed? I am not an electronics engineer but been a hobby since year dot and I think this can be corrected by some software tricks? My 2c<br />
<br />
Dieter]]></description>
            <dc:creator>dieterzar</dc:creator>
            <category>Ormerod</category>
            <pubDate>Thu, 02 Jan 2014 03:10:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287490#msg-287490</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287490#msg-287490</link>
            <description><![CDATA[ Heres a screen dump which may give you a flavour of it.<br />
<br />
[attachment 23854 Duet.png]<br />
<br />
regards<br />
Andy]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 11:14:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287473#msg-287473</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287473#msg-287473</link>
            <description><![CDATA[ Ah, I haven't installed KiCad yet - looks like I had better do that to better understand the board.<br />
<br />
Avalanche breakdown occurs at about 50V for these mosfets. When the mosfet turns off sharply, the inductance of the bed + wiring causes a back emf to be induced across the bed heater, giving rise to a spike at the mosfet drain, even though Vin stays close to 12V.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 10:50:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287467#msg-287467</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287467#msg-287467</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
AFAIR, Ian said the bed current was 9A by design, and someone else on this forum reported 11A. I've just measured the resistance to be 1 ohm at the bed, and there will be some resistance in the ribbon cable. So 9 to 11A is believable.<br />
<br />
I think the board has a ground plane as one of the inner layers, in which case the stepper driver decoupling capacitors will help suppress the transient when the bed heater turns off, except at very high frequencies - which is why I added a 1uF ceramic capacitor to my board. The stored energy in the lead and bed inductance appears to be dissipated mostly as avalanche energy in the mosfet - which is another reason to add a ceramic decoupling cap between the bed +ve output and a ground point close to the mosfet source terminal.<br />
<br />
There will be some shunt capacitance and reverse recovery time in D1, but I believe C1/C3 should be more than adequate to take care of that.</div></blockquote>
<br />
If current is 10 A ... apologies. 10 A is quite a bit to be switching though!<br />
As viewed in KiCAd, there are various small independent ground planes (looks like 1 for MPU and one each fro stpper drivers, 1 for bed mosfet) but the bed mosfet is only connected to the stepper caps by one 2mm trace.. which goes through the input screw terminals.<br />
<br />
As for Mosfet Avalanche breakdown.. this requires quite a high voltage doesnt it?  My idea is to try to keep Vin as near as possible to 12V. This makes the 5V switchers job easier surely? No reverse bias in D1 == no glitches for switcher<br />
<br />
Tricky.. I certainly feel outclassed in elctronics knowledge here though so maybe I should quit arguing while I'm not too far behind :)<br />
<br />
regards<br />
Andy.]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 10:44:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287445#msg-287445</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287445#msg-287445</link>
            <description><![CDATA[ AFAIR, Ian said the bed current was 9A by design, and someone else on this forum reported 11A. I've just measured the resistance to be 1 ohm at the bed, and there will be some resistance in the ribbon cable. So 9 to 11A is believable.<br />
<br />
I think the board has a ground plane as one of the inner layers, in which case the stepper driver decoupling capacitors will help suppress the transient when the bed heater turns off, except at very high frequencies - which is why I added a 1uF ceramic capacitor to my board. The stored energy in the lead and bed inductance appears to be dissipated mostly as avalanche energy in the mosfet - which is another reason to add a ceramic decoupling cap between the bed +ve output and a ground point close to the mosfet source terminal.<br />
<br />
There will be some shunt capacitance and reverse recovery time in D1, but I believe C1/C3 should be more than adequate to take care of that.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 09:35:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287421#msg-287421</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287421#msg-287421</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>kwikius</strong><br />
So my proposal is to hang some hefty capacitance off the input leads where they enter the enclosure<br />
<br />
I ignore the existaing capacitance at the ATX PSU, which I believe is stated by Rory166 to be 2200 uF somewhere, but its 2 ft away down the leads. I assume the ATX PSU can handle the large extra capacitiive load I plan to add! I also ignore the hot end heater and concentrate on the Bed Heter Lets keep it simple.<br />
<br />
So some numbers. Lets say we have a current of 20 A with bed heater on.<br />
<br />
Assume we want a max voltage drop of 6 V, when the Bed heater switches on (So 5v reg has enough headroom) Lets also arbitrarily assume we want to supply that for 1 ms.<br />
My math gives a required Capacitance of around  3000 uF.<br />
<br />
The max ESR of the Cap allowed   is  6 V / 20 A == 0.3 R  which I think is achieveable. Just to be sure I'll get 3 1000 uF caps and put them in parallel. ( Maplin dont specify ESR)</div></blockquote>
<br />
Hi Andy,<br />
<br />
Your maths looks OK to me, except that if you are worried only about the transient caused by the bed heater turning on, then it is only the bed heater current you need to worry about, not the total 12V current.<br />
</div></blockquote>
There is the drop when the heater bed  turns on but I believe the current through the bed heater circuit is 20 A , so when that switch turns off abruptly ( as we know it does!)  there is no where for the lead inductance and bed inductance to go, so I guess that is what I am trying to address. (hmm Did I say that before   .. no  :) )  The existing capacitance on Vin consists of the stepper driver capacitors, but doesnt look like they are close to the ground point (which basically is the screw terminals where the supply enters AFAICS) <br />
<br />
Am not too up on diodes etc .. but wont there be some shunt capacitance through D1 as it comes in and out of reverse bias too?<br />
<br />
regards<br />
Andy]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 07:44:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?340,285306,287409#msg-287409</guid>
            <title>Re: Duet 3.3V supply quality</title>
            <link>https://reprap.org/forum/read.php?340,285306,287409#msg-287409</link>
            <description><![CDATA[ Well... here is my effort. It feels so right :) Maybe I will write a little app to keep firing the heater and see if it actually does improve matters.<br />
Had room for a little 100 uF capacitor atop the pile and added a discharge resistor for good measure.<br />
[attachment 23837 Inputcap.jpg]<br />
Tested.. Nothing blew up :)<br />
<br />
regards<br />
Andy]]></description>
            <dc:creator>kwikius</dc:creator>
            <category>Ormerod</category>
            <pubDate>Wed, 01 Jan 2014 07:11:49 -0500</pubDate>
        </item>
    </channel>
</rss>
