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.

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
 

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


Best regards.
 

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
 

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: https://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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top