Shop OBEX P1 Docs P2 Docs Learn Events
sevo randomnes — Parallax Forums

sevo randomnes

bridger deschampsbridger deschamps Posts: 17
edited 2012-08-09 06:28 in Robotics
Hi can any one help me I a`m stumped on the code for random servo movements. I would like it to pan left and right at random. I a`m using a basic stamp homework board.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-04-28 07:39
    Post the code that you don't understand and say more about what you're stumped about. Do you understand servo movement control? If not, have a look at chapter 4 of the "What's a Microcontroller?" tutorial which you should have. Do you understand how the RANDOM statement works? If not, read the chapter on it in the "Stamp Basic Syntax and Reference Manual" which you should also have. These are part of the help files of the Stamp Editor and can be downloaded from Parallax.
  • bridger deschampsbridger deschamps Posts: 17
    edited 2012-08-08 23:41
    so now that is the thing I do not know how to use the random statement I get how the sevo moves but not how to have it put in random values.I am using the basic stamp, and the code is just the simple pules out code. thanks
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-08-09 06:28
    If the code is short, you can add it to a post. Here's a link to instructions how to post code in the forum.

    attachment.php?attachmentid=78421&d=1297987572

    Did you read the section about the Random statement like Mike suggested?
Sign In or Register to comment.