This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Interfacing of Stepper motor with TM4C123GH6PM

Other Parts Discussed in Thread: TM4C123GH6PM

I have trouble in driving stepper motor with tm4c123gh6pm .

Can anyone suggest me code for that

  • Perhaps this design guideline will help: www.ti.com/.../tiduah5.pdf
  • To drive the motor we have to generate pwm output but I don't get what is missing in my code please suggest me code as i have already gone through your suggestion..

  • Yesterday (btw: a major USA holiday) you posted twice - receiving a 'guiding' - linked response - from vendor's Bob.      (His w/in 2 hours of your initial post - extraordinary I'd say!)

    Yet - you're 'not yet' able to, 'RUN your Stepper Motor' - why is that?       And ... can you do anything differently - perhaps even 'better' - to, 'Step this process along.'      (apologies to those who 'got that.')    

    I've taken the liberty to extract & present here - your 'major points:'

    Drishti Jain said:
    I have trouble in driving stepper motor

    What trouble?    Trouble could describe MANY issues - or behaviors - or lack of desired results.     Trouble (alone) is far too vague (unclear) - to enable (any) real assistance.    You must 'better detail' (i.e. somewhat detail) what (failed)  'issue, behavior, response'  has occurred.

    Drishti Jain said:
    we have to generate pwm output

    We're in agreement here - yet we've no idea:

    • have you generated such pwm output?
    • if so - can you describe (ideally via an oscilloscope waveform capture) your output?
    • and - if pwm output, 'has been achieved from your MCU' - how has that pwm signal been 'processed & connected' - to your motor?

    Drishti Jain said:
    I don't get what is missing in my code

    • Might that 'code' (itself) be missing?     (I cannot find any of your 'code.')
    • We've 'no idea' what - if anything - has been emplaced between your MCU and Stepper Motor.      Should a proper, buffering Stepper Motor Driver IC have been employed - we 'need' its spec.
    • And - if such a Driver IC is present - we need to know just how you've connected to it.

    Your post's Subject lists: 'Interfacing of Stepper Motor w/TM4C123.'

    • And alas - there's 'not' one word - describing or detailing - how you've implemented such an 'MCU to Stepper Motor' interface.    That's rather significant - is it not?

    Your remote 'helper crüe' requires (some) of these facts to assist you - can you see that now?     It is 'normal' to be frustrated - and become (bit) 'emotional' - when a 'plan' does not (quite) 'come together.'    

    Yet - the 'Lack of clear, proper, well thought & presented detail' - greatly reduces the ability of (even) 'skilled' (*) and ''interested/caring' helpers - to properly & efficiently - come to your aid!      You (and only you) have the power to, 'Provide such clear/proper & adequate such detail' - much of it listed herein - in your behalf...

    * (responder here - 'avoiding' such claim)