Shop OBEX P1 Docs P2 Docs Learn Events
How to connect PSC to Javelin? — Parallax Forums

How to connect PSC to Javelin?

bulkheadbulkhead Posts: 405
edited 2005-12-11 00:04 in General Discussion
Ok, I read the manual, but I'm still unsure about many things. I have some questions. Any links to where I can find more information on this would help too.

1) Currently, I run my servos and my Javelin off the same battery, and it works. Can I run the PSC (usb) and the servos connected to it off the same battery too? I know that the battery will be able to provide enough current for all, but are there other issues other than battery power?

2) I don't have the need to use the software that comes with the PSC (currently, although some features seem nice)- right now, I only need the ability to control a single servo from the Javelin. I have 7 servos on my project, and currently I can only run 6 directly off the Javelin (I guess it can only run 6 VPs). My question is, how do I connect the PSC to the Javelin to do this, and what lines of code or type of syntax must I use to communicate to the PSC?

I'm not sure if I need to send my program through the USB cable to the PSC and the Javelin, or if I only have to connect the PSC to the Javelin and just add some lines of code in my program to communicate with the PSC.

Also, the PSC's "Serial In" port has 6 pins-do I use the top or bottom row, or are they the same? And on the super carrier board (that my Javelin is plugged into), does the 3-wire extension plug into the 3 pins right below the battery terminals?

Thanks for taking the time to help.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-12-10 06:49
    The 6 pins on the PSC Serial Port are actually 2 3-pin ports.· You would plug a standard servo cable into these, but the pin order is GND, +5V, Signal starting from the outside of the PCB.· In any event you could power the PSC from the Javelin's Vdd line since the PSC requires 5V.· The signal line would go to a Stamp I/O pin.· Then you just communicate serially at 2400 bps. You don't use the USB connection if you're using the Javelin.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • bulkheadbulkhead Posts: 405
    edited 2005-12-10 18:42
    Ok, I think I understand, thanks for the explanation. I'll go look up serial communication in the manual. So if the PSC is used with a stamp, the USB cable and software aren't needed at all?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-12-11 00:04
    That is correct.· You don't use the USB cable if you're using the serial line on the PSC.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.