Pages: [1]   Go Down
Author Topic: Stepper Motor Library With Step/Direction/Enable  (Read 3968 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 1
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a library that is designed to work with a third party high current controller like a Geckodrive that has step/direction/enable TTL inputs?

The Arduino stepper libraries that I've seen seem to be designed to directly control a smaller motor.

Thanks.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8695
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The AccelStepper library (http://www.open.com.au/mikem/arduino/AccelStepper/) supports the Step/Direction/Enable interface You pass the Step and Direction pins when you create the instance and then call stepper.setEnablePin(uint8_t) to set the Enable pin.

« Last Edit: November 01, 2012, 09:22:58 am by johnwasser » Logged

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

Offline Offline
Jr. Member
**
Karma: 1
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's great. 

Thanks, John!
Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just read up on the AccelStepper library.  It mentions that you can run multiple motors simultaneously, although I don't see much about that in the docs. 

If I wanted to control two motors, would I just create two AccelStepper objects and main them separately in the sketch main loop?
Logged

Pages: [1]   Go Up
Jump to: