Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Stepper motor control using PIC16F88

Status
Not open for further replies.

tonykeys

Newbie level 3
Joined
Feb 2, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,306
pic16f88 circuit

I'm trying to control 2 unipolar stepper motors using a PIC16F88 for each motor.
The control for thse stepper motors is via a joystick. I'm having trouble writing the code & if some one could help did be grateful
 

fireball003

Full Member level 3
Joined
Oct 28, 2005
Messages
181
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,298
Activity points
3,157
pic16f88 stepper motor

How are you controlling the motors? Where is your circuit ? Circuit details would be helpful.

I used delay (not PWM) to generate pulse and control my 4 phase unipolar stepper motor. I also used ULN2003 in the circuit.

What type of joystick you are using? Analog or digital? If it is digital then the code will be as easy as pie. Just get the button and joystick status and use that to generate pulse for your stepper motors.

Else if it is analog then see
https://www.edaboard.com/viewtopic.php?t=33956&highlight=joystick+motor

Best regards.
 

tonykeys

Newbie level 3
Joined
Feb 2, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,306
pic16f88 step motor

I've attached a circuit diagram. This is for one half the circuit & the jostick FWD & back is represented by the 2 switches
 

philba

Full Member level 2
Joined
Jan 26, 2006
Messages
132
Helped
13
Reputation
26
Reaction score
1
Trophy points
1,298
Activity points
3,102
stepper motor controlled by joystick

I think you are asking how to sequence the pulses to the 4 drive transistors. The best treatment I've ever seen on steppers is "Control of Stepping Motors" by Douglas Jones: http://www.cs.uiowa.edu/~jones/step/ It has lots of examples and code. You have a unipolar stepper, by the way.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top