Become Our Member!

Edit Template

Become Our Member!

Edit Template

O Level IoT Practical Programs with Output – Arduino Programs & Solutions?

NIELIT O LEVEL – M4-R5.1

O Level IoT Practical Programs with Output

Arduino Programs, Circuit Connections, Source Code, Expected Output & Practical Explanation in Hindi and English.

Complete IoT Practical Learning Guide for Students

Start Practical Programs IoT Viva Questions

Introduction to O Level IoT Practical

Internet of Things (IoT) का अर्थ है ऐसे physical devices का network जो sensors, software और internet/network connectivity की सहायता से data collect और exchange कर सकते हैं।

NIELIT O Level के M4-R5.1 module में IoT concepts, sensors, actuators, communication, applications और security जैसे topics का अध्ययन किया जाता है। Arduino-based activities इन concepts को समझने के लिए उपयोगी practice exercises हैं।

इस webpage में students को practical programs, required components, circuit connections, Arduino code और expected output दिए गए हैं।

How to Study IoT Practical Programs?

  1. Read the Question: Practical question को ध्यान से पढ़ें।
  2. Understand Components: Arduino board, LED, resistor और sensors की पहचान करें।
  3. Make Connections: Circuit diagram या connection table के अनुसार wiring करें।
  4. Write the Program: Arduino IDE में source code लिखें।
  5. Verify and Upload: Code verify करके board पर upload करें।
  6. Observe Output: LED, sensor या serial monitor का output देखें।
  7. Write Practical File: Aim, components, code, output और conclusion लिखें।
Important: हर practical को पहले trainer की supervision में perform करें। Wiring बदलने से पहले USB/power supply disconnect करें।

Required Components for IoT Practicals

Arduino UNO

Microcontroller development board for running practical programs.

Breadboard

Used to make temporary electronic circuit connections.

LED

Light Emitting Diode used for visual output.

Resistors

Used to limit current in electronic circuits.

Push Button

Used to provide manual digital input.

Buzzer

Produces sound as an output signal.

LDR Sensor

Detects changes in surrounding light intensity.

Ultrasonic Sensor

Measures distance using ultrasonic sound waves.

O Level IoT Practical Programs with Output

नीचे दिए गए Arduino programs को क्रम से practice करें। हर program में Aim, Components, Connections, Code और Output शामिल हैं।

Practical 1: Blink Built-in LED on Arduino Board with 2 Seconds Delay

Aim: Write a program to blink the default LED on the Arduino board with a delay of 2 seconds.

Required Components: Arduino UNO board and USB cable.

Connection: Arduino UNO के built-in LED pin (LED_BUILTIN) का उपयोग होगा। External LED की आवश्यकता नहीं है।

Arduino Program

void setup()
{
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(2000);

  digitalWrite(LED_BUILTIN, LOW);
  delay(2000);
}

Expected Output

Output:
  • Built-in LED ON for 2 seconds.
  • Built-in LED OFF for 2 seconds.
  • This process repeats continuously.
Result: Arduino board का built-in LED हर 2 seconds में ON और OFF होता है।

Practical 2: Blink an External LED Using Arduino

Aim: Write a program to blink an external LED using Arduino UNO.

Components: Arduino UNO, LED, 220Ω resistor, breadboard and jumper wires.

Connection Table:

LED / ComponentArduino Connection
LED Anode (+)Digital Pin 13 through 220Ω resistor
LED Cathode (-)GND
int led = 13;

void setup()
{
  pinMode(led, OUTPUT);
}

void loop()
{
  digitalWrite(led, HIGH);
  delay(1000);

  digitalWrite(led, LOW);
  delay(1000);
}
Expected Output: External LED glows for 1 second and turns OFF for 1 second continuously.

Practical 3: Control LED Using Push Button

Aim: Write a program to turn ON an LED when the push button is pressed.

Components: Arduino UNO, push button, LED, 220Ω resistor and jumper wires.

Connection: Connect the push button between digital pin 2 and GND. Connect the LED through a 220Ω resistor to pin 13 and GND.

int buttonPin = 2;
int ledPin = 13;

void setup()
{
  pinMode(buttonPin, INPUT_PULLUP);
  pinMode(ledPin, OUTPUT);
}

void loop()
{
  int buttonState = digitalRead(buttonPin);

  if (buttonState == LOW)
  {
    digitalWrite(ledPin, HIGH);
  }
  else
  {
    digitalWrite(ledPin, LOW);
  }
}
Expected Output:
  • When the button is pressed, LED turns ON.
  • When the button is released, LED turns OFF.

Practical 4: Generate Sound Using Buzzer

Aim: Write a program to generate sound using a buzzer connected to Arduino.

Components: Arduino UNO and a suitable active buzzer.

Connection: Buzzer positive pin to digital pin 8 and negative pin to GND. Check the buzzer voltage and current specifications.

int buzzer = 8;

void setup()
{
  pinMode(buzzer, OUTPUT);
}

void loop()
{
  digitalWrite(buzzer, HIGH);
  delay(1000);

  digitalWrite(buzzer, LOW);
  delay(1000);
}
Expected Output: Buzzer produces sound for 1 second and remains silent for 1 second repeatedly.

Practical 5: Read Light Intensity Using LDR Sensor

Aim: Read light sensor values using an LDR and display them in the Serial Monitor.

Components: Arduino UNO, LDR, 10kΩ resistor and jumper wires.

Connection: Make a voltage divider: connect LDR between 5V and A0; connect a 10kΩ resistor between A0 and GND.

int ldrPin = A0;
int lightValue = 0;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  lightValue = analogRead(ldrPin);

  Serial.print("Light Value: ");
  Serial.println(lightValue);

  delay(1000);
}
Expected Output: Serial Monitor displays light sensor readings, generally between 0 and 1023 on a standard Arduino UNO. Values change as light falling on the LDR changes.

Practical 6: Measure Distance Using Ultrasonic Sensor HC-SR04

Aim: Measure the distance of an object using an ultrasonic sensor.

Components: Arduino UNO and HC-SR04 ultrasonic sensor.

HC-SR04 PinArduino UNO
VCC5V
GNDGND
TRIGPin 9
ECHOPin 10
int trigPin = 9;
int echoPin = 10;

long duration;
float distance;

void setup()
{
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  Serial.begin(9600);
}

void loop()
{
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);

  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);

  duration = pulseIn(echoPin, HIGH);
  distance = duration * 0.0343 / 2;

  Serial.print("Distance: ");
  Serial.print(distance);
  Serial.println(" cm");

  delay(1000);
}
Expected Output: Serial Monitor displays the measured distance in centimeters. The reading changes when an object moves closer to or farther from the sensor.

Practical 7: Display Temperature Using LM35 Sensor

Aim: Read temperature from an LM35 sensor using Arduino UNO.

Components: Arduino UNO and LM35 temperature sensor.

Connection: For a common TO-92 LM35 viewed from the flat front, connect left pin to 5V, middle pin to A0 and right pin to GND. Verify the pinout of your exact sensor model.

int sensorPin = A0;
float voltage;
float temperature;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  int sensorValue = analogRead(sensorPin);

  voltage = sensorValue * (5.0 / 1023.0);
  temperature = voltage * 100.0;

  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");

  delay(1000);
}
Expected Output: Serial Monitor displays the temperature reading in degrees Celsius. The reading depends on the actual sensor temperature and wiring.
Hardware Note: Sensor pinouts and voltage requirements can vary by module. Check the manufacturer's datasheet before making connections. Use the correct board and sensor configuration when compiling and uploading programs.

How to Write an IoT Practical File?

Students should maintain a practical notebook using the following format:

SectionWhat to Write
Practical NumberSerial number of practical
AimPurpose of the program
Components RequiredHardware and electronic components
Circuit ConnectionPin connection table or circuit diagram
ProgramComplete Arduino source code
OutputActual observation or Serial Monitor screenshot
ResultConclusion of the experiment

O Level IoT Practical Practice Questions

  1. Write a program to blink the built-in LED with a delay of 2 seconds.
  2. Write a program to blink an external LED using Arduino.
  3. Write a program to control an LED using a push button.
  4. Write a program to generate sound using a buzzer.
  5. Read light intensity using an LDR sensor.
  6. Measure object distance using an ultrasonic sensor.
  7. Read temperature using an LM35 sensor.
  8. Explain the working of Arduino UNO.
  9. Explain the difference between a sensor and an actuator.
  10. Draw a basic IoT system architecture diagram.
  11. Explain smart home automation with an example.
  12. Explain IoT communication protocols.
  13. Describe IoT security challenges.
  14. Explain the role of cloud computing in IoT.
  15. Describe a real-life IoT application.

Important O Level IoT Viva Questions and Answers

1. What is IoT?

IoT stands for Internet of Things. It is a network of physical devices that collect and exchange data using network connectivity.

2. What is Arduino?

Arduino is an open-source electronics platform used for building interactive electronic projects and prototypes.

3. What is a microcontroller?

A microcontroller is a compact integrated circuit containing a processor, memory and input/output interfaces.

4. What is a sensor?

A sensor detects physical conditions such as temperature, light, pressure or motion.

5. What is an actuator?

An actuator converts a control signal into a physical action, such as operating a motor or valve.

6. What is a breadboard?

A breadboard is used to build and test temporary electronic circuits without soldering.

7. What is an LED?

LED stands for Light Emitting Diode. It emits light when current flows through it in the correct direction.

8. What is the function of delay() in Arduino?

The delay() function pauses program execution for a specified number of milliseconds.

9. What is the function of pinMode()?

pinMode() configures a digital pin as INPUT, OUTPUT or another supported mode.

10. What is Serial Monitor?

Serial Monitor is a tool in Arduino IDE used to send and receive serial data for testing and debugging.

O Level IoT Practical Exam Preparation Tips

  • Understand the working of Arduino UNO and its pins.
  • Practice sensor and actuator connections.
  • Write Arduino programs without copying.
  • Understand setup() and loop() functions.
  • Learn digitalWrite(), digitalRead(), analogRead() and delay().
  • Practice reading sensor values through Serial Monitor.
  • Prepare IoT definitions, applications and viva questions.
  • Follow the current NIELIT syllabus and practical instructions.
These programs are supplementary Arduino practice exercises. They should not be treated as a guaranteed list of questions for the NIELIT practical examination. Follow the prescribed syllabus for your examination cycle.

Official NIELIT Information

For the latest O Level syllabus, examination notifications and student instructions, visit the official NIELIT website.

Visit NIELIT Official Website →

Learn O Level with Practical Training

Join Excellent Computer Education for computer education and practical skill development in Indira Nagar, Lucknow.

Admission & Enquiry: +91 9795720993

Call Now WhatsApp Enquiry

Frequently Asked Questions – O Level IoT Practical

1. What is O Level IoT Practical?

O Level IoT practical learning covers Internet of Things concepts, sensors, actuators, connected devices, communication and applications.

2. Which board is used for Arduino practicals?

Arduino UNO is a commonly used development board for beginner electronics and IoT learning exercises.

3. How do I blink the Arduino built-in LED?

Set LED_BUILTIN as OUTPUT and use digitalWrite() with HIGH and LOW states. Use delay(2000) for a two-second interval.

4. What is the use of an LDR sensor?

An LDR detects changes in light intensity. Its resistance changes according to the light falling on it.

5. What is the use of an ultrasonic sensor?

An ultrasonic sensor measures distance by transmitting sound waves and measuring the time taken for the echo to return.

6. Which software is used to write Arduino programs?

Arduino IDE is commonly used to write, verify and upload Arduino programs.

7. Are these programs enough for the O Level exam?

These programs are useful for Arduino practice, but students should prepare the complete applicable NIELIT IoT syllabus and follow official practical instructions.

© Excellent Computer Education, Indira Nagar, Lucknow

Leave a Reply

Your email address will not be published. Required fields are marked *

About Company

Excellent Computer Education    (A unit of Excellent Educational Welfare Society) is provided to basic computer knowledge through this blog.

Most Recent Posts

  • All Posts
  • Artificial Intelligence
  • Certificate Courses
  • Computer Courses
  • Data Analytics
  • Diploma
  • Education
  • Google News
  • Google Sheet
  • Govt Exams Preparation
  • Marketing
  • Typing [ट्यपिंग]
  • UP Sarkari Job
  • अक्सर पूछे जाने वाले प्रश्न [GK]
  • आनलाइन अर्निंग साइट [Online Earning Sits]
  • आनलाइन टेस्ट [Online Test]
  • इंटरनेट ज्ञान [Internet]
  • एक्सेल मैक्रो
  • एम एस वर्ड [MS Word]
  • एस एस एक्से्ल [Excel]
  • कंप्यूटर बुक्स [Computer Books]
  • कम्प्यूटर हार्डवेयर ज्ञान [Computer Hardware]
  • कोरल ड्रा [Corel Draw]
  • गूगल ड्राइव [Google Drive]
  • टेक्नोलॉजी [Technology]
  • टेक्नोलॉजी [Technology]इंटरनेट ज्ञान [Internet]
  • टैली [Tally]
  • डाउनलोड [Download]
  • डिजीटल मार्केटिंग ज्ञान [Digital Marketing]
  • पावर पाइंट [Power Point]
  • फॉटोशॉप [Photoshop]
  • बेसिक ज्ञान [Basic Knowledge]
  • लिब्रा आफिस [Libre Office]
  • सी.सी.सी. महत्वपूर्ण नोटस [CCC Notes]

    Excellent Computer Education

UG-10, Goel Palace,
Faizabad Road, Indira Nagar,
Lucknow, Uttar Pradesh – 226016

Phone / WhatsApp: +91 9795720993

FAQs

Terms & Conditions

Download Our App

© 2024 Created with Excellent Computer Education, Lucknow