MPU9150 Accelerometer, Gyro, Temperature, Compass icon MPU9150 Accelerometer, Gyro, Temperature, Compass — MPU9150 ARC control reads compass, gyro, accelerometer and temperature via I2C, initializes and sets EZ-Script variables on demand. Try it →

ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

#1  

Just hook them to the Analog Port. Parallax also sells some, I don't know how much. But , these will work fine. It will give you a voltage reading between 0 and 5 volts. D.J. would have to tell you but I guess they would also work on the digital port for a True/False reading. But, you would probably have to write a little code for them. They will keep you on line, or keep you from falling down the stairs.

P.S. my humble 2Cents. Verify with D.J. before you act.

Mel