Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Servo Controller — Parallax Forums

Parallax Servo Controller

Josiah WoodJosiah Wood Posts: 16
edited 2004-09-26 21:59 in General Discussion
Does anyone have any simple code that can control the Parallax Servo Controller?· I just need to see a simple program that can tell a servo to go to a position using the controller.

Thanks,

Joey

Comments

  • BeanBean Posts: 8,129
    edited 2004-09-26 18:30
    The code will depend on the frequency that you are running the SX chip.

    What frequency are you using and what pin are you connected to.

    Bean
  • Josiah WoodJosiah Wood Posts: 16
    edited 2004-09-26 18:48
    Well, I was just going to run it at the slowest speed of 32KHZ to be a close as possible to the baud rate of 2400, but I would like to increase it later for when I actually add some logic. For now I just want to see this thing work. And I'm connected to pin rb.0, but I could change that to anything else if it makes it easier.

    Thanks,

    Joey
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2004-09-26 19:50
    Joey,

    in my SX book, I have included some code to control the Parallax Servos. You can download the complete book source code from

    http://www.parallax.com/dl/src/prod/sx/ProgSXEdPre.zip

    In this ZIP file, locate APP028.SRC and higher for the Servo controlling examples. Note that they assume an SX clocked @ 4 MHz.

    Greetings,

    G
  • Josiah WoodJosiah Wood Posts: 16
    edited 2004-09-26 21:59
    Ok, I think I've got it now. I used G
Sign In or Register to comment.