Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need help on Programming for interfacing~~~pros come in pleaz
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
foreveryouth




PostPosted: 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...
Sponsor
Sponsor
Sponsor
sponsor
foreveryouth




PostPosted: 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
copthesaint




PostPosted: 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...
DemonWasp




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: