Case 6 - Detect the rotation angles of the gyroscope

Part 1   Objective

After you upload the program, the screen of CyberPi displays the rotation angles in real time.

15__1_.gif

Part 2   Preparation

  • CyberPi x 1
  • USB cable (Type-C) x 1
  • Computer with network access x 1

Connect CyberPi to the computer by using the cable, open mBlock 5 (PC client or web version), connect CyberPi, and select the Upload mode.

16.gif

17.gif

Part 3   Programming

Rotate CyberPi slowly. The screen of CyberPi displays the rotation angles on the x, y, and z axes in real time.

18__1_.gif

Part 4   Practice

  1. Detect the angular speed on the x, y, and z axes.

  2. Detect the acceleration on the x, y, and z axes.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.