0% found this document useful (0 votes)
89 views36 pages

Lab Manual IoT 5th Sem-1 - 240927 - 103358

Lab manual of IoT 5th sem civil engineering helpful for all diploma students
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views36 pages

Lab Manual IoT 5th Sem-1 - 240927 - 103358

Lab manual of IoT 5th sem civil engineering helpful for all diploma students
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

GOVERNMENT POLYTECHNIC ASTHAWAN,

NALANDA

LAB MANUAL
Vth Sem.
Subject:- Internet of Things (Basic)
(IoT Lab)
[200508 C]

1
Index
Sl.No. Laboratory Practical Titles Page No.
01 Prepare a list of platforms used for IoT. 3
02 Prepare a list of features of above IoT platforms. 4-8
03 Prepare a list of features provided by python language 9-10
for IoT applications.
04 Establish Connectivity between various components of 11
IoT.
05 Establish Connection between Arduino and Bluetooth 12-13
module.
06 Establish Connection using WiFi. 14-15
07 Publish data on the IoT platform. 16-17

08 Measure the temperature of a remotely located temperature 18-19


sensor Using IOT based temperature data-monitoring system.
09 Measure the humidity of a remotely located temperature sensor 20-21
Using IOT based temperature data-monitoring system.
10 Measure the pressure of a remotely located temperature sensor 22-23
Using IOT based temperature data-monitoring system.
11 Publish the data using Mqtt 24-25
12 Download and Configure POSTMAN Applications 26-27

13 Verify REST APIs through POSTMAN. 28-29

14 Verify JSON APIs through POSTMAN. 30-31

15 Verify SOAP APIs through POSTMAN. 32-33


16 Identify components for given project 34-35
17 Estimate the cost to make Project working. 36

2
Experiment No: - 01
Aim: - Prepare a list of platforms used for IoT.
Theory: - An IoT platform serves as a mediator between the world of physical objects
and the world of actionable insights. Combining numerous tools and functionalities,
Internet of Things platforms enable you to build unique hardware and software products
for collecting, storing, analysing and managing the plethora of data generated by your
connected devices and assets.

List of platforms used for IoT.

1. Google Cloud IoT

2. Cisco IoT Cloud Connect

3. Salesforce IoT Cloud

4. IRI Voracity

5. Particle

6. IBM Watson IoT

7. ThingWorx

8. Amazon AWS IoT Core

9. Microsoft Azure IoT Hub

10. Oracle IoT

3
Experiment No: - 02

Aim: - Prepare a list of features of above IoT platforms.


Theory:
Features of above IoT platforms:
1. Google Cloud IoT:
Google launched its platform for Internet of Things development on the basis of its
end-to-end Google Cloud Platform. Currently, it’s one of the world’s top Internet of
Things platforms. Google Cloud IoT is the integration of various services that add
value to connected solutions.
• Cloud IoT Core allows you to capture and handle device data. A device
manager component is used to register devices with the service, and monitor and
configure them. MQTT and HTTP protocol bridges are used for device connection and
communication with the Google Cloud Platform.
• Cloud Pub/Sub performs data ingestion and message routing for further data
processing.
• Google BigQuery enables secure real-time data analytics.
• AI Platform applies machine learning features.
• Google Data Studio visualizes data by making reports and dashboards.
• Google Maps Platform helps visualize the location of connected assets.
The platform automatically integrates with Internet of Things hardware producers such as
Intel and Microchip. It supports various operating systems, including Debian Linux OS.
Core features of Google Cloud IoT:
• AI and machine learning capabilities
• Real-time data analysis
• Strong data visualization
• Location tracking

2. Cisco IoT Cloud Connect:


Cisco IoT Cloud Connect is originally an offering for mobile operators. This mobility cloud-
based software suite for industrial and individual use cases is on the list of the best

4
Internet of Things cloud platforms. Cisco also provides reliable IoT hardware, including
switches, access points, routers, gateways and more.
Take a look at some examples of powerful Cisco Internet of Things products and
solutions.
• Cisco IoT Control Center ensures impeccable cellular connectivity management,
allowing you to integrate all your IoT devices in one SaaS solution.
• Extended Enterprise Solution allows for the development of IoT business
applications at the edge and ensures rapid deployment and centralized network
management.
• Edge Intelligence simplifies data processing by allocating data flows either to local or
multi-cloud environments.
• Industrial Asset Vision utilizes sensors to monitor your assets continuously and
deliver data for better decision-making.
• Cisco IoT Threat Defense protects sensible data and devices against cyberattacks,
providing secure remote access, segmentation, visibility and analysis, and other
security services.

Core features of Cisco IoT Cloud Connect:


• Powerful industrial solutions
• High-level security
• Edge computing
• Centralized connectivity and data management

3. Salesforce IoT Cloud:


Salesforce specializes in customer relations management and masterfully enhances this
segment with the help of IoT solutions.
The Salesforce IoT Cloud platform gathers valuable information from connected devices to
deliver personalized experiences to and build stronger relationships with your customers. It
works in tandem with Salesforce CRM: data from connected assets is delivered directly to
the CRM system where context-based actions are initiated immediately.
For example, if sensors detect an error in windmill performance, it is instantly reflected in
the CRM dashboard and the system can either adjust parameters automatically or create a
service ticket.
Core features of Salesforce IoT Cloud:

5
• Full integration of customers, products and CRM
• No need for programming skills to create rules, conditions and events due to a simple
point-and-click UI
• Compatibility with third-party websites, services and other products
• A proactive approach to customer issues and needs

By using Salesforce IoT Cloud, businesses get a holistic view of customer data, improve
customer experience and increase sales.

4. IRI Voracity:
If you need an all-in-one data management platform that enables IoT data control at every
stage of your business processes, IRI Voracity is the perfect fit.
This platform uses two engines, IRI CoSort and Hadoop, to process Big Data. It can discover,
govern, integrate, analyze, transform and migrate data from various sources and in various
formats such as Unix, Linux or Windows file systems, ISAM, MongoDB, LDIF, HIVE, JSON, S3,
PostgreSQL, MQTT, Kafka and more.
Core features of IRI Voracity:
• A Data Governance Portal enables data search and classification in silos. It also
provides encryption and anonymization to comply with data privacy regulations.
• A Faster ETL and Analytic Alternative performs extraction and transformation of
large-sized data much faster than legacy ETL tools.
• A DB Ops Environment allows you to administer all your databases from one place.

5. Particle:
Particle offers an IoT edge-to-cloud platform for global connectivity and device
management, as well as hardware solutions, including development kits, production
modules and asset tracking devices. With Particle’s team of IoT experts, who provide end-
to-end professional services, you can develop your product from concept to production.
Core features of the Particle platform:
• Integration with third-party services via REST API
• Firewall-protected cloud
• Capability to work with data from Google Cloud or Microsoft Azure
• No need for technical expertise in order to use the platform

6. IBM Watson IoT:

6
An IoT platform built on IBM Cloud is a fully managed cloud service for device management,
flexible and scalable connectivity options, secure communications and data lifecycle
management. With IBM Watson IoT, you can collect insights from automobiles, buildings,
equipment, assets and things.
Core features of IBM Watson IoT:
• Data ingestion from any source with the help of MQTT
• Direct access to the latest data in the Cloudant NoSQL DB solution
• Built-in monitoring dashboards to control your assets
• Analytics Service to process raw metrics
• The Cloud Object Storage solution for long-term data archiving

7. ThingWorx:
The specialized Industrial Internet of Things (IoT) platform ThingWorx is used in a variety of
manufacturing, service and engineering scenarios. The platform addresses common
challenges across industries, from remote monitoring and maintenance to workforce
efficiency and asset optimization.
Core features of ThingWorx:
• Access to multiple data sources due to the extension of traditional industrial
communications
• Powerful ready-to-use tools and applications to create and scale IIoT solutions
quickly
• Real-time insights from complex industrial IoT data to proactively optimize
operations and prevent issues
• Total control over network devices, processes and systems

8. Amazon AWS IoT Core:


One of the leading players in the market, Amazon AWS IoT Core allows you to connect
devices to AWS cloud services without the need to manage servers. The platform provides
reliability and security for managing millions of devices.
Core features of Amazon AWS IoT Core:
• A wide choice of connection protocols, including MQTT, MQTT over WSS, HTT and
Lora WAN
• Ability to use with other AWS services such as AWS Lambda, Amazon Kinesis, Amazon
DynamoDB, Amazon CloudWatch, Alexa Voice Service and more to build IoT
applications

7
• A high level of security provided by end-to-end encryption throughout all points of
connection, automated configuration and authentication
• Machine learning capabilities
• A variety of services for edge computing

9. Microsoft Azure IoT Hub:


With the open-source Azure IoT platform from Microsoft, you can quickly build scalable and
secure edge-to-cloud solutions. Utilizing ready-to-use tools, templates and services, you can
develop flexible applications according to your company’s needs.
Core features of Azure IoT Hub:
• Data protection all the way from the edge to the cloud
• The ability to operate even in offline mode with Azure IoT Edge
• Seamless integration with other Azure services
• Enhanced AI solutions
• Continuous cloud-scale analytics
• Fully managed databases
• Azure Industrial IoT solution

10.Oracle IoT:
The Internet of Things Cloud Service by Oracle is a managed Platform as a Service (PaaS) for
connecting your devices to the cloud.
Core features of Oracle IoT:
• The ability to create applications and connect them to devices with JavaScript, Java,
Android, iOS, C POSIX and REST APIs
• Integration with enterprise applications, web services and other Oracle Cloud
Services
• Real-time analysis tools to aggregate and filter incoming data streams
• Automatic synchronization of data streams with Oracle Business Intelligence Cloud
Service
• Unique digital identity for each device to establish trust relationships among devices
and applications.

8
Experiment No: - 3

Aim: - Prepare a list of features provided by python language for IoT


applications.
Theory: Features provided by python language for IoT applications
Python provides many useful features which make it popular and valuable from the other
programming languages. It supports object-oriented programming, procedural
programming approaches and provides dynamic memory allocation. We have listed below a
few essential features.

1. Easy to Learn and Use


Python is easy to learn as compared to other programming languages. Its syntax is
straightforward and much the same as the English language. There is no use of the
semicolon or curly-bracket, the indentation defines the code block. It is the recommended
programming language for beginners.

2.Expressive Language
Python can perform complex tasks using a few lines of code. A simple example, the hello
world program you simply type print("Hello World"). It will take only one line to execute,
while Java or C takes multiple lines.

3. Interpreted Language
Python is an interpreted language; it means the Python program is executed one line at a
time. The advantage of being interpreted language, it makes debugging easy and portable.

4. Cross-platform Language

Python can run equally on different platforms such as Windows, Linux, UNIX, and
Macintosh, etc. So, we can say that Python is a portable language. It enables programmers
to develop the software for several competing platforms by writing a program only once.

5. Free and Open Source


Python is freely available for everyone. It is freely available on its official
website www.python.org. It has a large community across the world that is dedicatedly
working towards make new python modules and functions. Anyone can contribute to the

9
Python community. The open-source means, "Anyone can download its source code
without paying any penny."

6. Object-Oriented Language
Python supports object-oriented language and concepts of classes and objects come into
existence. It supports inheritance, polymorphism, and encapsulation, etc. The object-
oriented procedure helps to programmer to write reusable code and develop applications
in less code.

7. Extensible
It implies that other languages such as C/C++ can be used to compile the code and thus it
can be used further in our Python code. It converts the program into byte code, and any
platform can use that byte code.

8. Large Standard Library


It provides a vast range of libraries for the various fields such as machine learning, web
developer, and also for the scripting. There are various machine learning libraries, such as
Tensor flow, Pandas, Numpy, Keras, and Pytorch, etc. Django, flask, pyramids are the
popular framework for Python web development.

9. Integrated
It can be easily integrated with languages like C, C++, and JAVA, etc. Python runs code line
by line like C,C++ Java. It makes easy to debug the code.

10.Embeddable
The code of the other programming language can use in the Python source code. We can
use Python source code in another programming language as well. It can embed other
language into our code.

11. Dynamic Memory Allocation


In Python, we don't need to specify the data-type of the variable. When we assign some
value to the variable, it automatically allocates the memory to the variable at run time.
Suppose we are assigned integer value 15 to x, then we don't need to write int x = 15. Just
write x = 15.

10
Experiment No: - 4
Aim:- Establish Connectivity between various components of IoT.

Theory:- IoT (Internet of Things) devices typically consist of various components such as
sensors, processors, communication modules, and actuators. These components need to be
connected and communicate with each other to enable the functioning of the IoT system.
Here are some ways to establish connectivity between the

various components of IoT:Wired connectivity: This is the most common way to


connect IoT devices, where wires or cables are used to transmit data between the devices.
Ethernet, USB, and Serial communication are some of the popular wired connectivity
methods used in IoT.

1. Wireless connectivity: This method involves using wireless technologies to establish


communication between IoT devices. Wi-Fi, Bluetooth, Zigbee, and Lora WAN are
some of the popular wireless connectivity methods used in IoT.
2. Cloud connectivity: IoT devices can be connected to cloud platforms such as Amazon
Web Services, Microsoft Azure, and Google Cloud to enable remote monitoring, data
analysis, and control.
3. MQTT protocol: This protocol is commonly used in IoT to establish communication
between devices, especially in low-bandwidth and high-latency scenarios. It uses a
publish-subscribe messaging model where a central broker handles the
communication between devices.
4. CoAP protocol: This is a lightweight protocol designed for IoT devices that operate on
low-power and low-bandwidth networks. It is commonly used for communication
between sensors and actuators in IoT systems.

Overall, the choice of connectivity method depends on the specific requirements of


the IoT system and the available resources.

11
Experiment No: - 5
Aim:- Establish Connection between Arduino and Bluetooth module.
Procedure:- To establish a connection between an Arduino and a Bluetooth
module, you can follow these general steps:

Choose a Bluetooth module: There are various types of Bluetooth modules available in
the market, such as HC-05, HC-06, and HM-10. Choose a module that suits your project
requirements.

1. Connect the Bluetooth module to the Arduino: Connect the TX pin of the
Bluetooth module to the RX pin of the Arduino and vice versa. You also need to
connect the GND and VCC pins of the Bluetooth module to the GND and 5V pins of
the Arduino, respectively.
2. Upload a program to the Arduino: You can use the Arduino IDE to upload a
program to the Arduino that can communicate with the Bluetooth module. You can
find sample codes and libraries for Bluetooth communication on the internet.
3. Test the connection: After uploading the program to the Arduino, you can test
the connection by pairing the Bluetooth module with a smartphone or a computer.
You can use a Bluetooth terminal app on your smartphone or a serial terminal app
on your computer to send and receive data from the Arduino.

Here's an example code that uses the SoftwareSerial library to communicate


with an HC-05 Bluetooth module connected to an Arduino:

#include <SoftwareSerial.h>

SoftwareSerial bluetooth(2, 3); // RX, TX pins of the Bluetooth module

void setup() {

Serial.begin(9600);

bluetooth.begin(9600);

void loop() {
12
if (bluetooth.available()) {

char c = bluetooth.read();

Serial.print(c);

if (Serial.available()) {

char c = Serial.read();

bluetooth.print(c); }}

This code sets up a serial communication between the Arduino and the Bluetooth
module using pins 2 and 3 as the RX and TX pins, respectively. It reads data from the
Bluetooth module and prints it on the serial monitor of the Arduino, and vice versa.
Note that you need to pair the Bluetooth module with your smartphone or
computer before testing this code.

13
Experiment No: - 6
Aim:- Establish Connection using WiFi.

Procedure:- To establish a connection between an Arduino board and a Wi-Fi network,


you will need to follow these steps:

1. Obtain a Wi-Fi module: You will need a Wi-Fi module that can connect to your
Arduino board. There are several options available, such as the ESP8266 or ESP32.
2. Connect the Wi-Fi module: You will need to connect the Wi-Fi module to your
Arduino board according to its specific wiring instructions. Generally, this will involve
connecting the power, ground, and communication pins.
3. Install the necessary libraries: You will need to install the necessary libraries to
control the Wi-Fi module. This can be done through the Arduino IDE's library
manager.
4. Write the code: You will need to write code that can connect to your Wi-Fi network.
This will typically involve specifying the network's SSID and password.
5. Upload the code: Upload the code to your Arduino board using the Arduino IDE.

Here is an example code for connecting to a Wi-Fi network using an ESP8266 Wi-Fi
module:

#include <ESP8266WiFi.h>

const char* ssid = "YourSSID";

const char* password = "YourPassword";

void setup() {

Serial.begin(9600);

delay(10);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {

delay(500);

Serial.println("Connecting to WiFi...");

14
}

Serial.println("Connected to WiFi network");

void loop() {

Note that this is just a basic example and you will need to modify it to fit your specific
requirements.

15
Experiment No: - 7
Aim:- Publish data on the IoT platform.

Procedure:- Publishing data on an IoT platform involves the following general steps:
Materials Required :

• Microcontroller board (Arduino or Raspberry Pi)


• Sensor (temperature, humidity, pressure, etc.)
• Wi-Fi or Ethernet module
• Breadboard and jumper wires
• USB cable for programming the microcontroller
• Computer with Arduino IDE and a serial monitor program
• IoT platform account
Part 1: Setting up the hardware
1. Connect the sensor to the microcontroller board. Use the appropriate pins for the
sensor you are using. Refer to the sensor's datasheet or documentation for pin
connections.
2. Connect the Wi-Fi or Ethernet module to the microcontroller board. Refer to the
module's documentation for pin connections.
3. Connect the USB cable to the microcontroller board and the computer.
Part 2: Programming the microcontroller
1. Open the Arduino IDE on your computer.
2. Write code for the microcontroller that reads the data from the sensor and sends it
to the IoT platform. Use the platform's API or SDK to send the data. Refer to the
platform's documentation for instructions on how to send data.
3. Upload the code to the microcontroller board.
4. Open the serial monitor to verify that the data is being read correctly from the sensor
and sent to the IoT platform.
Part 3: Visualizing the data on the IoT platform
1. Log in to your IoT platform account.
2. Create a new project and configure the project settings.
3. Use the platform's API or SDK to receive the data from the microcontroller board.

16
4. Visualize the data on the platform's dashboard or analytics tools. You may need to
set up the visualization tools to display the data correctly.
5. Set up alerts or notifications if the data exceeds a certain threshold. Refer to the
platform's documentation for instructions on how to set up alerts.
Part 4: Testing and Troubleshooting
1. Test the system by monitoring the data on the platform and comparing it to known
values. Verify that the data is being sent and received correctly.
2. Troubleshoot any issues that arise, such as connectivity issues or incorrect readings.
Use the platform's documentation and community forums for help in
troubleshooting.
Overall, publishing data on an IoT platform is a powerful tool for monitoring and controlling
remote environments. With careful planning and attention to detail, you can successfully
implement an IoT-based data monitoring system.

17
Experiment No: - 8
Aim:- Measure the temperature of a remotely located temperature sensor Using IOT based
temperature data-monitoring system.
Procedure:- To measure the temperature of a remotely located temperature sensor using
an IoT-based temperature data-monitoring system, you can follow these steps:

Materials Required :

• Microcontroller board (Arduino or Raspberry Pi)


• Temperature sensor (e.g., DS18B20, DHT11, LM35, etc.)
• Wi-Fi or Ethernet module
• Breadboard and jumper wires
• USB cable for programming the microcontroller
• Computer with Arduino IDE and a serial monitor program
• IoT platform account
Part 1: Setting up the hardware
1. Connect the temperature sensor to the microcontroller board. Use the appropriate
pins for the sensor you are using. Refer to the sensor's datasheet or documentation
for pin connections. Connect the Wi-Fi or Ethernet module to the microcontroller
board. Refer to the module's documentation for pin connections.
2. Connect the USB cable to the microcontroller board and the computer.
Part 2: Programming the microcontroller
1. Open the Arduino IDE on your computer.
2. Install the required libraries for the temperature sensor you are using. These libraries
can be found online or through the Arduino IDE library manager. Write code for the
microcontroller that reads the temperature data from the sensor and sends it to the
IoT platform. Use the platform's API or SDK to send the data. Refer to the platform's
documentation for instructions on how to send data.
3. Upload the code to the microcontroller board.
4. Open the serial monitor to verify that the data is being read correctly from the sensor
and sent to the IoT platform.
Part 3: Visualizing the data on the IoT platform
1. Log in to your IoT platform account.
2. Create a new project and configure the project settings.
3. Use the platform's API or SDK to receive the temperature data from the
microcontroller board.
18
4. Visualize the temperature data on the platform's dashboard or analytics tools. You
may need to set up the visualization tools to display the data correctly.
5. Set up alerts or notifications if the temperature exceeds a certain threshold. Refer to
the platform's documentation for instructions on how to set up alerts.
Part 4: Testing and Troubleshooting
1. Test the system by monitoring the temperature data on the platform and comparing
it to known values. Verify that the data is being sent and received correctly.
2. Troubleshoot any issues that arise, such as connectivity issues or incorrect readings.
Use the platform's documentation and community forums for help in
troubleshooting.
Overall, measuring the temperature of a remotely located temperature sensor using an IoT
based temperature data-monitoring system can be a valuable tool for monitoring and
controlling temperature in various settings, such as industrial environments, greenhouses,
and homes. With careful planning and attention to detail, you can successfully implement
an IoT-based temperature monitoring system.

19
Experiment No: - 9
Aim:- Measure the humidity of a remotely located temperature sensor Using IOT based
temperature data-monitoring system.

Procedure:- To measure the humidity of a remotely located temperature sensor using an


IoT-based temperature data-monitoring system, you can follow these steps:

Materials Required :

• Microcontroller board (Arduino or Raspberry Pi)


• Humidity sensor (e.g., DHT11, DHT22, BME280, etc.)
• Wi-Fi or Ethernet module Breadboard and jumper wires
• USB cable for programming the microcontroller
• Computer with Arduino IDE and a serial monitor program
• IoT platform account

Part 1: Setting up the hardware

1. Connect the humidity sensor to the microcontroller board. Use the appropriate pins
for the sensor you are using. Refer to the sensor's datasheet or documentation for
pin connections.
2. Connect the Wi-Fi or Ethernet module to the microcontroller board. Refer to the
module's documentation for pin connections.
3. Connect the USB cable to the microcontroller board and the computer.

Part 2: Programming the microcontroller

1. Open the Arduino IDE on your computer.


2. Install the required libraries for the humidity sensor you are using. These libraries can
be found online or through the Arduino IDE library manager.
3. Write code for the microcontroller that reads the humidity data from the sensor and
sends it to the IoT platform. Use the platform's API or SDK to send the data. Refer to
the platform's documentation for instructions on how to send data.
4. Upload the code to the microcontroller board.
5. Open the serial monitor to verify that the data is being read correctly from the sensor
and sent to the IoT platform.

Part 3: Visualizing the data on the IoT platform

1. Log in to your IoT platform account.


2. Create a new project and configure the project settings.
3. Use the platform's API or SDK to receive the humidity data from the microcontroller
board.
20
4. Visualize the humidity data on the platform's dashboard or analytics tools. You may
need to set up the visualization tools to display the data correctly.
5. Set up alerts or notifications if the humidity exceeds a certain threshold. Refer to the
platform's documentation for instructions on how to set up alerts.

Part 4: Testing and Troubleshooting

1. Test the system by monitoring the humidity data on the platform and comparing it to
known values. Verify that the data is being sent and received correctly.
2. Troubleshoot any issues that arise, such as connectivity issues or incorrect readings.
Use the platform's documentation and community forums for help in
troubleshooting.
Overall, measuring the humidity of a remotely located temperature sensor using an IoT
based temperature data-monitoring system can be a valuable tool for monitoring and
controlling humidity in various settings, such as greenhouses, museums, and data centers.
With careful planning and attention to detail, you can successfully implement an IoT-based
humidity monitoring system.

21
Experiment No: - 10
Aim:- Measure the pressure of a remotely located temperature sensor Using IOT based
temperature data-monitoring system.

Procedure:- To measure the pressure of a remotely located temperature sensor using an


IoT-based temperature data-monitoring system, we can follow these steps:

Materials Required :

• Arduino board
• BMP180 or BMP280 pressure sensor
• Wi-Fi or Ethernet module
• Breadboard and jumper wires
• USB cable for programming the Arduino
• Computer with Arduino IDE and a serial monitor program
• IoT platform account

Part 1: Setting up the hardware

1. Connect the BMP180 or BMP280 sensor to the Arduino board. Use the following pin
connections:
• VCC to 3.3V
• GND to GND
• SDA to A4
• SCL to A5
2. Connect the Wi-Fi or Ethernet module to the Arduino board, if using a Wi-Fi or Ethernet
connection. Refer to the module's documentation for pin connections.
3. Connect the USB cable to the Arduino board and the computer.
Part 2: Programming the Arduino
1. Open the Arduino IDE on your computer.
2. In the IDE, go to File > Examples > Adafruit BMP085 Library > BMP085test.
3. Upload the code to the Arduino board.
4. Open the serial monitor to view the output from the sensor. The pressure readings
should appear in the serial monitor.
5. Modify the code to include the Wi-Fi or Ethernet connection, if applicable. Use the
IoT platform's API or SDK to send the pressure data to the platform. Refer to the
platform's documentation for instructions on how to send data.
22
Part 3: Visualizing the data on the IoT platform
1. Log in to your IoT platform account.
2. Create a new project and configure the project settings.
3. Use the platform's API or SDK to receive the pressure data from the Arduino board.
4. Visualize the data on the platform's dashboard or analytics tools. You may need to
set up the visualization tools to display the pressure data.
5. Set up alerts or notifications if the pressure readings exceed a certain threshold.
Refer to the platform's documentation for instructions on how to set up alerts.
Part 4: Testing and Troubleshooting
1. Test the system by placing the pressure sensor in a location with known pressure
readings. Check that the readings on the platform match the expected readings.
2. Troubleshoot any issues that arise, such as connectivity issues or incorrect readings.
Use the platform's documentation and community forums for help in
troubleshooting.
Overall, an IoT-based temperature data-monitoring system can provide real-time pressure
data from a remote location, allowing you to monitor and control pressure-sensitive
systems or environments. With careful planning and attention to detail, you can
successfully implement a pressure data-monitoring system using IoT technology.

23
Experiment No: - 11
Aim:- Publish the data using Mqtt.

Procedure:- To Publish the data using Mqtt ,we can follow these steps:

Materials Required :

• Microcontroller board (Arduino or Raspberry Pi)


• Wi-Fi or Ethernet module
• MQTT broker account (e.g., Mosquitto, CloudMQTT, etc.)
• MQTT client library (e.g., PubSubClient for Arduino)
• Breadboard and jumper wires
• USB cable for programming the microcontroller
• Computer with Arduino IDE and a serial monitor program
Part 1: Setting up the hardware
1. Connect the Wi-Fi or Ethernet module to the microcontroller board. Refer to the
module's documentation for pin connections.
2. Connect the USB cable to the microcontroller board and the computer.
Part 2: Setting up the MQTT broker
1. Sign up for an MQTT broker account. There are several options available, such as
Mosquitto, CloudMQTT, and HiveMQ.
2. Create a new MQTT topic that will be used to publish data from the microcontroller
board.
3. Note the MQTT broker URL, username, and password. These will be used in the
microcontroller code.
Part 3: Programming the microcontroller
1. Open the Arduino IDE on your computer.
2. Install the MQTT client library (e.g., PubSubClient) for the microcontroller board.
3. Write code for the microcontroller that publishes data to the MQTT broker. Use the
appropriate functions from the MQTT client library to connect to the broker,
authenticate with the credentials, and publish data to the topic.
4. Upload the code to the microcontroller board.
5. Open the serial monitor to verify that the data is being published correctly to the
MQTT broker.
Part 4: Testing and Troubleshooting

24
1. Test the system by monitoring the data on the MQTT broker dashboard or analytics
tools. Verify that the data is being published correctly to the topic.
2. Troubleshoot any issues that arise, such as connectivity issues or incorrect data. Use
the MQTT broker documentation and community forums for help in troubleshooting.
Overall, publishing data using MQTT can be a powerful tool for creating IoT systems that
can communicate with each other and share data. With careful planning and attention to
detail, you can successfully implement an MQTT-based data publishing system.

25
Experiment No: - 12
Aim:- Download and Configure POSTMAN Applications
Procedure:- To Download and Configure POSTMAN Applications, we can follow these steps:

Materials Required :

• Computer with internet access


• POSTMAN application
• API documentation or endpoint to test
Part 1: Downloading POSTMAN
1. Open a web browser on your computer and go to the official POSTMAN website
(https://www.postman.com/).
2. Click on the "Download" button to download the POSTMAN application for your
operating system.
3. Follow the installation prompts to install POSTMAN on your computer.
Part 2: Configuring POSTMAN
1. Open POSTMAN on your computer.
2. Sign up for a POSTMAN account or log in with your existing account.
3. On the POSTMAN dashboard, click on the "New" button to create a new request.
4. In the "Enter request URL" field, enter the API endpoint that you want to test.
5. Select the HTTP method (GET, POST, PUT, DELETE, etc.) for the request.
6. If the endpoint requires authentication, click on the "Authorization" tab and enter
the credentials.
7. If the endpoint requires any headers or parameters, click on the "Headers" or
"Params" tab and enter the necessary information.
8. Click on the "Send" button to send the request to the API endpoint.
9. View the response in the "Body" tab to verify that the request was successful.
Part 3: Testing and Troubleshooting
1. Test the endpoint with different inputs and parameters to verify that it works
correctly.
2. Use the POSTMAN console or error messages to troubleshoot any issues that arise.
3. Consult the API documentation or contact the API provider for help in
troubleshooting.

26
Overall, POSTMAN is a powerful tool for testing and debugging API endpoints. With careful
attention to detail and a solid understanding of the API, you can successfully use POSTMAN
to test and troubleshoot APIs.

27
Experiment No: - 13
Aim:- Verify REST APIs through POSTMAN.
Procedure:- To Verify REST APIs through POSTMAN, we can follow these steps:

Materials Required :

• Computer with internet access


• POSTMAN application
• API documentation or endpoint to test

Part 1: Set up POSTMAN

1. Open POSTMAN on your computer.


2. Sign up for a POSTMAN account or log in with your existing account.
3. On the POSTMAN dashboard, click on the "New" button to create a new request.
4. In the "Enter request URL" field, enter the API endpoint that you want to test.
5. Select the HTTP method (GET, POST, PUT, DELETE, etc.) for the request.
6. If the endpoint requires authentication, click on the "Authorization" tab and enter
the credentials.
7. If the endpoint requires any headers or parameters, click on the "Headers" or
"Params" tab and enter the necessary information.
8. Click on the "Send" button to send the request to the API endpoint.
9. View the response in the "Body" tab to verify that the request was successful.

Part 2: Verify the REST API

1. Open the API documentation or endpoint that you want to test.


2. Review the documentation to identify the endpoint and its parameters.
3. Open POSTMAN and create a new request for the endpoint.
4. Enter the necessary parameters and click on the "Send" button.
5. Verify that the response matches the expected results from the documentation.
6. Repeat the process for other endpoints and parameters as needed.

Part 3: Troubleshooting

1. If the API endpoint returns an error message or unexpected result, use the POSTMAN
console or error messages to troubleshoot the issue.
2. Review the API documentation to ensure that the correct endpoint and parameters
are being used.
3. Test the endpoint with different inputs and parameters to verify that it works
correctly.
4. Consult the API provider or documentation for help in troubleshooting.
28
Overall, POSTMAN is a powerful tool for verifying REST APIs. With careful attention to detail
and a solid understanding of the API, you can successfully use POSTMAN to test and
troubleshoot APIs.

29
Experiment No: - 14
Aim:- Verify JSON APIs through POSTMAN.
Procedure:- To Verify JSON APIs through POSTMAN , we can follow these steps:

Materials Required :

• Computer with internet access


• POSTMAN application
• API documentation or endpoint to test

Part 1: Set up POSTMAN

1. Open POSTMAN on your computer.


2. Sign up for a POSTMAN account or log in with your existing account.
3. On the POSTMAN dashboard, click on the "New" button to create a new request.
4. In the "Enter request URL" field, enter the API endpoint that you want to test.
5. Select the HTTP method (GET, POST, PUT, DELETE, etc.) for the request.
6. If the endpoint requires authentication, click on the "Authorization" tab and enter
the credentials.
7. If the endpoint requires any headers or parameters, click on the "Headers" or
"Params" tab and enter the necessary information.
8. Click on the "Send" button to send the request to the API endpoint.
9. View the response in the "Body" tab to verify that the request was successful.

Part 2: Verify the JSON API

1. Open the API documentation or endpoint that you want to test.


2. Review the documentation to identify the endpoint and its parameters.
3. Open POSTMAN and create a new request for the endpoint.
4. Enter the necessary parameters and click on the "Send" button.
5. Verify that the response is in valid JSON format.
6. Use the JSON viewer in POSTMAN to analyze the response.
7. Verify that the response contains the expected data and structure.
8. Repeat the process for other endpoints and parameters as needed.

Part 3: Troubleshooting

1. If the API endpoint returns an error message or unexpected result, use the POSTMAN
console or error messages to troubleshoot the issue.
2. Review the API documentation to ensure that the correct endpoint and parameters
are being used.

30
3. Test the endpoint with different inputs and parameters to verify that it works
correctly.
4. Consult the API provider or documentation for help in troubleshooting.

Overall, POSTMAN is a powerful tool for verifying JSON APIs. With careful attention to
detail and a solid understanding of the API, you can successfully use POSTMAN to test and
troubleshoot APIs.

31
Experiment No: - 15
Aim:- Verify SOAP APIs through POSTMAN.
Procedure:- To Verify SOAP APIs through POSTMAN , we can follow these steps:

Materials Required :

• Computer with internet access


• POSTMAN application
• API documentation or endpoint to test

Part 1: Set up POSTMAN

1. Open POSTMAN on your computer.


2. Sign up for a POSTMAN account or log in with your existing account.
3. On the POSTMAN dashboard, click on the "New" button to create a new request.
4. In the "Enter request URL" field, enter the API endpoint that you want to test.
5. Select the HTTP method as "POST" for the request.
6. If the endpoint requires authentication, click on the "Authorization" tab and enter
the credentials.
7. Click on the "Headers" tab and add a new header with the following information:
a. Key: "Content-Type"
b. Value: "text/xml"
8. Click on the "Body" tab and select the "Raw" option.
9. In the text area, enter the SOAP envelope that contains the request.
10.Click on the "Send" button to send the request to the API endpoint.
11.View the response in the "Body" tab to verify that the request was successful.
Part 2: Verify the SOAP API
1. Open the API documentation or endpoint that you want to test.
2. Review the documentation to identify the SOAP envelope structure and its
parameters.
3. Open POSTMAN and create a new request for the endpoint.
4. Enter the necessary parameters in the SOAP envelope and click on the "Send"
button.
5. Verify that the response is in valid SOAP format.
6. Use the SOAP envelope structure and viewer in POSTMAN to analyze the response.
7. Verify that the response contains the expected data and structure.
8. Repeat the process for other SOAP endpoints and parameters as needed.
Part 3: Troubleshooting
32
1. If the API endpoint returns an error message or unexpected result, use the POSTMAN
console or error messages to troubleshoot the issue.
2. Review the API documentation to ensure that the correct endpoint and parameters
are being used.
3. Test the endpoint with different inputs and parameters to verify that it works
correctly.
4. Consult the API provider or documentation for help in troubleshooting.

Overall, POSTMAN is a powerful tool for verifying SOAP APIs. With careful attention to
detail and a solid understanding of the API, you can successfully use POSTMAN to test and
troubleshoot SOAP APIs.

33
Experiment No: - 16
Aim:- Identify components for given project
Procedure:- To Identify components for given project , we can follow these steps:

Materials Required :

• Project specifications and requirements


• List of potential components
• Catalogs or datasheets of components
Part 1: Review project specifications and requirements
1. Review the project specifications and requirements to determine what components
are needed.
2. Identify the required functionality and performance specifications of each
component.
3. Determine the size, shape, and other physical requirements of each component.
4. Consider any environmental factors, such as temperature or humidity, that may
affect the components.
5. Make a list of the components needed for the project.
Part 2: Identify potential components
1. Research potential components that meet the specifications and requirements
identified in Part 1.
2. Look for components from reputable suppliers that have a track record of quality and
reliability.
3. Consider the cost and availability of the components.
4. Make a list of the potential components that meet the project requirements.
Part 3: Compare and select components
1. Review the list of potential components and compare their specifications and
performance.
2. Use catalogs or datasheets to compare the physical characteristics and
environmental factors of each component.
3. Consider the cost and availability of each component.
4. Select the components that best meet the project requirements and fit within the
budget.
5. Create a final list of components needed for the project.
Part 4: Order and test components
34
1. Order the selected components from the supplier.
2. Test the components to ensure that they meet the performance and functionality
specifications.
3. Incorporate the components into the project as needed.
4. Monitor the performance of the components during the project to ensure that they
are functioning properly.
By following these steps, you can successfully identify the components needed for a given
project and ensure that they meet the necessary specifications and requirements.

35
Experiment No: - 17
Aim:- Estimate the cost to make Project working.
Procedure:- Here is a general procedure to estimate the cost to make a project working:
1. Identify the components needed for the project: Review the project requirements
and specifications to determine the necessary components needed for the project.
Make a list of the components, their specifications, and the quantity required.
2. Research the cost of components: Research the cost of each component from various
suppliers. Consider the quantity needed and any discounts or deals offered.
3. Estimate the labor cost: Determine the amount of time it will take to assemble, test,
and install the components. Estimate the labor cost based on the hourly rate of the
workers.
4. Consider the cost of tools and equipment: Determine if any special tools or
equipment are needed to assemble or test the components. Estimate the cost of
renting or purchasing the necessary tools and equipment.
5. Calculate the overhead costs: Include overhead costs such as rent, utilities, insurance,
and other expenses associated with the project.
6. Add in contingency costs: Allow for additional costs that may arise due to unforeseen
circumstances.
7. Total the costs: Add up the costs of the components, labor, tools and equipment,
overhead, and contingency costs. This will give you an estimate of the total cost to
make the project working. Compare to budget:
8. Compare the estimated cost to the budget allocated for the project. If the estimated
cost is higher than the budget, consider making adjustments such as selecting lower-
cost components or reducing the labor time.
9. Monitor costs during the project: As the project progresses, monitor the costs to
ensure that they are staying within the budget. Make adjustments as needed to
avoid cost overruns.
By following these steps, you can estimate the cost to make a project working and ensure
that the project stays within budget.

36

You might also like