Program for Pallo - SPIKE Prime catapult with target robot

This program is for the target part of Pallo. It consists of a piston with different colored sections, which are detected by a color sensor. The beginning of the piston is a green section, so the program waits for that to change, meaning that the target has been hit, and then it celebrates! The celebration is pretty simple, it measures the color of the new section, which can give us how accurately the target has been hit, and lights the center button with that color! Additionally it writes "YAY" on the screen of the hub. Feel free to improve it however you like!

How to open?

Download
  • #40fher
  • 07 Aug 2020

Courses and lessons with this Program

This Program is used in the following courses and lessons

Image for Stay @ Home SPIKE Prime Course
  • 4
  • 0:33
  • 27
Image for Lesson 6 - Catapult
  • 1
  • 2
  • 3d_rotation 1