Shop OBEX P1 Docs P2 Docs Learn Events
Servo turret Help Please, real stampers, Thanks!!! — Parallax Forums

Servo turret Help Please, real stampers, Thanks!!!

ZaxZax Posts: 48
edited 2005-09-08 02:49 in Robotics
OK I've got a servo turret for the ping sensor, and I'm trying to get it to turn
left about 30 deg. right about 60 and to the center!
here is my code need a real STAMPers help!
thanks, Rick

DEBUG "SONAR HEAD"
counter VAR Byte
FOR counter = 1 TO 8
PULSOUT 14, 850
PAUSE 20
NEXT
PAUSE 20
FOR counter = 1 TO 20
PULSOUT 14, 650
PAUSE 15
NEXT
PAUSE 20
FOR COUNTER = 1 TO 38
PULSOUT 14, 850
NEXT

Comments

  • dandreaedandreae Posts: 1,375
    edited 2005-09-02 22:48
    Zax,

    Are you referring to the tank bot on the Parallax website?· If so,· please let me know I built it and I can share my information with you.

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com

    ·
  • ZaxZax Posts: 48
    edited 2005-09-02 23:26
    Yes Dave, Its a boebot with the tank kit!
  • dandreaedandreae Posts: 1,375
    edited 2005-09-02 23:32
    What I did, is I used a golf shaft with a couple of zip ties and a servo.· I put a red LED in the shaft so that everytime I had it fire the red LED would light up and make a firing sound on the peizo speaker.· Let me know·if you have any questions.

    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com



    Post Edited (Dave Andreae (Parallax)) : 9/2/2005 11:37:07 PM GMT
  • ZaxZax Posts: 48
    edited 2005-09-03 00:57
    Thanks, Dave

    What I'm trying to do is this first off, Im not getting the hed of my droidto work the way·I want. simply·I want to look to the left then all the way to the right then center after that·I use a bottle rocket wich is ignited by a esties igniter using the pulsout 15, 850 command they fly beautiful!!

    However·I·was wondering about turning one way then all the way to the other and back straight again·I love your code but it moves to just one side I want to look in bolth directions then center can you fix my code or if It's to far off give me one that will work, PRETTY PLEASE!!!!

    Thanks, RICK
  • ZaxZax Posts: 48
    edited 2005-09-03 21:22
    idea.gif·Hey, I found the reasone for the troubles!!!idea.gif I hooked up a PARLLAX continuous rotation servo, and my program does what It is should do!
    In other words what I tell it to do!
    But, when·I use my standard hobby servo, it dosent!
    I'm sure the answer is right in front of me, but I can't figure It out.confused.gif
    Just shooting in the dark! The servo works fine, VIA radio and TRANSMITTER
    so I know It's not the servo!smilewinkgrin.gif
  • Tricky NekroTricky Nekro Posts: 218
    edited 2005-09-04 21:56
    A non-continious servo is more presise for your job with the correct programm... You can even target a thing by mesuring its distanse with IR...cool.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rule your Destiny-
    --Be Good. Be Bad. Be Provas--
  • Oper8r AlOper8r Al Posts: 98
    edited 2005-09-06 05:35
    Look in the WAM book and it gives examples of how to control non-continuous servos. I used some to control a pan and tilt rig with a wireless camera that I added on to my boe-bot. You can d/l the text off the parallax web site. Hope this helps.

    Al
  • ZaxZax Posts: 48
    edited 2005-09-08 02:49
    Thank's for all the help STAMPERS!!!
    I'm up and running!
Sign In or Register to comment.