Actually, there's another approach that will allow you to control the HIGH and LOW parts of the cycle completely independently.Oops, that's embarrassing! I think I must've copied the formulas wrong when I tried to work out the timing values. Besides this mistake, I also have formulas telling me that the 555 can only do ~0-50% duty cycle instead of ~50-100%, which I've since found is apparently backwards.
Q1 is a P-channel MOSFET. If you want to replace it with a BJT you need a PNP like a 2N3906, not an NPN.You don't need that expensive and specialized NDP6020P FET for Q1...
Use an one-cent 2N3904 NPN transistor instead.
There is an old saying that 'an engineer is someone who can design something for 50-cents that any other dam fool would require 2-dollars to do'
Keep this in mind
Precisely the reasons I ended up with this MOSFET. I was totally oblivious to these issues until they were raised earlier in this thread (thanks for the good catch!) Since the main challenge in this circuit is variable, potentially very low supply voltage, this is a core issue.Q1 is a P-channel MOSFET. If you want to replace it with a BJT you need a PNP like a 2N3906, not an NPN.
With a BJT, however, I'd want to check the Vce(sat) specs of the transistor and the relay minimum pull-in voltage. With the MOSFET, the relay would see the full supply voltage, minus only a couple of millivolts; with a BJT, the loss from Vce(sat) is going to be a lot more than a few millivolts. The spec sheet for the 2N3906, for instance, gives a maximum Vce(sat) of 0.4V for Ic = 50 mA and Ib = 5 mA. I don't know what the specs of the relay are, but my guess is the relay might not have enough voltage left to reliably pull in.
Yes, a 50-cent solution is better than a 2-dollar solution-- but only if it actually works.
Looks right to me.So... about that MOSFET, did I manage to wire it right? Drain and source aren't reversed? Gate resistor ok? I wasn't really sure how to size that - at the moment it's basically just limiting current demand on the 555.
Are you going to breadboard this gadget first?Thanks so much for all your help! Think it's time to finalize the BOM and send it off.
It is only simply switching an relay. I say NPN because I would modify the circuit to SINK current to the relay coil, not source it.Q1 is a P-channel MOSFET. If you want to replace it with a BJT you need a PNP like a 2N3906, not an NPN.
Use an pull-up resistor on the output of the 555 timer. You do not need an mosfet to simply switch an relay ON.Precisely the reasons I ended up with this MOSFET.
Even looking at logic level MOSFETs, a lot of them looked dubious with Vgs of around 3V (555 output may not reach full 3.3V supply voltage,) so I tried to choose options with especially low Vgs requirements for the Vds and current expected, and especially low Rds-on values as well.
Have you read any of the other posts here? This circuit needs to run on as low of an input voltage as possible. With 3.3V or less available, there are concerns (very valid as far as I can tell) that the relay wouldn't get enough voltage to work reliably when switched with a bjt.Please consider the following for switching an relay:
Yes well I must have missed something then. Operating a 5 volt relay off 3V3? Well the whole schema seems wrong then.Have you read any of the other posts here? This circuit needs to run on as low of an input voltage as possible. With 3.3V or less available, there are concerns (very valid as far as I can tell) that the relay wouldn't get enough voltage to work reliably when switched with a bjt.