1What type of pins on an Arduino board are labeled A0, A1, A2, etc.?
Arduino board (pin configuration and description)
Easy
A.PWM pins
B.Digital I/O pins
C.Analog Input pins
D.Power pins
Correct Answer: Analog Input pins
Explanation:
The pins labeled with an 'A' (A0, A1, etc.) are specifically designed to read analog voltages, which is useful for getting readings from many types of sensors.
Incorrect! Try again.
2Which component is considered the "brain" of the Arduino Uno board?
Arduino board (pin configuration and description)
Easy
A.Crystal Oscillator
B.ATmega328P Microcontroller
C.USB Port
D.Voltage Regulator
Correct Answer: ATmega328P Microcontroller
Explanation:
The ATmega328P is the microcontroller unit (MCU) that executes the code you upload to the board, performing all the calculations and operations, making it the board's "brain".
Incorrect! Try again.
3What is the standard operating voltage for the I/O pins on an Arduino Uno?
Arduino board (pin configuration and description)
Easy
A.12V
B.3.3V
C.9V
D.5V
Correct Answer: 5V
Explanation:
The digital and analog I/O pins on a standard Arduino Uno operate at 5 Volts. This means a HIGH signal is 5V and a LOW signal is 0V.
Incorrect! Try again.
4What does the 'GND' pin on an Arduino board represent?
Arduino board (pin configuration and description)
Easy
A.Ground
B.Global Network Device
C.General Input
D.Generated Voltage
Correct Answer: Ground
Explanation:
The 'GND' pin is the ground pin. It acts as the common reference point (0 Volts) for all voltages in the electrical circuit, which is necessary to complete a circuit.
Incorrect! Try again.
5Digital pins on an Arduino marked with a tilde (~) symbol, like ~3, ~5, and ~6, can perform what special function?
Arduino board (pin configuration and description)
Easy
A.Pulse Width Modulation (PWM)
B.Serial Communication
C.Analog Input
D.External Interrupts
Correct Answer: Pulse Width Modulation (PWM)
Explanation:
The tilde (~) symbol indicates that the pin supports Pulse Width Modulation (PWM). PWM rapidly switches the pin's output between HIGH and LOW to simulate an analog voltage level.
Incorrect! Try again.
6An ultrasonic sensor measures distance by using what type of waves?
basic principle of ultrasonic sensor
Easy
A.Sound waves
B.Light waves
C.Microwaves
D.Radio waves
Correct Answer: Sound waves
Explanation:
Ultrasonic sensors work by emitting high-frequency sound waves (ultrasound) and measuring the time it takes for the echo to return after bouncing off an object.
Incorrect! Try again.
7What are the two main components on the front of a typical HC-SR04 ultrasonic sensor?
basic principle of ultrasonic sensor
Easy
A.A button and a switch
B.An LED and a photodiode
C.A transmitter and a receiver
D.A positive and a negative terminal
Correct Answer: A transmitter and a receiver
Explanation:
The HC-SR04 ultrasonic sensor has one component that transmits the ultrasonic pulse (transmitter) and another that listens for the returning echo (receiver).
Incorrect! Try again.
8Which pin on an ultrasonic sensor is used to send out the sound pulse?
basic principle of ultrasonic sensor
Easy
A.Echo pin
B.GND pin
C.VCC pin
D.Trig (Trigger) pin
Correct Answer: Trig (Trigger) pin
Explanation:
The 'Trig' or 'Trigger' pin is used to start the measurement. A short high pulse on this pin tells the sensor to send out an ultrasonic sound burst.
Incorrect! Try again.
9The 'Echo' pin on an ultrasonic sensor is used for what purpose?
basic principle of ultrasonic sensor
Easy
A.To listen for the reflected sound pulse
B.To supply power to the sensor
C.To ground the sensor
D.To send out the sound pulse
Correct Answer: To listen for the reflected sound pulse
Explanation:
The 'Echo' pin outputs a high pulse whose duration is equal to the time taken for the sound wave to travel to the object and back. This time is used to calculate the distance.
Incorrect! Try again.
10What does "IR" in "IR sensor" stand for?
IR sensor
Easy
A.Inductive Reactance
B.Instantaneous Response
C.Internal Resistance
D.Infrared
Correct Answer: Infrared
Explanation:
"IR" stands for Infrared, which is a type of electromagnetic radiation with a wavelength longer than visible light, making it invisible to the human eye.
Incorrect! Try again.
11An IR sensor module typically consists of an IR LED and what other component to detect reflections?
IR sensor
Easy
A.A photodiode
B.A capacitor
C.A resistor
D.An inductor
Correct Answer: A photodiode
Explanation:
The IR sensor module uses an IR LED to emit infrared light and a photodiode (or phototransistor) to detect the infrared light when it is reflected off an object.
Incorrect! Try again.
12A simple IR proximity sensor is most commonly used for which application?
IR sensor
Easy
A.Measuring distance accurately
B.Measuring temperature
C.Measuring humidity
D.Detecting the presence of an object
Correct Answer: Detecting the presence of an object
Explanation:
IR proximity sensors are excellent for simple object detection, such as in line-following robots or obstacle-avoiding robots, because they can tell if an object is within their short range.
Incorrect! Try again.
13How does an IR sensor used in a line-following robot distinguish between a black line and a white surface?
IR sensor
Easy
A.The sensor measures the temperature difference
B.Both surfaces reflect IR light equally
C.Black surfaces absorb IR light, while white surfaces reflect it
D.White surfaces absorb IR light, while black surfaces reflect it
Correct Answer: Black surfaces absorb IR light, while white surfaces reflect it
Explanation:
The principle is based on reflectivity. White surfaces reflect most of the IR light back to the sensor's detector, while black surfaces absorb most of it. The robot uses this difference to stay on the line.
Incorrect! Try again.
14The LM35 is a popular type of which sensor?
Temperature
Easy
A.Humidity sensor
B.Pressure sensor
C.Temperature sensor
D.Light sensor
Correct Answer: Temperature sensor
Explanation:
The LM35 is a precision integrated-circuit temperature sensor, widely used in electronics projects due to its simplicity and accuracy.
Incorrect! Try again.
15The output of an LM35 temperature sensor is typically what kind of signal?
Temperature
Easy
A.A digital signal (HIGH/LOW)
B.An analog voltage proportional to temperature
C.A series of pulses (PWM)
D.A serial data stream
Correct Answer: An analog voltage proportional to temperature
Explanation:
The LM35 sensor outputs an analog voltage that is linearly proportional to the temperature in degrees Celsius. For example, its output is typically 10mV per degree Celsius.
Incorrect! Try again.
16To read data from an LM35 sensor with an Arduino, which type of pin should you connect its output to?
Temperature
Easy
A.The 5V power pin
B.An analog input pin (e.g., A0)
C.The reset pin
D.A digital pin (e.g., D7)
Correct Answer: An analog input pin (e.g., A0)
Explanation:
Since the LM35 outputs a variable analog voltage, it must be connected to one of the Arduino's analog input pins (A0-A5) to be read by the analog-to-digital converter (ADC).
Incorrect! Try again.
17What is the purpose of the reset button on an Arduino board?
Arduino board (pin configuration and description)
Easy
A.To permanently shut down the board
B.To erase the entire memory
C.To restart the program currently loaded on the board
D.To increase the clock speed
Correct Answer: To restart the program currently loaded on the board
Explanation:
Pressing the reset button restarts the execution of the sketch (program) from the beginning, similar to rebooting a computer. It does not erase the program from memory.
Incorrect! Try again.
18The 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 of flight of the sound wave
B.The frequency of the sound wave
C.The amplitude of the sound wave
D.The color of the object
Correct Answer: The time of flight of the sound wave
Explanation:
Distance is calculated using the formula: Distance = (Speed of Sound × Time of Flight) / 2. The time of flight is the total time for the sound to travel to the object and return.
Incorrect! Try again.
19Which pin on the Arduino Uno provides a 3.3V power supply?
Arduino board (pin configuration and description)
Easy
A.VIN
B.3.3V
C.AREF
D.5V
Correct Answer: 3.3V
Explanation:
The Arduino Uno board has a dedicated pin labeled '3.3V' that provides a regulated 3.3 Volt supply for powering components that require this lower voltage.
Incorrect! Try again.
20Why is the light from an IR sensor's LED invisible to the human eye?
IR sensor
Easy
A.It is too dim to be seen
B.Its wavelength is outside the visible spectrum for humans
C.It is a type of ultraviolet light
D.It only turns on for a microsecond
Correct Answer: Its wavelength is outside the visible spectrum for humans
Explanation:
Infrared (IR) light has a longer wavelength than red light, placing it just beyond the range of light that human eyes can perceive.
Incorrect! Try again.
21On an Arduino Uno, which of the following analogWrite() function calls would generate a PWM signal with a duty cycle closest to 60%?
Arduino board (pin configuration and description)
Medium
A.analogWrite(pin, 60);
B.analogWrite(pin, 204);
C.analogWrite(pin, 102);
D.analogWrite(pin, 153);
Correct Answer: analogWrite(pin, 153);
Explanation:
The analogWrite() function on an Arduino Uno uses an 8-bit resolution, meaning the value ranges from 0 (0% duty cycle) to 255 (100% duty cycle). To find the value for a 60% duty cycle, you calculate 60% of 255: 0.60 * 255 = 153.
Incorrect! Try again.
22An HC-SR04 ultrasonic sensor measures a pulse duration of 882 microseconds on its ECHO pin. If 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.60 cm
B.30 cm
C.15 cm
D.7.5 cm
Correct Answer: 15 cm
Explanation:
The formula for distance is Distance = (Speed of Sound * Time) / 2. The time is for the round trip, so we divide by 2. Distance = (340 m/s * 882 * 10^{-6} s) / 2 = 0.14994 m, which is approximately 15 cm.
Incorrect! Try again.
23An Arduino is reading the output of an LM35 temperature sensor using a 10-bit ADC with a 5V reference voltage. If the ADC returns a digital value of 205, what is the approximate temperature in degrees Celsius?
Temperature sensor
Medium
A.50°C
B.10°C
C.100°C
D.20°C
Correct Answer: 100°C
Explanation:
The correct option follows directly from the given concept and definitions.
Incorrect! Try again.
24A digital IR proximity sensor is used for obstacle detection. The sensor outputs a LOW signal when an object is detected and a HIGH signal otherwise. If the sensor is connected to pin 7 of an Arduino, which code snippet correctly turns on an LED on pin 13 when an obstacle is detected?
Correct Answer: if (digitalRead(7) == LOW) { digitalWrite(13, HIGH); }
Explanation:
The problem states that the sensor outputs a LOW signal upon detection. The code must check if the input from pin 7 is LOW. If this condition is true, it should then set pin 13 (the LED) to HIGH to turn it on.
Incorrect! Try again.
25If you connect an external power supply providing 3.3V to the 3.3V pin of an Arduino Uno to power it, what is the likely outcome?
Arduino board (pin configuration and description)
Medium
A.The Arduino will not power on because power should be supplied via the VIN pin or USB.
B.The ATmega328P microcontroller will be damaged.
C.The on-board 3.3V voltage regulator will be damaged.
D.The Arduino will function normally as long as the current is sufficient.
Correct Answer: The on-board 3.3V voltage regulator will be damaged.
Explanation:
The 3.3V pin on an Arduino Uno is an output pin, supplying power from the on-board regulator. Forcing an external voltage into an output pin can back-feed the regulator, potentially causing permanent damage. External power should be supplied through the VIN pin or the DC power jack.
Incorrect! Try again.
26Why does the accuracy of an ultrasonic sensor decrease significantly when measuring the distance to a soft, fabric-covered object compared to a hard, flat wall?
basic principle of ultrasonic sensor
Medium
A.The fabric's temperature interferes with the speed of sound calculation.
B.The soft fabric absorbs a large portion of the sound wave, resulting in a weak or no echo.
C.The fabric changes the frequency of the ultrasonic pulse.
D.The ultrasonic sensor is only calibrated for solid materials.
Correct Answer: The soft fabric absorbs a large portion of the sound wave, resulting in a weak or no echo.
Explanation:
Ultrasonic sensors rely on detecting a reflected sound wave (echo). Soft, porous materials like fabric are excellent sound absorbers. They dissipate the energy of the ultrasonic pulse, leading to a very weak or non-existent echo, which the sensor cannot reliably detect.
Incorrect! Try again.
27You are using a NTC (Negative Temperature Coefficient) thermistor in a voltage divider circuit with a fixed resistor. As the surrounding temperature increases, what happens to the thermistor's resistance and the voltage across it?
Temperature sensor
Medium
A.Resistance increases, voltage decreases.
B.Resistance increases, voltage increases.
C.Resistance decreases, voltage decreases.
D.Resistance decreases, voltage increases.
Correct Answer: Resistance decreases, voltage decreases.
Explanation:
A Negative Temperature Coefficient (NTC) thermistor's resistance decreases as temperature rises. In a typical voltage divider where the thermistor is connected between the measurement point and ground, a lower resistance will result in a lower voltage drop across it, thus the measured voltage also decreases.
Incorrect! Try again.
28A line-following robot uses two IR sensors (left and right), which output HIGH on a white surface and LOW on a black line. If the robot veers off the line to the right (meaning the left sensor is on white and the right sensor is now on white), what sensor readings would the control logic look for to steer back left?
IR sensor
Medium
A.Left: LOW, Right: LOW
B.Left: LOW, Right: HIGH
C.Left: HIGH, Right: HIGH
D.Left: HIGH, Right: LOW
Correct Answer: Left: HIGH, Right: HIGH
Explanation:
When the robot is on the line, one sensor is on white (HIGH) and the other is on black (LOW). If the robot has veered so far right that the line is no longer under either sensor, both sensors will be on the white surface, reading HIGH. The logic should interpret this (Left: HIGH, Right: HIGH) as being 'lost' and initiate a search or turn pattern, typically starting with the last known direction, which was to turn left.
Incorrect! Try again.
29What is the primary function of the IOREF pin on an Arduino Uno board?
Arduino board (pin configuration and description)
Medium
A.To provide the microcontroller's operating voltage (e.g., 5V or 3.3V) as a reference for shields.
B.To provide a reference voltage for analog-to-digital conversions.
C.To reset the microcontroller.
D.To supply a regulated 5V output for external components.
Correct Answer: To provide the microcontroller's operating voltage (e.g., 5V or 3.3V) as a reference for shields.
Explanation:
The IOREF pin provides a voltage reference that corresponds to the microcontroller's I/O voltage level. Shields can read this pin to automatically configure their logic levels to be compatible with the board (e.g., 5V for Uno, 3.3V for Due), preventing potential damage.
Incorrect! Try again.
30An ultrasonic sensor is being used in a narrow corridor. It frequently gives erroneous, shorter-than-actual distance readings. What is the most likely cause of this issue?
basic principle of ultrasonic sensor
Medium
A.The air temperature is too low.
B.The sensor's transmitter is failing.
C.The sound pulse is reflecting off the side walls before the main object.
D.The power supply voltage is unstable.
Correct Answer: The sound pulse is reflecting off the side walls before the main object.
Explanation:
Ultrasonic sensors emit a cone-shaped sound wave. In a narrow space, the pulse can hit a side wall and return to the sensor faster than the pulse that travels to the intended object farther away. The sensor reports the first echo it receives, leading to an artificially short distance reading.
Incorrect! Try again.
31Attempting to draw 100 mA of current directly from a single digital I/O pin of an ATmega328P (as on an Arduino Uno) will likely result in what?
Arduino board (pin configuration and description)
Medium
A.The entire Arduino board shutting down.
B.Damage to the I/O pin's internal circuitry.
C.The pin supplying the 100 mA without any issues.
D.The Arduino's on-board fuse tripping.
Correct Answer: Damage to the I/O pin's internal circuitry.
Explanation:
The absolute maximum DC current for a single I/O pin on the ATmega328P is 40 mA. Attempting to draw 100 mA far exceeds this limit and will likely cause permanent damage to the microcontroller's port driver for that pin.
Incorrect! Try again.
32Ambient sunlight is causing an IR receiver module (like a TSOP) to behave erratically. What is the most effective physical solution to mitigate this interference?
IR sensor
Medium
A.Write code to ignore readings during the day.
B.Place a piece of white paper over the receiver.
C.Increase the distance between the IR transmitter and receiver.
D.Enclose the IR receiver in a small tube or shroud to block light from the sides.
Correct Answer: Enclose the IR receiver in a small tube or shroud to block light from the sides.
Explanation:
Sunlight contains a broad spectrum of radiation, including infrared, which can saturate the IR receiver. A physical shroud or tube blocks ambient light from reaching the sensor from wide angles, allowing it to focus on the signal from the intended IR transmitter, thus improving the signal-to-noise ratio.
Incorrect! Try again.
33When interfacing an analog temperature sensor with an Arduino, the readings fluctuate slightly even when the temperature is stable. What is the purpose of taking multiple readings and averaging them in the code?
Temperature sensor
Medium
A.To increase the sensor's measurement range.
B.To reduce the effect of random electrical noise on the reading.
C.To calibrate the sensor against a known temperature.
D.To decrease the power consumption of the sensor.
Correct Answer: To reduce the effect of random electrical noise on the reading.
Explanation:
Analog sensor readings are susceptible to electrical noise from the power supply, the environment, and the ADC itself. Taking several measurements in quick succession and then averaging them is a common digital filtering technique to smooth out these random fluctuations and obtain a more stable and accurate reading.
Incorrect! Try again.
34To initiate a distance measurement with an HC-SR04 ultrasonic sensor, what specific signal must be sent to its 'Trig' (Trigger) pin?
basic principle of ultrasonic sensor
Medium
A.A constant LOW signal.
B.A HIGH pulse for at least 10 microseconds.
C.A constant HIGH signal for at least 1 second.
D.A 50% duty cycle PWM signal.
Correct Answer: A HIGH pulse for at least 10 microseconds.
Explanation:
The datasheet for the HC-SR04 specifies that to start a measurement, the Trig pin must be pulled HIGH for a minimum of 10 microseconds. This pulse signals the module to send out its 8-cycle burst of ultrasound.
Incorrect! Try again.
35On an Arduino Uno, pins A0 through A5 can be used as analog inputs. What other primary function can they serve?
Arduino board (pin configuration and description)
Medium
A.External interrupts
B.Digital inputs/outputs
C.Serial communication (TX/RX)
D.PWM outputs
Correct Answer: Digital inputs/outputs
Explanation:
The analog input pins on the Arduino Uno (A0-A5) are multiplexed. In addition to their analog reading function, they can be configured and used exactly like digital pins, referred to by numbers 14 through 19 (A0 is 14, A1 is 15, etc.) for functions like digitalRead(), digitalWrite(), and pinMode().
Incorrect! Try again.
36An analog IR sensor is used to measure the distance to a non-reflective object. How does the sensor's output voltage typically change as the object moves closer to the sensor?
IR sensor
Medium
A.The voltage increases linearly with distance.
B.The voltage remains constant.
C.The voltage decreases non-linearly.
D.The voltage increases non-linearly.
Correct Answer: The voltage increases non-linearly.
Explanation:
Analog IR distance sensors work by measuring the intensity of the reflected IR light. As an object gets closer, more light is reflected back to the detector, causing the output voltage to increase. This relationship is not linear; the voltage changes significantly for small changes in distance up close, and less significantly for changes in distance farther away.
Incorrect! Try again.
37A project requires measuring a temperature range from -40°C to +125°C with a digital output. Which of the following sensors is most suitable for this task?
Temperature sensor
Medium
A.A standard NTC thermistor
B.DS18B20
C.LM35
D.An IR photodiode
Correct Answer: DS18B20
Explanation:
The DS18B20 is a digital temperature sensor with a specified range of -55°C to +125°C. The LM35 has a more limited range (typically -55°C to +150°C, but the common variant is 2°C to 150°C and requires a negative voltage supply for sub-zero readings). A thermistor requires complex calculations (Steinhart-Hart equation) and calibration. An IR photodiode is not a contact temperature sensor.
Incorrect! Try again.
38If an ultrasonic sensor returns its maximum possible pulse duration, what does this most likely signify?
basic principle of ultrasonic sensor
Medium
A.No echo was detected within the timeout period.
B.The sensor is faulty.
C.The object is too close to the sensor (in the blind spot).
D.The object is at the sensor's maximum detectable range.
Correct Answer: No echo was detected within the timeout period.
Explanation:
Ultrasonic sensors have an internal timer. If an echo is not received within a certain amount of time (corresponding to its maximum range), the sensor will 'time out' and the ECHO pin will go LOW. This results in the maximum possible pulse duration, indicating that no object was detected within range.
Incorrect! Try again.
39Why are IR transmitter-receiver pairs often modulated at a specific frequency (e.g., 38 kHz)?
IR sensor
Medium
A.To increase the transmission range.
B.To allow the signal to be seen by the human eye.
C.To distinguish the signal from ambient IR noise from sources like the sun or light bulbs.
D.To reduce the power consumption of the IR LED.
Correct Answer: To distinguish the signal from ambient IR noise from sources like the sun or light bulbs.
Explanation:
Ambient sources produce a constant or slowly changing level of IR radiation. By pulsing the IR LED at a specific frequency (e.g., 38 kHz) and using a receiver tuned to only that frequency, the system can effectively filter out the 'DC' noise from ambient sources. This greatly improves the reliability and noise immunity of the sensor.
Incorrect! Try again.
40What is the main advantage of using a sensor like the DHT11, which provides a digital signal, over an analog sensor like the LM35?
Temperature sensor
Medium
A.Digital sensors consume significantly less power.
B.Digital sensors are always more accurate than analog sensors.
C.Digital sensors can measure a wider range of temperatures.
D.Digital sensors are less susceptible to electrical noise during transmission to the microcontroller.
Correct Answer: Digital sensors are less susceptible to electrical noise during transmission to the microcontroller.
Explanation:
Analog signals are represented by a continuously varying voltage, which can be easily corrupted by electrical noise from nearby wires or components. Digital signals use discrete high and low levels (1s and 0s), which are much more robust and less likely to be misinterpreted due to noise, resulting in a more reliable data transmission from the sensor to the Arduino.
Incorrect! Try again.
41On an Arduino Uno (ATmega328P), PWM pins 5 and 6 are controlled by Timer/Counter0. If you change the Timer0 prescaler from 64 to 256 to slow down the millis() function, what is the direct impact on the PWM signal on pins 5 and 6?
Arduino board (pin configuration and description)
Hard
A.The PWM frequency increases by a factor of 4.
B.The PWM frequency decreases by a factor of 4, and the resolution remains 8-bit.
C.There is no impact on PWM, as millis() and PWM are controlled by independent hardware.
D.The PWM duty cycle range is reduced by a factor of 4.
Correct Answer: The PWM frequency decreases by a factor of 4, and the resolution remains 8-bit.
Explanation:
Timer0 on the ATmega328P controls both the timing functions (millis(), delay()) and the PWM outputs on pins 5 and 6. The PWM frequency is directly proportional to the system clock divided by the prescaler and the timer's resolution (256 for 8-bit Fast PWM). Changing the prescaler from 64 to 256 divides the timer's clock source by an additional factor of 4, thus reducing the PWM frequency by the same factor. The resolution (8-bit) is determined by the timer mode, not the prescaler.
Incorrect! Try again.
42An HC-SR04 ultrasonic sensor is used in an environment where the ambient temperature is 40°C. The Arduino code calculates distance using the standard formula: distance = duration * 0.0343 / 2. If an object is exactly 100 cm away, what will the approximate measured distance be? (Speed of sound in air is m/s, where T is in Celsius).
basic principle of ultrasonic sensor
Hard
A.Approximately 103.5 cm
B.Approximately 106.9 cm
C.Exactly 100 cm
D.Approximately 96.6 cm
Correct Answer: Approximately 96.6 cm
Explanation:
The standard formula assumes a speed of sound of 343 m/s (or 0.0343 cm/µs), which is typical for ~20°C. At 40°C, the actual speed of sound is m/s. The actual time of flight for 100 cm (200 cm round trip) would be µs. The code, however, will calculate distance as 5626 * 0.0343 / 2 ≈ 96.5 cm. The sensor reports a shorter distance because the sound traveled faster than the formula assumes.
Incorrect! Try again.
43An NTC thermistor with and a -coefficient of 3950K is used in a voltage divider with a 10k fixed resistor connected to a 5V supply. The Arduino's 10-bit ADC, with a 5V reference, reads a value of 682 from the divider's midpoint. What is the approximate temperature measured by the thermistor?
Temperature
Hard
A.~45.1 °C
B.~31.8 °C
C.~12.4 °C
D.~25.0 °C
Correct Answer: ~12.4 °C
Explanation:
The correct option follows directly from the given concept and definitions.
Incorrect! Try again.
44A project uses a TSOP38238 IR receiver module to detect signals from a remote. The project fails in bright sunlight. What is the most likely technical reason for this failure, and what is the most effective countermeasure?
IR sensor
Hard
A.Sunlight heats the sensor, changing its spectral response, and the solution is to add a heatsink.
B.Sunlight's DC infrared component saturates the receiver's AGC (Automatic Gain Control), and the solution is to place the sensor in a shaded tube or behind an IR-pass/visible-light-block filter.
C.Sunlight contains a 38kHz component that mimics the signal, and the solution is to add a darker physical filter.
D.Sunlight's IR component saturates the photodiode, and the solution is to use a PWM-based decoding library.
Correct Answer: Sunlight's DC infrared component saturates the receiver's AGC (Automatic Gain Control), and the solution is to place the sensor in a shaded tube or behind an IR-pass/visible-light-block filter.
Explanation:
TSOP receivers are designed to filter out constant (DC) IR light and amplify only signals modulated at a specific frequency (38kHz for the TSOP38238). However, extremely strong DC IR from sunlight can saturate the internal photodiode and the initial amplifier stages before the band-pass filter. This saturation of the Automatic Gain Control (AGC) circuit renders it unable to detect the much weaker modulated signal from the remote. The most effective solution is to physically block the ambient visible and excessive IR light using a filter or enclosure, allowing only the intended signal to reach the sensor.
Incorrect! Try again.
45You are using an Arduino Uno's 10-bit ADC to measure a sensor with an output range of 0V to 1.5V. To maximize measurement resolution, you connect a precise 1.5V source to the AREF pin and call analogReference(EXTERNAL). However, your readings are noisy and unstable. What is the most likely cause of this issue based on Arduino hardware recommendations?
Arduino board (pin configuration and description)
Hard
A.The internal 1.1V reference should have been used instead for voltages below 5V.
B.The analogReference(EXTERNAL) function is incorrect; it should be analogReference(AREF).
C.A 0.1µF capacitor was not connected between the AREF pin and GND.
D.The external reference voltage is too low; it must be above 2.5V.
Correct Answer: A 0.1µF capacitor was not connected between the AREF pin and GND.
Explanation:
When using an external voltage reference on the AREF pin, the ATmega328P datasheet strongly recommends placing a 0.1µF (100nF) capacitor between the AREF pin and ground. This capacitor helps to stabilize the reference voltage by filtering out noise, which is crucial for achieving accurate and stable ADC readings. Without it, the reference voltage can fluctuate due to noise from the power supply or other parts of the circuit, leading to unstable measurements.
Incorrect! Try again.
46An ultrasonic sensor is used to measure the distance to a flat, hard surface. The sensor is rated for a 2cm to 400cm range. When the surface is moved to 1.5cm from the sensor, the distance reading jumps to a large, unstable value instead of reading 1.5cm or 2cm. Why does this occur?
basic principle of ultrasonic sensor
Hard
A.The intensity of the returned echo at very close range is high enough to permanently damage the receiver circuit.
B.The sound is reflecting too quickly for the microcontroller to switch the trigger pin from output to input mode.
C.This is the sensor's 'dead zone', where the transducer is still 'ringing' from the transmitted pulse when the echo arrives, making the receiver unable to distinguish the echo.
D.The speed of sound changes significantly at distances less than 2cm due to air compression effects.
Correct Answer: This is the sensor's 'dead zone', where the transducer is still 'ringing' from the transmitted pulse when the echo arrives, making the receiver unable to distinguish the echo.
Explanation:
Ultrasonic transducers are piezoelectric devices that physically vibrate. After transmitting the high-energy 'ping', the transducer continues to vibrate or 'ring' for a short period. If the echo returns during this ringing phase (which happens for very close objects), it is masked by the residual transmission vibrations. The receiver cannot distinguish the faint echo from the powerful ringing of its own transmitter. This minimum distance is known as the sensor's 'dead zone'.
Incorrect! Try again.
47You need to trigger an interrupt on an Arduino Uno precisely when a digital signal goes from high to low. You configure the interrupt using attachInterrupt(digitalPinToInterrupt(2), myISR, FALLING);. The signal source is known to have significant contact bounce. What will be the most likely behavior of the microcontroller?
Arduino board (pin configuration and description)
Hard
A.The Interrupt Service Routine (ISR) myISR will be executed multiple times in rapid succession for a single intended event.
B.The interrupt will trigger only once on the first high-to-low transition.
C.The FALLING mode has built-in hardware debouncing, so it will work correctly.
D.The interrupt will not trigger at all because contact bounce violates the required signal slew rate.
Correct Answer: The Interrupt Service Routine (ISR) myISR will be executed multiple times in rapid succession for a single intended event.
Explanation:
The ATmega328P's external interrupt pins have no built-in hardware debouncing. Contact bounce from a mechanical switch or noisy signal creates a series of very rapid high-to-low transitions. Since the interrupt is configured for FALLING edge detection, the microcontroller will treat each of these bounces as a separate valid event, triggering the ISR multiple times for what is perceived as a single button press. This necessitates a software or hardware debouncing solution.
Incorrect! Try again.
48You are measuring temperature with a TMP36 sensor (10mV/°C with a 500mV offset at 0°C) connected to an Arduino's 10-bit ADC with the default 5V reference. The code reads the ADC value, converts it to millivolts, and then applies the formula (mV - 500) / 10. What is the approximate temperature resolution of this system?
Temperature
Hard
A.0.215 °C / step
B.0.1 °C / step
C.1.0 °C / step
D.0.488 °C / step
Correct Answer: 0.488 °C / step
Explanation:
The resolution of the system is limited by the ADC's resolution. With a 10-bit ADC (1024 steps) and a 5V reference, the voltage resolution per ADC step is . Since the TMP36 sensor has a sensitivity of 10mV/°C, the temperature resolution is the voltage resolution divided by the sensor's sensitivity: . This means a change of 1 in the ADC reading corresponds to a temperature change of approximately half a degree Celsius.
Incorrect! Try again.
49An IR proximity sensor consists of an IR LED and a phototransistor. The sensor is designed to detect a white object at 5cm. If the white object is replaced with a matte black object at the same distance, what will happen to the phototransistor's state and why?
IR sensor
Hard
A.The phototransistor will enter a saturated state due to thermal emission from the black surface.
B.The phototransistor's state will not change, as distance is the only factor affecting reflection.
C.The phototransistor will conduct less current (or turn off) because the matte black surface absorbs most of the IR light, reflecting very little back to the sensor.
D.The phototransistor will conduct more current because black surfaces absorb all wavelengths, including those that cause interference.
Correct Answer: The phototransistor will conduct less current (or turn off) because the matte black surface absorbs most of the IR light, reflecting very little back to the sensor.
Explanation:
Reflective IR sensors work by detecting the infrared light from an emitter (LED) that is reflected off an object. A phototransistor conducts current in proportion to the intensity of light it receives. White surfaces are highly reflective to IR light, so a large amount of IR is reflected back, causing the phototransistor to conduct strongly. A matte black surface is designed to be a poor reflector and a strong absorber of light, including in the infrared spectrum. Therefore, it reflects very little IR light back to the sensor, causing the phototransistor to conduct very little or no current, similar to when no object is present.
Incorrect! Try again.
50You are using an ultrasonic sensor in a narrow corridor. When measuring the distance to the end wall (5 meters away), the sensor intermittently reports a much shorter distance of around 1.5 meters. What is the most plausible explanation for this erroneous reading?
basic principle of ultrasonic sensor
Hard
A.The microcontroller's internal clock is unstable, causing errors in the pulseIn() time measurement.
B.The sound pulse is experiencing a Doppler shift from air currents in the corridor.
C.The sensor is receiving a 'ghost' echo caused by the sound pulse bouncing off a side wall first, then the end wall, and then back.
D.The sensor is receiving a direct, shorter-path reflection from one of the side walls (a specular reflection) instead of the intended target.
Correct Answer: The sensor is receiving a direct, shorter-path reflection from one of the side walls (a specular reflection) instead of the intended target.
Explanation:
Ultrasonic sensors emit a cone-shaped sound pulse, not a perfect laser-like beam. In a narrow space, if the sensor is not aimed perfectly straight, this cone of sound can hit a side wall before it hits the end wall. If the side wall is smooth, it can cause a strong specular reflection (like a mirror) that returns to the sensor. The sensor will report the distance to this reflection point on the side wall, as it is the first and strongest echo it receives, resulting in a false, shorter distance reading.
Incorrect! Try again.
51On an Arduino Uno, if you set pin 13 (which has an onboard LED and resistor) to INPUT_PULLUP, and then physically connect this pin to GND, what is the approximate current that will flow from the VCC pin through the internal pull-up resistor?
Arduino board (pin configuration and description)
Hard
A.Essentially zero, as INPUT_PULLUP disables current flow.
B.Approximately 1 mA, limited by the LED's series resistor.
C.Approximately 40 mA, the absolute maximum pin current.
D.Between 150 µA and 250 µA, determined by the ATmega328P's internal pull-up resistor value.
Correct Answer: Between 150 µA and 250 µA, determined by the ATmega328P's internal pull-up resistor value.
Explanation:
When a pin is set to INPUT_PULLUP, the microcontroller connects an internal resistor between the pin and VCC (5V). The ATmega328P datasheet specifies this resistor's value is between 20kΩ and 50kΩ. When the pin is externally grounded, a current flows from VCC, through this internal resistor, to GND. Using Ohm's Law: . For the lower resistance bound: . For the upper bound: . The actual current will be within this range, typically around 150-250µA. The external LED and resistor on pin 13 are irrelevant because the pin is configured as an input.
Incorrect! Try again.
52A photodiode is used in a photoconductive (reverse-biased) circuit to detect IR pulses. What is the primary trade-off of increasing the reverse-bias voltage applied to the photodiode?
IR sensor
Hard
A.Decreased sensitivity in exchange for lower power consumption.
B.Increased dark current (noise) in exchange for a wider detection angle.
C.Decreased response speed in exchange for higher sensitivity to lower light levels.
D.Increased response speed and linearity, but at the cost of higher dark current (noise).
Correct Answer: Increased response speed and linearity, but at the cost of higher dark current (noise).
Explanation:
Applying a larger reverse-bias voltage to a photodiode widens its depletion region. This has two main effects: 1) It reduces the junction capacitance, allowing the photodiode to respond more quickly to changes in light intensity. 2) The stronger electric field more effectively sweeps charge carriers out of the junction, improving the linearity of the response. The major downside is that this increased voltage also amplifies the leakage current that flows even in the absence of light, known as 'dark current'. This increased dark current raises the noise floor of the sensor, making it harder to detect very weak signals.
Incorrect! Try again.
53When using a DS18B20 digital temperature sensor, a parasitic power mode is available. What is a key limitation of operating the sensor in this mode, especially in a network with many sensors on the same bus?
Temperature
Hard
A.Parasitic power mode limits the bus to a maximum of two DS18B20 sensors.
B.The sensor can only be powered if the data line is held HIGH by a 1kΩ pull-up resistor.
C.The temperature reading accuracy is reduced to ±2.0°C.
D.During temperature conversions, the data line cannot be used for communication, and a strong pull-up (e.g., via a MOSFET) is needed to supply sufficient current.
Correct Answer: During temperature conversions, the data line cannot be used for communication, and a strong pull-up (e.g., via a MOSFET) is needed to supply sufficient current.
Explanation:
In parasitic power mode, the DS18B20 harvests power from the data (DQ) line when it is idle (HIGH). The temperature conversion process requires a significant current spike, which the standard 4.7kΩ pull-up resistor cannot supply. To provide this current, the bus master (Arduino) must enable a 'strong pull-up'—often implemented with a MOSFET that connects the data line directly to VCC—for the duration of the conversion. A critical consequence is that while the conversion is happening and the strong pull-up is active, the data line is held high and cannot be used for communication with any other sensor on the 1-Wire bus.
Incorrect! Try again.
54The pulseIn() function on a standard Arduino is used to measure the echo duration from an ultrasonic sensor. If the microcontroller is simultaneously handling a high-priority, time-consuming interrupt (e.g., for serial communication), how might this affect the distance measurement?
basic principle of ultrasonic sensor
Hard
A.There will be no effect, as pulseIn() and interrupts use different hardware timers.
B.The measurement will be more accurate as interrupts provide more precise timing.
C.The pulseIn() function may be delayed, causing it to report a longer duration and thus a larger distance than the actual value.
D.The pulseIn() function might miss the start or end of the echo pulse, resulting in a timeout or a randomly incorrect (often shorter) duration.
Correct Answer: The pulseIn() function might miss the start or end of the echo pulse, resulting in a timeout or a randomly incorrect (often shorter) duration.
Explanation:
The Arduino pulseIn() function is a blocking function that uses a software loop to poll the state of a pin. It is not interrupt-driven. If a hardware interrupt occurs while pulseIn() is waiting for the echo pulse to start or end, the processor will pause the pulseIn() loop to execute the Interrupt Service Routine (ISR). If the ISR takes too long, pulseIn() might completely miss the rising or falling edge of the echo pulse, leading to a timeout (returning 0) or a grossly inaccurate reading. It essentially creates a blind spot in the measurement.
Incorrect! Try again.
55The I2C bus on an Arduino Uno (pins A4/SDA and A5/SCL) requires pull-up resistors. If these resistors are omitted, but the master and a single slave device are connected, what is the most likely outcome?
Arduino board (pin configuration and description)
Hard
A.The SDA and SCL lines will be stuck in a LOW state, and communication will fail completely.
B.The Arduino and the slave device may be damaged due to high current.
C.Communication will work, but at a much slower speed.
D.Communication will work intermittently, with frequent data corruption.
Correct Answer: The SDA and SCL lines will be stuck in a LOW state, and communication will fail completely.
Explanation:
The I2C protocol uses an open-drain (or open-collector) output configuration. This means devices on the bus can only pull the lines LOW to ground. They cannot actively drive them HIGH. The pull-up resistors are responsible for pulling the lines back to a HIGH state when no device is pulling them low. Without these resistors, once a device pulls a line low to start communication (e.g., the START condition), there is no mechanism to return the line to the HIGH (idle) state. Both lines will remain stuck at or near 0V, and no communication can occur.
Incorrect! Try again.
56A system uses a K-type thermocouple connected to an AD8495 precision amplifier, which outputs a voltage of 5mV/°C. This output is fed into an Arduino's 10-bit ADC using the internal 1.1V reference. What is the effective measurement range of this setup before the ADC saturates?
Temperature
Hard
A.0°C to 1023°C
B.0°C to 1100°C
C.-50°C to 170°C
D.0°C to 220°C
Correct Answer: 0°C to 220°C
Explanation:
The system's measurement range is limited by the point at which the amplifier's output voltage exceeds the ADC's reference voltage. The ADC reference is set to the internal 1.1V (1100mV). The amplifier's output is 5mV per degree Celsius. To find the maximum temperature, we divide the maximum ADC input voltage by the amplifier's sensitivity: Max Temperature = . Any temperature above 220°C will produce a voltage greater than 1.1V, which will saturate the ADC, causing it to consistently read its maximum value of 1023.
Incorrect! Try again.
57When measuring the distance to a soft, sound-absorbing surface like heavy foam or fabric with an HC-SR04, what is the most likely failure mode?
basic principle of ultrasonic sensor
Hard
A.The reflected echo will be too weak for the receiver to detect above its noise threshold, likely resulting in a timeout (0 distance).
B.The sensor will report a much longer distance because the sound penetrates the material before reflecting.
C.The material will absorb the sound and re-radiate it at a different frequency, confusing the receiver.
D.The sensor will report a negative distance value due to phase inversion of the reflected wave.
Correct Answer: The reflected echo will be too weak for the receiver to detect above its noise threshold, likely resulting in a timeout (0 distance).
Explanation:
Ultrasonic sensors rely on detecting a clear echo reflected from a target. Hard, flat surfaces produce strong, coherent echoes. Soft, porous materials like foam and heavy fabric are excellent acoustic absorbers; they are designed to trap sound waves and dissipate their energy as heat. As a result, very little sound energy is reflected back towards the sensor. The faint echo that does return is often too weak to be distinguished from background noise by the receiver's amplifier and comparator circuit, causing the pulseIn() function to timeout and report a failed reading (typically a value of 0).
Incorrect! Try again.
58You are building a system with two independent IR remote-controlled devices in the same room. Device A uses a 38kHz modulated signal, and Device B uses a 56kHz modulated signal. Why can these two devices operate simultaneously without interfering with each other?
IR sensor
Hard
A.The different modulation frequencies are like different 'colors' of IR light that the receivers can distinguish.
B.The digital codes (like NEC or RC-5) are different, so the receivers ignore signals with the wrong code.
C.The IR LEDs for 38kHz and 56kHz emit at fundamentally different wavelengths of light.
D.The TSOP receivers contain a narrow band-pass filter centered on their specified frequency, which strongly attenuates signals at other frequencies.
Correct Answer: The TSOP receivers contain a narrow band-pass filter centered on their specified frequency, which strongly attenuates signals at other frequencies.
Explanation:
The key to interference rejection in this scenario is the receiver hardware. A TSOP receiver (e.g., TSOP38238 for 38kHz, TSOP38256 for 56kHz) has an integrated electronic circuit that includes a band-pass filter. This filter is tuned to a specific center frequency. It allows signals modulated at or very near this frequency to pass through to the demodulator, while significantly weakening or blocking signals at other frequencies. Therefore, the 38kHz receiver will largely ignore the 56kHz signal, and vice versa, allowing for reliable parallel operation. While digital codes also prevent devices from responding to the wrong command, the frequency filtering is what prevents the initial signal interference.
Incorrect! Try again.
59A platinum resistance thermometer (PT100) is known for its high accuracy and linearity. Why is it not typically connected directly to an Arduino's ADC pin in a simple voltage divider like a thermistor?
Temperature
Hard
A.The change in resistance of a PT100 per degree Celsius is extremely small, requiring a precision amplifier circuit (like a Wheatstone bridge and instrumentation amplifier) to produce a measurable voltage change.
B.The PT100 requires an AC voltage source for operation, which the Arduino cannot provide.
C.The PT100's resistance is too high, exceeding the input impedance of the Arduino's ADC.
D.The PT100 has a negative temperature coefficient, which is incompatible with the ADC.
Correct Answer: The change in resistance of a PT100 per degree Celsius is extremely small, requiring a precision amplifier circuit (like a Wheatstone bridge and instrumentation amplifier) to produce a measurable voltage change.
Explanation:
A PT100 has a resistance of 100Ω at 0°C. Its temperature coefficient of resistance (TCR) is only about +0.385Ω/°C. This means for a 1°C change, its resistance changes by less than half an ohm. In a simple voltage divider connected to a 10-bit ADC, this tiny resistance change would produce a voltage change in the microvolt range, far too small to be resolved by the ADC. To accurately measure this, the PT100 is almost always used with a Wheatstone bridge to nullify the large base resistance and an instrumentation amplifier to amplify the tiny differential voltage that corresponds to the temperature change.
Incorrect! Try again.
60An Arduino Uno is programmed to enter SLEEP_MODE_PWR_DOWN. All peripherals are disabled, except for an external interrupt on pin 2 configured to wake the device. What is the primary source of power consumption for the ATmega328P microcontroller in this state?
Arduino board (pin configuration and description)
Hard
A.Leakage currents within the CMOS transistors of the microcontroller.
B.The internal watchdog timer.
C.The 16 MHz crystal oscillator.
D.The Analog-to-Digital Converter (ADC).
Correct Answer: Leakage currents within the CMOS transistors of the microcontroller.
Explanation:
In SLEEP_MODE_PWR_DOWN, the ATmega328P's main system clock, all I/O clocks, and most internal peripherals (including the ADC and timers) are halted to minimize power consumption. The 16 MHz external oscillator is stopped. The only functions that can remain active are the external interrupt logic and the watchdog timer (if enabled). With the watchdog also disabled, the dominant source of power draw is the static leakage current that flows through the millions of transistors on the chip even when they are in an 'off' state. This leakage is typically very low, in the order of microamps or even nanoamps.