Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

5 phase stepper motor problem

Status
Not open for further replies.

the mask

Member level 2
Joined
Apr 16, 2010
Messages
51
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
jordan
Activity points
1,537
hi..
can any person know about 5 phase stepper motor control pulse
 

5 phase? No, there is probably 4 phases, but one wire is connected to center. It's much easier to control, as you dont need H-bridges.
 

ok i will write code for my pic to run signal which written prototype
Terminal 1 +++-----+++++-----++
Terminal 2 --+++++-----+++++---
Terminal 3 +-----+++++-----++++
Terminal 4 +++++-----+++++-----
Terminal 5 ----+++++-----+++++-
 

main:
' Initialize PORTC
TRISC = 0 ' Configure PORTC as output
TRISB = 0
trisa = $ff
trisd = 0




'111111111111

PORTC.6=1
PORTC.2=1
PORTC.4=1
PORTD.3=1
PORTD.1=1
Delay_ms(50) '''''''' 1
LOOP:

'2222222222222
'3
PORTC.4=0
Delay_ms(20)

PORTC.3=1

Delay_ms(50)
'333333333333

'2
PORTC.2=0
Delay_ms(20)

PORTC.5=1
Delay_ms(50)
'444444444444
'1
PORTC.6=0
Delay_ms(20)

PORTC.1=1
Delay_ms(50)
'5555555555
'5
PORTD.1=0
Delay_ms(20)
PORTD.2=1
Delay_ms(50)
'666666666
'4
PORTD.3=0
Delay_ms(20)
PORTD.0=1
Delay_ms(50)
'77777777 ''''''''' 2
'3
PORTC.3=0
Delay_ms(20)

PORTC.4=1

Delay_ms(50)
'88888888
'2
PORTC.5=0
Delay_ms(20)

PORTC.2=1
Delay_ms(50)
'99999999
'1
PORTC.1=0
Delay_ms(20)

PORTC.6=1
Delay_ms(50)
'10 10 10
'5
PORTD.2=0
Delay_ms(20)
PORTD.1=1
Delay_ms(50)
'11 11 11 11
'4
PORTD.0=0
Delay_ms(20)
PORTD.3=1
Delay_ms(50)
'12'12'12 ''''''''''' 3
'3
PORTC.4=0
Delay_ms(20)

PORTC.3=1

Delay_ms(50)
'13 13 13 13

'2
PORTC.2=0
Delay_ms(20)

PORTC.5=1
Delay_ms(50)
'14 14 14 14
'1
PORTC.6=0
Delay_ms(20)

PORTC.1=1
Delay_ms(50)
'15 15 15 15
'5
PORTD.1=0
Delay_ms(20)
PORTD.2=1
Delay_ms(50)
'16 16 16 16
'4
PORTD.3=0
Delay_ms(20)
PORTD.0=1
Delay_ms(50)

' 17 17 17 '''''''''''''''''''
'3
PORTC.3=0
Delay_ms(20)

PORTC.4=1

Delay_ms(50)
'18 18 18 18
'2
PORTC.5=0
Delay_ms(20)

PORTC.2=1
Delay_ms(50)
'19 19 19
'1
PORTC.1=0
Delay_ms(20)

PORTC.6=1
Delay_ms(50)
'20 20 20
'5
PORTD.2=0
Delay_ms(20)
PORTD.1=1
Delay_ms(50)
'21 21 21
'4
PORTD.0=0
Delay_ms(20)
PORTD.3=1
Delay_ms(50)
GOTO LOOP
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top