Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Interfacing GUI server and FPGA board via RS232 cable to control robotic arm
Forum Updated to NodeBB v4.3 + New Features

Interfacing GUI server and FPGA board via RS232 cable to control robotic arm

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 736 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hareeshqtH Offline
    hareeshqtH Offline
    hareeshqt
    wrote on last edited by
    #1

    we are creating a Qt application for controlling a robotic arm that has 6 motors and need to communicate from the application in PC with an FPGA board. We need to transmit commands in the form of 8 bits to each stepper motor. First 6 bits are for the motor number and last 2 bits consists of Forward(1) and backward(0) commands.
    Later on, we will receive response from FPGA board regarding collision information in a form of 6 float values and immediately RS232 transmits this response back to server in order to display the position of collision part on robotic arm and if response is null nothing should be happened. Can anyone help me with the code in c++.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      the sample
      http://doc.qt.io/qt-5/qtserialport-terminal-example.html

      is a really good starting point for serial talking app.
      Has comport setup dialog and can already send and read.

      Since read from serial is just a stream of bytes,
      you can save your self lots of pain
      if u design with data maker (end of data) in the data packet you send
      so its very easy to spot if whole response has been read so far. etc.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved