Pwm from npn seen on anlog input

No nothing like that, i would say it is none of those.

I am build a control unit to drive a alternator as a motor for a small boat.