Here is my initial thoughts. However, depending on the relay you choose, your 2 ms pulses may be too fast to switch on the relay. P1 adjust your initial on time of the relay and the HEF40106 is powered from 12 Volts. You may have to tweak a few components to get it to work how you want. But it's...