Re: Auto Switch Off May 27, 2014 02:35PM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off May 27, 2014 05:23PM |
Registered: 10 years ago Posts: 39 |
Re: Auto Switch Off May 28, 2014 08:01AM |
Registered: 10 years ago Posts: 14,672 |
Re: Auto Switch Off May 28, 2014 08:07AM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off May 28, 2014 10:43AM |
Registered: 10 years ago Posts: 2,472 |
I doubt a gate pulldown will do a lot - I suspect the SAM3X output is being actively driven high as the internal logic gates misbehave during brownout, and the FET turns off only after Vcc has decayed below its gate threshold. A series resistor as well as a pulldown might mask the issue by decreasing the gate voltage in general so that it is below threshold by the time the output drives high, but that's messy and uncertain. Your trace shows a 100mS erroneous pulse, which is very long, but I think could still be supressed by a RC filter along the values I suggested on the output, which will avoid modifying the Duet board. As said however, pulse duration probably depends on the rate of decay of Vcc, which is highly variable, so the filter should have a long time constant - I'd even go up to a 100uF cap. It is desirable to have some sort of filter in this application in any case, because switching the PSU could be expected to cause glitches on all signal lines for all sorts of reasons. Put a diode in parallel with the filter series resistor so that a low discharges the capacitor immediately. Assuming no external brownout reset is implemented, asserting the software reset is worth a try - it's success will depend on how the internal reset signal is gated to the output drivers. Another alternative would be to put a resettable retriggerable monostable in series that passes the state only after there has been a constant low for a second or so, but resets and passes a high immediately - but that's a relatively complex addition.Quote
dc42
I've put a scope on the PS_ON output and looked at what it does when I turn off the 12V supply to the Duet, when the 12V supply is also the only source of 5V. There is indeed a glitch on the PS_ON output:
This was measured using a 1.5K pullup resistor to a separate 5V supply. The horizontal scale is 50ms/division. The falling edge is around 50us long, although this is at the end of 2m of wire with a scope probe on the end and a very indirect ground connection. The datasheet gives the gate charge of the mosfet as 3.9nC @ Vdd=20V, so it's going to be somewhat greater than 1nC @ 5V. Even if we assume 1nC, 50us switching time implies a gate current of about 20uA, which is much higher than the leakage current specification of the SAM3X pins. So I think the SAM3X output high side driver transistor may be turning on slightly during power down.
Two things I may try:
1. Enable the brownout detector in the firmware;
2. Add a pulldown resistor of about 3.3K on the mosfet gate input.
Re: Auto Switch Off May 28, 2014 12:48PM |
Registered: 10 years ago Posts: 14,672 |
Re: Auto Switch Off May 28, 2014 01:19PM |
Registered: 10 years ago Posts: 2,472 |
Quote
dc42
My reasoning was that the fall time of the output and the mosfet gate charge led me to believe that the gate current being sourced by the SAM3X as is powers down was about 20uA, at least during the time that the mosfet was turning on. Of course, it could have been that the current that the SAM3X can source during power down rises to a higher peak value before dropping again. But if it remained below 100uA, then a 3K3 gate pulldown resistor would take care of it.
So I've added a 3K3 gate pulldown resistor, and the glitch is gone. I'll recommend this mod to RRP for the next version of the Duet.
Re: Auto Switch Off June 03, 2014 04:59PM |
Registered: 10 years ago Posts: 10 |
Re: Auto Switch Off June 04, 2014 05:06AM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off June 04, 2014 09:57AM |
Registered: 10 years ago Posts: 14,672 |
Re: Auto Switch Off September 03, 2014 11:25PM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off September 04, 2014 02:10AM |
Registered: 10 years ago Posts: 378 |
Re: Auto Switch Off September 04, 2014 02:45AM |
Registered: 9 years ago Posts: 138 |
Quote
dc42
Kim, as I attempted to describe in my earlier message, you can have M81 power down the Duet completely. Just power the 5V supply from the 12V as usual. Then to start it up, you need a push button wired between ATX ON and ground (i.e. where the link is on the ATX power PC, and an M80 command in config.g to keep the power on when you release the push button.
You can use the G4 command to program a delay before the M81 command.
Re: Auto Switch Off September 04, 2014 04:50AM |
Registered: 10 years ago Posts: 14,672 |
Re: Auto Switch Off September 04, 2014 05:40AM |
Registered: 9 years ago Posts: 138 |
Re: Auto Switch Off September 04, 2014 06:50AM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off September 04, 2014 08:40AM |
Registered: 10 years ago Posts: 14,672 |
Quote
KimBrown
I'll leave the 330R in if it's only a 0.9mA differance. I was a bit nervous about soldering to a Surface Mount Transitor to be honest, especialy on a moving ship, but I guess S.M. components get to sink the heat away better.
Re: Auto Switch Off September 11, 2014 02:09PM |
Registered: 9 years ago Posts: 138 |
Quote
dc42
Hi muggi,
For wiring all you need to do is:
- buy a 2-pin header socket with 2.54mm spacing (or a 2-pin Molex header shell would probably be OK), and crimp pins to fit it. Just like the ones I supply with my hot end board. Connect the wires of a normally-open push button to the 2 pins. Then remove the jumper from the ATX power board and substitute the 2 pin header socket.
I'm not sure what you mean by "Is this uncritical at the actual state of the Firmware?". You will need to use my fork of the firmware (or zombiepantslol's), because the RRP 0.78a release doesn't support the M80/M81 commands. Maybe RRP's firmware never will, because the Ormerod 2 doesn't use an ATX power supply and so it isn't possible to use the Duet to shut off the power without additional electronics.
Re: Auto Switch Off September 11, 2014 02:57PM |
Registered: 10 years ago Posts: 859 |
Re: Auto Switch Off September 11, 2014 06:17PM |
Registered: 10 years ago Posts: 14,672 |
Quote
muggi
if i remuve the jumper from the ATX power board and substitute it with i push button it will have the effect like a jumper, thats easy. But i think to control the ATX power (in config.g M80 and in the END-Gcode m81) i will need also a connection from the duet to the atx board, or not?
Re: Auto Switch Off September 15, 2014 06:52PM |
Registered: 10 years ago Posts: 859 |