Pages: [1]   Go Down
Author Topic: Servo and Motor Shield Confusion.  (Read 8518 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey Guys!

I am very new at Arduino (I just got started yesterday). I have the Uno, Motor Shield r3, and 2 standard Servos that I bought at Radio Shack:





I want to know how to hook the servos up to the motor shield or uno. There are very little tutorials with the depth I would like for some reason.

Thanks!


Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1260
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't need a motor shield for a servo, but you do need a seperate power supply for the servo as the Uno can't provide enough power for itself and the servo.

Servo will have 3 wires - +V, Gnd and a signal. The signal needs to be pulsed to move the servo, with specific timing. There is a Servo library that does this work for you as part of the Arduino IDE install, and there is information in the Playground on how servos work.

http://arduino.cc/playground/Learning/SingleServoExample
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot for your help!

I have 2 questions though. What is this and where can I buy it?



And what is the advantage of having the Arduino Duemilanove rather than the Uno?
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1260
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like the bit you highlighted was the plug? No idea where you get one, but I would just poke some wire into the servo socket and use that if you are building a temporary circuit to test your ideas.

The white thing is a breadboard and you can get those in any elecronics store, ebay, etc.

Duemilanove (2009 in Italian) is for this purpose no different to the Uno. I think it is just a 'older' model with a different CPU.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh smiley I was just not sure how to hook it up because at a hobby store, I asked the owner if he thought it would work and he said definetly not ( mabye so I would buy one of his).

Thanks!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry for double posting but I got my servo up and running but it only can only rotate 180 degrees. I was planning to use them as wheels. Would I need a whole different kind of servo or could I modify mine?
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1260
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Generally standard servos just rotate 180 degrees. I have seen posts where people have modded the servos to do complete turns, so Google could be your friend here.

If you want to run wheels and you already have a motor shield, then why not just use a standard DC motor or a stepper motor? These can be run from the Arduino thru the motor shield. Examples in the Playground.
« Last Edit: June 25, 2012, 08:43:02 pm by marco_c » Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think that is what I will do. Thanks!
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And because in the picture you are not using separate power, please have a look at the two links in my signature for an illustration and solution of the next problem you will have.

Duane B
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How would I connect 2 dc motors? would I need to use the Vin and GND inputs at all?
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Its best to use separate power for motors as just like servos.

Duane B
Logged


USA
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino robot fan
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The motor shield is best suited for motors or geared motors that are less than 2A stall each.
It can run 2 motors at one time or one motor bridged for a total of 4A at stall.

I would not use the motor shield for servo drive only.
 
I would also not modify the ones that you have, you can use them for all sorts of cool things like pan and tilt for Sharp IR or Ultrasonic sensors or a gripper... etc.
 
Instead, get the Parallax continuous rotation servo.   This is a servo made for robotic mobility using servos.
Radio Shack sells them:
http://www.radioshack.com/product/index.jsp?productId=12798725#
or you can get them at Parallax website.
 
Logged

Akron, OH
Offline Offline
Newbie
*
Karma: 0
Posts: 17
We need more Jigawatts!!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Sam
Check out this Instructable on the Motor Shield. It covers DC Motors, Stepper motors and code.
http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial

Hope this helps you!
Logged

________________
Joseph Anand-Maker
joseph@anandfamily.org

Pages: [1]   Go Up
Jump to: