Introduction - If you have any usage issues, please Google them yourself
Verilog codes read 6 axis data of MPU6050, and use GY AZ AX with complementary filtering arithmetic to calculate X axis angle. Codes run at Altera Chip EP4C15F17C8 and set 2 led light if X angle beyond ±5°.
Zip includes .v and .doc.