Unit 1: Getting started with NodeMCU - Subjective Questions

ECE237 — Architecting Smart Iot Devices • Practice Questions with Detailed Answers

20 questions

1

Define the NodeMCU board and explain its major features that make it suitable for developing smart IoT devices.

2

Describe the important peripherals that can be interfaced with a NodeMCU board.

3

Explain the procedure for setting up NodeMCU for programming using the Arduino IDE.

4

What is serial port programming in NodeMCU? Explain the role of the USB-to-serial converter during program upload.

5

Write and explain a NodeMCU program that configures a GPIO pin as an output and blinks an LED.

6

Explain the steps involved in configuring a general-purpose input/output pin of NodeMCU as an output.

7

Discuss the electrical precautions that must be followed when using NodeMCU GPIO pins as outputs.

8

Write and explain a NodeMCU program that reads a push button connected to a GPIO input and controls an LED.

9

Explain how a GPIO pin is configured as an input in NodeMCU. Include the purpose of pull-up and pull-down resistors.

10

Distinguish between INPUT, INPUT_PULLUP, and output modes when configuring NodeMCU GPIO pins.

11

Describe the problem of a floating GPIO input and explain how it can be prevented in a NodeMCU circuit.

12

Explain serial communication between NodeMCU and a computer using the Serial Monitor. Write a suitable example program.

13

Compare the ESP8266 and ESP32 with respect to processor, wireless connectivity, GPIO, analog features, and typical IoT applications.

14

Explain the advantages and limitations of using NodeMCU based on the ESP8266 for IoT prototyping.

15

Describe the relationship between NodeMCU pin labels and the actual ESP8266 GPIO numbers. Why is this relationship important in programming?

16

Derive the approximate time period of an LED blink program when the LED is switched on for 500 ms and off for 1500 ms. State the blinking frequency.

17

Explain the difference between digital input, digital output, and analog input on NodeMCU.

18

Describe a systematic method for troubleshooting a NodeMCU program that does not upload through the serial port.

19

Compare polling and interrupt-based detection of a GPIO input in the context of NodeMCU applications.

20

Explain how NodeMCU can control a relay to operate an appliance, and identify the safety considerations involved.