View previous topic :: View next topic |
Author |
Message |
zeyad
Joined: 24 Feb 2015 Posts: 22
|
stepper motor |
Posted: Thu Feb 26, 2015 11:11 am |
|
|
i want to drive a stepper motor clock wise 200 steps using pic 16f877a . need help? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Thu Feb 26, 2015 11:18 am |
|
|
You'll ned to supply us with the motor specs, interface used between PIC and motor.
As a start, confirm your basic hardware by getting a '1Hz LED' program to run properly.
Check the examples folder...may be a 'stepper' program in there.
BTW the 877 is almost obsolete, I strongly suggest you buy a newer, cheaper more powerful PIC.
Jay |
|
|
zeyad
Joined: 24 Feb 2015 Posts: 22
|
stepper |
Posted: Thu Feb 26, 2015 1:37 pm |
|
|
temtronic wrote: | You'll ned to supply us with the motor specs, interface used between PIC and motor.
As a start, confirm your basic hardware by getting a '1Hz LED' program to run properly.
Check the examples folder...may be a 'stepper' program in there.
BTW the 877 is almost obsolete, I strongly suggest you buy a newer, cheaper more powerful PIC.
Jay |
thank you jay . |
|
|
zeyad
Joined: 24 Feb 2015 Posts: 22
|
stepper |
Posted: Thu Feb 26, 2015 1:58 pm |
|
|
temtronic wrote: | You'll ned to supply us with the motor specs, interface used between PIC and motor.
As a start, confirm your basic hardware by getting a '1Hz LED' program to run properly.
Check the examples folder...may be a 'stepper' program in there.
BTW the 877 is almost obsolete, I strongly suggest you buy a newer, cheaper more powerful PIC.
Jay |
jay the program in example is a bit complicated |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19510
|
|
Posted: Thu Feb 26, 2015 2:05 pm |
|
|
The key function is drive_stepper. Just drives four bits for a unipolar stepper, at a specified speed for a number of steps.
The code can't be much simpler, in fact any serious use of a stepper will be much more complex implementing acceleration and deceleration profiles etc.. However at slow speed this will work. |
|
|
|