CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

stepper motor

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zeyad



Joined: 24 Feb 2015
Posts: 22

View user's profile Send private message

stepper motor
PostPosted: Thu Feb 26, 2015 11:11 am     Reply with quote

i want to drive a stepper motor clock wise 200 steps using pic 16f877a . need help?
temtronic



Joined: 01 Jul 2010
Posts: 9161
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 26, 2015 11:18 am     Reply with quote

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

View user's profile Send private message

stepper
PostPosted: Thu Feb 26, 2015 1:37 pm     Reply with quote

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

View user's profile Send private message

stepper
PostPosted: Thu Feb 26, 2015 1:58 pm     Reply with quote

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: 19326

View user's profile Send private message

PostPosted: Thu Feb 26, 2015 2:05 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group