In this lesson, we’ll go through the SPIKE app tutorial activities to learn how to control the hub and motors through block coding. You’ll create a light matrix display, update and connect the hub, and program a motor to spin at different speeds and rotations.
In the video, plugging the motor into port A is important because… The motor only works in port A The code refers to a specific port, so the motor must match The hub will not power any other port It allows the hub to connect to Bluetooth In the motor activity, which two types of blocks are used to control the motor's movement? The "when program starts" block and the "motor" block A "set speed to" block and a "run" block A "run" block and an "end" block A "set speed to" block and a "light matrix" block When programming the motor, what does the blue “set speed to” block control? How far the motor spins Which port the motor is connected to How fast the motor spins Whether the motor spins clockwise or counterclockwise If your motor is turning too slowly at 20%, what should you change in your program? Increase the number of rotations Increase the percentage in the “set speed to” block Add another motor to the hub Replace the event block with a color sensor block What is the difference between setting a motor to run for 1 rotation versus 75% speed? Rotation controls how fast it spins, and speed controls how far Rotation controls how far it spins, and speed controls how fast They both do the exact same thing Rotation only works for wheels, while speed works for attachments