Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Stepper motors (http://www.chiefdelphi.com/forums/showthread.php?t=114800)

mrklempae 09-03-2013 22:24

Stepper motors
 
Hello! I was wondering how to program a stepper motor. I've looked through the WpiLib classes, and can't seem to find one for it. We happen to have one for no apparent reason, and I want to make it do something :D Is there such a thing as a stepper motor class? I've looked at the documentation for this one (the one we have), but it seems reliant on an Arduino or Raspberry Pi library. Any help would be great! Thanks!

cgmv123 09-03-2013 22:32

Re: Stepper motors
 
While can't help you program the motor, I can help you by reminding you that a stepper motor is not one of the motors legal under [R32].

(If you're (somewhat desperately) wondering whether it counts as a servo, it doesn't. The manufacturer's name for the part is the decider.)

Kevin Sevcik 09-03-2013 22:37

Re: Stepper motors
 
You're somewhat unlikely to run a stepper with an FRC control system. If you really really wanted to, you'd need to wire two speed controllers up to the stepper and then come up with a class that would cycle the speed controllers through a step cycle on command etc, etc. It's really not worth it.

mrklempae 09-03-2013 23:52

Re: Stepper motors
 
Okay thanks! It was for an off-season project, but it's not that important. We can just use a servo motor :P At least there's a class for it.

DonRotolo 10-03-2013 11:33

Re: Stepper motors
 
Quote:

Originally Posted by Kevin Sevcik (Post 1245695)
You're somewhat unlikely to run a stepper with an FRC control system. If you really really wanted to, you'd need to wire two speed controllers up to the stepper and then come up with a class that would cycle the speed controllers through a step cycle on command etc, etc. It's really not worth it.

It should also be possible to get a dedicated stepper controller and control it via DIO pins, much like we do with the parallel port of a PC.


All times are GMT -5. The time now is 12:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi