Case 23 - Rotational Speed Control

Case 23 - Rotational Speed Control

Part 1   Objective

After you upload the program, you can control the rotational speed and direction of the motor connected to port EM2 by rotating the motor connected to port EM1.

62.gif

Part 2   Preparation

  • CyberPi-installed shield x 1 (powered on)

  • Wheel-installed encoder motor x 2

  • Motor cable x 2

  • USB cable (Type-C) x 1

  • Computer with network access x 1

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

63.gif
64.gif

Part 3   Programming

  1. Add mBot2 shield, and then program with the blocks added.

65.gif

Part 4   Practice

  1. Try to program with other motor-related blocks.

 

 

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

Comments

0 comments

Please sign in to leave a comment.