
This is the circuit I've designed for the motor. The design works like when there is no step input then the Q3 will be turned on and always generates 12v steady signal. But when there is a step input then the 12V signal should convert to 5V but it is getting converted to 0V (like red drawing shows). So could anyone help me what changes I've to make on the circuit to get it to 5V pulse? For your note space is limited so it would be better if you suggest minimum changes.
Thanks for your help in advance.




