See aarg's reply for a different take on this. This is a simplified version. There are lots of things you can do with this circuit, and I tried to create a jumping off point for students or others who might be beginners too. Thanks for the feedback! You are spot on that the meat of this is in changing counts to PWM steps
@anon57585045 sorry if there's impropriety or confusion. This is a different take on that circuit and I thought it would be clearer for beginners to start here rather than go through all the confusion of the first topic.