Gyro help

DOes anyone know how to program or have any tips on how to use the gyro???

I’d recommend posting this in the programming forum. :slight_smile:

Other than that, i know that they are pretty tricky to use.

This also falls under the
search before you post umbrella. I know questions like this have been asked multiple times.

If you still can’t find it after searching, PM me and I’ll send you stuff.

What exactly are you trying to do with it?

Hook the gyro up to the analog inputs. In the control manual, it should tell you how. Assign it to one of the analog inputs, ex: analog3, in default code, sensor3. Turn the constant for sensor3 on, add it to your serin command, and input data from it. The yaw rate sensor, measures the rate of angular change from an arbitrary plane. So basically in the right position, if you turn it, the value changes. However, it resets starts recounting after around 60ms (3 pulses). This might help, heres our default code, it has some balancing code using gyros for the eduRobot.

Gyro Code -> sub_balance

Actually, the the yaw rate sensor measures the rate of angular change. This is why if you stop moving it, it goes back to neutral. If you turn it faster, the larger (or smaller) the value will be.

Lets see, angular turning rate integrated with time gives us an angle. This may not work well in PBasic but think of what could be done in the “Black Box”

*Originally posted by Jack *
**I’d recommend posting this in the programming forum. :slight_smile:

Isn’t THIS the programming forum. LOL