Shop OBEX P1 Docs P2 Docs Learn Events
PSC usb version — Parallax Forums

PSC usb version

FireHopperFireHopper Posts: 180
edited 2008-05-05 23:37 in Robotics
is anyone working on a mac version of the drivers and the servo control program? I'm going to be going to a convention and using the psc in my costume. and I do not have the room to take my big pc along, and I do not have a pc laptop. I have a mac laptop that will be going along to program the basic stamp, but I'd like to have a usb controller program along to find endpoints if I need to adjust them.


let me know [noparse]:)[/noparse]

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-04-28 20:45
    The PSC should take serial commands from the laptor just like it will from your big PC.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • FireHopperFireHopper Posts: 180
    edited 2008-04-28 23:37
    the program was written for pc. (the parallax supplied one) and are the ftdi drivers for the mac?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-04-29 01:27
    There is no Mac equivalent to the PC program.· The easiest thing to do is to write short programs for the Stamp and use that to control the PSC.

    There is a Mac version of the FTDI driver, but you have that already as part of MacBS2.· You could write a program for the Mac in any Mac language you're familiar with that supports serial I/O·and use that to directly drive the USB PSC.· The serial PSC manual will give you the formats of the various commands.
  • FireHopperFireHopper Posts: 180
    edited 2008-04-29 12:27
    if I could remember how to convert a number into it's low byte and high byte equiv, I tried for pc, and it didn't work..



    I thought it was something like this.



    data = the number your tryin to convert

    high = high byte

    low = low byte

    high = int (data/256)

    low = data - (high*256)


    correct me if I'm wrong.
    only other problem is that I can't program the mac anyway due to being unable to program in C/C++, I only know basic, and cant afford realbasic for the mac yet.
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2008-04-29 12:43
    It depends on the language you're using. If it's Stamp Basic, use "data.highbyte" and "data.lowbyte".

    There's a free Basic interpreter for the Mac called "Chipmunk Basic". It includes serial I/O support. Do a web search for it.
  • FireHopperFireHopper Posts: 180
    edited 2008-04-29 17:49
    I'll do that. [noparse]:)[/noparse] it looks like macbs2 did not install a ftdi driver.. I had to go to www.ftdichips.com to get a ftdi driver.. I was going to try realbasic demo, ($100)
  • FireHopperFireHopper Posts: 180
    edited 2008-04-29 17:54
    chipmunk basic is okay, But I need a GUI for what I want to do with the PSC USB device
  • FireHopperFireHopper Posts: 180
    edited 2008-04-29 20:09
    okay.. now that the ftdi driver is installed.. realbasic does know that the device is plugged in. now to try and code it in, fun part is the way that the mac deals with usb serial ports [noparse]:)[/noparse] I have to find it first, and then I can open the port thats associated to it [noparse]:)[/noparse]

    ·
  • FireHopperFireHopper Posts: 180
    edited 2008-04-30 00:29
    well I do have progress.. I can get the mac to do a ver request and it does report the 1.4 version. but does the psc usb device echo everything that is sent to it?
  • FireHopperFireHopper Posts: 180
    edited 2008-04-30 14:15
    heres a screen shot of the UI for the mac one I'm tryin to write. any suggestions?
    945 x 588 - 36K
    ssc.jpg 36.1K
  • FireHopperFireHopper Posts: 180
    edited 2008-05-05 23:37
    anyone interested in a mac version? its almost done [noparse]:)[/noparse] so far its working. just have to finish coding the rest of the sliders. too bad I'd need to buy real basic for the mac before I could compile a program for you all. I can supply the code/files though so you can compile it yourself if you paid for real basic.
Sign In or Register to comment.