little step-u connections
bnrg
Posts: 14
HI,
Just started with stepper motors and I have a simple connection question-please excuse this if it is really basic. I am using the Mitsumi M42SP-5 (27964) uniploar motor. The motor has 5 leads-4 for the coils and one that is 'common'. Does this common lead go to the motor controller ground pin (Vdd, connector 1) or to the Vom (-) pin on connector 3? The users manual has some schematics but it is not clear to me where or how the common connection is represented-if it is there can you please point out what I am not seeing?
I am also assuming that the CT-AC and CT-BD notation means that these coil pins are jumpered on my homework board? Ie, a jumper goes from coil A to C and another B to D?
Thanks for your help,
Bob
Just started with stepper motors and I have a simple connection question-please excuse this if it is really basic. I am using the Mitsumi M42SP-5 (27964) uniploar motor. The motor has 5 leads-4 for the coils and one that is 'common'. Does this common lead go to the motor controller ground pin (Vdd, connector 1) or to the Vom (-) pin on connector 3? The users manual has some schematics but it is not clear to me where or how the common connection is represented-if it is there can you please point out what I am not seeing?
I am also assuming that the CT-AC and CT-BD notation means that these coil pins are jumpered on my homework board? Ie, a jumper goes from coil A to C and another B to D?
Thanks for your help,
Bob
Comments
I'm pretty sure you'll need the PC or microcontroller to use the equations to compute the numbers. The PC or microcontroller would send the appropriate instructions to the Step-U board. From looking over the manual it doesn't look like there is a way to program the Step-U with your equations.
What are you using to control the Step-U?
Can you give an example of a formula you want to use?
I'd think you could use the Basic Stamp to calculate the number and send the number to the Step-u with the proper letter prefix. "D" for absolute position and "E" for relative position.
BTW, I think there's a mistake in the manual. It seems like the example (on page 5) for the absolute position is giving an example of relative position.
speed CON 100
baud CON 396 'baud setting is 396 for 2400
delay CON 500 'pause delay between movement
motor_step CON 48 'number of motor steps per turn
E VAR Word
step_ctr VAR Byte
dir_ctr VAR Nib
ip1 VAR Bit
ip2 VAR Bit
pos VAR Word
inspeed VAR Word
inramp VAR Byte
alpha VAR Byte
rev_level CON 1
increment VAR Word 'number of increments per rotation
DEBUG "rev level ", DEC rev_level, CR
DEBUG "enter number of steps per turn", CR
DEBUGIN DEC increment
DEBUG "number of steps per turn ", SDEC increment, CR
INPUT 12 ' Busy input
OUT13 = 1 ' Set bit high before making pin O/P
OUTPUT 13 ' Change from being pulled high to being driven high
OUT14 = 1 ' Same for IP1
OUTPUT 14
PAUSE 100
GOSUB CheckBusy ' Check Little Step-U is ready
SEROUT 10,baud,["{A", DEC speed, ",0,0}"] ' Set speed, no ramp, full step
SEROUT 10,baud,["{Q}"] ' Set current position as home
SEROUT 10,baud,["{P1}"] ' Stopped power is on
E = motor_step / increment 'go to relative position
alpha(0) = "E"
alpha(1) = 0
DEBUG SDEC increment, " positions per turn", CR
'DEBUG "{", STR alpha, DEC E, "}", CR, CR
DEBUG SDEC E, " steps for one position", CR, CR
SEROUT 10,baud,[ "{", STR alpha, DEC E, "}" ] 'turns motor shaft one increment
CheckBusy:
PAUSE 10
CB_loop:
IF IN12 = 1 THEN CB_loop 'Wait till not busy
PAUSE 1
RETURN
Good to hear it's working.
Thanks for the follow up reply and for posting your code.