# Robotics Final Project Update

1. I chose the Pink Panther as I wanted to choose a non-lyrical song. This is so that in the programming process it is easy to match the robot to the beat of the song.

2. I have completed the first section of the song and started working on having the arm do the harmony simultaneously.

3. In my program I am not using any sensors. However, I did approach this in a more mathematical/musical sense. I found a score of the Pink Panther online and downloaded it. I have a program I use to play back composed pieces in specific formats so that I can follow the score while it plays. I set the tempo custom to 120 beats per minute. I decided to do this as 120 is a multiple of 60 and the program will be much simpler to write due to this. I created multiple functions, such as moving forward, turning in place, performing a swing turn, and moving the arm. In all of these I can input the speed and for how many beats in a measure. This gives me ease in matching the robot with the song as I don’t actually have to time it through trial and error.

Another important function I made was a rest function, to reflect a rest in musical pieces. My approach to match the robot to the song note by note takes slightly more time, however, it is much simpler in timing the robot with the song.

4. In my program, I have set a variable that affects every function I create. It is a speed control, and is multiplied to every wait function. If I find that the robot moves slightly slower than the song, I change it from 1 to 0.95, to make the robot wait less. Similarly, if it moves to fast compared to the song, I change the constant from 1 to 1.005, so that the robot takes more time before performing a task.

5. The only challenge I believe I have had was when I was unaware of the “float” function. Prior I used the integer function, which rounds numbers to the closest integer. I found a problem when I need to the robot to move for 0.25 of a beat, as I would just not move. Mr.Lin helped me with this by showing me the “float” function which just stores the number including decimals.

# Robotics Unit 4: November 15 Reflection

Today we got time to work on a simple program to remote control our Vex Squarebot. I learned how to remote control it through the example programs in the Vex programmer. We also had to create a special function to activate when I press a button, which I set the robot to turn in circles for 4 seconds in each direction. Then I got some time to work on our final project, which was the robot dance.

# Robotics Unit 4: Remote Control Questions

1. What is a remote control? A remote control is a device used to tell another device what to do through live communication. As opposed to having the robot work autonomously, we give it directions of what to do as it is performing a task.

2. Why use remote controls? We use remote controls to control robots and other devices. This has some advantages over autonomous actions because if some mistakes happen, as we work in a physical work, we can quickly account for it. If a robot is working autonomously, it may encounter some problems, such as bumping into walls. A human can account for this with a remote control by controlling the robot, telling it when to move forward and when to turn. A remote control has many advantages over autonomous control, but there are also some disadvantages. For example, if a human makes a mistake, the robot could possibly have a worse outcome than if it performed the mistake itself.

3. Different types of Remote Controls Remote controls are used to control devices, but different types of controls are made to control specific devices. A computer mouse is optimized to move the cursor and interact with the computer, a TV remote has many buttons so you can choose channels to watch. A video game controller is made for the best video game experience, and a keyboard is made to input letters and language onto a device.

4. Spaceship remote control challenge Wireless remote controls use waves to communicate, and these waves can travel as fast as the speed of light. On Earth, there are no issues with this speed as the communication is almost instantaneous. However, in space, distance is drastically increased. Since the waves can at most move at the speed of light a spaceship that is at the edge of the solar system would take a longer amount of time to send and receive from. An example of a spaceship like this is Voyager 1, launched by NASA, who now takes at least 3 days to communicate with because it is so far away from us, even leaving the solar system. This large span of time for communication means that real-time control is no longer an advantage and it is more difficult to know what action the robot should do next.

5. Improving a remote control Many remotes are already pretty well made, but, if I had the option to improve a remote, I would improve the basic Television Remote. A TV remote has many buttons and is pretty complicated if you have never used it before. You should be given the option to simplify or complicate it as much as you want, and what system to use. Some remotes have buttons assigned to certain channels, and others have a channel selection control, so you can scroll through them. Something such as a touchscreen has the easy ability to be customized, and thus this concept you could use to create an easy customizable TV remote.

# Robotics Unit 4: November 9 Dance Reflection

Today we continued with the dance unit. We first learned VEX had the ability to perform multiple tasks simultaneously, which gave us many new options, such as having the arm moving to one part while the rest of the robot moves to the other. I made use of this concept in my chosen song, which is the pink panther, which repeats the same bass for 9 measures before switching to an improvisation B section in the piece. I managed to have the main part of the song finished and begin the B section.