We were using Arduino in college as part of a mechanical engineering course and I had the idea of building a homemade quickshifter for a motorcycle. I'm trying to build a circuit that will cut the ignition using a P-channel MOSFET. I had no real experience with electronics before this so I've spent a lot of time reading, researching, etc. I know it can be done as I've seen a similar project online but the details were a bit vague.
So far I've built a circuit on a breadboard using a 100v p-channel to switch the 12v supply and the gate is connected to a NPN transistor, which is being switched by Arduino. I'm using a car headlight bulb at the moment instead of the ignition system so I don't damage anything important.
When I connect it all up, the MOSFET conducts and the bulb lights up whether the Arduino pin is high or low. What is my problem? I'm not exactly sure of the theory behind the resistor selection, I'm just going by other circuits I've found online. The MOSFET also heats up very fast so I can only leave it on for a few seconds. I suppose this is to be expected using such a high current and no heatsink for the MOSFET??
I've attached a diagram of the circuit. Apologies if it's a bit crap as I've never had to draw one before...

So far I've built a circuit on a breadboard using a 100v p-channel to switch the 12v supply and the gate is connected to a NPN transistor, which is being switched by Arduino. I'm using a car headlight bulb at the moment instead of the ignition system so I don't damage anything important.
When I connect it all up, the MOSFET conducts and the bulb lights up whether the Arduino pin is high or low. What is my problem? I'm not exactly sure of the theory behind the resistor selection, I'm just going by other circuits I've found online. The MOSFET also heats up very fast so I can only leave it on for a few seconds. I suppose this is to be expected using such a high current and no heatsink for the MOSFET??
I've attached a diagram of the circuit. Apologies if it's a bit crap as I've never had to draw one before...
