zohaib
Member level 4
- Joined
- Aug 24, 2007
- Messages
- 75
- Helped
- 2
- Reputation
- 4
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- PAKISTAN
- Activity points
- 1,729
Hello forum,
I m building an interface on Visual C# to send data to microcontroller to rotate stepper motor on different angles. Currently i m sending different characters one byte at a time to microcontroller. Microcontroller receiving the ascii code of that character and rotating the motor accordingly. For example if "a" is sent to micro, microcontroller knows that on receiving character "a" it has to move particular degree.
My question is , is there any better approach to do this???
if i have to connect two motors on one port (one motor uses 4 pins ) then how should data be sent to microcontroller to drive two motors irrespective of other one??
I m building an interface on Visual C# to send data to microcontroller to rotate stepper motor on different angles. Currently i m sending different characters one byte at a time to microcontroller. Microcontroller receiving the ascii code of that character and rotating the motor accordingly. For example if "a" is sent to micro, microcontroller knows that on receiving character "a" it has to move particular degree.
My question is , is there any better approach to do this???
if i have to connect two motors on one port (one motor uses 4 pins ) then how should data be sent to microcontroller to drive two motors irrespective of other one??