first of all this is for an assignment so I have certain limitations, mainly cost. The problem I'm having is I have run out of PWM inputs on my ATtiny45 but I still want to drive a servo. The two PWM outputs are taken up driving two motors. This servo would only have to sweep from left to right and back smoothly constantly to allow me to take reading at different angles off a sensor attached to the arm.
Is there a way I can use a 555 timer to sweep a PWM signal to control the servo? My idea would be then to smooth out this PWM signal to read it as Analogue signal on one of the inputs of the ATtiny45, thus reading the angle. In reality this servo is doing something quite 'dumb' so shouldn't really need a micro controller driving it.
As I said, this is for an assignment so don't give me too much detail, but any pointers on this scheme or suggestions to give me more PWM capability would be greatly appreciated. :)