Your original schematic isn't clear but I think you're trying to use the N-Channel MOSFET as a switch. Since I don't know the current required by your LED strip you should spec one out yourself. This video gives a great introduction to MOSFETs. Below is an explanation for each of the components used.
R1 - current limiting resistor to limit the gate current to reduce voltage oscillations
R2 - pull down resistor to avoid spurious activations by creating a defined voltage level at all times
R3 - load resistor that represents the position of your LED strip in the whole schematic.
simulate this circuit – Schematic created using CircuitLab
As others have mentioned, it may be easier to just power the LED strip from a source that's controlled by the ignition. If it's a 12V supply you'll have to use a voltage regulator like the LM7805 to reduce the voltage. It's only rated for about 1A though. If your strip needs more consider a buck converter.
Answer from SRR on Stack ExchangeVideos
Hi team, I recently got some unique LED string light from alibaba.
Unfortunately, it's got a USB end for power. Could I cut off the USB end, strip the shielding and solder it into my dome light wiring in my vehicle?
I'd like these fairy lights to be wrapped around my Jeep's roll bar and come on when the interior lights come on but unsure if these strips would accept 12 volts without burning up.
Admittedly, the strips (when I turn them to the white color) start fading to yellow 3/4's of the way down the strip. I understand it's due to lack of power. Perhaps a straight 12 volt source would work?
I am trying not to use an inverter like a cigarette lighter power plug because then my idea of the lights coming on with the interior lights would go out the window then.
Sadly, I cannot find bluetooth controllable, color changing programming app, fairy lights, that is advertised as 'will work on 12 volt'.
looking to line the roof of my car with a led strip, right now I'm using a led light tube for putting into the dash it burnt out(and looked jank anyways). so does anyone know a good led strip that has a silicone cover that diffuses the light well? I cant exactly hide it behind anything so I don't want hotspots
I’m looking to buy one of those ambient/mood led lights for my car. Everything I find is one that you plug into the cig lighter.
Any of you know of a good one that is usb powered, has an app and a remote??