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.
Question 1 of 60 · data transfer through Bluetooth interface · Easy
What type of wireless communication is used by Bluetooth?
Not quite. Try another option.
Answer: Radio communication
Bluetooth transfers data wirelessly using short-range radio signals.
Question 2 of 60 · data transfer through Bluetooth interface · Easy
Which Bluetooth device usually sends data to a NodeMCU project?
Not quite. Try another option.
Answer: Bluetooth smartphone
A smartphone can send commands or other data to the NodeMCU through Bluetooth.
Question 3 of 60 · data transfer through Bluetooth interface · Easy
What must two Bluetooth devices do before exchanging data?
Not quite. Try another option.
Answer: Pair with each other
Bluetooth devices generally need to pair before they can communicate securely.
Question 4 of 60 · data transfer through Bluetooth interface · Easy
What is the main purpose of a Bluetooth interface in a NodeMCU project?
Not quite. Try another option.
Answer: Wireless data exchange
A Bluetooth interface allows the NodeMCU to send and receive data without a wired connection.
Question 5 of 60 · data transfer through Bluetooth interface · Easy
Which connection is normally required for short-range Bluetooth communication?
Not quite. Try another option.
Answer: Wireless radio link
Bluetooth creates a short-range wireless link using radio communication.
Question 6 of 60 · voice controlled Bluetooth device · Easy
What converts spoken words into commands for a voice-controlled Bluetooth device?
Not quite. Try another option.
Answer: Voice recognition system
A voice recognition system interprets spoken words and converts them into usable commands.
Question 7 of 60 · voice controlled Bluetooth device · Easy
In a voice-controlled Bluetooth project, what does the smartphone commonly do?
Not quite. Try another option.
Answer: Recognize speech and send commands
The smartphone can recognize the user's voice and transmit the resulting command through Bluetooth.
Question 8 of 60 · voice controlled Bluetooth device · Easy
What is the role of the NodeMCU after receiving a voice command?
Not quite. Try another option.
Answer: Execute the command
The NodeMCU processes the received command and controls the connected device.
Question 9 of 60 · voice controlled Bluetooth device · Easy
Which command could be used in a simple voice-controlled device?
Not quite. Try another option.
Answer: Turn on the light
A voice command such as "Turn on the light" can be sent to the NodeMCU to control an output.
Question 10 of 60 · voice controlled Bluetooth device · Easy
What is an important requirement for a voice-controlled Bluetooth system?
Not quite. Try another option.
Answer: A recognizable command format
The system needs commands in a format that the NodeMCU can identify and process.
Question 11 of 60 · liquid crystal display with I2C · Easy
What does LCD stand for?
Not quite. Try another option.
Answer: Liquid Crystal Display
LCD is the abbreviation for Liquid Crystal Display.
Question 12 of 60 · liquid crystal display with I2C · Easy
What is the main advantage of connecting an LCD through I2C?
Not quite. Try another option.
Answer: Fewer microcontroller pins
I2C allows the LCD to communicate using a small number of pins, commonly two signal lines.
Question 13 of 60 · liquid crystal display with I2C · Easy
Which two signal lines are commonly used by an I2C LCD?
Not quite. Try another option.
Answer: SDA and SCL
I2C uses SDA for data and SCL for the clock signal.
Question 14 of 60 · liquid crystal display with I2C · Easy
What type of information can an LCD connected to NodeMCU display?
Not quite. Try another option.
Answer: Text and numbers
An LCD can show messages, readings, labels, and numerical values.
Question 15 of 60 · liquid crystal display with I2C · Easy
What is the purpose of an I2C backpack attached to an LCD?
Not quite. Try another option.
Answer: Provide I2C communication
The I2C backpack provides the interface circuitry needed for communication between the LCD and NodeMCU.
Question 16 of 60 · protocol of SPI · Easy
What does SPI stand for?
Not quite. Try another option.
Answer: Serial Peripheral Interface
SPI is short for Serial Peripheral Interface, a synchronous communication protocol.
Question 17 of 60 · protocol of SPI · Easy
Which SPI line carries data from the controller to a peripheral?
Not quite. Try another option.
Answer: MOSI
MOSI means Master Out, Slave In and carries data from the controller to the peripheral.
Question 18 of 60 · protocol of SPI · Easy
Which SPI line carries data from a peripheral to the controller?
Not quite. Try another option.
Answer: MISO
MISO means Master In, Slave Out and carries data from the peripheral to the controller.
Question 19 of 60 · protocol of SPI · Easy
What is the purpose of the SPI clock line?
Not quite. Try another option.
Answer: Synchronize data transfer
The SPI clock coordinates when data bits are sent and read.
Question 20 of 60 · protocol of I2C · Easy
What does I2C stand for?
Not quite. Try another option.
Answer: Inter-Integrated Circuit
I2C is short for Inter-Integrated Circuit, a communication protocol used between integrated circuits.
Question 21 of 60 · data transfer through Bluetooth interface · Medium
A NodeMCU ESP8266 must exchange text commands with an HC-05 Bluetooth module. Which connection arrangement is most appropriate?
Not quite. Try another option.
Answer: HC-05 TX to NodeMCU RX and HC-05 RX to NodeMCU TX
UART devices use crossed data lines: the transmitter of one device connects to the receiver of the other.
Question 22 of 60 · data transfer through Bluetooth interface · Medium
A Bluetooth module sends characters correctly at first, but the NodeMCU later displays unreadable symbols. What should be checked first?
Not quite. Try another option.
Answer: Whether both UART endpoints use the same baud rate
A UART baud-rate mismatch causes bits to be sampled at incorrect times, producing corrupted characters.
Question 23 of 60 · data transfer through Bluetooth interface · Medium
The HC-05 RX input is rated for lower logic voltage than the NodeMCU transmit signal. Which interface change best protects the module?
Not quite. Try another option.
Answer: Add a voltage divider on the NodeMCU TX path
A resistor divider can reduce the NodeMCU TX voltage before it reaches the Bluetooth module's RX input.
Question 24 of 60 · data transfer through Bluetooth interface · Medium
A NodeMCU program receives Bluetooth bytes faster than it processes them. Which technique most directly reduces the chance of losing a complete command?
Not quite. Try another option.
Answer: Buffer incoming bytes until a delimiter is received
Collecting bytes into a buffer until a terminator arrives preserves complete variable-length commands for later processing.
Question 25 of 60 · voice controlled Bluetooth device · Medium
In a typical voice-controlled NodeMCU system using an HC-05, where is spoken language usually converted into a text command?
Not quite. Try another option.
Answer: In the smartphone voice-control application
The phone performs speech recognition and sends the resulting command over Bluetooth; the HC-05 mainly provides serial communication.
Question 26 of 60 · voice controlled Bluetooth device · Medium
A lamp should turn on for voice inputs such as Turn on light and turn on light. Which processing step makes command recognition more reliable?
Not quite. Try another option.
Answer: Convert received text to one consistent letter case
Normalizing letter case prevents capitalization differences from causing an otherwise valid command to be rejected.
Question 27 of 60 · voice controlled Bluetooth device · Medium
A voice application sends FAN ON\r\n, but the program compares the input only with FAN ON. What is the most suitable correction?
Not quite. Try another option.
Answer: Trim line-ending characters before comparing the command
Removing carriage-return and newline characters allows the received text to match the expected command exactly.
Question 28 of 60 · voice controlled Bluetooth device · Medium
A voice-controlled motor must stop automatically if the Bluetooth connection becomes inactive. Which design best supports this requirement?
Not quite. Try another option.
Answer: Stop the motor when a command timeout expires
A timeout creates a fail-safe state when commands or connection activity are no longer detected.
Question 29 of 60 · liquid crystal display with I2C · Medium
An I2C LCD backlight turns on, but no characters appear even though wiring and code are otherwise correct. Which adjustment should be tried first?
Not quite. Try another option.
Answer: Adjust the contrast potentiometer on the I2C backpack
Incorrect contrast can make valid LCD characters invisible even while the backlight remains illuminated.
Question 30 of 60 · liquid crystal display with I2C · Medium
A program initializes an I2C LCD at address 0x27, but the display does not respond. What is the most useful diagnostic action?
Not quite. Try another option.
Answer: Run an I2C scanner to discover the actual address
I2C backpacks may use different addresses, so a scanner can identify the address acknowledged on the bus.
Question 31 of 60 · liquid crystal display with I2C · Medium
Two I2C LCD backpacks have the same fixed address and must be controlled independently by one NodeMCU. Which solution is most appropriate?
Not quite. Try another option.
Answer: Change one address jumper or use an I2C multiplexer
Devices sharing an I2C bus need unique selectable addresses, unless a multiplexer isolates identical addresses on separate channels.
Question 32 of 60 · liquid crystal display with I2C · Medium
Why does an I2C backpack reduce the number of NodeMCU pins needed for a parallel character LCD?
Not quite. Try another option.
Answer: It converts two-wire I2C messages into parallel LCD signals
The backpack's I/O expander receives data over SDA and SCL and drives the LCD's parallel control and data pins.
Question 33 of 60 · protocol of SPI · Medium
A NodeMCU communicates with two SPI sensors that use the same clock and data lines. How should it select one sensor at a time?
Not quite. Try another option.
Answer: Provide a separate chip-select line for each sensor
SPI peripherals can share SCLK, MOSI, and MISO, while separate chip-select signals identify the active peripheral.
Question 34 of 60 · protocol of SPI · Medium
An SPI sensor returns shifted or incorrect values although its wiring is correct. Its datasheet specifies CPOL = 1 and CPHA = 1. What should be changed?
Not quite. Try another option.
Answer: Configure the controller to use SPI mode 3
SPI mode 3 corresponds to CPOL = 1 and CPHA = 1, matching the sensor's required clock behavior.
Question 35 of 60 · protocol of SPI · Medium
Which SPI characteristic allows a controller to transmit and receive one bit during the same clock pulse?
Not quite. Try another option.
Answer: Separate MOSI and MISO data lines
Independent transmit and receive lines make standard SPI full-duplex, allowing simultaneous data flow in both directions.
Question 36 of 60 · protocol of SPI · Medium
An SPI peripheral is reliable at 1 MHz but fails intermittently at 10 MHz with long jumper wires. What is the best first modification?
Not quite. Try another option.
Answer: Lower the SPI clock frequency
Long wires degrade high-speed signal integrity, so reducing the clock rate often restores reliable sampling.
Question 37 of 60 · protocol of I2C · Medium
Why are pull-up resistors normally required on I2C SDA and SCL lines?
Not quite. Try another option.
Answer: Devices actively pull lines low but release them for high
I2C uses open-drain outputs; pull-up resistors establish logic high when no device is pulling a line low.
Question 38 of 60 · protocol of I2C · Medium
During an I2C transfer, the controller sends an address but receives no acknowledgment. What does this most directly indicate?
Not quite. Try another option.
Answer: No addressed device pulled SDA low during the ACK clock
An I2C receiver acknowledges a byte by pulling SDA low on the ninth clock pulse; otherwise the controller detects a NACK.
Question 39 of 60 · protocol of I2C · Medium
A slow I2C peripheral holds SCL low after the controller attempts to raise it. Which protocol feature is being used?
Not quite. Try another option.
Answer: Clock stretching
Clock stretching lets a peripheral delay the transfer by holding SCL low until it is ready to continue.
Question 40 of 60 · protocol of I2C · Medium
A NodeMCU must read a register from an I2C sensor without releasing control of the bus between writing the register number and reading its value. Which sequence is appropriate?
Not quite. Try another option.
Answer: START, write address and register, repeated START, read address and data, STOP
A repeated START changes transfer direction while retaining bus control, which is commonly used for I2C register reads.
Question 41 of 60 · data transfer through Bluetooth interface · Hard
A NodeMCU receives data from an HC-05 module through a 9600-baud UART configured as 8N1. The firmware blocks for 120 ms while updating another peripheral, and the UART receive buffer holds 64 bytes. What is the most likely result if Bluetooth data arrives continuously during the blocking interval?
Not quite. Try another option.
Answer: About 115 bytes arrive, so the receive buffer overflows and some data is lost
With 8N1, each byte uses 10 bits. The arrival rate is bytes/s, so about bytes arrive. A 64-byte buffer therefore overflows unless reception is serviced concurrently.
Question 42 of 60 · data transfer through Bluetooth interface · Hard
A Bluetooth sender transmits binary sensor frames over a UART stream. Any byte value, including newline, may occur in the payload. Which framing design most reliably allows the NodeMCU to detect complete frames and reject corrupted ones?
Not quite. Try another option.
Answer: A fixed header, payload length, payload bytes, and CRC
A header supports synchronization, the length identifies the frame boundary even for arbitrary binary data, and the CRC detects corruption. Delimiters without escaping can also appear inside the payload.
Question 43 of 60 · data transfer through Bluetooth interface · Hard
An HC-05 sends bytes faster than the NodeMCU application can process them. Hardware flow-control pins are unavailable. Which firmware architecture best minimizes loss while keeping Wi-Fi tasks responsive?
Not quite. Try another option.
Answer: Drain UART into a ring buffer and parse frames incrementally
Quickly draining UART into a ring buffer decouples reception from parsing. Incremental, nonblocking parsing also allows the ESP8266 networking stack and watchdog-sensitive tasks to run.
Question 44 of 60 · data transfer through Bluetooth interface · Hard
A UART Bluetooth link is configured for 115200 baud, 8 data bits, no parity, and 1 stop bit. Ignoring Bluetooth-layer overhead, what is the maximum theoretical payload rate for continuously transmitted UART bytes?
Not quite. Try another option.
Answer: 11,520 bytes/s
Each 8-bit payload byte requires one start bit and one stop bit, for 10 transmitted bits. Thus the rate is bytes/s.
Question 45 of 60 · voice controlled Bluetooth device · Hard
A voice-control application may send TURN ON LIGHT, turn on light\r\n, or Turn On Light. Which command-processing strategy provides reliable recognition without accidentally accepting turn on lighting?
Not quite. Try another option.
Answer: Trim whitespace, normalize case, and compare the complete command token
Whitespace trimming and case normalization handle benign variations, while complete-token comparison prevents longer or unrelated phrases from being interpreted as valid commands.
Question 46 of 60 · voice controlled Bluetooth device · Hard
A voice-controlled heater remains on if the phone disconnects immediately after sending the ON command. Which design best addresses this communication-failure hazard?
Not quite. Try another option.
Answer: Require periodic authenticated keep-alive messages and turn off after a timeout
A fail-safe timeout moves the actuator to its safe state when control communication disappears. Authentication also prevents an unrelated sender from maintaining the keep-alive.
Question 47 of 60 · voice controlled Bluetooth device · Hard
A phone retries a voice command when its acknowledgment is delayed. The command TOGGLE LAMP may therefore arrive twice, returning the lamp to its original state. Which protocol change best solves this problem?
Not quite. Try another option.
Answer: Send SET LAMP ON with a sequence number and cache the result
An explicit target-state command is idempotent. A sequence number lets the device recognize retries and return the previous result without applying the operation again.
Question 48 of 60 · voice controlled Bluetooth device · Hard
A Bluetooth voice application sends FAN:75\n, but UART callbacks sometimes deliver FA and N:75\n separately. What should the NodeMCU do?
Not quite. Try another option.
Answer: Accumulate bytes until the delimiter, then validate and execute the frame
UART and Bluetooth provide byte streams, not guaranteed message-sized callbacks. A persistent parser must retain partial input until a complete delimited frame is available.
Question 49 of 60 · liquid crystal display with I2C · Hard
An I2C scanner detects an LCD backpack at address 0x3F, but the LCD library was initialized with 0x27. Electrical connections and pull-ups are correct. What is the most direct correction?
Not quite. Try another option.
Answer: Initialize the LCD library with address 0x3F
Most Arduino-style I2C APIs use the 7-bit slave address reported by a scanner. 0x27 and 0x3F are common backpack addresses determined by the expander configuration.
Question 50 of 60 · liquid crystal display with I2C · Hard
A PCF8574-based LCD backpack operates an HD44780 display in 4-bit mode. Why must the expander output typically be updated multiple times to send one LCD byte?
Not quite. Try another option.
Answer: Each nibble must be placed on the data lines and latched with an enable pulse
In 4-bit mode, the high and low nibbles are transferred separately. For each nibble, the backpack must establish data and control levels and toggle the LCD enable line to latch them.
Question 51 of 60 · liquid crystal display with I2C · Hard
An LCD backpack permanently connects the HD44780 R/W pin to ground. A developer attempts to poll the LCD busy flag through the PCF8574. Why does this fail?
Not quite. Try another option.
Answer: The grounded R/W pin prevents the LCD from driving status data
With R/W fixed low, the LCD is always in write mode and cannot place the busy flag on its data pins. The driver must use command-specific delays instead.
Question 52 of 60 · liquid crystal display with I2C · Hard
A 20x4 I2C LCD is refreshed by calling clear() and rewriting all characters every 100 ms. The display flickers and I2C traffic delays other sensors. Which redesign is most appropriate?
Not quite. Try another option.
Answer: Keep a display shadow buffer and write only changed character regions
Differential updates avoid the visible clear operation and greatly reduce LCD and I2C transactions. Only modified cells or contiguous changed regions need to be rewritten.
Question 53 of 60 · protocol of SPI · Hard
An SPI sensor specifies that data changes on the falling edge and is sampled on the rising edge, with the clock idle low. Which SPI mode should the NodeMCU use?
Not quite. Try another option.
Answer: Mode 0: CPOL=0, CPHA=0
Idle-low clock means CPOL=0. Sampling on the first edge, which is rising for idle-low operation, means CPHA=0; together these select SPI mode 0.
Question 54 of 60 · protocol of SPI · Hard
Two SPI peripherals share SCLK, MOSI, and MISO, but require different clock modes and frequencies. Which transaction sequence prevents bus conflicts and configuration errors?
Not quite. Try another option.
Answer: Configure the selected device's settings, assert only its CS, transfer, then deassert CS
Each device must be isolated by its chip-select signal and accessed using its required mode and frequency. Other devices must remain deselected so they do not drive MISO or interpret clocks.
Question 55 of 60 · protocol of SPI · Hard
A NodeMCU must read a two-byte SPI status register. After sending the read command and address, why does the master usually transmit dummy bytes while receiving the result?
Not quite. Try another option.
Answer: SPI requires master-generated clock pulses, so outgoing dummy bits clock incoming data
SPI shifts data in both directions on every clock. The master must transmit something, often 0x00 or 0xFF, to generate the clocks needed to receive slave data.
Question 56 of 60 · protocol of SPI · Hard
An SPI ADC guarantees valid MISO data 35 ns after the sampling edge. The NodeMCU input requires 10 ns of setup time before the next relevant edge. Ignoring other delays and assuming half a clock period is available, what is the highest theoretical SPI clock frequency?
Not quite. Try another option.
Answer: Approximately 11.1 MHz
The half-period must be at least ns. Thus the full period is at least 90 ns, giving MHz.
Question 57 of 60 · protocol of I2C · Hard
An I2C bus uses a 4.7 kΩ pull-up and has 400 pF total capacitance. Using the approximation , what rise time should be expected, and what does it imply for Fast-mode I2C with a 300 ns maximum rise time?
Not quite. Try another option.
Answer: About 1.59 µs, so the bus violates the Fast-mode rise-time limit
µs. This exceeds the 300 ns Fast-mode limit, so capacitance or pull-up resistance must be reduced.
Question 58 of 60 · protocol of I2C · Hard
Two I2C masters start transmitting simultaneously. One sends a logic 1 while the other sends a logic 0 during the same address bit. What happens on a correctly implemented bus?
Not quite. Try another option.
Answer: The master sending 1 detects a low level, loses arbitration, and stops transmitting
I2C uses open-drain wired-AND signaling, so low is dominant. A master releasing SDA for a 1 but observing 0 knows another master is dominant and must withdraw without corrupting the winning transfer.
Question 59 of 60 · protocol of I2C · Hard
To read bytes from an I2C device's internal register, a master writes the register address and then reads data without releasing bus ownership. Which bus sequence correctly performs this operation?
The first addressed phase sets the internal register pointer. A repeated start changes direction to reading while preserving the combined transaction and current bus ownership.
Question 60 of 60 · protocol of I2C · Hard
After a NodeMCU resets during an I2C read, a slave remains in a partial transaction and holds SDA low. Which recovery procedure is generally appropriate before reinitializing the controller?
Not quite. Try another option.
Answer: Pulse SCL up to nine times, generate a STOP, and then reinitialize I2C
Clock pulses can advance a slave through its remaining bits until it releases SDA. A subsequent stop condition returns compliant devices to the idle state before the peripheral is reinitialized.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of ECE237 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of ECE237 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.