New account as I think I have been inactive for too long here! I’m looking for some help and suggestions for a project that I’m having a problem with.
The project uses a Pro Mini, a 5V motor, a servo, and a continuous rotation servo - it involves several other components, but the problem seems to be related to the 5V motor somehow driving the servos when it is powered.
I am pretty sure the problem is not with the code so I have not included it here.
When the sketch is edited to run without turning the motor on the servos behave as expected - rotating to given angles or completing rotations. However, when the motor is running (either using PWM or digitalWrite), both servos run continuously even though the only instruction for them to run in the sketch is when the motor is stopped.
I’m pretty sure this is a wiring problem so I have attached a sketch of the circuit. The motor and servos are powered by a battery and the Pro Mini is connected to USB via FTDI. What could the problem be?