I'm grateful for your response dear ToddL1962. could you tell which Transistor I need and how to connect it and about the Code that I wrote in earlier was for just testing and not very good if you have any suggestion for code please write a example for using timer and generating tach signal.
Also I see this page in github
and