Shop OBEX P1 Docs P2 Docs Learn Events
How do you program a bs2e to work with a gyro???? — Parallax Forums

How do you program a bs2e to work with a gyro????

roboneticsrobonetics Posts: 16
edited 2005-09-06 01:48 in BASIC Stamp
Does anyone know how to program the basic stamp 2e to work with a gyro? if so can you tell me how to do it or send me a sample of a program that is using a gyro....

the gyro i am using is a gws-03.

using the gyro to keep a robot balanced.

thank you

Comments

  • Brian CarpenterBrian Carpenter Posts: 728
    edited 2005-09-05 21:24
    the stamp doesnt need any programming. put the gyro between the stamp and the servo that you are wanting to control it will "hold" the servo in the proper location until the stamp sends a signal to the servo (through the gyro)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    It's Only A Stupid Question If You Have Not Googled It First!!
  • roboneticsrobonetics Posts: 16
    edited 2005-09-05 22:49
    I have done that.. the gyro isn't moving the servo when i tip robot back & forth,·tried the gyro n the·robot to see if it will correct it. it doesn't...·i've trested the gyro & it's working i've also tested the servo, it is also working. so what else can i try to do? i seen a few sites with robots using gyros & a short program for that control board to work with the gyro. any other idea i can try.

    thank you for your input.

    chas
  • Brian CarpenterBrian Carpenter Posts: 728
    edited 2005-09-06 01:48
    you can power the gyro and then use the output and connect it to the basic stamp. You can use the Pulsein command to read the pulse width. then you can write a program t use that information.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    It's Only A Stupid Question If You Have Not Googled It First!!
Sign In or Register to comment.