Things used in this project

Hardware components:
Texas Instruments TM4C Microcontroller
the heart of our drive
Software apps and online services:
Microsoft Visual Studio 2015
Labview home package neidctwb5w
Digilent LabVIEW Home Bundle
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)


Matlab ExampleMATLAB
Example shows how you can control one HDrive with Matlab Script
t=tcpip('', 20000, 'NetworkRole', 'client') ; % configure TCP 
fopen(t); % open TCP Connection
fwrite(t, '<HDrive Position=\"200\" Torque=\"50\" Speed=\"10\" Mode=\"4\" />') % send XML drive order
C# ExampleC#
Example shows how to control a motor with C#
TcpClient client = new TcpClient();
//create instance from TcpListener Object setup Object to listen on TCP Port 5002
TcpListener listener = new TcpListener(5002);
//start the server to listen for new clients
//wait until a client has opened a connection
client = _listener.AcceptTcpClient();
//if a client has found, the program continues
Console.WriteLine("client found!" );
//create an instance of the C# Stream class and get the Stream to the client
Stream inOut = client.GetStream(); 
//Format the XML-Formatted Hdrive order into a byte stream and send it to the Stream
var enc = new ASCIIEncoding();
enc.GetBytes("<HDrive Position=\"1000\" Torque=\"50\" Speed=\"10\"  Mode=\"4\" />"); 
inOut.Write(enc, 0, enc.Count);


Chris Henschel
1 project • 2 followers
#HenschelRobotics Easy to use #IoT enabled #Servo Drives, Industrie 4.0, #Electronics, embedded systems, #C#, #Maker, 3D Printer, #Matlab, #HDrive


Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Add projectSign up / Login