Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which of the following statements best describes an Analog Signal?
Not quite. Try another option.
Answer: A continuous signal that represents physical measurements
An analog signal is continuous in both time and amplitude, usually representing physical quantities like temperature, sound, or light intensity.
Question 2 of 50
What is the primary characteristic of a Digital Signal?
Not quite. Try another option.
Answer: It represents data as a sequence of discrete values (0s and 1s)
Digital signals are discrete and typically represent data in binary form (logic 0 and logic 1).
Question 3 of 50
Which microcontroller is used on the standard Arduino Uno R3 board?
Not quite. Try another option.
Answer: ATmega328P
The Arduino Uno R3 is based on the ATmega328P microcontroller.
Question 4 of 50
How many digital I/O pins are available on the Arduino Uno board?
Not quite. Try another option.
Answer: 14
The Arduino Uno has 14 digital input/output pins (numbered 0 to 13).
Question 5 of 50
How many of the digital pins on the Arduino Uno provide PWM (Pulse Width Modulation) output?
Not quite. Try another option.
Answer: 6
6 of the 14 digital pins provide PWM output. They are usually marked with a tilde symbol (~): pins 3, 5, 6, 9, 10, and 11.
Question 6 of 50
Which pins on the Arduino Uno are used for UART serial communication?
Not quite. Try another option.
Answer: Pins 0 (RX) and 1 (TX)
Digital pins 0 (RX - Receive) and 1 (TX - Transmit) are used for serial communication.
Question 7 of 50
What is the operating voltage of the ATmega328P on a standard Arduino Uno?
Not quite. Try another option.
Answer: 5V
The operating voltage of the ATmega328P on the Uno is 5V.
Question 8 of 50
Which pin allows you to supply an external voltage to the Arduino board (typically 7-12V)?
Not quite. Try another option.
Answer: Vin
The 'Vin' pin allows you to power the Arduino using an external power source (like a battery or adapter) typically between 7V and 12V.
Question 9 of 50
What is the function of the ADC (Analog-to-Digital Converter) in the Arduino?
Not quite. Try another option.
Answer: To convert continuous analog voltage into a digital number
The ADC converts analog input voltage (0-5V) into a digital value (0-1023).
Question 10 of 50
The Arduino Uno has a 10-bit ADC. What is the range of digital values it can produce?
Not quite. Try another option.
Answer: 0 to 1023
A 10-bit ADC produces values, which is 1024 distinct values ranging from 0 to 1023.
Question 11 of 50
Which built-in LED is connected to digital pin 13 on the Arduino Uno?
Not quite. Try another option.
Answer: L (User LED)
The built-in LED labeled 'L' is internally connected to digital pin 13.
Question 12 of 50
What does PWM stand for in the context of Arduino pins?
Not quite. Try another option.
Answer: Pulse Width Modulation
PWM stands for Pulse Width Modulation, a technique used to simulate analog output using digital signals.
Question 13 of 50
Which Arduino pin is used to set the reference voltage for analog inputs?
Not quite. Try another option.
Answer: AREF
AREF stands for Analog Reference. It is used to configure the reference voltage used for analog input (i.e., the value used as the top of the input range).
Question 14 of 50
What is the recommended maximum DC current per I/O pin on the Arduino Uno?
Not quite. Try another option.
Answer: 20 mA
The recommended continuous current is 20mA, with an absolute maximum of 40mA, to prevent damaging the microcontroller.
Question 15 of 50
Which component on the Arduino board ensures the voltage does not exceed 5V when powered via the DC jack?
Not quite. Try another option.
Answer: Voltage Regulator
The on-board voltage regulator steps down the external input voltage (7-12V) to a stable 5V.
Question 16 of 50
What is the frequency of the crystal oscillator on the Arduino Uno?
Not quite. Try another option.
Answer: 16 MHz
The clock speed of the Arduino Uno is determined by its 16 MHz quartz crystal oscillator.
Question 17 of 50
What is an IR Sensor primarily used to detect?
Not quite. Try another option.
Answer: Obstacles or motion via infrared light
IR sensors use infrared light to detect obstacles, proximity, or line tracking by measuring reflection or interruption.
Question 18 of 50
Which component acts as the transmitter in an IR sensor module?
Not quite. Try another option.
Answer: IR LED
The IR LED (Infrared Light Emitting Diode) emits infrared radiation, acting as the transmitter.
Question 19 of 50
Which component acts as the receiver in an active IR sensor module?
Not quite. Try another option.
Answer: Photodiode
A photodiode (or phototransistor) is used to detect the reflected infrared light.
Question 20 of 50
What is the function of the potentiometer on a digital IR obstacle avoidance sensor module?
Not quite. Try another option.
Answer: To adjust the detection distance/sensitivity
The onboard potentiometer adjusts the reference voltage of the comparator, thereby changing the sensitivity and detection range.
Question 21 of 50
Why can humans generally not see the light emitted by an IR sensor?
Not quite. Try another option.
Answer: Its wavelength is outside the visible spectrum
Infrared light has a longer wavelength than visible red light (typically >700nm), making it invisible to the human eye.
Question 22 of 50
Which component is often used as a comparator in IR sensor modules to provide a digital output?
Not quite. Try another option.
Answer: LM358 or LM393
Op-amps like LM358 or comparators like LM393 are commonly used to compare the photodiode voltage against a threshold to output a digital HIGH/LOW.
Question 23 of 50
What does LDR stand for?
Not quite. Try another option.
Answer: Light Dependent Resistor
LDR stands for Light Dependent Resistor.
Question 24 of 50
What is the working principle of an LDR?
Not quite. Try another option.
Answer: Photoconductivity
LDRs work on the principle of photoconductivity, where conductivity increases when light falls on the material.
Question 25 of 50
How does the resistance of an LDR change with light intensity?
Not quite. Try another option.
Answer: Resistance decreases as light intensity increases
An LDR has an inverse relationship between light and resistance. Bright light = Low resistance; Darkness = High resistance.
Question 26 of 50
Which material is commonly used to manufacture LDRs?
Not quite. Try another option.
Answer: Cadmium Sulfide (CdS)
Cadmium Sulfide (CdS) is the most common photoconductive material used in LDRs.
Question 27 of 50
In a voltage divider circuit with a fixed resistor and an LDR, if the LDR is connected to ground, what happens to the output voltage when light intensity increases?
Not quite. Try another option.
Answer: The voltage decreases
As light increases, LDR resistance decreases. In a divider where LDR is the bottom resistor (), . As drops, drops.
Question 28 of 50
What is the typical resistance of an LDR in total darkness?
Not quite. Try another option.
Answer: Several Mega-ohms
In total darkness, the LDR exhibits very high resistance, often in the range of Mega-ohms ().
Question 29 of 50
Which sensor is commonly used to measure distance using sound waves?
Not quite. Try another option.
Answer: Ultrasonic Sensor (HC-SR04)
The Ultrasonic Sensor (specifically the HC-SR04) measures distance by emitting ultrasonic sound waves and timing their return.
Question 30 of 50
What is the typical frequency of the sound waves emitted by the HC-SR04 ultrasonic sensor?
Not quite. Try another option.
Answer: 40 kHz
The HC-SR04 emits ultrasound at 40 kHz, which is above the range of human hearing.
Question 31 of 50
What is the function of the Trig (Trigger) pin on the HC-SR04 sensor?
Not quite. Try another option.
Answer: It initiates the measurement by sending a pulse
Sending a high pulse (usually 10 microseconds) to the Trig pin causes the sensor to emit the ultrasonic burst.
Question 32 of 50
What is the function of the Echo pin on the HC-SR04 sensor?
Not quite. Try another option.
Answer: It outputs a high pulse with duration proportional to the distance
The Echo pin goes HIGH for the duration of time it takes for the sound to travel to the object and return.
Question 33 of 50
The formula to calculate distance () using an ultrasonic sensor, where is the echo time and is the speed of sound, is:
Not quite. Try another option.
Answer:
The distance is time multiplied by speed, divided by 2 because the sound travels to the object and back (double distance).
Question 34 of 50
If the speed of sound is approximately 340 m/s, how many microseconds does it take to travel 1 cm (there and back)?
Not quite. Try another option.
Answer: ~58 microseconds
Speed = 34000 cm/s. Time to travel 1cm = . Since it must go there and back, it is .
Question 35 of 50
What is a limitation of the ultrasonic sensor?
Not quite. Try another option.
Answer: It has a 'blind zone' very close to the sensor (e.g., < 2cm)
Ultrasonic sensors cannot detect objects accurately that are extremely close (usually less than 2cm) because the echo returns before the transmission pulse is finished.
Question 36 of 50
Can an ultrasonic sensor work in a vacuum?
Not quite. Try another option.
Answer: No, sound waves require a medium to travel
Sound is a mechanical wave that requires a medium (like air) to propagate. It cannot work in a vacuum.
Question 37 of 50
What do the DHT11 and DHT22 sensors measure?
Not quite. Try another option.
Answer: Temperature and Humidity
DHT sensors are digital temperature and humidity sensors.
Question 38 of 50
Between DHT11 and DHT22, which one generally provides higher accuracy and a wider range?
Not quite. Try another option.
Answer: DHT22
The DHT22 (also known as AM2302) is more accurate and has a wider measuring range than the DHT11, though it is slightly more expensive.
Question 39 of 50
What type of data signal does the DHT11 sensor output?
Not quite. Try another option.
Answer: Single-wire Digital Signal
DHT sensors use a proprietary single-wire serial communication protocol to send digital data.
Question 40 of 50
What is the typical sampling interval (minimum time between readings) for a DHT11 sensor?
Not quite. Try another option.
Answer: 1 second
The DHT11 usually requires at least 1 second (typically 2 seconds recommended in code) between readings to stabilize.
Question 41 of 50
Which sensing element is used inside a DHT sensor to measure moisture?
Not quite. Try another option.
Answer: Capacitive humidity sensor
DHT sensors typically use a capacitive humidity sensing element and a thermistor for temperature.
Question 42 of 50
When wiring a DHT sensor, a resistor is often placed between VCC and the Data pin. What is this resistor called?
Not quite. Try another option.
Answer: Pull-up resistor
A pull-up resistor (typically to ) is required to keep the data line HIGH when it is idle.
Question 43 of 50
The temperature range of the DHT11 is approximately:
Not quite. Try another option.
Answer: 0°C to 50°C
The DHT11 typically measures temperature from 0°C to 50°C with accuracy.
Question 44 of 50
To read data from a DHT11 using Arduino, which library is commonly used?
Not quite. Try another option.
Answer: DHT.h
The 'DHT sensor library' (header usually DHT.h) is the standard library used to decode the protocol.
Question 45 of 50
If an analog sensor is connected to pin A0, which Arduino function is used to read the value?
Not quite. Try another option.
Answer: analogRead(A0)
analogRead(pin) is the function used to read values from analog input pins.
Question 46 of 50
What is the return type and range of the digitalRead() function?
Not quite. Try another option.
Answer: Integer (HIGH or LOW)
digitalRead() returns a digital state, which is either HIGH (1) or LOW (0).
Question 47 of 50
Which Arduino function is used to configure a pin as an Input or Output?
Not quite. Try another option.
Answer: pinMode()
pinMode(pin, mode) is used in the setup to define if a pin acts as INPUT or OUTPUT.
Question 48 of 50
What happens if you supply 5V to an Analog Input pin on Arduino?
Not quite. Try another option.
Answer: analogRead() returns 1023
Since 5V is the reference maximum (default), the ADC will return the maximum 10-bit value, which is 1023.
Question 49 of 50
The command analogWrite() is used for which specific functionality?
Not quite. Try another option.
Answer: Generating PWM signals
Despite the name, analogWrite() is used to write a PWM (Pulse Width Modulation) value to a PWM-enabled digital pin.
Question 50 of 50
What is the resolution of the analogWrite() function (PWM resolution) on an Arduino Uno?
Not quite. Try another option.
Answer: 8-bit (0-255)
The standard PWM resolution on the Uno via analogWrite is 8-bit, accepting values from 0 to 255.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of ECE249 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of ECE249 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.