The data sheet on such switches tells nothing. What do they do, close a contact between the extra pin and the barrel? ...Jim Thompson
The data sheet on such switches tells nothing. What do they do, close a contact between the extra pin and the barrel? ...Jim Thompson
By throwing away two-thirds of its capacity in a regulator? Unless you've got some kind of switcher going there.
Thanks, Rich
While you're at it... pick a three-legged regulator, test it's output with input floating (but ground connected)... apply a current-limited voltage to the output, gradually up from zero to say 3.5V and see what current, if any, is drawn from your test supply. ...Jim Thompson
Hmmm.... I didn't realize they were so bad, I'll have to think about that.
To my original question, I've come up with this kind of configuration, I'm not sure if it would work.... basically when no 9V battery is plugged into the jack, it's switch is closed and I'm using a comparator to trigger some transistors to route my 3V, then when the
9V is plugged in, the switch opens and the 9V feeds the regulator.... this seem reasonable?sketch of circuit is here:
thanks
If it's only 15 ma then you can use a small analog switch like shown below, it is a SPDT implemented in transmission gates from Fairchild, or anything similar. Depending on the load you may want some hold-up capacity on the output a schmitt intervening the regulator output and the S(elect) input to the switch.
Please view in a fixed-width font such as Courier.
. . . . . . 3V Pin >-----------------+------------. . | | . | | FSA3157 . | --------- . ------- | | VCC | . | | | | | . 9V BATT>---|3V REG |---------+---|S | . | | | | | | . | | | +---+B1 A|--> 3V . | | | | | | . ------- '---|---|B0 | . | | | | . | | | GND | . | [100K] --------- . | | | . | | | . -----------+-------------+--------+------- . . .
Does the switch OPEN when barrel is plugged in? The only description I've found for a barrel connector with switch say switch is NORMALLY OPEN and closes when barrel is inserted...
By your reference, is pin 2 connected to pin 3 until the plug is inserted? Or vice versa? ...Jim Thompson
This link implies 2-3 is open until plug insertion, then 2-3 is closed...
If I can get the switch polarity correct (as in my reference) I think I have a simple solution to panfilero's problem. ...Jim Thompson
This would be the usual battery backup type of circuit, you don't say where the 3V PIN comes from, but I assume it's from the line. So remove the line power and the 9V kicks in...
Please view in a fixed-width font such as Courier.
. . . . . . 3V Pin >----------------------+---|>|--+------. . | | | . .----|---|>|--' | FSA3157 . | | --------- . | | | VCC | . | | | | . | +----------|S | . | | | | . ------- | +----------+B1 A|--> 3V . | | | | | | . 9V BATT>---|3V REG |-----+----|----------|B0 | . | | | | | . | | | | GND | . | | [100K] --------- . ------- | | . | | | . -----------+--------------+---------------+------- . . .
How about this idea? Maybe the reg can handle out side voltage on its input?
3.3V | | | + +-----------------------+||-+ | ||-> depletion mode PMOS | ||-+ | + | | | | | ----------- | | | | | 9V+--+------+ +----------+----------+ | 3.3V | | REG | | | | | | | | |- ----+-----| | | | + GND (created by AACircuit v1.28.6 beta 04/19/05Jamie
Use a relay?
+9-+-----------------Coil---Gnd | +-------[Reg+3]---v ---o-- to ckt ^ | Batt +3 -------------+Ed
e C
=A0 | =A0 =A0 =A0 =A0| =A0 =A0 =A0|
---|>|--' =A0 =A0 =A0| FSA3157
=A0| =A0 =A0 =A0 =A0 =A0 ---------
=A0| =A0 =A0 =A0 =A0 =A0| =A0 VCC =A0 |
=A0| =A0 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 |
=A0+----------|S =A0 =A0 =A0 =A0|
=A0| =A0 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 |
------+B1 =A0 =A0 =A0A|--> 3V
=A0 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 |
|=A0| =A0 =A0 =A0 =A0 =A0| =A0 =A0 =A0 =A0 |
=A0| =A0 =A0 =A0 =A0 =A0| =A0 GND =A0 |
=A0 =A0 =A0 =A0 ---------
=A0 =A0 =A0 =A0 =A0 =A0 |
=A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
-ut?
=A0 3.3V
=A0 |
=A0 |
=A0 |
=A0 +
=A0depletion mode PMOS
+ | |That's good, and if the reg can't handle it then a little help like so would work: Please view in a fixed-width font such as Courier.
. . . . 3.3V . | . | . | . + . +-------------------------+---------+||-+ . | | ||-> depletion mode PMOS . | | ||-+ . | | + . | | | . | | | . | ----------- G | . | | | | . 9V+--+------+ +----- S D ----------+----------+ . | | 3.3V | . | | REG | N-CH . [100K] | | ENHANCEMENT . | | | 2N7000 e.g. . | | | . | | |- . | ----+-----| . | | . --+----------+ . | . + . GND . . . But I wouldn't use this for a 15mA circuit, a little micro sized switch comes in cheaper, this would be good for bigger loads.
Careful. If the regulator backfeeds the 3V to the input, it's possible the relay won't drop out when the 9V is removed (typical guaranteed dropout is something like 5%-10% of nominal voltage (0.45~0.9V on a 9V relay)- less at low temperatures). A diode at the regulator input would isolate it (and protect against the common occurence of a momentarily reversed 9V battery)
One could replace the electromechanical relay with an appropriate form CMOS SSR, but it will have a bit of voltage drop.
Best regards, Spehro Pefhany
It was a thought to be able to switch power with no interruptions.
I don't think in the case here a back flow in the reg is going to cause any problems, which is why I didn't bother with the CT pole switch.
Jamie
Good point. The 3 volts from the battery can't get to the relay coil, but if there's a big cap on the input to the circuit, intended to keep the circuit powered for the brief time that the relay takes to drop out, it could possibly keep the relay energized if the reg backfeeds. The isolation diode is good cheap protection against that. Thanks!
Ed
Modified diagram:
+9-+-----------------Coil---Gnd | +-->|---[Reg+3]---v ---o-- to ckt ^ | Batt +3 -------------+
Here you go...
I didn't have anything better than a BSS84 in my library, so it struggles at 3V gate drive.
Likewise I had no 3-legged regulator, so I used LM317. With a
3-legged regulator I doubt the need for the 2N7000, its gate resistor and the diode.But it's something to start with.
Good exercise, I learned how to make a symbol act like a real jack ;-) ...Jim Thompson
At your current levels, replacing FET's with 2N3904 and 2N3906 works better. ...Jim Thompson
Have something to add? Share your thoughts — no account required.
Ask the community — no account required