Page 1 of 1

2Amp Motor Driver Shield

PostPosted: Thu May 07, 2015 10:20 pm
by huhu
hai, i have 12v dc motor together with arduino uno and 2Amp Motor Driver Shield

i want to control the speed of motor and direction (clockwise and anti) at certain duration
how can i code the arduino to run the motor?

Re: 2Amp Motor Driver Shield

PostPosted: Fri May 08, 2015 8:50 am
by Idris
Hi huhu,

We have provide the library and example code for this product. Go to the SHIELD-2AMOTOR product page, click "Attachment" tab, then click download at 2A Motor Shield Libraries And Example (Arduino).

Thanks.

Re: 2Amp Motor Driver Shield

PostPosted: Sat May 09, 2015 4:34 pm
by huhu
i already try to run the code but the motor does not move. do we need extra component besides arduino and motor driver to control the motor?

Re: 2Amp Motor Driver Shield

PostPosted: Sat May 09, 2015 5:40 pm
by ober
A few clear photos of the actual hardware setup would be helpful.

Re: 2Amp Motor Driver Shield

PostPosted: Mon May 11, 2015 11:50 am
by huhu
im sorry because im new here, how can i alter the code you give so that i can get the constant speed of motor.
for instance, i want to slow down the motor speed (by 50% from the actual speed) constantly. only the duration for motor to turn (clockwise and anti) is vary. can you help me pliss

Re: 2Amp Motor Driver Shield

PostPosted: Wed May 13, 2015 11:59 am
by yonghui
hi,

you will need to describe in detail what you want to do precisely. I cannot understand your language

Re: 2Amp Motor Driver Shield

PostPosted: Thu May 14, 2015 6:07 pm
by huhu
i want to slow down the speed of motor from 50 rpm to 25 rpm constantly (all the time)
then, the motor will rotate clockwise around 5 seconds before it turns to anticlockwise for 5 seconds.
after delay for 10 seconds,
i want the motor rotate anticlockwise for 5 seconds and turns to clockwise for 5 seconds.

sorry for my bad english

Re: 2Amp Motor Driver Shield

PostPosted: Fri May 15, 2015 10:55 am
by Idris
Try our Arduino example code "Signed Magnitude", and understand it. You can set the motor speed at the 'motor1Speed' or 'motor2Speed'. Try and do experiment.