Shop OBEX P1 Docs P2 Docs Learn Events
Parallax 16ch USB Servo Controller and C# — Parallax Forums

Parallax 16ch USB Servo Controller and C#

bld-live.dkbld-live.dk Posts: 4
edited 2009-08-24 18:36 in General Discussion
I have searched the forum, and google for some time now, without finding anything i could use.

Are there anyone here that got an example of how to communicate with the USB Servo Controller in C#?

Comments

  • hover1hover1 Posts: 1,929
    edited 2009-08-20 20:04
    All I can find is a Spin Object in the OBEX:

    http://obex.parallax.com/objects/449/

    And that's the serial device. Not much help.
    bld-live.dk said...
    I have searched the forum, and google for some time now, without finding anything i could use.

    Are there anyone here that got an example of how to communicate with the USB Servo Controller in C#?
  • hover1hover1 Posts: 1,929
    edited 2009-08-20 20:10
    There is a VB example here:

    http://forums.parallax.com/showthread.php?p=671804


    bld-live.dk said...
    I have searched the forum, and google for some time now, without finding anything i could use.

    Are there anyone here that got an example of how to communicate with the USB Servo Controller in C#?
  • bld-live.dkbld-live.dk Posts: 4
    edited 2009-08-20 21:31
    Looked at what others did, and tried to transform it to C#... Every time i am sending a command to it, the green light flashes. But nothing happens.

    The code is here: pastebin.com/m4f1d3d56

    Any ideas what i am doing wrong?
  • bld-live.dkbld-live.dk Posts: 4
    edited 2009-08-20 22:48
    And i got something working

    pastebin.com/m516269bd

    This can handle each channel, and move the servos. No fancy controlling yet, just tell the servo where to go to. smile.gif
  • FranklinFranklin Posts: 4,747
    edited 2009-08-22 02:39
    That's the big step, the rest is just window dressing, good luck and have fun with it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • bld-live.dkbld-live.dk Posts: 4
    edited 2009-08-24 18:36
    And that is about done too [noparse]:)[/noparse]

    bld-live.dk/?id=26

    The position limit, and speed limit is still not working. But they hopefully will in a few days.

    It now got stepping mode too, where it can step a number of positions from the last position

    Post Edited (bld-live.dk) : 8/24/2009 6:47:32 PM GMT
Sign In or Register to comment.