Shop OBEX P1 Docs P2 Docs Learn Events
Help with GWS pg-03 Gyroscope — Parallax Forums

Help with GWS pg-03 Gyroscope

I am trying to use the pg-03 gyroscope for a balancing robot with the propeller. Can anyone help me as far as how to read the signal coming from it. I have tried sending a Pulsout and then read the pulsin but to no avail. Thanks for any help you can offer.

Sincerely,

Andy

Comments

  • w8anw8an Posts: 176
    edited 2010-03-29 23:27
    The typical piezo gyro, like those used in RC model helicopters, output a signal that is destined for a servo.

    So you can expect a pulse train being sent continuously out of the device. The pulses occur at 20mS intervals and the pulse width determines the position of the servo it is intending to control. The pulse width will vary from 1mS to 2mS with 1.5mS meaning the gyro is keeping the servo centered.

    Therfore no yaw motion of the gyro = no correction required = the pulse width is 1.5mS. As the gyro is rotated, this pulse width will change.

    Search the web for servo signal information and you will see what it is you need to be monitoring from your gyro.

    Good luck!

    -Steve
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2010-03-29 23:45
    Basically stick a 1.5ms pulse train in to the gyro and time the pulses coming out, these are made shorter or longer depending on the rotation as Steve has explained.

    If that is what you have tried to do then perhaps posting your code would help.

    Graham
  • w8anw8an Posts: 176
    edited 2010-03-30 03:34
    Graham may be right about the input. I've never used a gyro without the control stream going in so not sure what might happen without it. And certainly this may, and probably is, dependent on the vendor and model of gyro.

    As an RC heli enthusiast, it's just not practical to attempt a flight without the rudder control connected [noparse];)[/noparse]
Sign In or Register to comment.