Book description
Develop practical Internet of Things prototypes and applications with Arduino and Python
In Detail
The future belongs to applications and services that involve connected devices, requiring physical components to communicate with web-level applications. Arduino combined with the popular open source software platform Python can be used to develop the next level of advanced Internet of Things (IoT) projects with graphical user interfaces and Internet-connected applications.
Starting with designing hardware prototypes using Arduino, this book will then show you everything you need to know to be able to develop complex cloud applications. You will delve into domain-specific topics with incremental complexity, ending with real-world projects. You will quickly learn to develop user interfaces, plots, remote access, messaging protocols, and cloud connectivity. Each successive topic, accompanied by plenty of examples, will help you develop your cutting-edge hardware applications.
What You Will Learn
- Design and develop your own hardware prototypes using Arduino
- Interface Arduino to a computer using the Firmata protocol and Python
- Acquire hands-on experience in developing applications for a variety of popular sensors
- Develop graphical user interfaces to control your components and plots to visualize sensor data
- Access your Arduino prototype from the Internet
- Implement messaging protocols for Arduino communication
- Connect your hardware project to cloud-based services
- Create advanced Internet of Things applications through projects in the book
Table of contents
-
Python Programming for Arduino
- Table of Contents
- Python Programming for Arduino
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started with Python and Arduino
- 2. Working with the Firmata Protocol and the pySerial Library
- 3. The First Project – Motion-triggered LEDs
-
4. Diving into Python-Arduino Prototyping
- Prototyping
- Working with pyFirmata methods
- Prototyping templates using Firmata
- Prototyping with the I2C protocol
- Summary
-
5. Working with the Python GUI
- Learning Tkinter for GUI design
- Your first Python GUI program
- The Button() widget – interfacing GUI with Arduino and LEDs
- The Entry() widget – providing manual user inputs
- The Scale() widget – adjusting the brightness of an LED
- The Grid geometry manager
- The Checkbutton() widget – selecting LEDs
- The Label() widget – monitoring I/O pins
- Remaking your first Python-Arduino project with a GUI
- Summary
- 6. Storing and Plotting Arduino Data
-
7. The Midterm Project – a Portable DIY Thermostat
- Thermostat – the project description
- Stage 1 – prototyping the thermostat
- Stage 2 – using a Raspberry Pi for the deployable thermostat
- Summary
-
8. Introduction to Arduino Networking
- Arduino and the computer networking
- Developing web applications using Python
- RESTful web applications with Arduino and Python
- MQTT – A lightweight messaging protocol
- Getting started with MQTT on Arduino and Python
- Summary
-
9. Arduino and the Internet of Things
- Getting started with the IoT
- The IoT cloud platforms
- Developing cloud applications using Python and Xively
- Your own cloud platform for the IoT
- Summary
-
10. The Final Project – a Remote Home Monitoring System
- The design methodology for IoT projects
- Project overview
- Stage 1 – a monitoring station using Arduino
- Stage 2 – a control center using Python and the Raspberry Pi
- Stage 3 – a web application using Xively, Python, and Amazon cloud service
- Testing and troubleshooting
- Extending your remote home monitoring system
- Summary
- 11. Tweet-a-PowerStrip
- Index
Product information
- Title: Python Programming for Arduino
- Author(s):
- Release date: February 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783285938
You might also like
book
Python Programming with Raspberry Pi
Become a master of Python programming using the small yet powerful Raspberry Pi Zero About This …
book
Beginning Robotics with Raspberry Pi and Arduino: Using Python and OpenCV
Learn how to use a Raspberry Pi in conjunction with an Arduino to build a basic …
book
MicroPython for the Internet of Things: A Beginner’s Guide to Programming with Python on Microcontrollers
Quickly learn to program for microcontrollers and IoT devices without a lot of study and expense. …
book
C++ Windows Programming
Develop real-world applications in Windows About This Book Create diverse applications featuring the versatility of Small …