Unit 2 - Practice Quiz

ECE249 64 Questions
0 Correct 0 Wrong 64 Left
0/64

1 What is the primary function of the GND pins on an Arduino Uno board?

Arduino board (pin configuration and description) Easy
A. To reset the microcontroller
B. To provide a ground reference (0V)
C. To provide a 5V power supply
D. To receive analog input

2 Which of the following best describes a digital signal?

Analog and digital signals Easy
A. A signal with discrete values, typically 0 and 1
B. A signal that is always positive
C. A signal that can have an infinite number of values
D. A signal that varies continuously over time

3 What type of waves does an ultrasonic sensor use to measure distance?

basic principle of ultrasonic sensor Easy
A. Sound waves above human hearing range
B. Visible light waves
C. Radio waves
D. Infrared light waves

4 What happens to the resistance of a Light Dependent Resistor (LDR) when it is exposed to bright light?

LDR Easy
A. It becomes zero
B. It increases significantly
C. It remains constant
D. It decreases significantly

5 What two environmental parameters does a DHT11 or DHT22 sensor measure?

Temperature sensor (DHT11/DHT22) Easy
A. Humidity and Light
B. Pressure and Gas
C. Temperature and Pressure
D. Temperature and Humidity

6 An IR sensor module typically consists of two main components. What are they?

IR sensor Easy
A. An IR emitter (LED) and an IR receiver (photodiode)
B. A microphone and a speaker
C. A resistor and a capacitor
D. A buzzer and an LED

7 On an Arduino Uno, which pins are specifically designed to read continuous signals, like from a potentiometer?

Arduino board (pin configuration and description) Easy
A. Digital pins (0-13)
B. Analog In pins (A0-A5)
C. GND pins
D. Power pins (5V, 3.3V)

8 Which of the following is an example of an analog signal?

Analog and digital signals Easy
A. A signal from a simple on/off switch
B. The output of a computer's USB port
C. The sound from a human voice
D. Morse code

9 In an HC-SR04 ultrasonic sensor, what is the purpose of the 'Trig' (Trigger) pin?

basic principle of ultrasonic sensor Easy
A. To receive the returning echo
B. To send out the ultrasonic sound pulse
C. To provide power to the sensor
D. To provide a ground connection

10 What is the function of the 5V pin on an Arduino board?

Arduino board (pin configuration and description) Easy
A. To provide a regulated 5-volt power supply for external components
B. To act as a ground pin
C. To receive a 5-volt input to power the board
D. To send a digital signal of 5 volts

11 What does the acronym 'LDR' stand for?

LDR Easy
A. Light Directing Resistor
B. Low Duration Relay
C. Light Dependent Resistor
D. Laser Diode Receiver

12 An IR sensor is commonly used in which of the following applications?

IR sensor Easy
A. Detecting distance using sound
B. Measuring atmospheric pressure
C. Measuring air humidity
D. Line-following robots

13 What kind of output signal does a DHT11 sensor provide to the Arduino?

Temperature sensor (DHT11/DHT22) Easy
A. A custom digital signal
B. An AC waveform
C. A simple HIGH or LOW signal
D. A pure analog voltage

14 What is the main integrated circuit (IC) chip that acts as the 'brain' of the Arduino Uno?

Arduino board (pin configuration and description) Easy
A. ATmega328P
B. ESP8266
C. Raspberry Pi 4
D. 555 Timer IC

15 The process of converting an analog signal into a digital signal is called:

Analog and digital signals Easy
A. Digital-to-Analog Conversion (DAC)
B. Amplification
C. Analog-to-Digital Conversion (ADC)
D. Modulation

16 The distance measured by an ultrasonic sensor is calculated based on the speed of sound and what other value?

basic principle of ultrasonic sensor Easy
A. The time taken for the echo to return
B. The intensity of the reflected sound
C. The ambient temperature
D. The frequency of the sound wave

17 On an Arduino Uno, what does a tilde symbol (~) next to a digital pin number (e.g., ~3, ~5, ~6) indicate?

Arduino board (pin configuration and description) Easy
A. The pin supports Pulse Width Modulation (PWM)
B. The pin is a ground pin
C. The pin is an analog input pin
D. The pin is not working

18 Infrared (IR) light is:

IR sensor Easy
A. A form of sound
B. Visible as red light
C. Visible as blue light
D. Invisible to the human eye

19 Between the DHT11 and DHT22 sensors, which one is generally considered more accurate and has a wider measurement range?

Temperature sensor (DHT11/DHT22) Easy
A. DHT22
B. DHT11
C. Neither is accurate
D. They are identical in performance

20 A simple push button connected to an Arduino digital pin provides what kind of signal?

Analog and digital signals Easy
A. A digital signal (HIGH/LOW)
B. A sine wave
C. An analog signal (0-1023)
D. A PWM signal

21 An Arduino project requires controlling the brightness of an LED and the speed of a DC motor independently. Which feature of the Arduino Uno's digital pins makes this possible without an external DAC (Digital-to-Analog Converter)?

Arduino board (pin configuration and description) Medium
A. The internal pull-up resistors available on all digital pins.
B. The high current capacity of the digital I/O pins.
C. The ability of all digital pins to provide a stable 5V output.
D. The presence of specific pins marked with a tilde (~) that support Pulse Width Modulation (PWM).

22 An Arduino Uno uses a 10-bit Analog-to-Digital Converter (ADC) with a default reference voltage of 5V. If an analog sensor provides a voltage of 2.0V to an analog input pin, what digital value would analogRead() be expected to return?

Analog and digital signals Medium
A. Approximately 205
B. Approximately 102
C. Approximately 409
D. Approximately 512

23 An HC-SR04 ultrasonic sensor is used to measure distance. The Arduino code measures the duration of the ECHO pin's HIGH pulse to be 1470 microseconds (µs). Assuming the speed of sound in air is 340 m/s, what is the calculated distance to the object?

basic principle of ultrasonic sensor Medium
A. 50 cm
B. 25 cm
C. 100 cm
D. 12.5 cm

24 An LDR is used in a voltage divider circuit with a 10 kΩ fixed resistor. The LDR is connected between 5V and the analog pin A0, and the fixed resistor is between A0 and GND. How will the voltage at pin A0 and the LDR's resistance change as the room gets brighter?

LDR Medium
A. LDR resistance increases, voltage at A0 decreases.
B. LDR resistance increases, voltage at A0 increases.
C. LDR resistance decreases, voltage at A0 increases.
D. LDR resistance decreases, voltage at A0 decreases.

25 A project requires monitoring a greenhouse environment where temperature must be maintained within ±0.5°C and humidity within ±3%. Which sensor is the better choice and why?

Temperature sensor (DHT11/DHT22) Medium
A. DHT22, because it consumes less power than the DHT11.
B. DHT11, because it is cheaper and sufficient for the task.
C. DHT11, because it has a faster sampling rate.
D. DHT22, because it offers higher precision for both temperature (±0.5°C) and humidity (±2-5%).

26 You are building a line-following robot using an IR sensor module that has both an IR emitter and a photodiode. When the sensor is over a white line, it gives a LOW digital output, and over a black surface, it gives a HIGH output. How does the sensor achieve this differentiation?

IR sensor Medium
A. The white surface is hotter than the black surface, emitting more infrared radiation.
B. The black surface reflects IR light more effectively than the white surface, triggering the photodiode.
C. The white surface changes the wavelength of the IR light, which is detected by the photodiode.
D. The white surface reflects a significant amount of the emitted IR light back to the photodiode, while the black surface absorbs most of it.

27 If you are using the Serial.print() function to send debugging information from an Arduino Uno to your computer, which physical pins are actively being used for this communication, and what is a potential issue if you connect other components to them?

Arduino board (pin configuration and description) Medium
A. Pins A4 (SDA) and A5 (SCL); conflicts with I2C communication.
B. Pins 0 (RX) and 1 (TX); other devices connected to these pins can interfere with program uploads and serial monitoring.
C. Pins 11 (MOSI) and 12 (MISO); conflicts with SPI peripherals.
D. Pins 2 and 3; conflicts with external interrupts.

28 What is the primary advantage of transmitting data digitally over long distances compared to transmitting it as an analog signal?

Analog and digital signals Medium
A. Analog signals require less complex circuitry to process.
B. Digital signals are more immune to noise and can be perfectly regenerated.
C. Analog signals have a higher bandwidth by default.
D. Digital signals can represent an infinite number of values.

29 An ultrasonic sensor is placed in a narrow corridor with walls made of smooth, hard tile. Why might the sensor occasionally report a much longer distance than the actual distance to the wall directly in front of it?

basic principle of ultrasonic sensor Medium
A. The sensor is detecting its own emitted heat.
B. The smooth tile absorbs the ultrasonic waves completely.
C. The speed of sound increases in narrow spaces.
D. The sound waves are experiencing multiple reflections (multipath interference) off the side walls before returning to the sensor.

30 When interfacing a DHT22 sensor with an Arduino, the library code often includes a significant delay (e.g., delay(2000)) between consecutive readings. What is the primary technical reason for this delay?

Temperature sensor (DHT11/DHT22) Medium
A. To give the Serial monitor enough time to print the previous value.
B. To comply with the sensor's data sheet, which specifies a minimum time interval between readings for the sensor to take a new, stable measurement.
C. To prevent the sensor from overheating due to frequent power cycling.
D. To allow the Arduino's ADC to stabilize.

31 You are designing a circuit to detect very subtle changes in low-light conditions (e.g., dusk). You are using an LDR in a voltage divider with a fixed resistor. To maximize the sensitivity of the circuit in this specific scenario, what should be the approximate value of the fixed resistor?

LDR Medium
A. As high as possible (e.g., 10 MΩ).
B. Approximately equal to the LDR's resistance in the target low-light condition.
C. As low as possible (e.g., 100 Ω).
D. The value of the fixed resistor does not affect sensitivity.

32 A project requires reading data from 8 different analog sensors, but the Arduino Uno only has 6 analog input pins (A0-A5). What is the most common hardware solution to expand the analog input capability without upgrading to an Arduino Mega?

Arduino board (pin configuration and description) Medium
A. Using an analog multiplexer (like the CD4051) controlled by digital pins to switch between the 8 sensors connected to a single analog pin.
B. Connecting all 8 sensors to a single analog pin and reading them in sequence.
C. Using digital pins with analogRead() as they can also read analog values.
D. Using an external analog-to-digital converter (ADC) with more channels.

33 A TV remote control uses an IR LED to transmit signals, and a TV has an IR receiver. Why can't you typically use a simple IR obstacle sensor module (like the FC-51) to decode these TV remote signals?

IR sensor Medium
A. The obstacle sensor emits its own IR light, which interferes with the remote's signal.
B. TV remotes operate at a different IR wavelength that the sensor cannot see.
C. The obstacle sensor's output is analog, while the remote signal is digital.
D. The obstacle sensor's output is a simple HIGH/LOW based on reflection, whereas TV remotes use a modulated signal (e.g., 38 kHz) that requires a specialized demodulating receiver (like a TSOP sensor).

34 What is meant by the 'quantization error' in the context of an Analog-to-Digital Converter (ADC)?

Analog and digital signals Medium
A. The error caused by electrical noise in the analog signal.
B. The error introduced by using an incorrect reference voltage.
C. The time delay between sampling the analog signal and getting the digital output.
D. The difference between the actual analog value and the closest discrete voltage level that the ADC can represent.

35 Why would an ultrasonic sensor (like the HC-SR04) be a poor choice for creating a distance-measuring device to be used in a vacuum?

basic principle of ultrasonic sensor Medium
A. The speed of the ultrasonic pulse would become infinite, leading to zero time measurement.
B. The sensor requires air pressure to activate its internal electronics.
C. Ultrasonic waves are a type of sound wave, and sound cannot travel in a vacuum.
D. The sensor's piezoelectric crystals would be damaged by the vacuum.

36 An Arduino is programmed to turn on a street light when the ambient light level drops below a certain threshold. The code reads an LDR's value using analogRead(A0) into a variable lightValue. Based on a standard LDR voltage divider circuit where higher light levels produce a higher voltage, which if statement correctly implements this logic?

LDR Medium
A. if (lightValue > 1000) { digitalWrite(ledPin, HIGH); }
B. if (lightValue == 0) { digitalWrite(ledPin, HIGH); }
C. if (lightValue > 500) { digitalWrite(ledPin, HIGH); }
D. if (lightValue < 200) { digitalWrite(ledPin, HIGH); }

37 What is the primary function of the AREF (Analog Reference) pin on an Arduino board, and when should it be used?

Arduino board (pin configuration and description) Medium
A. It allows you to provide an external, precise voltage to set the upper limit of the ADC's input range, improving measurement accuracy for low-voltage sensors.
B. It provides a stable 3.3V output to power external sensors.
C. It is used to manually reset the analog-to-digital converter.
D. It is an additional ground pin specifically for analog components.

38 The data from a DHT11 sensor is sent as a 40-bit packet. The last byte (8 bits) is a checksum. How is this checksum typically calculated and what is its purpose?

Temperature sensor (DHT11/DHT22) Medium
A. It is the sum of the first four bytes (humidity integer, humidity decimal, temp integer, temp decimal), used to check for transmission errors.
B. It is a random number used to initiate communication.
C. It is the average of the first four bytes, used to verify data integrity.
D. It is a constant value defined in the sensor's firmware.

39 In a factory, a system needs to count the number of bottles passing on a conveyor belt. Which type of IR sensor arrangement would be the most reliable for this task?

IR sensor Medium
A. A reflective sensor placed above the bottles, relying on the reflection from the bottle caps.
B. A transmissive (through-beam) sensor with the emitter on one side of the conveyor belt and the detector on the other.
C. A reflective sensor placed on the side, aimed at the side of the bottles.
D. A passive infrared (PIR) sensor to detect the motion of the bottles.

40 Pulse Width Modulation (PWM) is used on a digital pin to control an LED's brightness. If the PWM signal has a frequency of 500 Hz, what does a 25% duty cycle physically mean?

Analog and digital signals Medium
A. The pin outputs 5V for 0.5 milliseconds and 0V for 1.5 milliseconds in each cycle.
B. The total period of one cycle is 25 milliseconds.
C. The pin toggles between HIGH and LOW 125 times per second.
D. The output voltage is a constant 1.25V (25% of 5V).

41 An HC-SR04 ultrasonic sensor is used in a chamber where the temperature is 45°C. The Arduino code is using the standard speed of sound value, 343 m/s, which is accurate at 20°C. If the sensor measures an echo time of 11.6 milliseconds, what is the actual distance to the object? Use the formula for the speed of sound in air: .

basic principle of ultrasonic sensor Hard
A. Approximately 1.99 meters
B. Approximately 2.08 meters
C. Exactly 2.00 meters, as time measurement is independent of temperature.
D. Approximately 2.17 meters

42 A DHT22 sensor is connected to an Arduino with a 10kΩ pull-up resistor on the data line. During communication, the sensor pulls the line low for 80μs to signal a 'start' condition. If the Arduino's VCC is exactly 5.0V, what is the instantaneous power dissipated by the pull-up resistor at the moment the sensor pulls the line low (assuming the sensor's output pin acts as a perfect short to ground)?

Temperature sensor (DHT11/DHT22) Hard
A. 5.0 mW
B. 0.5 mW
C. 2.5 mW
D. 0 W, as no current flows to the Arduino pin.

43 An Arduino Uno is used to sample a periodic analog signal using its 10-bit ADC. The analogReference() is set to INTERNAL (1.1V). To avoid aliasing, the signal is first passed through an anti-aliasing filter. If the highest frequency component of interest in the signal is 4.5 kHz, what is the absolute minimum sampling frequency required, and what is the quantization error for this ADC configuration?

Analog and digital signals Hard
A. Fs_min = 9 kHz, Quantization Error = 4.88 mV
B. Fs_min = 9 kHz, Quantization Error = 1.07 mV
C. Fs_min = 4.5 kHz, Quantization Error = 4.88 mV
D. Fs_min = 4.5 kHz, Quantization Error = 1.07 mV

44 An Arduino Uno is powered via the VIN pin with a 12V supply. The onboard 5V regulator (NCP1117ST50T3G) has a quiescent current of 1.5 mA and is supplying 150 mA to external components connected to the 5V pin. Given the regulator has a thermal resistance (Junction-to-Ambient, ) of approximately 100 °C/W, what is the approximate temperature rise of the regulator's junction above the ambient temperature?

Arduino board (pin configuration and description) Hard
A. Approximately 105 °C
B. Approximately 70 °C
C. Approximately 15 °C
D. Approximately 50 °C

45 An LDR and a fixed 10 kΩ resistor are used in a voltage divider circuit connected to an Arduino's 5V supply. The LDR is connected between the 5V pin and the analog input pin, while the fixed resistor is connected between the analog pin and GND. The LDR has a resistance of 1 MΩ in complete darkness and 500 Ω in bright light. Over what voltage range will the analog input pin swing as the light level changes from complete darkness to bright light?

LDR Hard
A. From ~0.05V (dark) to ~4.76V (light)
B. From ~4.95V (dark) to ~0.24V (light)
C. From ~0.24V (dark) to ~4.95V (light)
D. From ~4.76V (dark) to ~0.05V (light)

46 An HC-SR04 ultrasonic sensor is used to measure the distance to a flat object. The sensor's datasheet specifies a detection angle of 15 degrees. If the sensor is aimed at a wall 3 meters away, what is the approximate diameter of the circular area on the wall that is being 'seen' by the sensor's sonic pulse?

basic principle of ultrasonic sensor Hard
A. ~1.58 m
B. ~0.40 m
C. ~3.00 m
D. ~0.79 m

47 The data transmission protocol for a DHT22 sensor represents a '1' bit as a 50μs low pulse followed by a 70μs high pulse, and a '0' bit as a 50μs low pulse followed by a 26-28μs high pulse. The total transmission consists of a start signal, a 40-bit data packet (16-bit humidity, 16-bit temperature, 8-bit checksum), and a final low pulse. Approximately what is the maximum possible time to read a full 40-bit data packet from the sensor, excluding the start signal?

Temperature sensor (DHT11/DHT22) Hard
A. ~4.8 ms
B. ~1.2 ms
C. ~3.1 ms
D. ~5.5 ms

48 An Arduino is generating a 2.0V pseudo-analog signal on a PWM pin. The Arduino is operating at 5V, and the PWM frequency is the default ~490 Hz for the pin. To convert this PWM signal to a stable DC voltage, an RC low-pass filter is used. To ensure the ripple voltage is less than 1% of the DC level (i.e., < 20 mV), what is a suitable combination of R and C for the filter?

Analog and digital signals Hard
A. R = 1 kΩ, C = 1 μF
B. R = 10 kΩ, C = 0.1 μF
C. R = 10 kΩ, C = 10 μF
D. R = 100 Ω, C = 0.1 μF

49 On an Arduino Uno, a digitalWrite(pin, HIGH) command is executed on a pin configured as an output. However, instead of 5V, a voltmeter measures only 3.8V at the pin. The pin is connected to a load that is drawing 25 mA. What is the approximate internal output impedance of the ATmega328P microcontroller's I/O pin?

Arduino board (pin configuration and description) Hard
A. It cannot be determined from the given information.
B. ~48 Ω
C. ~200 Ω
D. ~152 Ω

50 An IR remote control receiver module (like the TSOP38238) is designed to respond only to IR signals modulated at a 38 kHz carrier frequency. If this receiver is exposed to a constant, unmodulated IR source (like a high-power IR LED that is simply turned on), how will the receiver's output pin behave?

IR sensor Hard
A. The output will pulse randomly due to signal saturation.
B. The output will go HIGH and stay HIGH as long as the IR is present.
C. The output will remain HIGH (inactive state) because the internal band-pass filter and AGC will reject the constant signal.
D. The output will go LOW and stay LOW as long as the IR is present.

51 A standard CdS LDR is used in a circuit to trigger a fast-response safety shutter. The datasheet for the LDR specifies a 'rise time' (10 lux to 1000 lux) of 50 ms and a 'decay time' (1000 lux to 10 lux) of 300 ms. Why is this LDR a fundamentally poor choice for a high-speed optical application compared to a PIN photodiode?

LDR Hard
A. The LDR's resistance change relies on a slow quantum process of trapping and releasing charge carriers.
B. The LDR requires a complex voltage divider circuit, unlike a photodiode.
C. The LDR has a non-linear resistance-to-light relationship.
D. The LDR's spectral sensitivity does not match visible light.

52 An HC-SR04 sensor is operating in an environment with many reflective surfaces, causing multiple echoes (reverberation). The first echo from the intended target returns after 5.8 ms. A second, stronger echo from a farther wall returns at 11.6 ms. The Arduino code uses a simple pulseIn() function with a default 1-second timeout. What distance will the Arduino most likely report?

basic principle of ultrasonic sensor Hard
A. A timeout error, as the pulseIn() function gets confused by multiple echoes.
B. ~2.0 meters, from the second echo.
C. An average of the two distances.
D. ~1.0 meter, from the first echo.

53 A project requires monitoring a rapidly changing environment, needing a temperature and humidity reading every 500 milliseconds. A choice must be made between a DHT11 and a DHT22 sensor. Which of the following statements provides the most accurate engineering reason for choosing one over the other for this specific application?

Temperature sensor (DHT11/DHT22) Hard
A. The DHT11 is superior because its sampling period is 1 Hz (1000 ms), which is closer to the requirement.
B. The DHT22 is superior because its specified sampling period is 2 Hz (500 ms), perfectly matching the requirement.
C. The DHT11 is superior because it consumes less power, allowing for more rapid polling cycles.
D. The DHT22 is superior because its capacitive humidity sensor is faster to respond than the DHT11's resistive sensor.

54 An Arduino Uno's 10-bit ADC is sampling an input signal. The default ADC clock prescaler is 128, and the system clock is 16 MHz. An ADC conversion takes 13 ADC clock cycles. A programmer, attempting to increase the sampling rate, changes the ADC prescaler to 16. What is the most significant negative consequence of this change?

Analog and digital signals Hard
A. The analogRead() function will take 8 times longer to execute.
B. The effective resolution of the ADC will be reduced due to insufficient settling time.
C. The Arduino's main loop will slow down significantly.
D. The ADC's power consumption will increase by a factor of 8.

55 What is the primary function of the IOREF pin on an Arduino Uno R3 board, and how does it enhance the platform's functionality compared to earlier board revisions that lacked it?

Arduino board (pin configuration and description) Hard
A. It is an adjustable voltage output pin, set by the analogWrite() function, for controlling external hardware.
B. It is a direct connection to the internal 1.1V bandgap reference for low-voltage measurements.
C. It provides a voltage signal to shields indicating the microcontroller's operating I/O voltage (e.g., 5V for Uno, 3.3V for Due).
D. It provides a stable 3.3V reference for the analog-to-digital converter, improving accuracy.

56 A circuit uses a 10 kΩ LDR in a voltage divider with a fixed 10 kΩ resistor to create a light-sensitive switch. The divider's output is fed into an analog comparator (like the one in the ATmega328P) with a reference voltage of 2.5V. At what approximate resistance value will the LDR cause the comparator to trip?

LDR Hard
A. 5 kΩ
B. 2.5 kΩ
C. 20 kΩ
D. 10 kΩ

57 An IR line-following robot uses an array of QRE1113 (emitter/detector) sensors. On a matte white surface, the sensor outputs 1.2V. On a matte black line, it outputs 4.5V. The robot now encounters a line drawn with glossy black ink on a glossy white paper. How are the sensor readings likely to be affected compared to the matte surfaces?

IR sensor Hard
A. Both white and black readings will decrease due to specular reflection away from the sensor.
B. Both white and black readings will increase due to higher reflectivity.
C. The white reading will decrease, and the black reading will also decrease, potentially making the line indistinguishable.
D. The white reading will increase (brighter), and the black reading will decrease (darker).

58 An application requires monitoring 8 separate button inputs for any state change and must react with the lowest possible latency. An Arduino Uno is available. Which interrupt handling method would be most suitable and efficient for this task?

Arduino board (pin configuration and description) Hard
A. Connecting all 8 buttons to pins on a single port (e.g., PORTD) and using a single Pin Change Interrupt (PCI) for that entire port.
B. Assigning each button to a digital pin and polling them continuously in the loop().
C. Using the two external hardware interrupt pins (2 and 3) for the two most critical buttons and polling the rest.
D. Using a software interrupt library that can simulate interrupts on any digital pin.

59 A 12-bit DAC (Digital-to-Analog Converter) is used to generate a sine wave. The DAC has a reference voltage of 3.3V. To create the sine wave, the DAC is programmed to output 1000 distinct voltage levels per cycle. What is the approximate peak-to-peak voltage () and the voltage of the smallest possible step (resolution) of the generated waveform?

Analog and digital signals Hard
A. V, Resolution = 0.81 mV
B. V, Resolution = 3.3 mV
C. V, Resolution = 3.3 mV
D. V, Resolution = 0.81 mV

60 An Arduino project requires a low-power sleep mode, but a button connected to a digital pin must be able to wake the microcontroller. The button is wired to connect the pin to GND when pressed. To avoid using an external resistor, the pin is configured as pinMode(pin, INPUT_PULLUP). If VCC is 5V and the ATmega328P's internal pull-up resistors are specified to be between 20 kΩ and 50 kΩ, what is the range of current drawn from VCC through this pin when the button is held down?

Arduino board (pin configuration and description) Hard
A. Exactly 250 μA
B. The current is negligible (< 1 μA).
C. 25 μA to 50 μA
D. 100 μA to 250 μA

61 An ultrasonic sensor is used in a narrow corridor 0.5 meters wide. The sensor has a 30-degree total cone angle (+/- 15 degrees). At what minimum distance from the sensor will the sound cone first hit both side walls simultaneously, potentially causing confusing side-wall reflections to be detected before the echo from an object straight ahead?

basic principle of ultrasonic sensor Hard
A. ~0.50 m
B. ~1.34 m
C. ~0.93 m
D. ~1.86 m

62 In the 40-bit data packet from a DHT sensor, the last 8 bits form a checksum, which is defined as "the last 8 bits of the sum of the first four 8-bit data bytes". If a DHT22 returns the hex values 0x02, 0x7A, 0x00, 0xE7, 0x63 (for Hum_H, Hum_L, Temp_H, Temp_L, Checksum respectively), is the data packet valid?

Temperature sensor (DHT11/DHT22) Hard
A. The data is invalid because the temperature value is negative.
B. No, the checksum is invalid and should be 0x01.
C. Yes, the checksum 0x62 is valid.
D. No, the checksum is invalid and should be 0x63.

63 A Wheatstone bridge is constructed to detect a specific light level. Three arms have fixed 10 kΩ resistors. The fourth arm contains an LDR. The bridge is powered by 5V. If the bridge is balanced () when the LDR's resistance is exactly 10 kΩ, what would happen to the differential output voltage if the LDR was then shaded, causing its resistance to increase to 50 kΩ?

LDR Hard
A. The output voltage would become -1.67 V.
B. The output voltage would become +2.5 V.
C. The output voltage would remain zero.
D. The output voltage would become +1.67 V.

64 A Sharp GP2Y0A21YK0F IR distance sensor provides an analog voltage output that is non-linearly related to distance. According to its datasheet, the relationship is approximately , where D is distance in cm. An Arduino reads an ADC value of 675 from this sensor. If the Arduino's analogReference is the default 5V, what is the approximate distance to the object?

IR sensor Hard
A. ~21 cm
B. ~5 cm
C. ~2 cm
D. ~10 cm