Can I use a Gyroscope to turn off and on functions?

Hey guys. If I have a gyroscope, can I get it to correspond with two other devices? IE: I have two mosfets hooked up and only want them to be on if the gyroscope detects a certain angle, and anything outside of that the two devices are off without affecting any other functions? Thanks!

yes

if the gyroscope detects a certain angle

Gyros measure rate of rotation. They do not measure angles. To measure an orientation angle you need a fixed reference (like North from a magnetometer).

jremington:
Gyros measure rate of rotation. They do not measure angles. To measure an orientation angle you need a fixed reference (like North from a magnetometer).

Along with the magnetometer for measuring yaw rotation, you can also use an accelerometer to measure roll and pitch rotation.

I've recently become a fan of the BNO055 sensor. IMO, it does a good job filtering the data coming from the three different sensors.

Is there a more simple way to just detect angle, like a phone has? I'm trying to use the least number of sensors as possible. Thanks all!

As pointed out above, an accelerometer can measure pitch and roll (as long as gravity is the only acceleration), but not yaw. Phones use accelerometers.