Go Down

Topic: How to send data from Matlab GUI to Arduino for servo rotation (Read 1 time) previous topic - next topic


Hello guys;

I've problem about sending data from Matlab GUI to Arduino for servo rotation. I've five servos connected to Arduino UNO and the program is running well through serial monitor of Arduino. I've defined characters for each servo, for example 15a turns the first servo 15 degrees, b for the second and so on, everything is correct about arduino codes. After this I've created Matlab GUI for servo control. This GUI consists of push button, check box, slider and edit text. Edit text and slider updates each other. I'm having trouble about sending the data from edit text to arduino. What I need to do is to get the data from edit text and send it to the arduino with the push button with the addition of characters which are defined to the servos (a,b,c,d,e). I'll appreciate if you can help me about it.
Thanks in advance.

Go Up