Playing a song

Objectives

  1. Reinforce repetition
  2. Reinforce selection
  3. Be creative and have fun

Assignment

  1. Create a clean program that will play a song based upon the colors read
    1. each color represents a different note
    2. the program should stop when the touch sensor goes activated
  2. Additional requirements
    1. the color sensor should be pointed down and connected to port 3
    2. the touch sensor should be in the front of the robot and connected to port 4
    3. each color (in increasing order) should represent a different note in increasing order

Submission instructions

  1. Due date is found on Canvas
  2. Each person should create a pdf document that contains the following information
    1. Your name
    2. Your partner's name
    3. A brief description of what you did
    4. A brief description of what your partner did
    5. How your team improved over any mistakes made last time
    6. Indicate which hints (if any) your team used
    7. How well you achieve each objective
  3. Create one zip folder for the team
    1. place your code (making sure it has a comment that includes the lab assignment and the name of all team members)
    2. place each member's pdf in the folder
  4. Have one team member submit it in canvas.

Hints

  1. What to do with the motors

Challenges

  1. Create a pattern that is an actual song.
  2. Find a way to have more than 7 different notes but still allow for the based eight notes


This topic: CenterForComputing > WebHome > SyllabiFall2022 > CSC102SylF2022 > CSC102F2022Lab4
Topic revision: r3 - 2022-08-23 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback