Some background: I have an ATtiny85 running at 8 MHz under the Arduino IDE. I have been gifted a large ferrite transformer and some MOSFETs & drivers to drive it. However I am lacking a suitable PWM signal to actually make it work. I tried using analog write, however the current quickly got out of control due to the switching frequency simply being far too slow.
I know a little bit about programming here and there. I've also worked with the Arduino Uno, which I am also using as a programmer for the ATtiny. However I have a limited understanding of the inner workings of microprocessors. So I looked for a library to make all of this work, and I found this:
However, I am still unsure how to actually make this work, or adjust the pulse width with a potentiometer. Think a 4047 with a deadlocked frequency, but with an adjustable pulse width. To keep it simple I don't have a clue how to make this work, and it is driving me crazy.