This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stepper motor conrol using keypad

hi!
i am new to dis forum.....plzz plzz really help me out.....i need to submit a project on stepper motor control using keypad
i want to control the stepper rotation using keypad......i tried out many ways.....could u give me the corresponding c programe so that i can get working with my project.....

Parents Reply Children
  • i wrote the program and executed in keil and there is neither any error or warning...but when i try to execute in edsim51 simulator the motor doesnt rotate through keypad.....

  • the motor doesnt rotate through keypad.....

    And you really think that a description of what does not happen tells anybody anything about the problem?

  • Not sure what a simulator can do about a motor rotating or not.

    The questions are: can your program read a keypad or not?
    Can your program drive a motor or not?

    It isn't until the program can do the two above things, that it is meaningful to try to combine the two steps, having the keypad actually give the orders what the motor should do.

    You don't send someone out to win the Le Mans 24 hour race before the person have alrady shown great skills on the race track.
    And you don't send someone out on the race track in the first place before they have shown they can drive a car.
    And the normal way to make sure someone can drive a car is to get them to either train on a reserved track or wait until the person have a drivers license.

    It's all about doing things in multiple, reasonably large, steps. And repeat a step multiple times until problem is solved/skill reached/...

    So how have you broken your program down into smaller sub-programs and tried to figure out if they work or not? What is your actual strategy for debugging? Turn on the switch and then notice a failure and directly come to a forum claiming "it doesn't work"? Would anyone on a forum be able to help? Would we even know how your keypad is connected to the processor? Or what electronics you have for controlling that motor?

    Somehow, you must see that the major part of your projects must be done by you. Or by someone you pay to do them, based on full specifications from you.

  • That shows only that you have not made any syntax errors in your source code - it says absolutely nothing as to whether your source code can successfully perform any particular function!

    eg, "Drive your car over that cliff" is a perfectly valid English sentence - but would not be a good thing to actually do!

    "the motor doesnt rotate through keypad"

    So, again, what have you done to find out why it doesn't work?

    As it says on the EdSim home page, "The student can ... step through the code and observe
    the effects each line has on the internal memory and the external peripherals"

    Have you done that?

    http://www.edsim51.com/

    Debugging is an important part of any project - you need to learn to debug your projects!

    Here's some tips to get you started:

    www.8052.com/.../120313

    www.eetimes.com/.../Developing-a-good-bedside-manner

  • thanks for ur sincere reply!!!!!!
    i know that as a student i have to work myself on my project!!!
    but i really have very less time left and also going through my tests right now!
    so i really very less time left with me

    so i would be highly obliged if anyone can provide me with a basic program to control motor through keypad
    i would surely study and change the program according to my needs!!!!!

    hoping for a positive reply!
    also i believe that u will not disappoint young turks like me who wish to help others in coming years just like u!!!

  • Your school sets the schedule according to their expectations of what is required of a competent student. If you can't keep up with the schedule, then you need to discuss with your tutors about that.

    Cheating by getting others to do your work for you is not a solution.

    "young turks like me who wish to help others in coming years"

    If you wish to help others, then you need to first learn to do this stuff yourself!

    "provide me with a basic program to control motor through keypad"

    Have you even looked at the examples on the EdSim site?

  • This is so silly.
    Our young Turk here (by his own admission) is spending so much time and energy in trying to steal homework rather than investing it into learning so that he can actually do the next assignment. Silly, but not uncommon.
    Surreal, but not unique.

  • young turks like me who wish to help others in coming years

    Start by helping yourself (err, not by stealing and cheating, of course). How about that?!

  • so you want, in the future to help some with
    a) typing with childish shorthand ('u', 'ur' etc)
    b) drinking beer instead of studying "i really have very less time"
    c) stealing software "provide me with a basic program"
    d) cheating "i know that as a student i have to work myself on my project!!! but "

    I, for one, hope you will NEVER be able to 'help'

    Erik