Case 25 - Catapult Ram (I)

Part 1   Objective

Write a program to make the Catapult Ram catapult balls.


Part 2   Preparation

  • Mechanical parts and electronic modules of Catapult Ram

  • USB cable (Type-B) x 1

  • Computer with network access x 1

Follow the building steps to build a Catapult Ram. Install the MegaPi encoder/DC motor drivers on MegaPi, connect the motors to the motor ports on MegaPi by using the motor cables, connect MegaPi to the computer by using the USB cable, open mBlock 5 (PC client or web version), click +add, select Ultimate 2.0 from the Device Library, click Connect, and select the Upload mode.


Part 3   Programming

Make the encoder motors rotate at high speed to catapult the ping pong ball.


Part 4   Practice

  1. Try to catapult other objects.

  2. Try to change the rotation angles of the encoder motors for easier catapulting of the ping pong ball.

Was this article helpful?
2 out of 4 found this helpful



Please sign in to leave a comment.