| Electronics > Projects, Designs, and Technical Stuff |
| Soft switch latch help |
| << < (3/4) > >> |
| Zero999:
Here's my version: It's also possible to add a time delay and bootstrap the whole circuit so it can be connected in series with the load. Checkout the thread linked below: https://www.eevblog.com/forum/projects/onoff-switch-with-timer/ |
| Peabody:
That's pretty slick, Zero999. In your circuit the cap operates through the NPN base instead of the mosfet gate. And you've reduced the resistor count down to three. Maybe Dave should do a followup video showing the later further simplifications of his "world's simplest" toggle switch design. |
| SiliconWizard:
--- Quote from: Zero999 on December 15, 2019, 12:11:05 am ---Here's my version: --- End quote --- It's elegant, but I can see a small issue with this design for the ON to OFF transition. When the circuit is on the ON state, we can consider the capacitor discharged. The moment the button is pressed, the NPN transistor will thus switch off, which will in turn make the PMOS switch off. So far so good. The less good part is that while the button is still pressed, the capacitor is still connected to the NPN's base and will start charging through the two resistors in series on the left, up to the threshold voltage of the NPN, which will then switch on again, making the PMOS in turn switch on again! The whole thing to consider here is the circuit formed by all 3 resistors, the capacitor AND the load! The higher the input voltage, the faster the cap will get to the threshold. Conversely, the higher the load (in terms of current), the slower. There's a whole range of conditions that can make this circuit thus turn ON again by itself while the user presses the button. With light loads, it won't take a very long press either, but a pretty typical one. Of course one solution would be to increase the capacitance, but it may make it in turn pretty hard to get it to switch ON if you don't wait long enough before cycles. So yes, anyway, unless I missed something (which can always happen), this circuit can't handle "long" button presses in general, and the fact that the max press time depends on the input voltage and the load can be a bit annoying. What do you think? |
| Zero999:
--- Quote from: Peabody on December 15, 2019, 04:38:38 am ---That's pretty slick, Zero999. In your circuit the cap operates through the NPN base instead of the mosfet gate. And you've reduced the resistor count down to three. Maybe Dave should do a followup video showing the later further simplifications of his "world's simplest" toggle switch design. --- End quote --- --- Quote from: SiliconWizard on December 15, 2019, 06:54:23 pm --- --- Quote from: Zero999 on December 15, 2019, 12:11:05 am ---Here's my version: --- End quote --- It's elegant, but I can see a small issue with this design for the ON to OFF transition. When the circuit is on the ON state, we can consider the capacitor discharged. The moment the button is pressed, the NPN transistor will thus switch off, which will in turn make the PMOS switch off. So far so good. The less good part is that while the button is still pressed, the capacitor is still connected to the NPN's base and will start charging through the two resistors in series on the left, up to the threshold voltage of the NPN, which will then switch on again, making the PMOS in turn switch on again! The whole thing to consider here is the circuit formed by all 3 resistors, the capacitor AND the load! The higher the input voltage, the faster the cap will get to the threshold. Conversely, the higher the load (in terms of current), the slower. There's a whole range of conditions that can make this circuit thus turn ON again by itself while the user presses the button. With light loads, it won't take a very long press either, but a pretty typical one. Of course one solution would be to increase the capacitance, but it may make it in turn pretty hard to get it to switch ON if you don't wait long enough before cycles. So yes, anyway, unless I missed something (which can always happen), this circuit can't handle "long" button presses in general, and the fact that the max press time depends on the input voltage and the load can be a bit annoying. What do you think? --- End quote --- I agree. It's not a good circuit. It's very sensitive to changes in supply voltage and the base current is too high, when the switched is pushed to turn it on. I think the low side circuit posted by hugo is better and could easily be converted to high side, by swapping the PNP for NPN and N-channel for P-channel. |
| Zero999:
Here's the circuit posted by hugo, changed to high side. One thing to note about this and the circuit I posted is it won't work without a decent minimum load, since the load has to have a low enough impedance to charge C1, without turning on Q1. |
| Navigation |
| Message Index |
| Next page |
| Previous page |