Playing a song
Objectives
- Reinforce repetition
- Reinforce selection
- Be creative and have fun
Assignment
- Create a clean program that will play a song based upon the colors read
- each color represents a different note
- the program should stop when the touch sensor goes activated
- Additional requirements
- the color sensor should be pointed down and connected to port 3
- the touch sensor should be in the front of the robot and connected to port 4
- each color (in increasing order) should represent a different note in increasing order
Submission instructions
- Due date is found on Canvas
- Each person should create a pdf document that contains the following information
- Your name
- Your partner's name
- A brief description of what you did
- A brief description of what your partner did
- How your team improved over any mistakes made last time
- Indicate which hints (if any) your team used
- How well you achieve each objective
- Create one zip folder for the team
- place your code (making sure it has a comment that includes the lab assignment and the name of all team members)
- place each member's pdf in the folder
- Have one team member submit it in canvas.
Hints
- What to do with the motors
Challenges
- Create a pattern that is an actual song.
- 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