Professional Documents
Culture Documents
PDF Internet of Things With Raspberry Pi and Arduino 1St Edition Rajesh Singh Author Ebook Full Chapter
PDF Internet of Things With Raspberry Pi and Arduino 1St Edition Rajesh Singh Author Ebook Full Chapter
https://textbookfull.com/product/internet-of-things-with-
raspberry-pi-and-arduino-first-edition-edition-rajesh-singh/
https://textbookfull.com/product/sensor-projects-with-raspberry-
pi-internet-of-things-and-digital-image-processing-1st-edition-
guillermo-guillen/
https://textbookfull.com/product/raspberry-pi-home-automation-
with-arduino-2nd-edition-andrew-k-dennis/
https://textbookfull.com/product/practical-internet-of-things-
with-javascript-build-standalone-exciting-iot-projects-with-
raspberry-pi-3-and-javascript-1st-edition-arvind-ravulavaru/
Action movement light and sound with Arduino and
Raspberry Pi First Edition Monk
https://textbookfull.com/product/action-movement-light-and-sound-
with-arduino-and-raspberry-pi-first-edition-monk/
https://textbookfull.com/product/electronics-cookbook-practical-
electronic-recipes-with-arduino-raspberry-pi-1st-edition-simon-
monk/
https://textbookfull.com/product/hacking-electronics-learning-
electronics-with-arduino-and-raspberry-pi-2nd-edition-simon-monk/
https://textbookfull.com/product/beginning-robotics-with-
raspberry-pi-and-arduino-using-python-and-opencv-jeff-cicolani/
https://textbookfull.com/product/internet-of-things-from-scratch-
build-iot-solutions-for-industry-4-0-with-esp32-raspberry-pi-and-
aws-1st-edition-renaldi-gondosubroto/
INTERNET OF THINGS WITH
RASPBERRY PI AND
ARDUINO
Rajesh Singh, Anita Gehlot, Lovi Raj Gupta,
Bhupendra Singh, and Mahendra Swain
Internet of Things with
Raspberry Pi and Arduino
Internet of Things with
Raspberry Pi and Arduino
Rajesh Singh
Professor, School of Electronics & Electrical Engineering
Lovely Professional University, India
Anita Gehlot
Associate Professor, School of Electronics & Electrical Engineering
Lovely Professional University, India
Lovi Raj Gupta
Executive Dean
Lovely Professional University, India
Bhupendra Singh
Managing Director
Schematics Microelectronics, India
Mahendra Swain
Assistant Professor
MIET, Jammu, India
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts
have been made to publish reliable data and information, but the author and publisher cannot assume
responsibility for the validity of all materials or the consequences of their use. The authors and publishers
have attempted to trace the copyright holders of all material reproduced in this publication and apologize
to copyright holders if permission to publish in this form has not been obtained. If any copyright material
has not been acknowledged please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted,
or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented,
including photocopying, microfilming, and recording, or in any information storage or retrieval system,
without written permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.
com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood
Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and
registration for a variety of users. For organizations that have been granted a photocopy license by the
CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are
used only for identification and explanation without intent to infringe.
Preface.......................................................................................................................xi
Acknowledgments............................................................................................... xiii
Authors....................................................................................................................xv
Section I Introduction
2. Sensors............................................................................................................. 13
2.1 Sensors Classification............................................................................ 13
2.2 Working Principle of Sensors............................................................... 15
2.3 Criteria to Choose a Sensor.................................................................. 17
2.4 Generation of Sensors........................................................................... 17
v
vi Contents
3.4.11 OpenRemote............................................................................. 23
3.4.12 Arrayent Connect TM.............................................................. 23
3.4.13 Arkessa...................................................................................... 24
3.4.14 Oracle IoT Cloud...................................................................... 24
3.4.15 ThingWorx................................................................................ 24
3.4.16 Nimbits...................................................................................... 24
3.4.17 InfoBright.................................................................................. 24
3.4.18 Jasper Control Center.............................................................. 24
3.4.19 AerCloud................................................................................... 24
3.4.20 Echelon...................................................................................... 25
3.4.21 ThingSpeak............................................................................... 25
3.4.22 Plotly.......................................................................................... 25
3.4.23 GroveStreams........................................................................... 25
3.4.24 IBM IoT...................................................................................... 25
3.4.25 Microsoft Research Lab of Things......................................... 25
3.4.26 Blynk.......................................................................................... 25
3.4.27 Cayenne APP............................................................................ 26
3.4.28 Virtuino APP............................................................................ 26
4. Basics of Arduino.......................................................................................... 29
4.1 Introduction to Arduino....................................................................... 29
4.1.1 Arduino Uno............................................................................. 29
4.1.2 Arduino Mega..........................................................................30
4.1.3 Arduino Nano.......................................................................... 31
4.2 Arduino IDE........................................................................................... 33
4.2.1 Steps to Install Arduino IDE.................................................. 33
4.3 Basic Commands for Arduino............................................................. 37
4.4 LCD Commands.................................................................................... 37
4.5 Serial Communication Commands..................................................... 38
4.6 Play with LED and Arduino................................................................ 38
4.6.1 Sketch......................................................................................... 40
4.7 Play with LCD with Arduino............................................................... 40
4.7.1 Sketch.........................................................................................43
Bibliography......................................................................................................... 187
Index...................................................................................................................... 189
Preface
xi
Acknowledgments
xiii
Authors
xv
xvi Authors
She has been awarded with the Certificate of Appreciation from the
University of Petroleum and Energy Studies for exemplary work. She has been
honored with the Certificate of Appreciation from Rashtryapati Bhawan for
a mentoring project through the Gandhian Young Technological Innovation
Award 2018. She has published 15 books in the areas of embedded systems and
Internet of Things with reputed publishers like CRC/Taylor & Francis Group,
Bentham Science, Narosa, GBS, IRP, NIPA, River Publisher, and RI Publications.
She is an editor to a special issue published by the AISC book series at Springer
with the title Intelligent Communication, Control and Devices, 2018.
Introduction
1
Introduction to Internet of Things
3
4 Internet of Things with Raspberry Pi and Arduino
Application
RES TAPI, JSON-IPSO objects, Binary objects
layer
Transport
layer CoAP, MQTT, XMPP, AMQP, LLAP, DDS, SOAP, UDP, TCP, DTLS
Physical
layer Devices, objects, things
FIGURE 1.1
OSI model for IoT protocols.
Introduction to Internet of Things 7
Frankfort—
The Cathedral, 26.
Freiburg, Switzerland—
St. Nicolas, 28.
Freiburg-im-Bresgau—
The Cathedral, 26;
St. ——, 26.
Geneva—
The Cathedral, 28;
English Church, 29.
Ghent (Gand)—
The Cathedral (St. Bavon), 20;
Béguinage, 21;
English Church, 21;
St. Jacques, 21;
St. Michael, 21;
St. Nicolas, 21.
Gouda—
Janskerk (St. John’s), 22.
Haarlem—
Grootekerk (St. Bavon), 23.
Hertogenbosch (Bois-le-Duc)—
St. Janskirk, 23.
Innsbruck—
Hof-kirche, 27;
Jesuits’ Church, 27.
Isola Bella—
Parish Church, 30.
Laon—
The Cathedral, 14.
Liége—
St. Jacques, 21.
Lisieux—
St. Pierre (formerly the Cathedral), 14;
St. Jacques, 14.
London—
St. Paul’s Cathedral, 10;
All Hallows, Lombard Street, 10;
Christchurch, Newgate Street, 10;
St. Clement’s, Eastcheap, 10;
St. Lawrence, Jewry, 10;
St. Magnus the Martyr, London Bridge, 11;
St. Olave’s, Southwark, 11;
St. Sepulchre’s, 11.
Louvain—
St. Pierre, 21.
Lucerne—
Hof-kirche (St. Leger), 29;
English Church, 30.
Lyons—
The Cathedral, 14.
Madonna di Tirano—
Il Santuario, 31.
Magdeburg—
The Cathedral, 27.
Malines—
The Cathedral, 21;
St Jean 22;
St. Jean, 22;
Notre Dame, 22.
Mayence—
The Cathedral, 27.
Mechlin (Malines).
Milan—
The Cathedral, 31;
San Ambrogio, 31;
San Giovanni in Lateran, 31;
San Lorenzo, 31;
Santa Maria delle Grazie, 31;
Santa Maria Pudone, 32;
San ——, in the Via di Giadini, 32.
Munich—
Jesuits’ Church, 27.
Paris—
Notre Dame, 15;
St. Eustache, 15.
Prague—
The Cathedral, 27;
Monastery of Strahow, 27.
Rheims—
The Cathedral, 15;
St. André, 15;
St. Rémi, 15.
Rotterdam—
Groote Kerk (St. Lawrence), 24.
Rouen—
The Cathedral, 15;
Canteleu, 16;
St. Georges de Boscherville, 16;
St. Maclou, 16;
Notre Dame de Bon Secours, 16;
St. Ouen, 16;
St. Sever, 16;
St. Sever, 16;
St. Vincent, 17;
St. Vivien, 17.
St. Bernard—
Hospice, 29.
St. Lo—
The Cathedral (formerly), 17;
St. Croix, 17.
St. Ricquier—
The Abbey Church, 17.
Schwarz—
Pfarrkirche, 27.
Strasburg—
The Cathedral, 17.
Troyes—
The Cathedral, 17;
St. Jean, 18;
St. Nizier, 18;
St. Rémi, 18.
Utrecht—
The Cathedral, 24;
St. Nicolas, 25.
York—
Minster, 11.
he ox f histles.
CHAPTER I.
INTRODUCTORY.
A
At Leeds, the pipes of the solo portion of the
Town-hall Organ are entirely placed horizontally,
and it is stated that this increases their power
from 20 to 30 per cent.