Shop OBEX P1 Docs P2 Docs Learn Events
USB servo controller with C or C++ — Parallax Forums

USB servo controller with C or C++

TC-TC- Posts: 4
edited 2007-01-29 17:51 in Robotics
Hi,
I just wonder if it's possible to control a USB servo controller from an application coded in C or C++, and if so how and what do i use?
Thanks/
Tommy

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-01-29 15:18
    Yes. The "USB servo controller" looks to the PC like a "Serial Port". So you open the "USB servo controller" serial port and send the strings specified in the USB servo controller documentation.
  • TC-TC- Posts: 4
    edited 2007-01-29 15:21
    So the driver maps the USB port like an extra serial port in Windows?
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-01-29 15:22
    Yes, exactly
  • TC-TC- Posts: 4
    edited 2007-01-29 15:25
    Is there some sample code controlling a servo controller available anywere?
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-01-29 16:02
    If you are using the Parallax Servo Controller, you'll need to read the docs for the command protocols. From there, you'll open your serial port and send the commands via a write operation.

    This thread has example programs that you can look at:

    http://forums.parallax.com/showthread.php?p=607328
  • TC-TC- Posts: 4
    edited 2007-01-29 16:18
    Thanks for all the help, i think i will be able to sort it out now [noparse]:)[/noparse]
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-01-29 17:51
    This thread is being moved from the BASIC Stamp Forum to the Robotics Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.