Zed-King Institute
    All Notes

    O Level · Previous Year Practical Questions

    PR-4 Previous Year Practical Questions with Solutions

    Zed-King Study app · Free

    O Level students across India practise here, free

    Daily M1–M4 quizFull 100-question mocksAll-India rank
    Open the free app

    Google login · no Play Store needed

    🏆 Free All-India Sunday Mock · Sun, 29 Nov, 11 AM · CCC + O LevelRegister

    About this PDF

    The same previous year programs, with the components, wiring and Arduino code for each one.

    This is part of the free O Level PR-4 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.

    Course
    O Level — NIELIT Foundation Diploma
    Module
    PR4 — PR-4: M4-R5.1 Internet of Things (IoT) — Practical
    Section
    Previous Year Practical Questions
    Format
    PDF — read online or download
    Price
    Free, no sign-up required

    Text from this PDF

    The opening pages as plain text — open the reader above for tables, diagrams and the full file.

    M4-R5.1 Practical Marathon Introduction to Internet of Things and It’s Application Practical -1 Object Code: Write a program to buzz when water is detect by a water sensor.

    Water Sensor Buzzer Connect the Water Sensor:

    Connect the VCC pin of the water sensor to 5V on Arduino.

    Connect the GND pin of the water sensor to GND on Arduino.

    Connect the Signal (S) pin of the water sensor to digital pin 2 on Arduino.

    Connect the Buzzer:

    Connect the positive (+) pin of the buzzer to digital pin 8 on Arduino.

    Connect the negative (–) pin of the buzzer to GND on Arduino.

    Practical -2 Object Code: Write a program to control the led with three separate buttons.

    Three Push Buttons Insert one end of the resistor into the same row as the LED’s anode.

    Insert the other end of the resistor into the GND row of the breadboard.

    Connect a jumper wire from digital pin 13 of Arduino to the LED anode row.

    Connect Arduino GND to the GND row of the breadboard.

    Connect the Three Buttons:

    Insert all three buttons on the breadboard.

    Connect one side of each button to 5V.

    Connect the other side of buttons to:

    Button 1 digital pin 2 Button 2 digital pin 3 Button 3 digital pin 4 Practical -3 Object Code: Write a program for controlling the led with a push button state and led state.

    Push Button Insert one end of the resistor into the same row as the LED’s anode.

    Insert the other end of the resistor into the GND row of the breadboard.

    Connect a jumper wire from digital pin 13 of Arduino to the LED anode row.

    Connect Arduino GND to the GND row of the breadboard.

    Connect the Three Buttons:

    Insert the push button on the breadboard.

    Connect one side of the button to 5V.

    Connect the other side of the button to digital pin 2.

    Use a resistor from pin 2 to GND (pull-down resistor)

    Practical - 4 Object Code: Write a program to display button press count on an LCD.

    LCD Push Button Potentiometer Connect the LCD:

    LCD VSS GND LCD VDD 5V LCD V0 Middle pin of potentiometer Potentiometer other two pins 5V and GND LCD RS Arduino digital pin 7 LCD RW GND LCD EN Arduino digital pin 6 LCD D4 Arduino digital pin 5 LCD D5 Arduino digital pin 4 LCD D6 Arduino digital pin 3 LCD D7 Arduino digital pin 2 Connect the Push Button:

    One side of button 5V Other side of button Arduino digital pin 8 Connect a resistor from pin 8 to GND (pull-down resistor)

    Practical - 5 Object Code: Write a program for detection of the light using photo resistor with output as light detected and LED state.

    Photo Resistor (LDR)

    Resistor for LED)

    Resistor for LDR)

    Connect the Photo Resistor (LDR):

    Connect one leg of LDR to 5V.

    Connect the other leg of LDR to analog pin A0.

    Connect a resistor from A0 to GND (voltage divider).

    Connect a resistor from LED anode to digital pin 13.

    Connect the shorter leg (cathode) of LED to GND.

    Practical - 6 Object Code: Write a program to develop alert system using Flame sensor.

    Flame Sensor Buzzer Connect the Flame Sensor:

    Flame sensor VCC Arduino 5V Flame sensor GND Arduino GND Flame sensor DO (Digital Output) Arduino digital pin 2 LED anode (long leg) digital pin 13 through resistor LED cathode (short leg) GND Connect the Buzzer:

    Buzzer positive (+) digital pin 8 Buzzer negative (–) GND Practical - 7 Object Code: Use the Serial Monitor in the Arduino IDE to display a message (“ Hello, Arduino!”) upon successfully uploading a sketch. How does the Serial Monitor help in debugging?

    Practical - 8 Object Code: Write a program to read values from a soil moisture sensor.

    Soil Moisture Sensor Breadboard and jumper wire Connect the Soil Moisture Sensor:

    --- Sensor VCC Arduino 5V --- Sensor GND Arduino GND --- Sensor AO (Analog Output) Arduino A0 Practical - 9 Object Code: Write a program to control a relay using a button.

    Relay Module Push Button Connect the Relay Module:

    More previous year practical questions for PR-4

    Run these Arduino sketches on a virtual board — free

    No kit needed: wire a virtual Arduino Uno in the simulator and watch the LEDs, LCD and sensors respond to your sketch. Each explained project gives the code and the wiring.

    Prepare for O Level with expert guidance

    Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.

    Drag me!