Pages: 1 [2]   Go Down
Author Topic: Servo control from software  (Read 1197 times)
0 Members and 1 Guest are viewing this topic.
Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 29
Posts: 2236
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're going to use that motor shield to control a stepper then you would need to program the Arduino to read the step/dir inputs and then translate to energizing the A/B coils in the proper order (probably using the Stepper library).

You'd be better off buying a stepper controller that takes step/dir inputs. Pololu.com sells a $10 driver that is good for up to 2A steppers or you can find drivers on eBay based on the TB6560 chip (up to 3.5A) for ~$15.
Logged

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

Awesome. Ordering a new board today. Thanks chagrin.
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Of course you could just replace your current pot with a digital pot and control that from the arduino saving on the motor shield the stepper motor and all the rest.

Mark

PS digital pots are very cheap!.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 183
Posts: 11114
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How do I hook up inputs( what pins) to the motor shield I have? The motor shield has 6  inputs ( enable A,B, A,a B,b)for control and I have two outputs(step/dir) what am I missing?

Read the documentation for your motor drive shield and stepper motor, they will explain how to use them. You will probably find example sketches that demonstrate this too. This is the easy part. I'm not going to do it for you because you can read a data sheet just as easily as I can, and you're the one who wants to get it working.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

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

I didn't ask you to do it for me, I asked for help explaining it so I can understand it. I've tried reading it, and tried many ways to make it work before I got on here and asked. even smoked my first arduino trying. I never asked can anyone do this for me. If you didn't want to help, then why even waste the time to post?
Logged

Pages: 1 [2]   Go Up
Jump to: