I've been trying for 6 hours to get a 5v dc motor and a servo motor running on an Arduino Micro ...
The problem is that the servo starts to turn when the 5v dc motor is switched on. I switched the motor initially via relay. So I connected the motor directly to 5V and Gnd the and same thing happens.
The servo also spins when its only connected to gnd and 5v.
Does anyone have an idea what the problem could be?
Thanks
probierer:
I've been trying for 6 hours to get a 5v dc motor and a servo motor running on an Arduino Micro ...
The problem is that the servo starts to turn when the 5v dc motor is switched on. I switched the motor initially via relay. So I connected the motor directly to 5V and Gnd the and same thing happens.
The servo also spins when its only connected to gnd and 5v.
Does anyone have an idea what the problem could be?
Thanks
The biggest problem is our crystal ball cannot see far enough to tell what your motor is and what your servo is and what you are using for power and how you have this all connected. Sorry!
Are you saying when you connect the motor directly to your 5 volt supply and ground that the servo turns? That makes magic seem a little tame in comparison.
Paul
Without knowing what the actual components are, how they are powered or the way they are connected together it's difficult to comment. Maybe it has to do with the motor taking too much power from the power supply.
But if you have a servo that spins round when there is no signal connected to it then I'd say it's dead.
Steve
I am using an arduino micro with 5v 2a power suply the motor is a 5v motor from the elegoo starter kit and the servo is a tower pro.
I think i am going to try a new servo