Pages: [1]   Go Down
Author Topic: Arduino Motorshield R3 Help  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm looking to connect to DC motors to my Arduino Motor Shield R3 (http://goo.gl/zEQvH)

Stuck at where the wiring goes, do they go to the screw terminal or do they go into actual pins?  Any help is much appreciated as always.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8067
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The motors connect to the screw terminals.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

Thanks john.  How would I vary the direction / speed of the motors?  Code I have come across is for only 1 motor connecting to the Uno without a motor shield so I'm a bit puzzled by this.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8067
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The motor shield implements one or more H-bridge motor controllers.  Typically these will have two or three pins per motor.  One pin controls the direction.  One pin turns the power on and off and is usually attached to a PWM (analogWrite()) output pin so you can control speed.  The optional third pin applies the brakes by shorting the two motor terminals for the voltage generated by the moving motor fights the motor and causes it to slow down faster.

Find documentation for your motor shield to find out which pins do what.

Reading the datasheet for the motor control chip on your motor shield can help in understanding.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

The R3 motorshield is very easy to use.  If you go to the main site and look up the board it will tell you exactly which pins you need to use to control the board.  Also you can go to sparkfun and look up their ardumoto.  They have some sample code that would be a good starting point.
Logged

Pages: [1]   Go Up
Jump to: