+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 2
    Points: 76, Level: 1

    Join Date
    Jul 2014
    Posts
    2
    Helped
    0 / 0
    Points
    76
    Level
    1

    small step angle stepper motor interface on P18F4580

    Hi all, I'm trying to interface my pic with a stepper motor (step angle=0.1125(half step) <--that's how thy write it on the datasheet; rpm ranging form 20rpm to 150rpm). But, my problem is that I cant seems to control the speed of the motor. i've tried using both full step and half step, in the case of half step, the motor rotate very slowly. any idea on how do i interface my pic with the stepper motor so that i can control the speed?

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 4
    Points: 3,134, Level: 13
    Achievements:
    7 years registered

    Join Date
    Nov 2009
    Location
    United States
    Posts
    237
    Helped
    68 / 68
    Points
    3,134
    Level
    13

    Re: small step angle stepper motor interface on P18F4580

    The stepper motor makes a full step or partial step based on the pulse waveforms you are sending to it. How are you generating the pulses? If the pulses being sent are very slow -> slow motor rotation.
    How many phases does the stepper motor have? They all must be pulsed in the proper order



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 2
    Points: 76, Level: 1

    Join Date
    Jul 2014
    Posts
    2
    Helped
    0 / 0
    Points
    76
    Level
    1

    Re: small step angle stepper motor interface on P18F4580

    Currently I'm generating half step pulse via the following code. The motor has 2 phase/bipolar motor and it has 1:8 gear ratio.

    Code:
    void msdelay(unsigned char mil)
    {
    	unsigned char c,d;
    	for(c=0;c
    



--[[ ]]--