I want to install an led board with a switch in my car. The switch would be pressed down by the lid of the arm rest when closed. I only have N.O. tact switches to use for this, since I need momentary action. I think this would work:
simulate this circuit – Schematic created using CircuitLab
When the switch is pushed in, the lid is closed and the light should be off. RSwitch should keep the 2n3906 off. When it is released, the 2n3906's base is connected only to ground, so the lights should be on. Is this right?
The LED light current is roughly 64mA, 100mA at worst case, so the 2n3906 I have should work fine I would think.
Additionally, how do I calculate the right values for RBase and RSwitch? Is 1kΩ each correct or should they be different? Can Rswitch be omitted, or should it be included for safety reasons?