Need help on Programming for interfacing~~~pros come in pleaz
Author |
Message |
foreveryouth
|
Posted: Mon Mar 23, 2009 9:12 pm Post subject: Need help on Programming for interfacing~~~pros come in pleaz |
|
|
I need some help on making aprogram that would control a stepper motor.
I have already figured out the sequence for the steps, but I have no clue where to start off on the programming.
I am supposed to use four switches to control the directions for the rotation of the motor, to be North, East, South and West.
The parallelput outputs through the buffer chip 74LS245 and then inputs to four switches..
So confused *x*
help plz... |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
foreveryouth
|
Posted: Mon Mar 23, 2009 9:24 pm Post subject: RE:Need help on Programming for interfacing~~~pros come in pleaz |
|
|
555555555
nobody knows?....so screwed ![Sad Sad](http://compsci.ca/v3/images/smiles/icon_sad.gif) |
|
|
|
|
![](images/spacer.gif) |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Mon Mar 23, 2009 10:53 pm Post subject: RE:Need help on Programming for interfacing~~~pros come in pleaz |
|
|
Why not start by posting your code... |
|
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Tue Mar 24, 2009 1:48 am Post subject: RE:Need help on Programming for interfacing~~~pros come in pleaz |
|
|
Your first step is to determine exactly how you want the computer to "talk" to the device (meaning anything you had to build by hand, including the stepper motor and any boards on it).
- Does the computer need to say anything to the device? Yes.
- Does the device need to say anything to the computer? Probably not.
So now we know that we just need to have a few different lines from the computer to the device. You should probably label these lines along with their purpose - "forward", "backward", whatever's appropriate to the motor / specifics of the device.
From there, you have two tasks:
1. Make the device interpret these signals correctly and perform the correct action.
2. Make your program send these signals when prompted to by the user.
Once you've decided on what your lines will be labeled, let us know and we can give you some more help. |
|
|
|
|
![](images/spacer.gif) |
|
|