Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

COMP 3504 Test 2 - Guidance

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

COMP 3012 Test 2 - Guidance Winter 2024

COMP 3012 – Winter 2024 - Sec 01 Test 2 – Guidance – Weight: 20%


Exam Date: Feb 27, 2024
Duration: 80 minutes (1 hour and 20 minutes) –
Format: In-class written exam (not online)

COMP 3012 - W24 - Course Progress Tracker: Stay Informed and Prepared with Our Dynamic Syllabus
• Contains a breakdown of each lecture

The exam is based on the following lecture and tutorials


o Lectures 01 to 06

The exam is based on the following material


• Past material to review
o 01 Robotics Introduction
o 02 Basics of electronics
o 02 - Second Lecture Activity - Electronics Hands On Tutorial Building a Basic Breadboard
Circuit (All material)
o 03 - Third Lecture Activity - Electronics Hands on continued (All material)
• Material to know well
o 03 Controllers (all)
o 04 Sensors - Effectors - Actuators Part 1 (all)
o 05 - Fifth Lecture Activity
o 06 - Sixth Lecture Activity

Question Styles to expect


- You can expect to see both short/medium written questions and basic diagrams where you may be
required to complete drawing connections for an electronic circuit to an Arduino
- You will also be required to write syntactically correct programs for an Arduino controller and explain
exact choices
- You should know and understand all code and components provided in the lecture activates and, in the
notes, and simulator examples.
- You may be asked to solve a problem that will require skills learned from the activates and provided
examples
- You will be required to relate the work you are doing back to what we have learned in electronics and to
the basics of robotics.

A few examples question


Note: Below are some possible questions without answers. These questions have been used during exams in previous
versions of this course. Note: This is not an exhaustive list of example questions.

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?

LED A LED B LED C


COMP 3012 Test 2 - Guidance Winter 2024

• 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

Put your full program here


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

You might also like