Pages: [1]   Go Down
Author Topic: motor,servos cannoy work at the same time...HELP!  (Read 655 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 47
Posts: 1552
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

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

0
Offline Offline
Shannon Member
****
Karma: 201
Posts: 11744
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* Autonomous robot layout.jpg (359.42 KB, 2540x1620 - viewed 24 times.)
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 47
Posts: 1552
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The motor with the blue wires is powered from your UNO, is that what you meant to do ?
Logged

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25898
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Does that answer your question?
Logged

"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.

The Netherlands
Offline Offline
Edison Member
*
Karma: 47
Posts: 1552
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Pages: [1]   Go Up
Jump to: