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 · LCD interfacing with NodeMCU · Easy
What is the main purpose of an LCD connected to a NodeMCU?
Not quite. Try another option.
Answer: To display information
An LCD displays text, numbers, and other information received from the NodeMCU.
Question 2 of 60 · LCD interfacing with NodeMCU · Easy
What does LCD stand for?
Not quite. Try another option.
Answer: Liquid Crystal Display
LCD stands for Liquid Crystal Display.
Question 3 of 60 · LCD interfacing with NodeMCU · Easy
Which communication interface commonly reduces the number of NodeMCU pins required by an LCD?
Not quite. Try another option.
Answer: I2C
An I2C adapter allows an LCD to communicate using only the SDA and SCL signal lines.
Question 4 of 60 · LCD interfacing with NodeMCU · Easy
Which two signal lines are used for I2C communication with an LCD?
Not quite. Try another option.
Answer: SDA and SCL
I2C uses SDA for data and SCL for the clock signal.
Question 5 of 60 · LCD interfacing with NodeMCU · Easy
What is the function of the contrast control on a character LCD?
Not quite. Try another option.
Answer: Adjusting character visibility
The contrast control changes how clearly the LCD characters appear.
Question 6 of 60 · LCD interfacing with NodeMCU · Easy
What does a 16x2 LCD provide?
Not quite. Try another option.
Answer: Two rows of 16 characters
A 16x2 LCD can display 16 characters on each of its two rows.
Question 7 of 60 · LCD interfacing with NodeMCU · Easy
Why must the GND pins of the NodeMCU and LCD be connected together?
Not quite. Try another option.
Answer: To provide a common reference
A shared ground gives both devices the same voltage reference for reliable communication.
Question 8 of 60 · Seven segment interfacing with NodeMCU · Easy
How many main LED segments are used to form digits in a seven-segment display?
Not quite. Try another option.
Answer: Seven
Seven individually controlled segments are arranged to form decimal digits.
Question 9 of 60 · Seven segment interfacing with NodeMCU · Easy
What is a seven-segment display mainly used to show?
Not quite. Try another option.
Answer: Numeric digits
A seven-segment display is mainly designed to show digits from 0 to 9.
Question 10 of 60 · Seven segment interfacing with NodeMCU · Easy
Why is a resistor connected in series with each segment of a seven-segment display?
Not quite. Try another option.
Answer: To limit LED current
The resistor limits current and protects both the LED segment and the NodeMCU output pin.
Question 11 of 60 · Seven segment interfacing with NodeMCU · Easy
In a common-cathode seven-segment display, where are the common terminals normally connected?
Not quite. Try another option.
Answer: Ground
The common terminals of a common-cathode display are connected to ground.
Question 12 of 60 · Seven segment interfacing with NodeMCU · Easy
In a common-anode seven-segment display, where are the common terminals normally connected?
Not quite. Try another option.
Answer: Positive supply
The common terminals of a common-anode display are connected to the positive supply.
Question 13 of 60 · Seven segment interfacing with NodeMCU · Easy
Which NodeMCU pin mode is normally used to control a seven-segment display segment?
Not quite. Try another option.
Answer: OUTPUT
A GPIO pin must be configured as an output to switch an LED segment on or off.
Question 14 of 60 · Seven segment interfacing with NodeMCU · Easy
What is the optional eighth LED on many seven-segment displays used for?
Not quite. Try another option.
Answer: Decimal point
Many seven-segment displays include an extra LED that serves as a decimal point.
Question 15 of 60 · Interfacing DC motor with NodeMCU · Easy
Why should a DC motor not usually be powered directly from a NodeMCU GPIO pin?
Not quite. Try another option.
Answer: The motor requires more current
A DC motor commonly draws more current than a NodeMCU GPIO pin can safely supply.
Question 16 of 60 · Interfacing DC motor with NodeMCU · Easy
Which device can act as an electronic switch when controlling a DC motor from a NodeMCU?
Not quite. Try another option.
Answer: Transistor
A transistor can switch the larger motor current using a small control signal from the NodeMCU.
Question 17 of 60 · Interfacing DC motor with NodeMCU · Easy
What is the purpose of a flyback diode connected across a DC motor?
Not quite. Try another option.
Answer: To suppress voltage spikes
The flyback diode protects the control circuit from voltage spikes produced when the motor is switched off.
Question 18 of 60 · Interfacing DC motor with NodeMCU · Easy
Which technique is commonly used to control the speed of a DC motor?
Not quite. Try another option.
Answer: PWM
Pulse-width modulation controls the motor's average supplied power and therefore its speed.
Question 19 of 60 · Interfacing DC motor with NodeMCU · Easy
Which circuit is commonly used to control the direction of a DC motor?
Not quite. Try another option.
Answer: H-bridge
An H-bridge reverses the current through the motor, allowing its rotation direction to change.
Question 20 of 60 · Interfacing DC motor with NodeMCU · Easy
What normally happens when the polarity applied to a simple DC motor is reversed?
Not quite. Try another option.
Answer: Its direction reverses
Reversing the voltage polarity reverses the current and changes the motor's direction of rotation.
Question 21 of 60 · LCD interfacing with NodeMCU · Medium
A 16×2 LCD is connected to a NodeMCU through an I2C module. Which pair of signals is normally required for communication?
Not quite. Try another option.
Answer: SDA for data and SCL for clock
I2C communication uses SDA to transfer data and SCL to provide the clock signal.
Question 22 of 60 · LCD interfacing with NodeMCU · Medium
What is the main advantage of using an I2C adapter with a character LCD and NodeMCU?
Not quite. Try another option.
Answer: It reduces the number of GPIO pins required
An I2C adapter allows the NodeMCU to control the LCD using only the SDA and SCL lines, along with power and ground.
Question 23 of 60 · LCD interfacing with NodeMCU · Medium
An LCD displays dark blocks but no characters after power is applied. Which adjustment is most likely to solve the problem?
Not quite. Try another option.
Answer: Adjust the LCD contrast potentiometer
Dark blocks with no visible characters commonly indicate an incorrect contrast setting, although wiring and initialization should also be checked.
Question 24 of 60 · LCD interfacing with NodeMCU · Medium
A NodeMCU program initializes an LCD at address 0x27, but the display remains blank. What should be checked first?
Not quite. Try another option.
Answer: Whether the actual I2C address is different
I2C LCD modules may use different addresses, such as 0x27 or 0x3F. An I2C scanner can identify the address in use.
Question 25 of 60 · LCD interfacing with NodeMCU · Medium
Why should a common ground be connected between the NodeMCU and an externally powered LCD module?
Not quite. Try another option.
Answer: It provides a common voltage reference
The signal voltages from the NodeMCU are interpreted correctly only when both devices share the same ground reference.
Question 26 of 60 · LCD interfacing with NodeMCU · Medium
A sensor value on an LCD changes rapidly and becomes difficult to read. Which software approach is most suitable?
Not quite. Try another option.
Answer: Refresh the display at a controlled interval
Updating the LCD at a moderate interval improves readability and reduces unnecessary communication and flicker.
Question 27 of 60 · LCD interfacing with NodeMCU · Medium
A 16×2 LCD is used to display a value that sometimes has fewer digits than the previous value. Why can leftover characters appear?
Not quite. Try another option.
Answer: Old characters are not overwritten
If a shorter value replaces a longer one, remaining positions may retain old characters. Padding spaces or clearing the affected region prevents this.
Question 28 of 60 · Seven segment interfacing with NodeMCU · Medium
For a common-cathode seven-segment display, how is a segment normally turned on?
Not quite. Try another option.
Answer: Apply HIGH to the segment through a resistor
In a common-cathode display, the common pin is connected to ground, so a HIGH signal through a current-limiting resistor turns on a segment.
Question 29 of 60 · Seven segment interfacing with NodeMCU · Medium
How does the segment control logic differ for a common-anode seven-segment display compared with a common-cathode display?
Not quite. Try another option.
Answer: The segment control polarity is reversed
A common-anode display is connected to the positive supply, so segments are generally activated with LOW signals.
Question 30 of 60 · Seven segment interfacing with NodeMCU · Medium
Why is a separate resistor commonly connected in series with each seven-segment LED segment?
Not quite. Try another option.
Answer: To limit the current through each segment
Each LED segment needs current limiting to prevent excessive current that could damage the LED or the NodeMCU GPIO.
Question 31 of 60 · Seven segment interfacing with NodeMCU · Medium
A digit appears incorrectly on a seven-segment display even though the program logic is correct. Which issue is most likely?
Not quite. Try another option.
Answer: The segment-to-GPIO mapping is incorrect
The digit pattern must match the actual wiring of segments a through g. A wrong mapping produces incorrect digit shapes.
Question 32 of 60 · Seven segment interfacing with NodeMCU · Medium
A seven-segment display must show digits from 0 to 9 using seven GPIO pins. What should the program generally do for each new digit?
Not quite. Try another option.
Answer: Write the corresponding segment pattern
Each digit is represented by a pattern of HIGH and LOW states for segments a through g.
Question 33 of 60 · Seven segment interfacing with NodeMCU · Medium
Why can directly driving many seven-segment segments from NodeMCU pins create a hardware concern?
Not quite. Try another option.
Answer: The total GPIO current may exceed safe limits
Several active segments can draw significant combined current. Resistors, suitable drivers, and current limits must be considered.
Question 34 of 60 · Seven segment interfacing with NodeMCU · Medium
A multiplexed two-digit seven-segment display uses shared segment lines. What technique allows both digits to appear continuously lit?
Not quite. Try another option.
Answer: Rapidly enable one digit at a time
Multiplexing rapidly switches between the digits. Persistence of vision makes both digits appear continuously illuminated.
Question 35 of 60 · Interfacing DC motor with NodeMCU · Medium
Why should a DC motor generally not be connected directly to a NodeMCU GPIO pin?
Not quite. Try another option.
Answer: The motor requires more current than the GPIO can safely supply
A motor can draw high starting and operating current, which may damage the GPIO or cause the NodeMCU to reset.
Question 36 of 60 · Interfacing DC motor with NodeMCU · Medium
Which component is most suitable for controlling a DC motor's direction and speed with a NodeMCU?
Not quite. Try another option.
Answer: An H-bridge motor driver
An H-bridge driver allows the motor current to be switched in either direction and often supports PWM speed control.
Question 37 of 60 · Interfacing DC motor with NodeMCU · Medium
What is the purpose of a flyback diode across a brushed DC motor when a transistor is used as the switching device?
Not quite. Try another option.
Answer: To suppress voltage spikes during motor turn-off
The motor's inductance produces a reverse voltage when current is interrupted. The flyback diode provides a safer path for that current.
Question 38 of 60 · Interfacing DC motor with NodeMCU · Medium
A motor driver receives a PWM signal with a duty cycle of approximately . What is the expected effect compared with a duty cycle, assuming the same supply?
Not quite. Try another option.
Answer: The motor generally receives less average power
A lower PWM duty cycle reduces the average voltage and power delivered to the motor, usually reducing its speed under similar load conditions.
Question 39 of 60 · Interfacing DC motor with NodeMCU · Medium
When a NodeMCU controls a motor driver powered by a separate battery, which connection is normally necessary for reliable control signals?
Not quite. Try another option.
Answer: Connect the NodeMCU ground to the driver ground
A shared ground gives the control signal a common reference. The motor power should remain isolated from GPIO current demands.
Question 40 of 60 · Interfacing DC motor with NodeMCU · Medium
An H-bridge motor driver has input pins IN1 and IN2. Which input combination commonly commands the motor to stop using active braking or driver logic?
Not quite. Try another option.
Answer: Set IN1 and IN2 to the same logic level
For many H-bridge drivers, equal input states command a stop condition, although the exact braking behavior depends on the driver.
Question 41 of 60 · LCD interfacing with NodeMCU · Hard
A 16x2 LCD with an I2C backpack is connected to a NodeMCU. The display works intermittently when a motor on the same supply starts. Which hardware change most directly addresses the likely communication fault?
Not quite. Try another option.
Answer: Add a flyback diode across the motor terminals
Motor switching produces inductive voltage spikes and supply noise that can corrupt I2C communication. A flyback diode suppresses the motor's voltage transient at its source.
Question 42 of 60 · LCD interfacing with NodeMCU · Hard
An I2C LCD backpack is powered from 5 V, while its SDA and SCL pull-up resistors also reach 5 V. Why is this connection unsafe for a NodeMCU configured for 3.3 V GPIO operation?
Not quite. Try another option.
Answer: The NodeMCU pins may receive 5 V through the pull-ups
I2C lines are open-drain and rise through pull-up resistors. Pull-ups to 5 V can expose ESP8266 GPIO pins to an unsafe voltage, so level shifting or 3.3 V pull-ups are required.
Question 43 of 60 · LCD interfacing with NodeMCU · Hard
A NodeMCU LCD program hangs inside lcd.init() after wiring SDA and SCL to GPIO4 and GPIO5. The LCD has power and a visible backlight. Which diagnosis is most appropriate before changing the software library?
Not quite. Try another option.
Answer: The I2C address or bus wiring is incorrect
Initialization commonly waits for an I2C response. An incorrect address, reversed lines, missing ground, or poor pull-ups can prevent acknowledgment and make initialization appear to hang.
Question 44 of 60 · LCD interfacing with NodeMCU · Hard
A design must update an I2C LCD every 10 ms while also servicing time-critical sensor interrupts. Which architecture best reduces avoidable timing disruption?
Not quite. Try another option.
Answer: Update only changed characters at scheduled intervals
LCD transfers are relatively slow. Updating only changed fields outside interrupt service routines reduces bus traffic and prevents display operations from blocking time-critical processing.
Question 45 of 60 · LCD interfacing with NodeMCU · Hard
An LCD displays correct text after reset, but later shows duplicated or shifted characters when strings of different lengths are written to the same row. What is the most reliable software correction?
Not quite. Try another option.
Answer: Clear or overwrite the unused trailing positions
Writing a shorter string does not erase characters left from a previous longer string. Padding the new text with spaces or clearing the row prevents stale characters from remaining.
Question 46 of 60 · LCD interfacing with NodeMCU · Hard
A NodeMCU uses GPIO0 as an LCD control line. The board sometimes enters programming mode instead of booting normally. Which explanation best accounts for this behavior?
Not quite. Try another option.
Answer: GPIO0 is sampled during boot and affects flash-download mode
ESP8266 boot straps include GPIO0. Holding it low during reset selects the serial programming mode, so LCD circuitry connected to it can interfere with normal booting.
Question 47 of 60 · LCD interfacing with NodeMCU · Hard
The LCD is powered from a separate 5 V adapter, and the NodeMCU is powered by USB. Characters are corrupted even though both devices measure correct local voltages. What connection is essential?
Not quite. Try another option.
Answer: Connect the grounds of both power systems
The I2C voltage levels are interpreted relative to ground. Without a shared reference, the NodeMCU and LCD can disagree about logic levels even when each supply is individually correct.
Question 48 of 60 · Seven segment interfacing with NodeMCU · Hard
A common-cathode seven-segment display is driven directly from NodeMCU GPIO pins. One segment draws 18 mA, but the design must satisfy a 12 mA maximum per GPIO. Which change preserves the displayed pattern while meeting the limit?
Not quite. Try another option.
Answer: Use a larger resistor for each segment
For a common-cathode display, each segment current is limited by its series resistor. Increasing resistance reduces current while retaining independent segment control.
Question 49 of 60 · Seven segment interfacing with NodeMCU · Hard
A common-anode display is connected to a NodeMCU through low-side transistor drivers for its segment lines. Which output behavior should represent an illuminated segment?
Not quite. Try another option.
Answer: Drive the transistor input low to sink segment current
In a common-anode display, the shared anode is positive. A segment turns on when its cathode is pulled low, so a suitable low-side driver must conduct when commanded low.
Question 50 of 60 · Seven segment interfacing with NodeMCU · Hard
During multiplexing of a four-digit common-cathode display, faint segments from the previous digit appear on the next digit. Which sequence most effectively prevents ghosting?
Not quite. Try another option.
Answer: Change segment data, then select the next digit
The active digit should be disabled before changing segment outputs. After stable segment data is present, the next digit is enabled, preventing transient patterns from being visible.
Question 51 of 60 · Seven segment interfacing with NodeMCU · Hard
Each segment is driven at 12 mA while active, and a multiplexed display has a duty cycle of . Ignoring nonlinear LED effects, what is the approximate average current per continuously lit segment?
Not quite. Try another option.
Answer:
Average current is active current multiplied by duty cycle: .
Question 52 of 60 · Seven segment interfacing with NodeMCU · Hard
A two-digit multiplexed display shares seven segment lines, but the NodeMCU has only one GPIO available for both digit selection and segment data timing. Which solution is most appropriate?
Not quite. Try another option.
Answer: Use an external shift register or GPIO expander
Multiplexing requires independent control of segment data and digit enables. An external serial-to-parallel device supplies the missing outputs without shorting display nodes.
Question 53 of 60 · Seven segment interfacing with NodeMCU · Hard
A display driver uses an 8-bit lookup table for digits, but every digit appears horizontally mirrored or incorrectly segmented. The wiring order is known to be reversed relative to the table. What is the cleanest correction?
Not quite. Try another option.
Answer: Remap each table bit to its physical segment
Seven-segment codes depend on the mapping between table bits and physical segments. Correcting that mapping preserves the hardware and fixes every digit consistently.
Question 54 of 60 · Seven segment interfacing with NodeMCU · Hard
A multiplexed display flickers noticeably even though its scan rate is 200 Hz per complete frame. The firmware spends 8 ms blocking in another task between digit updates. What is the strongest fix?
Not quite. Try another option.
Answer: Use nonblocking scheduling for display refresh
The nominal scan rate is irrelevant if blocking delays create long gaps between updates. Nonblocking timing keeps digit refresh periodic and prevents visible flicker.
Question 55 of 60 · Interfacing DC motor with NodeMCU · Hard
Why must a DC motor generally not be connected directly between a NodeMCU GPIO pin and ground?
Not quite. Try another option.
Answer: The GPIO cannot safely supply motor current and inductive transients
A motor can exceed GPIO current limits and generates voltage spikes when switched. A transistor or H-bridge driver with suitable suppression is required.
Question 56 of 60 · Interfacing DC motor with NodeMCU · Hard
A low-side N-channel MOSFET controls a motor, but the motor resets the NodeMCU whenever it turns off. The motor has no suppression component. Which addition is most directly required?
Not quite. Try another option.
Answer: A diode in reverse bias across the motor
The diode provides a path for inductive current when the MOSFET turns off. It must be reverse-biased during normal motor operation and placed across the motor.
Question 57 of 60 · Interfacing DC motor with NodeMCU · Hard
A motor driver accepts a 3.3 V logic signal, but the motor supply is 12 V and shares ground with the NodeMCU. Which statement is correct?
Not quite. Try another option.
Answer: The shared ground provides the reference for the logic signal
The driver compares its logic input with its ground reference. A common ground is needed, while the motor supply can remain at 12 V if the driver supports it.
Question 58 of 60 · Interfacing DC motor with NodeMCU · Hard
A NodeMCU controls motor speed with PWM, but the motor stalls at low duty cycles and draws large current pulses. Which change is most likely to improve startup behavior?
Not quite. Try another option.
Answer: Apply a brief higher-duty startup pulse
Static friction and starting current make low duty cycles insufficient for startup. A controlled higher-duty pulse can start the motor, after which the duty cycle can be reduced.
Question 59 of 60 · Interfacing DC motor with NodeMCU · Hard
An H-bridge is used to reverse a motor. The firmware changes one bridge input from high to low while changing the other from low to high at nearly the same instant. What protection is most important?
Not quite. Try another option.
Answer: Insert dead time between complementary switching commands
Dead time prevents both opposing bridge switches from conducting simultaneously. Without it, shoot-through can create destructive supply current during direction changes.
Question 60 of 60 · Interfacing DC motor with NodeMCU · Hard
A motor supply is adequate at no load but its voltage collapses during acceleration, causing the NodeMCU to reboot. Which design response best addresses the system-level cause?
Not quite. Try another option.
Answer: Use a separate regulated logic supply and local decoupling
Motor startup can cause supply droop and conducted noise. Separating logic power, adding appropriate bulk and ceramic capacitors, and maintaining a controlled ground path improves reset immunity.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of ECE237 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 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.