The NXT
Big Thing
#13
Wii Wii!
By Greg Intermaggio
Aloha muchachos! Welcome to the second half
of our foray into controlling Eddie 2.0 by
GyRoScOpE! If you haven’t already, be sure to
pick up last month’s edition of SERVO to catch up. Last month, we
spent some time experimenting with HiTechnics gyro sensor, and
ended with a program that can output the absolute angle of the
gyro sensor rather than outputting the raw sensor readings in
degrees per second.
This time, we’re going to be building on
what we already have in order to get our
controller talking to Eddie so he can move
forward, backward, left, and right based on
our hand movements.
Let’s rock.
Next Steps
Let’s get started by opening up our Gyro_Test_ 3
program from last month. Once opened, save it as
Gyro_Test_ 4 so we can start fresh.
Once you’ve completed the instructions, go
ahead and give your program a test and see if your
second sensor is working.
Gyro Test Program 4 Instructions
Figure 1. Start by creating the variables shown above. You
should already have all of the Y variables from last time. Now
we need to create the same three variables for our X axis.
70 SERVO 08.2011