Log in

View Full Version : Gyro help


Matchew
07-01-2003, 14:11
DOes anyone know how to program or have any tips on how to use the gyro???

Jack
07-01-2003, 14:14
I'd recommend posting this in the programming forum. :)

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

rbayer
07-01-2003, 14:24
This also falls under the
search before you post (http://www.chiefdelphi.com/forums/announcement.php?s=&forumid=16) 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.

wwrye
07-01-2003, 15:30
What exactly are you trying to do with it?

rwaliany
07-01-2003, 18:30
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 (http://www.chiefdelphi.com/forums/papers.php?s=&action=downloadpaper&paperid=137)

Joe Ross
07-01-2003, 18:36
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.

ttedrow
11-01-2003, 09:10
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"

Morgoth
20-01-2003, 10:49
Originally posted by Jack
I'd recommend posting this in the programming forum. :)


Isn't THIS the programming forum. LOL