Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Internet of Things with Raspberry Pi 3
Internet of Things with Raspberry Pi 3

Internet of Things with Raspberry Pi 3: Leverage the power of Raspberry Pi 3 and JavaScript to build exciting IoT projects

By Maneesh Rao
₱1,377.99
Book Apr 2018 248 pages 1st Edition
eBook
₱1,101.99
Print
₱1,377.99
Subscription
Free Trial
eBook
₱1,101.99
Print
₱1,377.99
Subscription
Free Trial

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Black & white paperback book shipped to your address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now
Table of content icon View table of contents Preview book icon Preview Book

Internet of Things with Raspberry Pi 3

Introduction to IoT

In this chapter, we will understand what the Internet of Things (IoT) is all about. Also, we will learn about the architecture of an IoT ecosystem, its application and benefits in different fields, its background, the current scenario, and its future.

The topics that we're going to cover are:

  • Understanding IoT
  • Architecture of an IoT ecosystem
  • History and evolution
  • IoT applications and future prospects

Understanding IoT

Looking back at the last few years, it can be observed that the Internet of Things (hereafter IoT) has become one of the most revolutionary technologies for research and development. It has opened the floodgates for numerous upcoming business models and assists in reinventing existing businesses.

But what is IoT, anyway? Why has it been called a new technological revolution? Who invented it, and when? What are its applications? Does it really hold the potential to change our lives? We will answer all such questions in this book, not just theoretically but in a DIY way. Yes, that's the best way to learn IoT.

Defining IoT

IoT is not just technology; it is the concept of a whole new world where physical things such as cars, homes, buildings, and other components of cities have the ability to connect to the internet and interact among themselves and with humans as well. In short, it is a smart and connected world.

IoT is a phenomenon that can only be described and not defined as it is an inclusive technology that has unlimited boundaries.

A physical device in an IoT ecosystem is also called a thing or smart thing. A thing can be any device with one or more of the following features:

  • Sensors (temperature, humidity, motion detector)
  • Communication (wired or wireless)
  • Actuators (motor, relay, display)
  • Controller or processor (for computations, running software)

A few examples of things are:

  • Tags such as NFC, RFID, and QR code, which are computer-readable and used to identify objects
  • Devices such as iBeacon, Arduino, and Raspberry Pi, which have built in controllers/processors and communication channels such as Bluetooth, Wi-Fi, Ethernet, and so on
  • Machines such as cars, bikes, AC units, and washing machines that can work autonomously
  • Infrastructure such as smart-connected factories, smart-connected buildings, and smart cities

Architecture of an IoT ecosystem

Let's understand how an IoT ecosystem works with the help of an example.

Mr. Ghanshyam is the owner of a Cargo company that has a large number of trucks as part of its fleet. They provide transportation services to various other businesses across the country. Lately, he has been incurring losses in his business due to various reasons that he has not been able to identify and rectify.

His son Shyam, who works as an IoT engineer, gets to know about his father's business condition and decides to come down and assist him. He works with him over the next few months and observes a few major issues that are incurring losses. A few of the issues are listed here:

  • High fuel consumption
  • High maintenance costs
  • Delivery delays
  • High accident rates

Shyam, being an IoT engineer, knew what needed to be done to make the business profitable and easy to manage. Let's see what steps were carried out.

Shyam converted all the trucks of fleet into smart and connected one by fitting them with various sensors to measure vital stats such as fuel level, tyre pressure, engine condition, temperature, and others. Controllers were used to perform actions as per requirements, such as turning on lights when the sun set, turning on wipers when it rained, alerting drivers, and sending important information to the cloud with the help of Wi-Fi/GPRS/GPS modules over the internet. Cameras and other such devices were used to keep an eye on driver performance to get real-time data from a truck, as shown in the following figure:

A mobile application was developed to help drivers monitor the truck's condition in real time, navigate via the best route, and receive alert notifications and job/task assignments.

An admin/control panel application was also developed and was used at the command center by managers and operators to monitor all moving trucks, which were sending real-time data over the internet. This facilitated better fleet management in the following ways:

  • Monitoring a truck's route to its destination; if the driver is going to a suspicious location, the engine can be turned off remotely.
  • Monitoring the driver's conduct with the help of a camera inside his cabin. This avoids incidents of sleeping or talking over the phone while driving and sends an alert immediately.
  • Navigating to nearby service stations in the case of a breakdown:

After taking all of the above measures the old fleet had now been converted into smart and connected fleet. The following figure helps us understand the architecture of the IoT solution deployed by Shyam:

Let's see how smart and connected fleets made Mr. Ghanshyam's business profitable:

  • Fuel efficiency: Data received regarding braking, shifting gears, and speed helped to establish and improve the driving style of each driver, which in turn improved fuel efficiency. Also, checking on fuel levels periodically helped to curb incidents of fuel theft, which in turn reduced overall fuel cost.
  • Maintenance costs and delivery delays: The sensors installed in each truck send vital information about engine health, brakes, electrical systems, and oil levels. This helps the operator to maintain the overall health of the vehicle through timely and preventive maintenance, hence reducing frequent breakdowns and delays, leading to substantial cost savings.
  • Improved safety: Monitoring the driver's conduct using cameras and other sensor data helped detect aggressive, careless, and improper driving, which is always a threat to driver and vehicle safety. This data could be used to alert the driver, hold him accountable, and provide proper training for future improvement.
  • Route optimization: By tracking a vehicle's current location and traffic condition using GPS, the shortest and best route could be suggested , resulting in the vehicle reaching its destination in the minimum time, reducing fuel cost, and saving time so more deliveries can be made and in turn increasing profits.
  • Environmental impact: With improved vehicle conditions and taking an optimized route, lesser fuel is used, leading to less emissions of harmful gases.

Let's now look at the generalized architecture of an IoT ecosystem in the following figure. Here, we also explain the components of this architecture, such as what each component is, what role it plays, and how it is integrated with other components in the whole architecture:

The following is a brief explanation of the general IoT architecture:

  • Sensors, tags, and microchips are end devices in the system that observe the environment and provide information about it.
  • Connection management takes care of maintaining connectivity between end devices and the user/platform through various protocols such as HTTP, MQTT, and AQMP over the internet, and using Bluetooth and radio frequencies as well.
  • Real-time data management helps collect and store data received from end devices in the database, which may be relational or NoSQL based on the type of data.
  • Security and access control prevents unauthorized users getting access to the system, which then may be misused. Security is one of the most important building blocks in an IoT ecosystem; neglecting it may cause huge losses for enterprises and individuals.
  • Cloud platforms facilitate the scalability, availability, and accessibility of the whole system with minimum downtime, which is very critical for a connected system.
  • Administration and analytics components use all the data provided by a device to understand the behavior of the device and end user, which further helps in improving the service, performing preventive maintenance, and providing necessary alerts and notifications.
  • Integration with other platforms such as social media, BI, and CMS, and enterprise and supply chain helps to bridge the gap between different segments of business.
  • Developer tools help third parties to integrate their existing system seamlessly.

History and evolution

A few decades back, the only way for humans to connect with each other was through personal communications, postal services, and fixed line telephones. Who would have thought about machines talking to each other and to humans as well? But with the introduction of the internet, and advancement in hardware and communication technology, this has become a reality.

The Internet of Things may be a new topic for many of us but its foundation was laid in 1999 by Kevin Ashton of MIT's AutoID lab, when he coined the term Internet of Things while making a presentation at Procter & Gamble.

Today IoT has become the next revolution in the internet world; it harnesses the intelligence of billions of sensors and connected things, which collect big data to make decisions. See the following figure to understand the evolution of IoT over the last few decades:

IoT–applications and future prospects

Here are some statistics that show the future prospects of the Internet of Things:

  • Gartner, Inc. believes that by 2020 the number of connected devices will reach 25 billion. The Internet of Things has become a powerful force for business transformation, and its disruptive impact will be felt across all industries and all areas of society.
  • According to Gartner, Inc., more than 50% of new business processes will contain devices connected to the internet.
  • The total economic impact of IoT, including consumer surplus, is estimated to be between $3.9 and $11.1 trillion in 2025.
  • According to Nasdaq, there will be close to 80 billion connected devices by 2025.

A detailed view of IoT applications in different industries is represented in the following figure:

Let's understand in a bit more detail about IoT applications in different industries:

  • Household devices such as refrigerators, lighting, washers, and thermostats can be controlled by mobile applications from anywhere. The market for these smart home appliances is expected to grow to $122 billion by 2022.
  • Wearable devices such as the Fitbit, which tracks body movement and calorie consumption, have already become mainstream.
  • Connected vehicles are already in the market from big players such as Honda, VW, and Tesla, which are leading this sector. Looking at the recent development of self-driving technology, autonomous vehicles no longer remain unimaginable.
  • Manufacturing plants and factories will be able to monitor their own health and predict maintenance at the right time, which will increase lifespan with minimal downtime. Manufacturing is expected to be one of the largest contributors to the overall growth of IoT and is projected to reach $913 billion by 2018.
  • Power grids and solar plants will be connected to the internet, which will help the distributor supply power more effectively to the end user, keeping track of actual usage and preventing theft, among other benefits.
  • Sectors positioned to benefit from IoT growth include:
    • Connected device manufactures: Creators of wearables, smart meters, and home appliances
    • Network providers: IoT needs fast, secure, and reliable network interconnection for devices and systems
    • Semi-conductor: There will be significant demand for microcontrollers, flash devices, and sensors

Summary

In this chapter, we introduced the concept of IoT. Then we went on to delve into the IOT ecosystem and its architecture in depth. We also learnt about its history, evolution, and its bright future.

In Chapter 2, Know Your Raspberry Pi, we will work with Raspberry Pi, which is one of the most popular and widely used single-board computer systems for hacking IoT.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how to interface various sensors and actuators with the Raspberry Pi 3 and send this data to the cloud.
  • Explore the possibilities offered by the IoT by using the Raspberry Pi to upload measurements to Google Docs.
  • A practical guide that will help you create a Raspberry Pi robot using IoT modules.

Description

This book is designed to introduce you to IoT and Raspberry Pi 3. It will help you create interesting projects, such as setting up a weather station and measuring temperature and humidity using sensors; it will also show you how to send sensor data to cloud for visualization in real-time. Then we shift our focus to leveraging IoT for accomplishing complex tasks, such as facial recognition using the Raspberry Pi camera module, AWS Rekognition, and the AWS S3 service. Furthermore, you will master security aspects by building a security surveillance system to protect your premises from intruders using Raspberry Pi, a camera, motion sensors, and AWS Cloud. We'll also create a real-world project by building a Wi-Fi – controlled robot car with Raspberry Pi using a motor driver circuit, DC motor, and a web application. This book is a must-have as it provides a practical overview of IoT’s existing architectures, communication protocols, and security threats at the software and hardware levels—security being the most important aspect of IoT.

What you will learn

Understand the concept of IoT and get familiar with the features of Raspberry Pi Learn to integrate sensors and actuators with the Raspberry Pi Communicate with cloud and Raspberry using communication protocols such as HTTP and MQTT Build DIY projects using Raspberry Pi, JavaScript/node.js and cloud (AWS) Explore the best practices to ensure the security of your connected devices
Estimated delivery fee Deliver to Philippines

Standard delivery 10 - 13 business days

₱492.95

Premium delivery 5 - 8 business days

₱2548.95
(Includes tracking information)

Product Details

Country selected

Publication date : Apr 30, 2018
Length 248 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781788627405
Vendor :
Raspberry Pi
Category :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Black & white paperback book shipped to your address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now
Estimated delivery fee Deliver to Philippines

Standard delivery 10 - 13 business days

₱492.95

Premium delivery 5 - 8 business days

₱2548.95
(Includes tracking information)

Product Details


Publication date : Apr 30, 2018
Length 248 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781788627405
Vendor :
Raspberry Pi
Category :

Table of Contents

11 Chapters
Preface Chevron down icon Chevron up icon
1. Introduction to IoT Chevron down icon Chevron up icon
2. Know Your Raspberry Pi Chevron down icon Chevron up icon
3. Let's Communicate Chevron down icon Chevron up icon
4. Weather Station Chevron down icon Chevron up icon
5. Controlling the Pi Chevron down icon Chevron up icon
6. Security Surveillance Chevron down icon Chevron up icon
7. Image Recognition Chevron down icon Chevron up icon
8. Bot Building Chevron down icon Chevron up icon
9. Security in IoT Chevron down icon Chevron up icon
10. Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Top Reviews
No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela