Making SPST switch into SPDT with PNP transistor

Go to page

I need to make a SPST momentary switch act like a SPDT switch so thought I could use a PNP transistor for the job. I'm just struggling to understand from my research the correct setup.

I've mocked up a circuit in the falstad circuit editor (link here) which seems to work:

The load I'll be using is different but I've just added an LED + Resistor as POC. The thing I'm unsure of though is if I should need any additional resistors or something around the PNP? All the examples I see have a resistor on the base pin, but I'm not sure if this tends to be more for microcontroller use? I'll be using a physical switch.

Any advice is much appreciated.

Cheers

Matt

Attachments

Your PNP transistor appears to be an n-channel FET. If you draw your schematic in a conventional orientation it will be a lot easier to follow and yes, in most cases, transistors require base resistors.

Sorry, my bad, I did mean a p-channel MOSFET rather than a PNP transistor, which is actually what is used in the circuit diagram. Sorry it's not the best diagram, I'm just not that good at doing them. Hopefully it'll come with experience, but I've tried to make it as simple as I could.

Matt

PS I tried to edit my main post to change PNP to p-channel MOSFET but can't seem to see how you edit them?

That's the behavior I want, I've only used a latching switch in the falstad demo so I can explicitly watch both states. In reality, the circuit will on enable when a momentary switch is heald down, on release, I want it to go back to original state.

This circuit is part of a bigger one, where in normal "released" mode, the power runs two elements, an LED and sends voltage through a 200k potentiality to be measured by an IC. When pressed, the current goes through a different LED, and also through a fixed 100k resistor to the same pin as the pot on the IC for measuring. Ultimately, when open, a green LED should be on, and the IC reads a variable resistance from the pot, and when closed, a red LED should be on, and the IC reads a fixed resistance from the 100k resistor. This is all on 3v.

Flow should be right-to-left and top-to-bottom as much as possible. Components should be drawn upright, unless doing otherwise makes sense.

EDIT: Of course I meant left-to-right, not right-to-left...

That's the behavior I want, I've only used a latching switch in the falstad demo so I can explicitly watch both states. In reality, the circuit will on enable when a momentary switch is heald down, on release, I want it to go back to original state.

I must be missing something. A SPDT switch has 2 positions right? NO and NC? So I'm trying to replicate it using the mosfet. When the switch is released, one circuit completes, and when the switch is pressed, the original one cuts, and the other one completes, as if one was wired to the NO position and the other wired to the NC position.

Ohhh, sorry, it's because I didn't say "SPDT momentrary switch" isn't it? My bad. I don't need latching, I just need to perform two tasks, one while released (open), and one wile pressed (closed).

The circuit in post #1 and clarified in post #9 will do what you have described. However, I would add a resistor from the Q1 gate to GND. You are relying on a trickle of current to through LED1 to turn off Q1. 10 K from Q1 gate to GND will give more stable performance.