I want to build a simple "switch" to interrupt the supply to a moped ignition coil (Capacitive discharge ignition), it is fed with AC voltage, varying from 200 to about 500 volt depending on the RPM of the engine.
I need to drive this switch with a microcontroller, so i thought to use a triac and an optocoupler, but due to this wide voltage range, how do I select the gate resistor?
If I choose a low OHM value, the gate will melt at higher RPM, and a high value will not provide enough current to the gate during the engine start.