Go Down

Topic: Arduino Motorshield R3 Help (Read 1 time) previous topic - next topic

datjaydawg

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.

johnwasser

The motors connect to the screw terminals.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

datjaydawg

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.

johnwasser

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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Wmgatorfan08

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.

Go Up