Difference:
CSC102S2025Lab4
( vs. 1)
Revision 1
2025-02-02 -
CathyBareiss
Line: 1 to 1
Added:
>
>
META TOPICPARENT
name="CSC102SylS2025"
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 is 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
A brief description of what you did
How you improved over any mistakes made last time
Indicate which hints (if any) you used
How well you achieve each objective
Submission:
submit the team's code pdf document in one zip folder.
Hints
What to do with the motors
Challenges
Create a pattern that is an actual song.
Find a way to have more than 7 (or 8) different notes but still allow for the base eight notes
Adjust so that the width indicates the length each note should play. Also allow for white space to indicate a rest.
View topic
|
H
istory
:
r1
|
More topic actions...
Copyright © 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