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??