Balaji_mcr@yahoo.com 0 Posted March 19, 2014 Share Posted March 19, 2014 Hi all, I'm working with Stellaris Stepper motor RDK from TI- Luminary Micro. I'm using USB Serial Interface for interfacing the Device with my Application developed using C#. Currently i'm stuck with sending the control commands from my Application. I can able to start & stop the Stepper motor by sending the following commands. But i'd like to set the Target Steps/sec. I cant understand how to form a command control with requred Target Steps. So any Help regarding this is appreciated. code: To startMotor: byte[] StartMotorRequest = new byte[] {0xff,0x07,0x13,0x14,0x00,0xcf,0xff, 0x04,0x30,0xcd,0xff,0x09,0x13,0x08,0x00,0xd0,0x30,0x0e,0xcf }; _serialPort.Write(StartMotorRequest, 0, StartMotorRequest.Length); To StopMotor: byte[] StopMotorRequest = new byte[] { 0xff,0x04,0x31,0xcc}; _serialPort.Write(StopMotorRequest, 0, StopMotorRequest.Length); Thank you, Balaji.R Quote Link to post Share on other sites
Lyon 3 Posted March 19, 2014 Share Posted March 19, 2014 Hi, As far as I remember, in the software packages delivered by TI there is an PC application to communicate with your board. That is open source - it is written in C and compile with Mingw. You have there all structure and all comands. One suggestion - as I made also applications with C#, today I would not - try the Fluid approach as used by TI - seems faster and better and is not related to a single platform... L Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.