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

need embaded c program

I want embeded c program to rotata a dc motor when it is given with a password and it should stop rotating after it is given with another password from hex keypad. please post the answer sooner

  • Did you really believe that by just starting a new thread on the same homework problem you already tried to unload on others, you could make people forget that it's still your homework, which you are supoosed to work on?

  • Channveer:

    don't expect people to do your own work for you.
    You need to write simple code to check the keypad, and make sure that works.
    don't forget to debounce the keypad, of course I have no idea how your keypad is hooked up, but
    most of the time, one uses 4 bits for the row and 4 bits for the columns.
    the keypad typically connects two lines, so the simplest case is to
    configure 4 bits as open drain inputs, walk a 1 across the 4 bits of the columns, and see if a
    1 shows up in one of the inputs. That tells you which column, and the position of the 1 in the
    4 inputs tells you which row.

    Of course, you may have a different keypad.

    Then you need some kind of motor control. Are you wanting to do PWM voltage control? Then you need to write and debug a PWM using one or more timers.

    If you don't understand any of the above, then you are in a project that is way over your head, and I really feel for you...been there... done that.... that is how we learn....

    In the 30+ years I've been programming, I've pretty much seen it all.

    People will gladly mentor you, but *YOU* have to at least read the spec sheets and make an attempt. I've grown several pups (all you old guys know what I talking about here ..... ;)

    one was over 60 when he started doing embedded stuff, and over the past 4 or 5 years I've turned him into a pretty good embedded programmer. Course, he has a long ways to go to get where I am....