RobotC Coding Project
Group: Michael Wooten, Michael Wooten, and Michael Wooten
Activity 3.1.1
Activity 3.1.2
Activity 3.1.3
Activity 3.1.4
Conclusion Questions
3.1.1
1. Describe how these motors and sensors may be used.
The sensors are used to wait until there is a change in the environment, and the motors will act on that change by turning at selected speeds.
2. Describe scenarios where the motors or sensors did not respond as you would predict.
I did not expect how the servo motors would move to a certain position then stop because I thought it would be similar to standard motors.
3.1.2
1. Describe any challenges that you encountered while developing the program.
While coding 3.1.2 I forgot to save so I had to retype most of the coding, and I had to learn what each command did to the machine.
2. Describe how these outputs might be used in an application.
These codes could be used on machines that do simple tasks like a strobe light, moving spotlight, or a RC car.
3.1.3
1. Describe any challenges that you encountered while developing the program.
While coding 3.1.3 I did not run into any challenges or problems with Robot C.
2. Describe three applications for the use of sensors that you worked with in this activity.
Three of the sensors that I coded were the sonar that could measure the distance of other cars while driving to be safe, the encoder that can be used to count how many times a tire will spin on a car, and the line follower which could be used by self driving cars to stay within the traffic lanes.
3.1.4
1. Describe any challenges that you encountered while developing the programs.
While working on 3.1.4 I was stumped with how to set up while loops so that they will start when the sensors measure a certain value because I was using the "until" commands rather than "sensorValue" commands.
2. Describe one application each for While loops and If-Else structures.
The while loop codes could be used to infinitely repeat a certain action, like how stop lights will always be functioning if they are powered on, and the if-else structure could be used to do two different action, like how an air conditioner will be on until the desired temperature is reached.
1. Describe how these motors and sensors may be used.
The sensors are used to wait until there is a change in the environment, and the motors will act on that change by turning at selected speeds.
2. Describe scenarios where the motors or sensors did not respond as you would predict.
I did not expect how the servo motors would move to a certain position then stop because I thought it would be similar to standard motors.
3.1.2
1. Describe any challenges that you encountered while developing the program.
While coding 3.1.2 I forgot to save so I had to retype most of the coding, and I had to learn what each command did to the machine.
2. Describe how these outputs might be used in an application.
These codes could be used on machines that do simple tasks like a strobe light, moving spotlight, or a RC car.
3.1.3
1. Describe any challenges that you encountered while developing the program.
While coding 3.1.3 I did not run into any challenges or problems with Robot C.
2. Describe three applications for the use of sensors that you worked with in this activity.
Three of the sensors that I coded were the sonar that could measure the distance of other cars while driving to be safe, the encoder that can be used to count how many times a tire will spin on a car, and the line follower which could be used by self driving cars to stay within the traffic lanes.
3.1.4
1. Describe any challenges that you encountered while developing the programs.
While working on 3.1.4 I was stumped with how to set up while loops so that they will start when the sensors measure a certain value because I was using the "until" commands rather than "sensorValue" commands.
2. Describe one application each for While loops and If-Else structures.
The while loop codes could be used to infinitely repeat a certain action, like how stop lights will always be functioning if they are powered on, and the if-else structure could be used to do two different action, like how an air conditioner will be on until the desired temperature is reached.