Internet of Things (IoT) Lab — Free Notes & Tutorial
Free IoT Lab practicals for BCA — Arduino, Raspberry Pi, sensor programs and IoT project exercises at SikshaSarovar.
This Internet of Things (IoT) Lab course is part of Siksha Sarovar and is 100% free for students in India — no sign-up required to read. It contains 10 structured lessons with examples, and pairs with our free online compiler and AI tutor.
What you will learn
- Arduino
- Sensors
- Raspberry Pi
- IoT lab programs
Course content (10 lessons)
- Practical 1: Study and Install IDE of Arduino — Program Statement Study and Install IDE of Arduino. CO Mapping CO1, CO2 Objective To understand the Arduino IDE environment and successfully install it on your system. Steps to…
- Practical 2: Add Libraries in Arduino and Setup Arduino IDE — Program Statement Write the steps to add libraries in Arduino and setup of Arduino IDE for programming. CO Mapping CO2, CO3 Objective To learn how to add external libraries to…
- Practical 3: Blink LED using Arduino — Program Statement Write a Program using Arduino for Blink LED. CO Mapping CO2, CO3 Objective To write and upload a program on Arduino to blink an LED connected to pin 13.…
- Practical 4: Temperature Monitoring using Arduino and LM35 — Program Statement Write a Program for monitoring Temperature using Arduino and LM35 Temperature Sensors. CO Mapping CO2, CO3 Objective To read analog temperature values from an…
- Practical 5: Controlling Raspberry Pi with WhatsApp — Program Statement Write a Program for Controlling Raspberry Pi with WhatsApp. Objective To control a Raspberry Pi device (e.g., turn an LED on/off) remotely by sending WhatsApp…
- Practical 6: Fade LED using analogWrite() — Program Statement Write a program to show how to fade an LED on pin 9 using the analogWrite() function. CO Mapping CO3, CO4 Objective To gradually increase and decrease LED…
- Practical 7: Add Blynk Libraries for NodeMCU and IFTTT Setup — Program Statement Write the steps to add Blynk libraries for NodeMCU and create an account on IFTTT for home automation. CO Mapping CO2, CO3, CO4 Objective To configure Arduino…
- Practical 8: Fade LED using NodeMCU (ESP8266) and Blynk App — Program Statement Write a program of Fade LED using NodeMCU (ESP8266) and Blynk app. CO Mapping CO2, CO3, CO4 Objective To control LED brightness remotely using a Slider widget in…
- Practical 9: Smart Dustbin using Ultrasonic Sensor and Servo Motor — Program Statement Write a program for Arduino by using Ultrasonic sensors and servo motor (HC-SR04), and make a smart dustbin. CO Mapping CO2, CO3, CO4 Objective To build an…
- Practical 10: Control Bulb ON/OFF using Blynk App — Program Statement Write a program for controlling bulb on/off by using Blynk app. CO Mapping CO2, CO3, CO4 Objective To remotely control a bulb (or relay-connected load) ON and…
Practical 1: Study and Install IDE of Arduino
Program Statement
Study and Install IDE of Arduino.
CO Mapping
CO1, CO2
Objective
To understand the Arduino IDE environment and successfully install it on your system.
Steps to Install Arduino IDE
Step 1: Download Arduino IDE
- Open a web browser and go to the official Arduino website: https://www.arduino.cc/en/software
- Under "Downloads", select the version suitable for your operating system (Windows, macOS, or Linux).
- For Windows, click on "Windows Win 10 and newer, 64 bits" to download the installer (
.exe).
Step 2: Run the Installer
- Locate the downloaded
.exefile in your Downloads folder. - Double-click the installer to run it.
- Accept the License Agreement by clicking "I Agree".
- Choose components to install (keep all default options checked) and click "Next".
- Choose the installation folder (default is recommended) and click "Install".
- The installer may prompt you to install USB drivers — click "Install" to allow them.
- Click "Finish" once installation is complete.
Step 3: Launch and Explore the IDE
- Open Arduino IDE from the desktop shortcut or Start menu.
- The IDE opens with a default empty sketch (
setup()andloop()functions).
Key Components of the Arduino IDE Interface
| Component | Description |
|---|---|
| Verify (✓) | Compiles the code to check for errors |
| Upload (→) | Compiles and uploads code to the Arduino board |
| New | Creates a new blank sketch |
| Open | Opens a previously saved sketch |
| Save | Saves the current sketch |
| Serial Monitor | Opens a terminal to communicate with the board |
| Sketch Editor | Main area where you write your code |
Important Menus
- Tools > Board — Select your Arduino board (e.g., Arduino Uno, Nano, Mega)
- Tools > Port — Select the COM port to which the Arduino is connected
- File > Examples — Browse hundreds of built-in example programs
- Sketch > Include Library — Add external libraries to your sketch
Minimum System Requirements
| Requirement | Value |
|---|---|
| OS | Windows 10 / macOS 10.14+ / Linux |
| RAM | 2 GB minimum (4 GB recommended) |
| Storage | 500 MB free disk space |
| Java | Bundled with IDE (no separate install needed) |
Result
Arduino IDE has been successfully studied and installed on the system.
Practical 2: Add Libraries in Arduino and Setup Arduino IDE
Program Statement
Write the steps to add libraries in Arduino and setup of Arduino IDE for programming.
CO Mapping
CO2, CO3
Objective
To learn how to add external libraries to Arduino IDE and configure the IDE for programming a board.
Part A: Adding Libraries in Arduino IDE
There are three methods to add libraries:
---
Method 1: Using the Library Manager (Recommended)
- Open Arduino IDE.
- Go to Sketch > Include Library > Manage Libraries... (or press
Ctrl + Shift + I). - The Library Manager window opens.
- In the search box, type the name of the library (e.g.,
DHT sensor library). - Select the desired library from the list.
- Click the "Install" button.
- Once installed, the library appears in Sketch > Include Library menu.
---
Method 2: Installing a .zip Library
- Download the library as a
.zipfile from GitHub or another source. - In Arduino IDE, go to Sketch > Include Library > Add .ZIP Library...
- Browse to the downloaded
.zipfile and click "Open". - The library is installed and available immediately.
---
Method 3: Manual Installation
- Download and extract the library folder.
- Copy the extracted folder to the Arduino libraries directory:
- Windows:
C:\Users\<YourName>\Documents\Arduino\libraries\ - macOS/Linux:
~/Documents/Arduino/libraries/
- Restart the Arduino IDE.
- The library will now appear in Sketch > Include Library.
---
Part B: Arduino IDE Setup for Programming
Step 1: Connect the Arduino Board
- Connect the Arduino board to the computer using a USB cable.
Step 2: Select the Correct Board
- Go to Tools > Board > Arduino AVR Boards.
- Select your board (e.g., Arduino Uno).
Step 3: Select the Correct Port
- Go to Tools > Port.
- Select the COM port that corresponds to your Arduino (e.g.,
COM3on Windows or/dev/ttyUSB0on Linux).
Step 4: Verify a Test Sketch
- Go to File > Examples > 01.Basics > Blink.
- Click the Verify (✓) button to compile.
- Click the Upload (→) button to upload to the board.
- The onboard LED should start blinking — confirming the setup is correct.
Step 5: Use Serial Monitor
- Go to Tools > Serial Monitor (or press
Ctrl + Shift + M). - Set the baud rate to match
Serial.begin(9600)in your code. - Use it to print debug messages from your Arduino program.
Result
Libraries have been successfully added and Arduino IDE has been configured for programming.
Frequently asked questions
Is the Internet of Things (IoT) Lab course really free?
Yes. The entire Internet of Things (IoT) Lab course on Siksha Sarovar is free to read with no account required. You can optionally sign in with Google to save your progress.
Do I get a certificate for Internet of Things (IoT) Lab?
Yes — finish the lessons and pass the quiz to earn a free, verifiable certificate you can share on LinkedIn or with recruiters.
Can I run code while learning?
Yes. The built-in online compiler runs C, C++, Python, Java, PHP, JavaScript, C# and SQL directly in your browser — no installation needed.