Q7

Lesson 7 Quiz: Sensors and Analog Input with Arduino

Test your understanding of sensors, analog input, and reading values with analogRead()

32-Lesson Course • Semester 1

Quiz Instructions

  • This quiz covers material from Lesson 7: Sensors and Analog Input with Arduino
  • Answer all questions to the best of your ability
  • Your responses will be emailed to your instructor for review
  • Take your time and think carefully about each answer
  • You can review the lesson material if needed before submitting

Student Information

Question 1: What does a sensor do?

What is the main job of a sensor in an Arduino project?

Question 2: Digital vs Analog

Which statement best describes analog input?

Question 3: Analog Pins

Which pin is the correct kind of pin to use with analogRead() for a beginner sensor lesson?

Question 4: Understanding analogRead()

What does analogRead(A0) do?

Question 5: Sensor Range

In this lesson, what range of values does Arduino usually read from an analog sensor?

Question 6: Potentiometer Wiring

In the lesson's potentiometer setup, where does the middle pin connect?

Question 7: Why Use the Serial Monitor?

Why is the Serial Monitor useful when testing a sensor?

Question 8: Code Analysis

What does this line do?
Serial.println(sensorValue);

Question 9: Reading the Pattern

Explain what you would expect to happen to the numbers in the Serial Monitor as you slowly turn a potentiometer knob from one end to the other.

Question 10: Simple Sensor Program

Describe a simple Arduino program that reads a sensor. What sensor would you use, what pin would it connect to, and what would the program print or do?