I'm trying this circuit, and variations of it, to control a mini servo motor.
The circuit uses two 555 timers to generate a constant-frequency PWM signal with adjustable duty cycle to control the servo:
This is the voltage regulator circuit ("REG."): 
The input voltage Vin is provided by a 9V AC-DC adapter that can provide up to 1200 mA (I tried 7.5, 9, and 12V, same results; now I know that 7.5V is insufficient for the LM317 to provide 5V output).
With the circuit above, the results are very unstable, meaning the movements of the servo are very "jerky", jumping around all the time. Every once in a while, it even "goes crazy" and goes all the way in one direction and never unlocks from there. I looked at the PWM waveform on a cheap oscilloscope and it seems to be pretty noisy.
Now I've tried instead with two separate LM317 regulators, both powered by the same 7.5V AC-DC adapter. One regulator powers the servo, and the other powers the signal generator pictured above.
This is the version with two regulators that works well: 
This works perfectly.
I guess the servo adds noise to the circuit which ends up affecting the PWM signal and, somehow, splitting the circuit into two parts with separate voltage regulators keeps the noise isolated from the signal generator part of the circuit.
But why? And more importantly, is there a simpler way to achieve the same with only one regulator? Like adding a capacitor somewhere?
