You're right, that mosfet only has a 10V VGS(max)
I'd actually recommend you connect the gate directly to the arduino output (via that 270 ohm resistor). I'm not sure what the motivation was to suggest you use an optocoupler. If you do this, you don't need D3, but keep R3. You can reduce R5 to 180 ohms.
As you have the circuit right now, the 270 ohm resistor is in the wrong place. It needs to be before D3, and preferably also before R3 (that means if R5 fails, the mosfet will turn off).
Your power supply shows a choke in series with a zener diode. That will cause both components to fail. You need a resistor in series with the inductor. I'd recommend maybe 270 ohms (1W) and use a 1W zener.
I would also recommend you consider using the internal clock for the ATMega328. It only runs at 8MHz, and isn't as accurate as a crystal, but it reduces the component count considerably. You need another bootloader for this, but it should be pretty easy to find. (If not, ask me and I'll dig it up for you)
It will be VERY important that the ground for the arduino is very well bonded to the source of the mosfet. Don't have them widely separated or connected to the car (bike, whatever) chassis at different points or you'll be sorry....
I'd actually recommend you connect the gate directly to the arduino output (via that 270 ohm resistor). I'm not sure what the motivation was to suggest you use an optocoupler. If you do this, you don't need D3, but keep R3. You can reduce R5 to 180 ohms.
As you have the circuit right now, the 270 ohm resistor is in the wrong place. It needs to be before D3, and preferably also before R3 (that means if R5 fails, the mosfet will turn off).
Your power supply shows a choke in series with a zener diode. That will cause both components to fail. You need a resistor in series with the inductor. I'd recommend maybe 270 ohms (1W) and use a 1W zener.
I would also recommend you consider using the internal clock for the ATMega328. It only runs at 8MHz, and isn't as accurate as a crystal, but it reduces the component count considerably. You need another bootloader for this, but it should be pretty easy to find. (If not, ask me and I'll dig it up for you)
It will be VERY important that the ground for the arduino is very well bonded to the source of the mosfet. Don't have them widely separated or connected to the car (bike, whatever) chassis at different points or you'll be sorry....