This may be more of an electronics question than about the Pi, but I'm sure someone here can at least give me a pointer.
I have a setup with an L293D controlling a small DC motor. I'm using the RPIO Python library to create the PWM signal that lets me control the motor speed. I have a separate battery pack connected to the L293D V(motor) pin to supply power to the motor (the Pi is connected via its regular power plugin, not to the battery pack).
My setup works exactly as I expected, so that's all good.
I also have a different setup, controlling a little servo, also with RPIO sending a PWM signal to the servo. The servo is also separately power by the battery pack. And it works well, too.
My problem is that I cannot run both at the same time. As soon as I start the motor, the servo starts jittering and won't let me control it via the PWM signal anymore. This even happens if the control line for the servo is connected to anything at all. So I suspect that what's causing this is the motor creating spikes in the voltage off the battery pack, which in turn influences the servo that is connected to the same battery pack.
Does this make any sense, and if so, how I can stop it from happening?
Thanks much in advance,
Andre