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
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?
- Read the Question: Practical question को ध्यान से पढ़ें।
- Understand Components: Arduino board, LED, resistor और sensors की पहचान करें।
- Make Connections: Circuit diagram या connection table के अनुसार wiring करें।
- Write the Program: Arduino IDE में source code लिखें।
- Verify and Upload: Code verify करके board पर upload करें।
- Observe Output: LED, sensor या serial monitor का output देखें।
- Write Practical File: Aim, components, code, output और conclusion लिखें।
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
- Built-in LED ON for 2 seconds.
- Built-in LED OFF for 2 seconds.
- This process repeats continuously.
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 / Component | Arduino 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);
} 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);
}
} - 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);
} 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);
} 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 Pin | Arduino UNO |
|---|---|
| VCC | 5V |
| GND | GND |
| TRIG | Pin 9 |
| ECHO | Pin 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);
} 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);
} How to Write an IoT Practical File?
Students should maintain a practical notebook using the following format:
| Section | What to Write |
|---|---|
| Practical Number | Serial number of practical |
| Aim | Purpose of the program |
| Components Required | Hardware and electronic components |
| Circuit Connection | Pin connection table or circuit diagram |
| Program | Complete Arduino source code |
| Output | Actual observation or Serial Monitor screenshot |
| Result | Conclusion of the experiment |
O Level IoT Practical Practice Questions
- Write a program to blink the built-in LED with a delay of 2 seconds.
- Write a program to blink an external LED using Arduino.
- Write a program to control an LED using a push button.
- Write a program to generate sound using a buzzer.
- Read light intensity using an LDR sensor.
- Measure object distance using an ultrasonic sensor.
- Read temperature using an LM35 sensor.
- Explain the working of Arduino UNO.
- Explain the difference between a sensor and an actuator.
- Draw a basic IoT system architecture diagram.
- Explain smart home automation with an example.
- Explain IoT communication protocols.
- Describe IoT security challenges.
- Explain the role of cloud computing in IoT.
- 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.
Related O Level Study Material & Practical Resources
Explore more learning resources from Excellent Computer Education.
O Level Practical Exam 2027
Important practical questions, solved programs and viva preparation for all O Level modules.
Read Practical Guide →O Level Study Material
Explore notes, study material and practical preparation resources for O Level students.
Download Study Material →O Level IoT Mock Test
Practice objective questions and revise Internet of Things concepts online.
Practice Online Mock Tests →O Level Video Classes
Revise important concepts with video-based learning and practical demonstrations.
Watch Video Classes →O Level Course in Lucknow
Explore O Level course details and practical training information.
View O Level Course →NIELIT O Level Project Guide
Read project planning and submission guidance for O Level students.
Explore Project Guide →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.
Official NIELIT Information
For the latest O Level syllabus, examination notifications and student instructions, visit the official NIELIT 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 EnquiryFrequently 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


