Unit 2: Input devices with NodeMCU - Subjective Questions

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

20 questions

1

Define the DHT11 sensor and explain how it can be interfaced with a NodeMCU.

2

Describe the steps required to program a NodeMCU to read temperature and humidity from a DHT11 sensor.

3

Write and explain a NodeMCU program that reads data from a DHT11 sensor and displays it on the Serial Monitor.

4

Compare the DHT11 and DHT22 sensors with respect to range, accuracy, resolution, sampling rate, cost, and suitable applications.

5

Explain the working principle of an ultrasonic distance sensor and its connection to a NodeMCU.

6

Derive the formula used to calculate distance from the echo duration of an ultrasonic sensor.

7

Write and explain a NodeMCU program for measuring distance using an HC-SR04 ultrasonic sensor.

8

Discuss the major sources of error in ultrasonic distance measurement and explain how they can be reduced.

9

Explain how an analog temperature sensor such as the LM35 can be interfaced and programmed with a NodeMCU.

10

Write a NodeMCU program to read an LM35 temperature sensor through the analog input and explain the conversion process.

11

Distinguish between analog and digital temperature sensors when used with a NodeMCU.

12

Describe the construction and working of a typical IR obstacle detection sensor module.

13

Write and explain a NodeMCU program that uses an IR sensor to detect an obstacle and control an LED.

14

Explain the limitations of an IR obstacle sensor and suggest methods to improve detection reliability.

15

Define an LDR and explain how a voltage-divider circuit enables a NodeMCU to measure light intensity.

16

Write a NodeMCU program to read an LDR and automatically control a lamp or LED according to ambient light.

17

Explain how an LDR-based light sensing system can be calibrated for day and night detection.

18

Describe the important electrical precautions that must be followed when connecting DHT, ultrasonic, temperature, IR, and LDR sensors to a NodeMCU.

19

Compare the output and programming requirements of DHT11, ultrasonic, IR, analog temperature, and LDR sensors.

20

Design a NodeMCU-based monitoring system using a DHT11, ultrasonic sensor, IR sensor, and LDR. Explain its operation and program structure.