COMP 3504 Test 2 - Guidance
COMP 3504 Test 2 - Guidance
COMP 3504 Test 2 - Guidance
COMP 3012 - W24 - Course Progress Tracker: Stay Informed and Prepared with Our Dynamic Syllabus
• Contains a breakdown of each lecture
03 Controllers
• Why is it important to study the basics of electronics when learning about robotics and using an
Arduino microcontroller?
COMP 3012 Test 2 - Guidance Winter 2024
• In relation to robotics, what are controllers?
• In regard to this course, What are the three different types of possible controllers. Include the name,
a short description , and an example.
• What is a motor controller?
• How are specialized controllers different from microcontrollers and microprocessors. Provide an
example.
• Explain what microcontrollers and microprocessors are. What similarities and differences do they
have. Include examples of projects/applications where you would use a microprocessor vs a
microcontroller. Once again be very detailed in your answer. You must demonstrate to me that you
have fully understood this topic
• In regard to this course, What are the three different types of possible controllers. Include the name,
a short description , and an example. (0.5 mark for name, 1 mark for proper description, 0.5 for
proper example)
• In relation to controllers, what is a pin?
• In regards to Arduino, What is a shield?
• When uploading the code to the device, if you get an error message in regards to being unable to
upload the code, what things should you confirm are set up properly in the editor.
• What is a GPIO pin and how does it relate to the pins on an Arduino microcontroller?
• When working with controllers, Why is it important to look up and understand pin outs/pin
configuration for different controllers?
• In relation to Arduino microcontroller programing, what does the map function allow you to do?
Include an example.
• In relation to the Arduino IDE, what is the Serial Plotter?
• In relation to the basics of electronics, Assume you have the circuit shown below. When turned on
LED A is super bright, LED B is less bright as compared to LED A, and LED C is less bright than
both LED A and LED B. Based upon what we have learned in this course, why would this be
happening?
• In general, what is a signal? What is the difference between an analog and digital signal?
• In relation to any controller and signals, what is PWM? You must include more than what the
abbreviation stands for.
For this question you will need to complete the wires in the diagram and to write all the code to accomplish the following
task. (Note you will be marked on syntax and style)
Task: Makes some LEDs Blink
1. Pick two of the LEDs to properly hook up to the Arduino. The third LED must be left detached from the
controller.
2. Your chosen two LEDs must be properly connected so they can be used for digital output.
3. You must make your two chosen LEDs blink in an interesting pattern. Each LED must blink in a different way.
4. All actions must be easily observable by the human operator
5. More marks will be given for a solution that creates a single function to blink an LED on a given pin.
Draw a LINE TO SIMULATE THE WIRE. Only draw lines to connect necessary components
Note: You must explain everything your program is doing. Try to document each line and explain what it is doing. This
is required so that you demonstrate a proper understanding up each part of the code. Why were certain
parameters passed into functions, why are you using specific values/constants? Why did you pick that pin
number? etc
COMP 3012 Test 2 - Guidance Winter 2024
1. ] For this question, you will need to complete the wiring in the diagram and to write all the code to
accomplish the following task. (Note you will be marked on syntax and style)
Task:
6. Properly set up and use serial communication
7. When the controller starts up the LED must be off
8. While the button is being pressed the LED must light up and the message “LED ON” must be
printed out. Otherwise, when the button is not being pressed, the LED must be off and no
additional messages should be printed out.
9. More marks will be given for solutions that set up and use functions properly.
Draw a LINE TO SIMULATE THE WIRE. Only draw lines to connect necessary components to proper pins