Getting accelstepper to work with bipolar motor

350 views
Skip to first unread message

Unhinged Reprisal

unread,
Jan 27, 2013, 10:23:09 PM1/27/13
to accels...@googlegroups.com
Hello,
  This is my first attempt using the accelstepper library. My motor jerks and doesn't turn smoothly. I have a 6 wire bipolar stepper. I must be over looking something simple. I tried it with all of the examples using the FULL4WIRE. If I read the library correctly, it seems that FULL4WIRE is used for unipolar steppers. How would I get it to work with a bipolar using 4 or 6 wires on 1.8 deg step angle motor?
Thank You For Your Time,
Unhinged Reprisal

Mike McCauley

unread,
Jan 28, 2013, 1:21:19 AM1/28/13
to accels...@googlegroups.com
Hello,

Do you mean your stepper has 6 wires, and the stepper consisting of 4
windings, wired in pairs with a centre tap:

a
|
-/\/\/\---/\/\/\/---

b
|
-/\/\/\---/\/\/\/---

ie the 'Typical 6-Wire Unipolar/Bipolar' from
http://www.stepperworld.com/Tutorials/pgBipolarTutorial.htm


I connect these with pins a and b to ground, other pins connected to arduino
outputs, and initialise like the examples:

AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3,
4, 5

you have to be sure the sequencing of the pins 1, 2, 4 and 5 is correct

Cheers.
--
Mike McCauley mi...@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.

Reply all
Reply to author
Forward
0 new messages