Go Down

Topic: motor,servos cannoy work at the same time...HELP! (Read 771 times) previous topic - next topic

vek11

Hello,
I hooked up an Arduino UNO to two dc motors via sn746 motor driver ic(1.5-3V), a microservo(4.8-6v), and a ping))) sensor with a 4.5 power supply. I noticed that I cannot have them operate at the same time. For example, once the servo moves, both motors stop.
Why is this and how can I connect it differently ?

MAS3

Tell a bit more.
Where did you connect them, did you connect them all to one power source or do the motors and servo have their own power source ?
What code are you using ?
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

MarkT

In particular what power source are you using - what are its ratings and is it enough for everything
(servos can take an amp or two, remember).
[ I won't respond to messages, use the forum please ]

vek11

The servo( SG90 Mini Servo): 3.5-8.4V,
The two motors are fa-130 type motors. So 1.5-3v.
power source is 4.5V. Thats 3 AAA duracell duralock batteries. Also, connected to the jack plug is a 9v battery.
The wiring is an attachment.

MAS3

The motor with the blue wires is powered from your UNO, is that what you meant to do ?
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

vek11

Yes. its connected to the motor driver, but powered from the uno. Standard when using 2 motors with that motor driver.
So should I increase the power output?put in more than 3 AA batteries?

AWOL

http://arduino.cc/en/Reference/Servo

Does that answer your question?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

MAS3


Yes. its connected to the motor driver, but powered from the uno. Standard when using 2 motors with that motor driver.
So should I increase the power output?put in more than 3 AA batteries?


Standard ?
Not at all.
The driver allows different power supplies for different motors connected to it.
If you want to drive both motors, you need to power both parts of the circuit.
Who said one of those needs to be powered from the Arduino ?
The on board power supply can power the board and some small current parts.
Motors (including servos) are hardly small current parts.

So power all of them without the use of the on board Arduino regulator, and you'll be fine.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Go Up