Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Need help with Serial Communication

$
0
0
Hello everyone, I am currently developing a Hexapod for a school project. I finished the assembly and now I am trying to develop a program which will permit to the user to move the robot by clicking on buttons : one button to go forward, one to go left, one to go right and another one to move back. The walking algorithm is already done and is in the Arduino controller. But now I do not know how to proceed to do my program. What I want is that, when the user clicks on one of the buttons, the program says “Okay, he clicked on this button, so I have to ask the Arduino to move these three servos from x to y position while the user is clicking”, but I really do not see how to change this idea into codes. I know that there are classes in Qt used for serial communications, but what I need currently before beginning to program the whole is to do a plan, which means a kind of structure for my program, by saying “in this file, I will first construct this method, which will use this argument to move this element”, etc… But it is my first project in this domain, and I am lost. That is why I ask here if some professionals could give me some advice, web links or examples which could help me to do it properly.

Viewing all articles
Browse latest Browse all 2113

Trending Articles