1. Write a description of the song your robot will sing and what your algorithm and sensors for triggering the song is.
My song will be singing the USC Fight Song (because it's an awesome song.) The song is triggered when there is a bright light shined into the center light sensor AND when there is nothing in front of the robot (obstacle sensors read 0).
2. Write a description of what your robot will draw and your algorithm and sensors for triggering the drawing.
My robot will draw a five pointed star when it is placed onto a light-colored surface, AND as long as the battery is above a certain level preset into the code. Because the motor speed fluctuates based on how much battery life is left, I figured out that after it reaches a certain point it will not properly draw the star. So to prevent it from drawing an ugly star, the program has been written so that it will not execute if the battery is too low.
3. Write a description of your robot's surprise ability and what your algorithm and sensors are for triggering the surprise ability.My robot is very musical and is going to choose from one of four songs to sing to you. As long as there is nothing behind the robot, the robot will spin and sing one of four songs:
Twinkle Twinkle Little Star - Mozart
Payphone - Maroon 5 ft. Wiz Khalifa
Call Me Maybe - Carly Rae Jepsen
Levels - Avicii
4. Write a description of what your algorithm and sensors are for structuring your robot's performance.
Upon execution of the program, the user is prompted with a "Do you wish to continue" screen with a "press 1 to continue." Once the user prompts the robot to continue, the robot will give the user 30 seconds to shine a bright light into the center light port. Once that action has been completed, the user will be prompted again to place the robot on a light surface and "press 1 to continue." Once the robot checks for battery life, the robot will draw a star. Finally, the user will be prompted one last time for a "do you wish to continue." If there is nothing behind the robot, the robot will spin and choose one of four songs to sing.
Click here to download the code for this program! (Right-click and Save As)