Internet of Things Programming Projects : Build Modern IoT Solutions with the Raspberry Pi 3 and Python.
Taking a project-based approach this book will help you leverage sensors, actuators, Python programming and Raspberry Pi 3 to build connected things. Each chapter is an independent project where you will learn from connecting devices to building complex IoT projects. You will be well versed in every...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing Ltd,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Installing Raspbian on the Raspberry Pi; A brief history of the Raspberry Pi; A look at operating systems for the Raspberry Pi; Project overview; Getting started; Installing the Raspbian OS; Formatting a microSD card for Raspbian; Copying the NOOBS files to the microSD RAM; Running the installer; A quick overview of the Raspbian OS; The Chromium web browser; The home folder; The Terminal; Mathematica; Sonic Pi; Scratch and Scratch 2.0; LibreOffice; Summary; Questions; Further reading.
- Chapter 2: Writing Python Programs Using Raspberry PiProject overview; Technical requirements; Python tools for Raspberry Pi; The Terminal; Integrated Development and Learning Environment; Thonny; Using the Python command line; Writing a simple Python program; Creating the class; Creating the object; Using the object inspector; Testing your class; Making the code flexible; Example one; Example two; Summary; Questions; Further reading; Chapter 3: Using the GPIO to Connect to the Outside World; Project overview; Technical requirements; Python libraries for the Raspberry Pi; picamera; Pillow.
- Sense-hat and sense-emu Accessing Raspberry Pi's GPIO; Pibrella; RPi. GPIO; GPIO zero; Setting up the circuit; Fritzing; Building our circuit; Hello LED; Blink LED using gpiozero; Morse code weather data; Summary; Questions; Further reading; Chapter 4: Subscribing to Web Services; Prerequisites; Project overview; Getting started; Cloud services for IoT; Amazon Web Services IoT; IBM Watson platform; Google Cloud platform; Microsoft Azure; Weather Underground; A basic Python program to pull data from the cloud; Accessing the web service; Using the Sense HAT Emulator; Summary; Questions.
- Further reading Chapter 5: Controlling a Servo with Python; Knowledge required to complete this chapter; Project overview; Getting started; Wiring up a servo motor to the Raspberry Pi; Stepper motors; DC motors; Servo motors; Connecting the servo motor to our Raspberry Pi; Control the servo through the command line; Write a Python program to control the servo; Summary; Questions; Further reading; Chapter 6: Working with the Servo Control Code to Control an Analog Device; Knowledge required to complete this chapter; Project overview; Getting started; Accessing weather data from the cloud.
- Controlling the servo using weather data Correcting for servo range; Changing the position of the servo based on weather data; Enhancing our project; Printing out the main graphic; Adding the needle and LED; Summary; Questions; Further reading; Chapter 7: Setting Up a Raspberry Pi Web Server; Knowledge required to complete this chapter; Project overview; Getting started; Introducing CherryPy
- a minimalist Python web framework; What is CherryPy?; Who uses CherryPy?; Installing CherryPy; Creating a simple web page using CherryPy; Hello Raspberry Pi!; Say hello to myFriend.