Hi.
Not any transformer you could use, the voltage should be taken into account and you should make an oscillator circuit to vary the frequency .......... in addition to working it would only serve you for the inductive.
On the other hand, the CKP sensor in conjunction with the flywheel or crankshaft pulley, does not have a constant signal, has every 60º (most) a jump so that the ecu knows the position of the engine ........... ...... you should know that there are inductive CKP and Hall effect
So to emulate the Sensor signal you should do something more elaborate ............
Better buy something already done like
this or similar:)
Regards