Book Image

Internet of Things with Python and Raspberry Pi [Video]

By : Anum Sheraz
Book Image

Internet of Things with Python and Raspberry Pi [Video]

By: Anum Sheraz

Overview of this book

<p>Deploying an end-to-end IoT solution requires the development of smart devices, a reliable and real-time communication channel, and a responsive backend server. An efficient ecosystem first requires developing each component and then precise execution in a robust and foolproof way!</p> <p>This course starts you off with IoT project development by combining Python and Raspberry Pi and lays a foundation from which you can develop complex real-world projects. You will learn to build a motion-detecting anti-theft device that sends real-time data to you remotely to signal intruder activity in your house. This course then teaches you to build an IoT server in Python-Flask, allowing your users to log in securely and access their devices. It is based on the publish and subscribe model, which assures authentic user database. You will learn synchronous and asynchronous encryption techniques and protocols that fortify your IoT system. . Finally, you will build an atmosphere monitoring system with the ability of energy saving functionality, using infrared sensors, motion sensors, and ADC. The system will alert and detect ambient atmospheric conditions.</p> <p>By the end of the course, you will have built a secure ecosystem of interconnected devices that will upgrade your skills to build much complex projects using Python and Raspberry Pi in real-world scenarios!</p> <p>All the code and supporting files for this course are available at:&nbsp;<a href="https://github.com/PacktPublishing/-Internet-of-Things-with-Python-and-Raspberry-Pi" target="_blank">https://github.com/PacktPublishing/-Internet-of-Things-with-Python-and-Raspberry-Pi</a></p> <h1>Style and Approach</h1> <p>This course follows a problem-oriented approach to understand how technologies are used in IoT project development. You will start with an overview of Internet of Things technologies, communication models, and protocols involved in your projects then move towards practical IoT project development in Python and Raspberry Pi. By the end of the course, you will have built a reliable, secure, hack-proof, and scalable IoT final project based on the designed IoT solution.</p>
Table of Contents (7 chapters)
Chapter 7
Project 5: Atmosphere Monitoring System
Content Locked
Section 2
Integrating Sensors with Raspberry Pi
Writing the code to read DHT11 and LDR data. - Install and work with Adafruit DHT library and read temperature and humidity and parse and send JSON data to PubNub - Learn to enable SPI in Raspberry Pi to read analogue sensors LDR data into Raspberry Pi through MCP3008 and re-scaling the raw analog data into percentage, and finally sending the parsed JSON to PubNub - Set Auto LED ON/OFF functionality based on light intensity level, SSL in PubNub channel and set testing the functionality