0% found this document useful (0 votes)
278 views39 pages

IoT Temperature Monitoring with Raspberry Pi

This document provides an introduction to a project that monitors temperature using an IoT system with a Raspberry Pi. It discusses temperature sensors and their importance. The project aims to monitor temperature in a cost-effective way using a Raspberry Pi and DS18B20 digital temperature sensor. Programming is done using Python. Other sensors can also be added to measure other atmospheric parameters. The document also provides background on IoT, why it is gaining attention, an introduction to the Raspberry Pi and its specifications, and the motivation and objectives for this temperature monitoring project.

Uploaded by

Pankti
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)
278 views39 pages

IoT Temperature Monitoring with Raspberry Pi

This document provides an introduction to a project that monitors temperature using an IoT system with a Raspberry Pi. It discusses temperature sensors and their importance. The project aims to monitor temperature in a cost-effective way using a Raspberry Pi and DS18B20 digital temperature sensor. Programming is done using Python. Other sensors can also be added to measure other atmospheric parameters. The document also provides background on IoT, why it is gaining attention, an introduction to the Raspberry Pi and its specifications, and the motivation and objectives for this temperature monitoring project.

Uploaded by

Pankti
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

1.

Introduction

1.1 INTRODUCTION

Temperature has an impact on all the activities surrounding us. A precise determination of
temperature is a vital factor in countless industries and different fields of science. The
temperature monitoring is crucial in lot of industries, like food industry, the workshop, and
pharmaceutical industry and in environmental monitoring. Analog and digital Temperature
sensors are available for sensing temperature for commercial purpose.. Temperature
sensors possessing temperature-dependent properties that can be measured electrically
contain resistors, semiconductor mechanisms such as diodes, and thermocouples. This
project aims at monitoring the real time temperature in a cost effective way. Here the
monitoring node is raspberry pi. Programming language used for raspberry pi is Python.
The Sensor utilized here is DS18B20 1-wire digital temperature sensor. This sensor comes
in a tiny three pi package like a transistor. The sensor is interfaced with the raspberry
using jumper wires .The temperature is sensed using the digital sensor DS18B20 and is
read stored and displayed by the raspberry pi kit. Other sensors like humidity, atmospheric
pressure or vibration can be clubbed with this system with ease to measure the
atmospheric parameters.

1.1.1 What is IoT? (Internet of things)

Internet is a source that connects people these days. It has made human life far easier in the world
of web. There are innumerable applications which are working on internet; making generation
advance and technology more and more simple. In past two decades, internet has been an area of
interest to develop advance and simple technology, robot and machines through wireless
communication. One advantage of using internet into implementation of new device is that, the low
cost and productive application\robot can be made. Long gone days were hardware was a basic
requirement to innovate a new technology. Nowadays, internet playing major role to rely on
software based application that makes work easy and faster. In a sense, the internet is expanding
from a network of computers to the network of things.

1
Figure 1: IoT based application [1]

The Internet is a world-wise network of interconnected computer network, based on a standard


communication protocol (TCP/IP).

The Internet of Things is:

 A world-wise network of interconnected objects which are outfitted with sensors, actuators
and RFID devices.
 These devices are uniquely addressable and use standard communication protocols in a
heterogeneous networking environment including objects of totally different functionality,
technology and application fields.

The IOT expands the current Internet with the objective of:

• Connecting objects outfitted with sensor and RFID devices (smart objects).

• Detecting changes in the physical status of connected things in real time.

• Identifying and localizing the smart objects.

• Monitoring the changes in the physical status of connected things.

1.1.2 Why is everyone focusing on IoT?

Sensors, internet and network have been around long time. So why people are choosing to work on
IoT based project now days? Over the last few decades, a number of factors have made the
connectivity more precise and stronger. We are familiar with sensors in our world of technology.
Light turn on or automatic doors open with motion detector, fire alarms working on the factor of
temperature sensors are all our day to day life applications we know. In recent years, the cost of the
sensors has been dropped and hence is cheap. The connectivity and ranging fact to connect the

2|Page
sensors to the other things has become adaptable even. So now we have low cost sensors, which
can be feed to low cost power radio that can efficiently capture and relates data to more powerful
devices which finally transmitted to the internet (Cloud devices) where it can be analyzed and acted
upon.

Another reason why IoT is being focused on because companies like IBM, Microsoft, Mathswork etc.
gives platform to test and build IoT based application on their cloud based services.

1.1.3 Introduction to raspberry Pi

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United
Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in
schools and developing countries.

Figure 2: Symbol of Raspberry Pi [2]

Several generations of Raspberry Pi have been released:

 The first generation (retrospectively known as the Raspberry Pi 1) was released in February
2012 in basic Model A and a higher specification Model B.
 Improved A+ and B+ models were released a year later.
 The Raspberry Pi 2 was released in February 2015 and Raspberry Pi 3 in February 2016.

These boards are priced between US$20 and 35. A cut down "compute" model was released
in April 2014, and a Raspberry Pi Zero with smaller size and limited input/output (I/O),
general-purpose input/output (GPIO), and abilities released in November 2015 for US$5.

Basic features:

 Broadcom system on a chip (SoC), which includes an ARM compatible central processing
unit (CPU).
 on chip graphics processing unit (GPU, a VideoCore IV).
 CPU speed ranges from 700 MHz to 1.2 GHz for the Pi 3 .
 On board memory range from 256 MB to 1 GB RAM.

3|Page
 Secure Digital (SD) cards are used to store the operating system and program memory in
either the SDHC or MicroSDHC sizes.
 Most boards have between one and four USB slots, HDMI and composite video output, and
a 3.5 mm phone jack for audio.
 Lower level output is provided by a number of GPIO pins which support common protocols
like I²C.
 The B-models have an 8P8C Ethernet port and the Pi 3 has on board Wi-Fi 802.11n and
Bluetooth.

The Foundation provides Raspbian, a Debian-based Linux distribution for download, as well as third
party Ubuntu, Windows 10 IOT Core, RISC OS, and specialized media center distributions. It
promotes Python and Scratch as the main programming language, with support for many other
languages. The default firmware is closed source, while an unofficial open source is available.

In February 2016, the Raspberry Pi Foundation announced that they had sold eight million devices,
making it the best-selling UK personal computer.

In this project we are using Raspberry Pie 2 model B

1.2 MOTIVATION

IoT(internet of things) is an interconnected network that makes connectively easy and faster. To
make a temperature sensor device with the help of Iot the temperature of a particular place can be
viewed on laptop via IoT by configuring it with the web.

Raspberry Pie is an advance microcontroller, also known as minicomputer. The programming and
specification of raspberry Pie model is not only simple, also has many ports and pins which makes it
interesting device to work on.

The main motive behind working on this project is that to make a better temperature sensor with
the help of IoT and raspberry pie so that the temperature of a particular place can be sensed and
data are available by means of wireless with the help of internet.

Hence, temperature sensors are cheap and can be installed easily.

1.3 OBJECTIVE

4|Page
The object of this project is to make a temperature sensor with the help of IoT and raspberry pi. The
sensor would sense the temperature of the place and would give data through wireless medium. A
person can see the temperature of a place on his computer or phone irrespective to his absence
there. It is user friendly and cheap, easy to operate.

1.4 Organization of project report

Chapter 1: Brief Introduction to IoT and raspberry pi.


Chapter 2: Literature review, all the papers and website referred for this project.
Chapter 3: Specification of hardware and software used in this project.
Chapter 4: Software implementation of IoT using raspberry pi and sensors done until now.

2. Literature Review
2.1 PAPER REVIEWED

We have reviewed following articles and paper for this project.

Articles:

1. The real time sensor using raspberry pie- IJIRST –International Journal for Innovative
Research in Science & Technology, Volume 1 , Issue 12 , May 2015.
2. Adafruit's Raspberry Pi Lesson 11. DS18B20 Temperature Sensing- Adafruit industry , 2015-
04-09.
3. internet of Things (IoT): A vision, architectural elements, and future directions.- future
generation computer system, volume 19, issue 7, September 2013.

2.1.1 BOOKS

1.” IoT with raspberry pi its application for e –surveillance robot “ by Ashish Patel and
Nikhil Patel by LAMBERT ACADEMIC PUBLISHING. [3]

5|Page
2.1.2 WEBSITES

Websites we have referred for tutorial and programming in this project:

1. [Link]
2. [Link]
3. [Link]

3. Project Design
3.1 HARDWARE

3.1.1 Selected Hardware

1. Temperature sensor – DS18B20

2. Ultrasonic Sensor

3. Raspberry pie 2 model B

3.1.2 Specification of component used in this project:

1. Temperature sensor – DS18B20

We are using this sensor because it is digital sensor and raspberry pie model doesn’t
supports analog sensor.

6|Page
Figure 3: DS18B20 [4]

Overview:

• The DS18B20 Digital Temperature Probe provides 9 to 12 bit (configurable)


temperature readings which indicate the temperature of the device.
• Information is sent to/from the DS18B20 over a 1- Wire interface, so that only one
wire (and ground) needs to be connected from a central microprocessor to a DS18B20.

• Power for reading, writing, and performing temperature conversions can be derived
from the data line itself with no need for an external power source. Because each
DS18B20 contains a unique silicon serial number, multiple DS18B20s can exist on the
same 1Wire bus.

• This allows for placing temperature sensors in many different places. Applications
where this feature is useful include HVAC (Heating Ventilating and air conditioning)
environmental controls, sensing temperatures inside buildings, equipment or machinery
and process monitoring and control.

Table 1: Technical specification

7|Page
2. Ultrasonic sensor (HC-SR04)

The human ear can hear sound frequency around 20 Hz ~ 20 kHz, ultrasonic is the sound wave
beyond the human ability of 20 kHz. The position feedback of the robot in its physical location will
be achieved using Ultrasonic ping sensors. A total of 4 ultrasonic sensors will be used to measure the
distance of the robot from the front, back and side walls when used in indoor environment. The
sensor will measure the distance and send it to the microcontroller where it will be compared with
expected values. The wheels will adjust their speeds based on the data from the ping sensors. For
example, if the distance from the left wall is detected to be higher than expected, the left wheel will
slow down and the right wheel will speed up until the next sample. The same feedback mechanism
can be applied to front, back and at sides. Full detail given on Ultrasonic sensor is given below.

8|Page
Figure 4: Ultrasonic Sensor HC-SR04 [5]

Overview :

HC-SR04 module includes ultrasonic transmitters, receiver and control circuit. As shown in figure
1HC-SR04 ultrasonic sensor has 4 pins.

Table 2: HC-SR04 Module pin definition

Table 3: Electrical parameters

9|Page
3. Raspberry Pie B model 2

For this project we have chosen raspberry pie because it can perform following task:

1. Fast processing power

2. Cost effective

3. Must be able to connect to internet

4. More GPIO pins

5. Compact

6. Must be compatible with vast range of sensors easily.

7. Less power consumption

8. Open Source

Thus raspberry pie is best as working with IOT

Product description: Pie 2, Model B

The Raspberry Pi 2 delivers 6 times the processing capacity of previous models. This second
generation Raspberry Pi has an upgraded Broadcom BCM2836 processor, which is a powerful ARM
Cortex-A7 based quad-core processor that runs at 900MHz. The board also features an increase in
memory capacity to 1Gbyte.

10 | P a g e
Figure 5: Raspberry Pie 2, Model B [6]

Table 4: Specifications

Figure 6: raspberry pi model B Pin configuration [7]

11 | P a g e
Table 5: Connectors

3.2 SOFTWARES

3.2.1 RASPBERRY PI ONLINE

There are three different ways by which raspberry pi can be put online:
1. Using Port forwarding
2. Purchasing static IP
3. Weaved (Provides free static IP for 30 minutes per day)

12 | P a g e
Figure 7: Software implemented

[Link] Using Port forwarding

Port forwarding is to be done in router settings. Before doing port forward we need to provide static
id to raspberry pi whenever it gets connected to raspberry pi. This can also be done by changing

13 | P a g e
router settings. But still there is a problem with port forwarding, every time the router gets reboot
the external IP changes. Secondly many ISP (Internet Service Provider) doesn’t allow the port
forwarding. If we want to go with port forwarding method the only solution is to purchase Static IP.
You can purchase your static IP from your ISP.

Figure 8: Hide NAT (network address translation)

[Link] Weaved (Provides free static Ip for 30 minutes per day)

Getting to the Internet has become fundamental, but being able to get back through the internet to
manage devices remains a black art, which is getting harder with increasingly complex network
setups and often impossible if the connection is through cellular.

Weaved lets you manage networked devices anywhere with advanced software.

. • No port forwarding or complex network setup is needed.

• Works with any device that ‘talks’ TCP/IP.

• Works with all popular protocols and services: SSH, VNC, RDP, sync

• On demand firewall and VPN services

• No addition hardware required software solution only.

4. Software Implementation

14 | P a g e
Software implemented in this project:

1) WeblOPI

2) VNC Viewer

3) WIN 32 disc imager

4) Cayenne

4.1 STEPS TO SET UP RASPBERRY PI 2:

1. Download the image: Official Images for OS are available to download from Raspberry pi
website. Download Raspbian image which is recommended for beginner. Website link:
[Link]

2. After downloading the .zip file, unzip it to get the image file (.img) for writing to your SD card.

3. Now, you can use any image writing tools to write that image file on SD card. I have so far used
two image writing tools i.e. UltraISO and win32diskimager.

4. Insert you SD card in your PC or laptop using Card reader. (Select at least 8 GB size SD card and
make sure it’s class 10 or any larger version than class 4, as it will help to speed up your writing and
reading process).

5. Open win32diskimager-v0.7-binary below given dialog box will open.

6. If your SD card is inserted properly in your laptop, under device you would be able to see your
device name. For example: D:, E: etc. Ensure the Device drop down box has the drive your card is
inserted into.

15 | P a g e
Figure 9: choose the drive with your SD card

7. Press on the folder button and select the folder and filename of the image you want to write on
your SD card.

16 | P a g e
Figure 10: Write OS image from .img file to SD card

8. After giving the location of image file the write button would be enabled, click on it a Confirm
overwrite dialog box will appear.

Figure 11: Write OS image from .img file to SD card

9. Click on yes, a write process will start the progress indicator will so progress as shown in figure
below.

17 | P a g e
Figure 12: Check device and confirm

10. When it is finished “Done” message is shown.

Figure 13: Finished

18 | P a g e
11. Before ejecting your SD card write following words in cmd line file using notepad++ after root
wait.

12. Make sure you eject your SD card properly before physically removing it from the laptop’s SD
card reader.

13. Remove all the connections from the Pi.

14. Connect your SD card to your raspberry pi.

15. Connect the Ethernet cable between the Pi and your laptop computer.

16. On your laptop: Give a static IP address to the Ethernet port of your laptop, specifically use
[Link] To do this on a MAC OSX, you need to go to System Preferences-> Ethernet and set the
static IP as shown in the image below:

19 | P a g e
Figure 14: Network connection of MAC

For Windows users, go to the start menu and search for Network and Sharing Center, and then click
on change adapter settings on the left. Right click on your Ethernet or local area connection and click
properties, then scroll down to TCP/IPv4 and click properties. Fill out the IP and subnet as shown.

20 | P a g e
Figure 15: Network connection on windows

17. Power on the Pi by plugging its supply into the micro-USB socket. (DO NOT plug the connector
into a USB socket, with or without an adapter.)

18. It will take many seconds for the Pi to finish booting to its OS (Raspbian) and then successfully
coming up on the network. *Sequence of events as indicated by the Pi’s LED indicators:

• Power LED (red) lights continually after power supply is plugged in.

• Activity LED (yellow) blinks randomly while OS boots, and actually whenever the Pi is running a
program (the OS is a program).

19. After the Pi’s activity light blinks for about 10-20 seconds, it will be ready to connect to it
remotely from another computer.

21 | P a g e
20. Connect to the Pi from your laptop using SSH. If you are MAC user you can use the ssh command
as follows: a. Open a terminal/command window on the PC. b. Enter the following command on the
command line in the window. ssh pi@[Link] c. If you get a ‘host name unresolved ‘error, try ssh
pi@[Link]

If you are a Windows user, download Putty and open [Link]. Type in pi@[Link] or simply
type [Link] in the host name field and make sure the SSH bubble is clicked so it looks like the
picture below:

Figure 16: Putty

21. If all goes well, you will be prompted for user name, type “pi” and press enter key. Now you will
be prompted for your password, type “raspberry” which will be displayed as:”*********” or nothing
at all. After typing press enter key.

22 | P a g e
22. If successful, a new line will appear in the Pi’s terminal window containing the Pi’s command
prompt, which will include the Pi’s hostname:”[Link]”.

23. If you are here you are now talking to the Pi from your laptop via Ethernet. You can enter any
Raspbian OS command, as well as execute your own programs written for the Pi.

Table 6: Raspberry Pi commands [8]

23 | P a g e
4.2 Config tool of RASPI

Figure 17: raspberry pi software configuration tool

24 | P a g e
The “Raspi-Config” tool allows configuration of your system that would otherwise be tricker in the
Linux environment and it’s the first thing you’ll see when you install Raspbian. Tasks such as setting
date and time or regional settings for your keyboard are often done in a command line interface
with no dialogs, no additional help – for a new user this is a nightmare. There are many useful
options ready available. The Raspi-Config tool takes the pain out of the process and puts real power
at your fingertips.

4.3 Remotely accessing of graphical desktop of Raspberry Pi

To remotely access graphical desktop of raspberry pi remotely we need to connect raspberry pi to


internet. Below are the steps to connect raspberry to internet.

1. Connect your raspberry pi to Router using Ethernet cable.

2. Power on your raspberry pi.

3. Router assigns a dynamic IP to every device which is connected to it.

4. To find out that dynamic IP open router settings in that search for DHCP client list.

In that list you would get the dynamic IP of raspberry pi assigned by router.

5. Open putty and write down that IP name in the host name as shown above.

6. Enter username and password as above and you are ready to go. Your raspberry pi is connected
to internet.

You only need to connect your raspberry pi to internet only when you need to download library of
any sensor, or you need to update or upgrade your raspberry pi. Else we can connect it using the
steps above.

Steps to install VNC server to access graphical desktop of raspberry pi. For that we need to install
two software VNC client on windows pc where you want to see graphical desktop and VNC server on
raspberry pi.

1. Connect Raspberry pi on internet using the steps above.

25 | P a g e
Figure 18: Installing VNC server

2. To install TightVNC package. Type below command

sudo apt-get install tightVNCserver

3. Next, run TightVNC server which will prompt you to enter for your VNC server and will also ask for
an optional view-only password (y/n).

4. Type n in the command line.

5. Start a VNC server from the terminal. This example starts a session on VNC display zero (:1) with
full HD resolution. 1920x1080 in below command can be changed depending on resolution of client
PC from which you are remotely accessing the graphical display of Raspberry Pi. vncserver :1 -
geometry 1920x1080 -depth 2

6. Disconnect the monitor which you have connected to raspberry Pi and on client PC
(Windows/Linux/Mac) from which you are going to remotely access the graphical display of
Raspberry Pi, install and run the VNC client.

7. Now Download and Install TightVNC for windows (version 2.7.10) on client PC (Windows) from the
following link. Enter the static IP address of Raspberry Pi which we have set up at starting of
document, followed by: (0 or 1). In the above picture I have rounded 2 lines with yellow color, in
that you can see that it is showing “A VNC server is already running on the machine as : 1. Here : 1
means that address of raspberry pi desktop running on VNC server.

26 | P a g e
Figure 19: VNC Server

8. Again VNC Viewer Authentication window will appear and enter the Password whatever you have
given while setting up VNC server on Raspberry Pi.

Figure 20: VNC Viewer authentication

9. Desktop of Raspberry pi will appear, now you can access Raspberry Pi graphically.

27 | P a g e
4.4 Interfacing raspberry pi with ultrasonic sensor

The HC-SR04 Ultrasonic sensor has four pins:

• Ground (GND)

• Echo Pulse Output (ECHO)

• Trigger Pulse Input (TRIG)

• 5V Supply (VCC)

All the four pins will be connected as shown in circuit diagram below.

Raspberry pi GPIO 23 pin will trigger the sensor to send an ultrasonic pulse. The pulse waves will
interact with any nearby objects and some will be reflected back to the sensor. The sensor will
detects these return waves and measures the time between the trigger and returned pulse. Sensor
will then send 5V signal to GPIO pin 24.

GPIO pin24 will be “low” until the sensor is triggered when it receives the echo pulse. Once a return
pulse has been located time is calculated and GPIO pin24 is set “high” for the duration of that pulse.
The Python script must therefore measure the pulse duration and then calculate distance.

NOTE: The sensor output signal (ECHO) on the HC-SR04 is rated at 5V and the input pin on the
Raspberry Pi GPIO is rated at 3.3V. So we can’t send 5V signal directly to raspberry pi input pin. We’ll
use a small voltage divider circuit, consisting of two resistors, to lower the sensor output voltage to
something our Raspberry Pi can handle.

Voltage Divider Circuit:

It consists of two resistors (R1 & R2) in series connected to an input voltage (Vin), which needs to be
reduced to out output voltage (Vout). In our circuit, Vin will be ECHO, which needs to be decreased
from 5V to Vout 0f 3.3

28 | P a g e
Figure 21: voltage divider circuit

Figure 22: Circuit Diagram: Interface HC-SRO4 with Raspberry pi

4.5 INTERFACING TEMPERATURE SENSOR DS18B20 WITH RASPBERRY PI

4.5.1 INTRODUCTION

The DS18B20 “1-Wire” sensors can be connected in parallel – unlike nearly any other sensor sold. All
sensors should share the same pins, but need only one 4.7K resistor for all of them.

29 | P a g e
The resistor is used as a ‘pull-up’ for the data-line and is required to keep the data transfer stable. If
we are using the waterproof version of the DS18B20 then the device has three leads red, black and
yellow. The bare copper screening lead that does not need to be connected.

Although the DS18B20 just looks like a regular transistor, there is actually quite a lot going on inside.
The chip includes the special 1-wire serial interface as well as control logic and the temperature
sensor itself. Its output pin sends digital messages and Raspbian includes an interface to read these
messages.

4.5.2 CIRCUIT CONNECTION:

Figure 23: DS18B20 Temperature Sensor connection with RPi 2

30 | P a g e
4.6 Cayenne

4.6.1 Introduction

How Cayenne Works


Cayenne is the world’s first drag and drop IoT project builder that empowers developers,
designers and engineers to quickly prototype and share their connected device projects.
Cayenne was designed to help users create Internet of Things prototypes and then bring them to
production.

There are several major components in the platform:

Cayenne Mobile Apps – Remotely monitor and control your IoT projects from the Android or
iOS Apps.

Cayenne Online Dashboard – Use customizable widgets to visualize data, set up rules,
schedule events and more.

What do we need?
1. Hardware

A Raspberry Pi or Arduino device connected to the Internet. The list of hardware that
works with Cayenne will keep growing.

2. A Smartphone or Browser

31 | P a g e
Cayenne was designed to work from iOS and Android smartphones and popular
browsers. TIP: Setup from the mobile device is the easiest way to get started.

Getting Started

Create Cayenne Account


You can create an account from Mobile or online. Mobile is the easiest and fastest way, but
instructions for online set up are below:

On the Sign Up page, enter your Name, Email and create a Password.

Figure: 24Singing UP [9]

Choose a Device

32 | P a g e
Cayenne currently supports Raspberry Pi and Arduino devices currently. Select the device you
would like to get started with in your IoT project.

Figure 25: choose a device [10]

The next section covers getting started with a Raspberry Pi device.

4.6.2 Raspberry Pi Interfacing with Cayenne

Get started in minutes!


1. Power on your Raspberry Pi. Connect the power adapter to your Raspberry Pi.
2. Connect the Pi to the Internet. Connect your Raspberry Pi to the Internet using an
Ethernet cable. Or, if you have a Wi-Fi dongle setup already this works too.
3. Make sure the Raspbian operating system is installed. Cayenne works with Jessie OS
versions of Raspbian. Please make sure one of these is pre-installed to the sd card. If
you need to install the Raspbian operating system, click here.

Note: You do not need to make any configuration changes to the Pi device. Cayenne
automatically handles setting up and configuring your Pi for use. However, it is recommended
that you expand the filesystem on the flash card if necessary. Please refer to raspi-config if you
need additional information on performing this step.

Installing Cayenne
Installing from the Mobile App

33 | P a g e
Before you can manage your Raspberry Pi device using the mobile app, you must install the
Cayenne app onto your mobile device. Installing and using the mobile app is the easiest way to
get started with Cayenne. If you need additional help on this step, refer to the video tutorial
above.

Visit the Mobile App download page to find the appropriate app store link for your device.

After installing the Cayenne app onto your mobile device, you will be guided through finding and
installing Cayenne on all of your Raspberry Pi devices.

Installing from the Web

1. Before you can manage your Raspberry Pi device using the online dashboard, you must install
Cayenne onto the device.

After verifying your Raspberry Pi is setup and powered on, you can continue with connecting
your device to Cayenne.

Figure 26: setting up raspberry pi [11]

The instructions for installing Cayenne onto your device are displayed on screen. Follow the on
screen instructions to start the installation process. .

34 | P a g e
2. As soon as the installation process starts, the Installing screen automatically appears. From
here you can check on the installation process as it completes.

Cayenne installs on your Raspberry Pi in 4 steps:

 Step 1: Installing libraries


 Step 2: Installing agent
 Step 3: Installing software
 Step 4: Installing drivers

This may take up to 10 minutes. Please be patient.

Figure 27: Installation process

3. As soon as the installation process completes, the Online Dashboard will automatically
appear. Your Raspberry Pi is now ready to use.

35 | P a g e
Figure 27: Raspberry Pi ready to use.

36 | P a g e
Conclusion and future work
This is project presents “IoT based temperature monitoring system” using raspberry pi. Temperature
senor can be connected to the Raspberry Pi kit making it effectively storing and displaying
atmospheric conditions in real time. The detected data can be transferred from Raspberry pi to the
Laptop and in the subsequent pace it can be stored into the cloud from Laptop for remote
monitoring and further retrieval. The data or temperature of a place can be even read on mobile
through IoT by knowing the Ip address of raspberry Pi

The future work is on iot based technology and its advancement.

37 | P a g e
References:

1. [1] Image of IoT based application and [2] Raspberry Pi symbol- Google patent data base

2. E-Surveillance Robotic system report-2015

3. [3] Iot with Raspberry Pi- Lambert academic Publishing

4. [44] figure 3 DS18B20: [Link]

5. [5] Figure 4: Ultrasonic Sensor HC-SR04 : [Link]

6. [6] Figure: 5 raspberry Pi model 2, B and [7] Figure 6: Pin configuration :


[Link]/Raspberrypi

7. [8 ] Table 6: raspberry Pi commands: [Link]


commands/

8. [9] [10] [11] : [Link]

38 | P a g e
We the undersigned solemnly declare that the project report <Temperature Monitoring System
Using Raspberry Pi> is based on our work carried out during the course of
our study under the supervision of Nikhil Patel,
We assert the statements made and conclusions drawn are an
outcome of my research work. I further certify that
I. The work contained in the report is original and has been
done by me under the general supervision of our
supervisor.
II. The work has not been submitted to any other Institution
for any other degree/diploma/certificate in this university
or any other University of India or abroad.
III. We have followed the guidelines provided by the
university in writing the report.
IV. Whenever we have used materials (data, theoretical
analysis, and text) from other sources, we have given due
credit to them in the text of the report and giving their
details in the references.
Name:
Bhumi Parekh
Rahul Goswami
Deep Panchal
Pankti Shukla

B and B Institute of Technology


affliction to Gujarat Technological University
Batch of 2014-2017

Common questions

Powered by AI

Sensor technologies are fundamental in IoT systems as they enable real-time data collection and environment monitoring. These technologies provide the necessary interface for devices to gather data on various physical conditions, which is then processed and transmitted over the internet. As described, sensors like the DS18B20 allow for precise temperature readings which enhance IoT systems' ability to provide accurate and timely information, facilitating effective decision-making and automation .

IoT expands traditional internet capabilities by extending connectivity beyond computers to a network of interconnected 'smart' objects, such as sensors and RFID devices. These objects can autonomously detect, communicate, and respond to changes in their environment, allowing for enhanced data collection, real-time monitoring, and novel applications in numerous fields. IoT's heterogeneous networking environment accommodates diverse devices with different functionalities, thus amplifying the internet's utility and reach .

Implementing a wireless IoT-based temperature monitoring system using Raspberry Pi offers advantages such as cost-effectiveness, ease of deployment, and real-time data accessibility. However, challenges include ensuring robust network connectivity, managing data security and privacy, and handling potential sensor inaccuracies or malfunctions. These systems require careful planning and reliable infrastructure to mitigate issues and maximize benefits .

Raspberry Pi's integration in IoT projects is highly advantageous due to its hardware flexibility, including GPIO pins for sensor connectivity, Ethernet ports, Wi-Fi and Bluetooth integration, and a powerful microprocessor compatible with sophisticated software. Its compatibility with a wide array of operating systems and programming languages like Python enhances its versatility. These capabilities facilitate seamless implementation of diverse IoT projects. However, limitations may arise from the need for external handling of computationally intensive tasks or network constraints .

The primary components used in developing an IoT-based temperature monitoring system using Raspberry Pi include the Raspberry Pi as the central processing unit, a DS18B20 digital temperature sensor for detecting temperatures, and a 1-Wire interface for communication. The Raspberry Pi acts as a mini-computer that processes data and connects to the internet, facilitating real-time data monitoring. The DS18B20 sensor is used because it doesn't require external power sources and supports multiple sensors on a single bus, making it ideal for IoT applications .

The Raspberry Pi is used as an advanced microcontroller in IoT projects, serving as a gateway for data collection, processing, and wireless communication. It features multiple ports for interfacing with various sensors, Ethernet and Wi-Fi connectivity for internet integration, and supports programming languages like Python. These characteristics make it particularly suitable for IoT projects due to its low cost, versatility, ease of use, and capability to run complex applications .

IoT transforms traditional temperature monitoring systems by enabling real-time data collection, processing, and accessibility over the internet. It allows for the integration of sensors and devices across various locations, which can communicate through a common network. This change facilitates continuous monitoring, enhanced data accuracy, remote data access, and increased automation in response systems, creating smarter and more efficient temperature monitoring solutions .

Raspberry Pi interfaces with temperature sensors using protocols such as the 1-Wire interface, as used with the DS18B20 sensor. This setup optimizes monitoring efficiency by allowing communication with multiple sensors using a single data line, reducing complexity and resource usage. The Raspberry Pi processes the sensor data, which can be accessed through various interfaces like computers or mobile devices via the internet, enhancing monitoring precision and convenience .

Future directions for IoT-based temperature monitoring systems using Raspberry Pi include enhancing remote monitoring capabilities through cloud data storage and retrieval, leveraging mobile access via IP address identification of Raspberry Pi, and potentially integrating additional environmental sensors to offer comprehensive atmospheric monitoring. The emphasis will be on making data accessible in real-time to mobile devices and further automating the system for diverse applications .

Python is significant in IoT applications with Raspberry Pi due to its simplicity, readability, and extensive libraries that facilitate efficient programming for hardware interactions. Python supports rapid development and prototyping, making it ideal for iterative and experimental IoT projects. It also has robust community support, ensuring a wealth of resources and reliability for developers using it in Raspberry Pi projects .

You might also like