1What is the main purpose of an LCD connected to a NodeMCU?
LCD interfacing with NodeMCU
Easy
A.To display information
B.To amplify current
C.To measure temperature
D.To store programs
Correct Answer: To display information
Explanation:
An LCD displays text, numbers, and other information received from the NodeMCU.
Incorrect! Try again.
2What does LCD stand for?
LCD interfacing with NodeMCU
Easy
A.Light Control Device
B.Liquid Crystal Display
C.Linear Circuit Display
D.Logic Crystal Driver
Correct Answer: Liquid Crystal Display
Explanation:
LCD stands for Liquid Crystal Display.
Incorrect! Try again.
3Which communication interface commonly reduces the number of NodeMCU pins required by an LCD?
LCD interfacing with NodeMCU
Easy
A.ADC
B.UART
C.I2C
D.PWM
Correct Answer: I2C
Explanation:
An I2C adapter allows an LCD to communicate using only the SDA and SCL signal lines.
Incorrect! Try again.
4Which two signal lines are used for I2C communication with an LCD?
LCD interfacing with NodeMCU
Easy
A.RS and EN
B.TX and RX
C.SDA and SCL
D.A0 and PWM
Correct Answer: SDA and SCL
Explanation:
I2C uses SDA for data and SCL for the clock signal.
Incorrect! Try again.
5What is the function of the contrast control on a character LCD?
LCD interfacing with NodeMCU
Easy
A.Adjusting character visibility
B.Changing communication speed
C.Selecting the GPIO mode
D.Controlling motor direction
Correct Answer: Adjusting character visibility
Explanation:
The contrast control changes how clearly the LCD characters appear.
Incorrect! Try again.
6What does a 16x2 LCD provide?
LCD interfacing with NodeMCU
Easy
A.Sixteen rows of 2 characters
B.One row of 32 characters
C.Two rows of 8 characters
D.Two rows of 16 characters
Correct Answer: Two rows of 16 characters
Explanation:
A 16x2 LCD can display 16 characters on each of its two rows.
Incorrect! Try again.
7Why must the GND pins of the NodeMCU and LCD be connected together?
LCD interfacing with NodeMCU
Easy
A.To provide a common reference
B.To increase display resolution
C.To select the I2C address
D.To store the displayed text
Correct Answer: To provide a common reference
Explanation:
A shared ground gives both devices the same voltage reference for reliable communication.
Incorrect! Try again.
8How many main LED segments are used to form digits in a seven-segment display?
Seven segment interfacing with NodeMCU
Easy
A.Five
B.Seven
C.Ten
D.Eight
Correct Answer: Seven
Explanation:
Seven individually controlled segments are arranged to form decimal digits.
Incorrect! Try again.
9What is a seven-segment display mainly used to show?
Seven segment interfacing with NodeMCU
Easy
A.Analog voltages
B.Audio signals
C.Numeric digits
D.Network packets
Correct Answer: Numeric digits
Explanation:
A seven-segment display is mainly designed to show digits from 0 to 9.
Incorrect! Try again.
10Why is a resistor connected in series with each segment of a seven-segment display?
Seven segment interfacing with NodeMCU
Easy
A.To reverse current flow
B.To store display data
C.To limit LED current
D.To increase supply voltage
Correct Answer: To limit LED current
Explanation:
The resistor limits current and protects both the LED segment and the NodeMCU output pin.
Incorrect! Try again.
11In a common-cathode seven-segment display, where are the common terminals normally connected?
Seven segment interfacing with NodeMCU
Easy
A.Data
B.Ground
C.Reset
D.Clock
Correct Answer: Ground
Explanation:
The common terminals of a common-cathode display are connected to ground.
Incorrect! Try again.
12In a common-anode seven-segment display, where are the common terminals normally connected?
Seven segment interfacing with NodeMCU
Easy
A.Clock input
B.Positive supply
C.Ground
D.Analog input
Correct Answer: Positive supply
Explanation:
The common terminals of a common-anode display are connected to the positive supply.
Incorrect! Try again.
13Which NodeMCU pin mode is normally used to control a seven-segment display segment?
Seven segment interfacing with NodeMCU
Easy
A.ANALOG
B.INPUT
C.OUTPUT
D.INPUT_PULLUP
Correct Answer: OUTPUT
Explanation:
A GPIO pin must be configured as an output to switch an LED segment on or off.
Incorrect! Try again.
14What is the optional eighth LED on many seven-segment displays used for?
Seven segment interfacing with NodeMCU
Easy
A.Power indicator
B.Reset signal
C.Decimal point
D.Clock input
Correct Answer: Decimal point
Explanation:
Many seven-segment displays include an extra LED that serves as a decimal point.
Incorrect! Try again.
15Why should a DC motor not usually be powered directly from a NodeMCU GPIO pin?
Interfacing DC motor with NodeMCU
Easy
A.The GPIO stores motor speed
B.The GPIO produces sound signals
C.The motor requires more current
D.The motor requires digital data
Correct Answer: The motor requires more current
Explanation:
A DC motor commonly draws more current than a NodeMCU GPIO pin can safely supply.
Incorrect! Try again.
16Which device can act as an electronic switch when controlling a DC motor from a NodeMCU?
Interfacing DC motor with NodeMCU
Easy
A.Capacitor
B.Transistor
C.Photodiode
D.Potentiometer
Correct Answer: Transistor
Explanation:
A transistor can switch the larger motor current using a small control signal from the NodeMCU.
Incorrect! Try again.
17What is the purpose of a flyback diode connected across a DC motor?
Interfacing DC motor with NodeMCU
Easy
A.To suppress voltage spikes
B.To increase motor torque
C.To generate PWM pulses
D.To measure motor current
Correct Answer: To suppress voltage spikes
Explanation:
The flyback diode protects the control circuit from voltage spikes produced when the motor is switched off.
Incorrect! Try again.
18Which technique is commonly used to control the speed of a DC motor?
Interfacing DC motor with NodeMCU
Easy
A.ADC
B.HTTP
C.I2C
D.PWM
Correct Answer: PWM
Explanation:
Pulse-width modulation controls the motor's average supplied power and therefore its speed.
Incorrect! Try again.
19Which circuit is commonly used to control the direction of a DC motor?
Interfacing DC motor with NodeMCU
Easy
A.Crystal oscillator
B.RC filter
C.H-bridge
D.Voltage divider
Correct Answer: H-bridge
Explanation:
An H-bridge reverses the current through the motor, allowing its rotation direction to change.
Incorrect! Try again.
20What normally happens when the polarity applied to a simple DC motor is reversed?
Interfacing DC motor with NodeMCU
Easy
A.Its resistance becomes zero
B.Its direction reverses
C.Its GPIO becomes analog
D.Its supply becomes AC
Correct Answer: Its direction reverses
Explanation:
Reversing the voltage polarity reverses the current and changes the motor's direction of rotation.
Incorrect! Try again.
21A 16×2 LCD is connected to a NodeMCU through an I2C module. Which pair of signals is normally required for communication?
LCD interfacing with NodeMCU
Medium
A.TX for data and RX for clock
B.INT for data and RST for clock
C.SDA for data and SCL for clock
D.MOSI for data and MISO for clock
Correct Answer: SDA for data and SCL for clock
Explanation:
I2C communication uses SDA to transfer data and SCL to provide the clock signal.
Incorrect! Try again.
22What is the main advantage of using an I2C adapter with a character LCD and NodeMCU?
LCD interfacing with NodeMCU
Medium
A.It removes the need for a power supply
B.It converts the LCD into a touchscreen
C.It reduces the number of GPIO pins required
D.It increases the LCD resolution automatically
Correct Answer: It reduces the number of GPIO pins required
Explanation:
An I2C adapter allows the NodeMCU to control the LCD using only the SDA and SCL lines, along with power and ground.
Incorrect! Try again.
23An LCD displays dark blocks but no characters after power is applied. Which adjustment is most likely to solve the problem?
LCD interfacing with NodeMCU
Medium
A.Change the NodeMCU baud rate
B.Adjust the LCD contrast potentiometer
C.Increase the motor driver current
D.Replace the LCD data cable with an antenna
Correct Answer: Adjust the LCD contrast potentiometer
Explanation:
Dark blocks with no visible characters commonly indicate an incorrect contrast setting, although wiring and initialization should also be checked.
Incorrect! Try again.
24A NodeMCU program initializes an LCD at address 0x27, but the display remains blank. What should be checked first?
LCD interfacing with NodeMCU
Medium
A.Whether the DC motor has a flyback diode
B.Whether the seven-segment decimal point is active
C.Whether the actual I2C address is different
D.Whether the NodeMCU antenna is extended
Correct Answer: Whether the actual I2C address is different
Explanation:
I2C LCD modules may use different addresses, such as 0x27 or 0x3F. An I2C scanner can identify the address in use.
Incorrect! Try again.
25Why should a common ground be connected between the NodeMCU and an externally powered LCD module?
LCD interfacing with NodeMCU
Medium
A.It protects the LCD from incorrect characters
B.It increases the LCD backlight brightness
C.It provides a common voltage reference
D.It changes the LCD from parallel to serial mode
Correct Answer: It provides a common voltage reference
Explanation:
The signal voltages from the NodeMCU are interpreted correctly only when both devices share the same ground reference.
Incorrect! Try again.
26A sensor value on an LCD changes rapidly and becomes difficult to read. Which software approach is most suitable?
LCD interfacing with NodeMCU
Medium
A.Refresh the display at a controlled interval
B.Write each character to a separate GPIO pin
C.Increase the I2C address after every reading
D.Clear the LCD continuously inside the main loop
Correct Answer: Refresh the display at a controlled interval
Explanation:
Updating the LCD at a moderate interval improves readability and reduces unnecessary communication and flicker.
Incorrect! Try again.
27A 16×2 LCD is used to display a value that sometimes has fewer digits than the previous value. Why can leftover characters appear?
LCD interfacing with NodeMCU
Medium
A.Old characters are not overwritten
B.The I2C clock changes into a data line
C.The NodeMCU converts digits into analog signals
D.The LCD automatically stores two values
Correct Answer: Old characters are not overwritten
Explanation:
If a shorter value replaces a longer one, remaining positions may retain old characters. Padding spaces or clearing the affected region prevents this.
Incorrect! Try again.
28For a common-cathode seven-segment display, how is a segment normally turned on?
Seven segment interfacing with NodeMCU
Medium
A.Apply LOW to the segment through a resistor
B.Leave the segment pin disconnected
C.Apply HIGH to the segment through a resistor
D.Connect the segment directly to the reset pin
Correct Answer: Apply HIGH to the segment through a resistor
Explanation:
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.
Incorrect! Try again.
29How does the segment control logic differ for a common-anode seven-segment display compared with a common-cathode display?
Seven segment interfacing with NodeMCU
Medium
A.The segment control polarity is reversed
B.The segment names change from letters to numbers
C.The display requires no current-limiting resistors
D.The display can use only analog NodeMCU pins
Correct Answer: The segment control polarity is reversed
Explanation:
A common-anode display is connected to the positive supply, so segments are generally activated with LOW signals.
Incorrect! Try again.
30Why is a separate resistor commonly connected in series with each seven-segment LED segment?
Seven segment interfacing with NodeMCU
Medium
A.To limit the current through each segment
B.To synchronize the segment with the I2C clock
C.To increase the logic voltage above 5 V
D.To store the digit before it is displayed
Correct Answer: To limit the current through each segment
Explanation:
Each LED segment needs current limiting to prevent excessive current that could damage the LED or the NodeMCU GPIO.
Incorrect! Try again.
31A digit appears incorrectly on a seven-segment display even though the program logic is correct. Which issue is most likely?
Seven segment interfacing with NodeMCU
Medium
A.The LCD contrast setting is too low
B.The segment-to-GPIO mapping is incorrect
C.The motor supply has insufficient torque
D.The I2C address is outside the display range
Correct Answer: The segment-to-GPIO mapping is incorrect
Explanation:
The digit pattern must match the actual wiring of segments a through g. A wrong mapping produces incorrect digit shapes.
Incorrect! Try again.
32A seven-segment display must show digits from 0 to 9 using seven GPIO pins. What should the program generally do for each new digit?
Seven segment interfacing with NodeMCU
Medium
A.Send the digit to the LCD I2C address
B.Write the corresponding segment pattern
C.Change the motor direction pin
D.Read the analog voltage from every segment
Correct Answer: Write the corresponding segment pattern
Explanation:
Each digit is represented by a pattern of HIGH and LOW states for segments a through g.
Incorrect! Try again.
33Why can directly driving many seven-segment segments from NodeMCU pins create a hardware concern?
Seven segment interfacing with NodeMCU
Medium
A.The segments generate a separate Wi-Fi network
B.The total GPIO current may exceed safe limits
C.The GPIO pins can produce only alternating digits
D.The display always requires an I2C address
Correct Answer: The total GPIO current may exceed safe limits
Explanation:
Several active segments can draw significant combined current. Resistors, suitable drivers, and current limits must be considered.
Incorrect! Try again.
34A multiplexed two-digit seven-segment display uses shared segment lines. What technique allows both digits to appear continuously lit?
Seven segment interfacing with NodeMCU
Medium
A.Keep both digit-enable pins permanently floating
B.Send separate I2C addresses to each segment
C.Rapidly enable one digit at a time
D.Apply analog input readings to the common pins
Correct Answer: Rapidly enable one digit at a time
Explanation:
Multiplexing rapidly switches between the digits. Persistence of vision makes both digits appear continuously illuminated.
Incorrect! Try again.
35Why should a DC motor generally not be connected directly to a NodeMCU GPIO pin?
Interfacing DC motor with NodeMCU
Medium
A.The GPIO can provide voltage but never digital signals
B.The motor requires more current than the GPIO can safely supply
C.The motor requires an LCD to complete its circuit
D.The motor can communicate only through I2C
Correct Answer: The motor requires more current than the GPIO can safely supply
Explanation:
A motor can draw high starting and operating current, which may damage the GPIO or cause the NodeMCU to reset.
Incorrect! Try again.
36Which component is most suitable for controlling a DC motor's direction and speed with a NodeMCU?
Interfacing DC motor with NodeMCU
Medium
A.A seven-segment display
B.A pull-down resistor alone
C.An LCD contrast potentiometer
D.An H-bridge motor driver
Correct Answer: An H-bridge motor driver
Explanation:
An H-bridge driver allows the motor current to be switched in either direction and often supports PWM speed control.
Incorrect! Try again.
37What is the purpose of a flyback diode across a brushed DC motor when a transistor is used as the switching device?
Interfacing DC motor with NodeMCU
Medium
A.To increase the motor voltage during startup
B.To convert PWM into an I2C clock
C.To reverse the motor without changing the wiring
D.To suppress voltage spikes during motor turn-off
Correct Answer: To suppress voltage spikes during motor turn-off
Explanation:
The motor's inductance produces a reverse voltage when current is interrupted. The flyback diode provides a safer path for that current.
Incorrect! Try again.
38A 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?
Interfacing DC motor with NodeMCU
Medium
A.The motor changes into a seven-segment output
B.The motor always reverses its direction
C.The motor receives three times the supply voltage
D.The motor generally receives less average power
Correct Answer: The motor generally receives less average power
Explanation:
A lower PWM duty cycle reduces the average voltage and power delivered to the motor, usually reducing its speed under similar load conditions.
Incorrect! Try again.
39When a NodeMCU controls a motor driver powered by a separate battery, which connection is normally necessary for reliable control signals?
Interfacing DC motor with NodeMCU
Medium
A.Connect the battery positive directly to every GPIO
B.Connect the driver output to the LCD contrast pin
C.Connect the NodeMCU ground to the driver ground
D.Connect the motor terminals to the NodeMCU RX pin
Correct Answer: Connect the NodeMCU ground to the driver ground
Explanation:
A shared ground gives the control signal a common reference. The motor power should remain isolated from GPIO current demands.
Incorrect! Try again.
40An 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?
Interfacing DC motor with NodeMCU
Medium
A.Connect IN1 directly to the motor shaft
B.Set IN1 and IN2 to the same logic level
C.Set IN1 HIGH and leave IN2 floating
D.Set both inputs to different analog voltages
Correct Answer: Set IN1 and IN2 to the same logic level
Explanation:
For many H-bridge drivers, equal input states command a stop condition, although the exact braking behavior depends on the driver.
Incorrect! Try again.
41A 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?
LCD interfacing with NodeMCU
Hard
A.Increase the LCD backlight resistor value
B.Change the LCD character font setting
C.Add a flyback diode across the motor terminals
D.Replace the LCD contrast potentiometer
Correct Answer: Add a flyback diode across the motor terminals
Explanation:
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.
Incorrect! Try again.
42An 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?
LCD interfacing with NodeMCU
Hard
A.The NodeMCU pins may receive 5 V through the pull-ups
B.The LCD will always use the wrong I2C address
C.The NodeMCU will automatically disable its I2C driver
Correct Answer: The NodeMCU pins may receive 5 V through the pull-ups
Explanation:
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.
Incorrect! Try again.
43A 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?
LCD interfacing with NodeMCU
Hard
A.The LCD requires a higher PWM frequency
B.The I2C address or bus wiring is incorrect
C.The LCD must be connected using SPI instead
D.The LCD contrast is too low for initialization
Correct Answer: The I2C address or bus wiring is incorrect
Explanation:
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.
Incorrect! Try again.
44A design must update an I2C LCD every 10 ms while also servicing time-critical sensor interrupts. Which architecture best reduces avoidable timing disruption?
LCD interfacing with NodeMCU
Hard
A.Use software bit-banging during each interrupt
B.Update only changed characters at scheduled intervals
C.Insert longer delays after every LCD command
D.Rewrite the entire LCD every 10 ms
Correct Answer: Update only changed characters at scheduled intervals
Explanation:
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.
Incorrect! Try again.
45An 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?
LCD interfacing with NodeMCU
Hard
A.Swap the SDA and SCL assignments
B.Increase the I2C clock above 400 kHz
C.Reduce the LCD backlight duty cycle
D.Clear or overwrite the unused trailing positions
Correct Answer: Clear or overwrite the unused trailing positions
Explanation:
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.
Incorrect! Try again.
46A 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?
LCD interfacing with NodeMCU
Hard
A.GPIO0 cannot change state after the LCD is initialized
B.GPIO0 is sampled during boot and affects flash-download mode
C.GPIO0 forces the LCD to select its alternate character set
D.GPIO0 is reserved exclusively for I2C clock generation
Correct Answer: GPIO0 is sampled during boot and affects flash-download mode
Explanation:
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.
Incorrect! Try again.
47The 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?
LCD interfacing with NodeMCU
Hard
A.Connect the LCD enable line directly to 5 V
B.Connect the LCD backlight to the NodeMCU reset pin
C.Connect the grounds of both power systems
D.Connect the two supplies in series
Correct Answer: Connect the grounds of both power systems
Explanation:
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.
Incorrect! Try again.
48A 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?
Seven segment interfacing with NodeMCU
Hard
A.Use a larger resistor for each segment
B.Connect all segment anodes to ground
C.Increase the GPIO output voltage in software
D.Remove the segment's current-limiting resistor
Correct Answer: Use a larger resistor for each segment
Explanation:
For a common-cathode display, each segment current is limited by its series resistor. Increasing resistance reduces current while retaining independent segment control.
Incorrect! Try again.
49A 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?
Seven segment interfacing with NodeMCU
Hard
A.Leave the transistor input floating to source segment current
B.Drive the transistor input low to sink segment current
C.Drive both the anode and segment line low
D.Drive the transistor input high to sink segment current
Correct Answer: Drive the transistor input low to sink segment current
Explanation:
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.
Incorrect! Try again.
50During 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?
Seven segment interfacing with NodeMCU
Hard
A.Keep all digit-select lines active during the update
B.Change segment data, then select the next digit
C.Select the next digit, then change segment data
D.Increase the digit-select voltage before changing data
Correct Answer: Change segment data, then select the next digit
Explanation:
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.
Incorrect! Try again.
51Each 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?
Seven segment interfacing with NodeMCU
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Average current is active current multiplied by duty cycle: .
Incorrect! Try again.
52A 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?
Seven segment interfacing with NodeMCU
Hard
A.Short the corresponding segments of both digits
B.Drive both digits permanently from the same enable line
C.Increase the display supply voltage until both digits light
D.Use an external shift register or GPIO expander
Correct Answer: Use an external shift register or GPIO expander
Explanation:
Multiplexing requires independent control of segment data and digit enables. An external serial-to-parallel device supplies the missing outputs without shorting display nodes.
Incorrect! Try again.
53A 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?
Seven segment interfacing with NodeMCU
Hard
A.Remap each table bit to its physical segment
B.Increase the multiplex refresh period
C.Invert only the decimal-point bit
D.Reverse the display supply polarity
Correct Answer: Remap each table bit to its physical segment
Explanation:
Seven-segment codes depend on the mapping between table bits and physical segments. Correcting that mapping preserves the hardware and fixes every digit consistently.
Incorrect! Try again.
54A 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?
Seven segment interfacing with NodeMCU
Hard
A.Use nonblocking scheduling for display refresh
B.Reduce the segment resistor to increase brightness
C.Disable the decimal point permanently
D.Connect the digit commons directly to 3.3 V
Correct Answer: Use nonblocking scheduling for display refresh
Explanation:
The nominal scan rate is irrelevant if blocking delays create long gaps between updates. Nonblocking timing keeps digit refresh periodic and prevents visible flicker.
Incorrect! Try again.
55Why must a DC motor generally not be connected directly between a NodeMCU GPIO pin and ground?
Interfacing DC motor with NodeMCU
Hard
A.The motor always requires an analog sine-wave input
B.The GPIO output is isolated from the NodeMCU power rail
C.The motor needs an I2C address before starting
D.The GPIO cannot safely supply motor current and inductive transients
Correct Answer: The GPIO cannot safely supply motor current and inductive transients
Explanation:
A motor can exceed GPIO current limits and generates voltage spikes when switched. A transistor or H-bridge driver with suitable suppression is required.
Incorrect! Try again.
56A 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?
Interfacing DC motor with NodeMCU
Hard
A.A capacitor in series with the motor
B.A resistor in parallel with the NodeMCU reset switch
C.A diode in reverse bias across the motor
D.A pull-down resistor across the motor terminals only
Correct Answer: A diode in reverse bias across the motor
Explanation:
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.
Incorrect! Try again.
57A 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?
Interfacing DC motor with NodeMCU
Hard
A.The motor supply voltage must be reduced to 3.3 V
B.The shared ground provides the reference for the logic signal
C.The driver input can be left floating when the motor is stopped
D.The NodeMCU pin must output 12 V to enable the driver
Correct Answer: The shared ground provides the reference for the logic signal
Explanation:
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.
Incorrect! Try again.
58A 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?
Interfacing DC motor with NodeMCU
Hard
A.Remove the flyback diode during startup
B.Use a lower motor supply voltage permanently
C.Configure the GPIO as an open-drain input
D.Apply a brief higher-duty startup pulse
Correct Answer: Apply a brief higher-duty startup pulse
Explanation:
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.
Incorrect! Try again.
59An 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?
Interfacing DC motor with NodeMCU
Hard
A.Insert dead time between complementary switching commands
B.Set both bridge inputs high continuously
C.Use the motor as the GPIO pull-up resistor
D.Increase the LCD bus clock during reversal
Correct Answer: Insert dead time between complementary switching commands
Explanation:
Dead time prevents both opposing bridge switches from conducting simultaneously. Without it, shoot-through can create destructive supply current during direction changes.
Incorrect! Try again.
60A 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?
Interfacing DC motor with NodeMCU
Hard
A.Replace the motor driver with a mechanical switch only
B.Connect the motor directly to the NodeMCU 3.3 V pin
C.Increase the motor PWM frequency without changing the supply
D.Use a separate regulated logic supply and local decoupling
Correct Answer: Use a separate regulated logic supply and local decoupling
Explanation:
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.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →