Go Down

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


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.


The motors connect to the screw terminals.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


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.


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: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131