Shop OBEX P1 Docs P2 Docs Learn Events
help!!!!! roborealm with basic stamp 2 — Parallax Forums

help!!!!! roborealm with basic stamp 2

lazyman[GR]lazyman[GR] Posts: 15
edited 2006-07-17 14:30 in General Discussion
hello
i am making a project where i want to control 2 servos via the pc in real time but i dont have a servo controller.

can i move them without the module?


enlight me

sorry for my bad english


lazyman from greece

p.s. i am despared



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
FOTIS DASKALAKIS-GREECE-

Post Edited (lazyman[noparse][[/noparse]GR]) : 7/9/2006 7:13:05 PM GMT

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-07-09 20:45
    How exactly do you want to control the servos from the PC?

    Are you:
    1) trying to use only your PC and the servos, with no other electronics

    or are you:
    2) trying to interface your PC to a BS2 that is connected to the servos?

    If the answer is 1, you'll need an appropriate interface cable (you'll probably need to build one), and some application (you might have to write one) that allows for servo communications.

    If the answer is 2, you can connect your servos to a BS2 module, and write a program that does the following:
    1. Listens for input from the PC (easiest would likely be serial port)
    2. Receives and parses input from PC
    3. Performs some task based on PC commands
    4. Goes back to Step 1

    Also, just to let you know, when posting questions, it's easier for people to help when you give as much detail as possible. Let people know what parts/components you have, and what exactly you are trying to accomplish.
  • lazyman[GR]lazyman[GR] Posts: 15
    edited 2006-07-10 10:44
    ok
    i want to control a camera via a laptop.
    i want to move it left-right down-up

    the program it may have 2 selections.
    1
    fully automatic. use of roborealm to lock on target (can i·use external variables to the pbasic program like·roborealm·?·)
    2
    manual (at first step with serial cable)
    at last step with rf communication.


    ps. can i control more than 2 servos with basic stamp using bread board?
    thanx for the answers

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    FOTIS DASKALAKIS-GREECE-

    Post Edited (lazyman[noparse][[/noparse]GR]) : 7/10/2006 3:10:37 PM GMT
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-07-10 17:40
    Depending on what you need to do and how fast, you can use multiple servos with a stamp and breadboard- consider: a servo has a refresh 'window' of approximatley 20 ms - so clever use of that refresh window allows for control of multiple servos....


    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • lazyman[GR]lazyman[GR] Posts: 15
    edited 2006-07-10 18:42
    can you give me some lines of source code to control the 2 stantard servos via pc with pbasic?
    that can be usefull for me

    thanx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    FOTIS DASKALAKIS-GREECE-
  • lazyman[GR]lazyman[GR] Posts: 15
    edited 2006-07-10 22:38
    can i also put variables (like from a *.txt) from a third party program like roborealm???

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    FOTIS DASKALAKIS-GREECE-
  • RoboRealmRoboRealm Posts: 3
    edited 2006-07-16 17:59
    You'll need a module like the Parallax Servo Controller http://www.parallax.com/detail.asp?product_id=28023 to control the servo if you are not using a BS2 module. The board is capable of receiving commands directly from a PC via serial and passing them onto the actual Servo motors that understand PWM. You cannot connect a PC directly to a servo ... the servos and PC just do not speak the same language. If you get that board then you can then use a PC and RoboRealm to control the servo via the board as needed to get your pan/tilt camera to work.

    Let us know if you have any more questions.

    STeven.
    http://www.roborealm.com/
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-07-17 14:30
    Hello,

    ·· A better suggestion for connection to a PC is Stock# 28823, since it is USB, whereas 28023 would need additional circuitry to connect to a PC Serial Port.· The USB Version communicates serially just as the 28023 through a VCP Driver installed on the PC.· Please see the documentation for more information.· Take care.

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