coverpage
Python Programming for Arduino
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Python and Arduino
Introduction to Python
Installing Python and Setuptools
The fundamentals of Python programming
Python operators and built-in types
Introduction to Arduino
Getting started with the Arduino IDE
Introduction to Arduino programming
Summary
Chapter 2. Working with the Firmata Protocol and the pySerial Library
Connecting the Arduino board
Introducing the Firmata protocol
Getting started with pySerial
Bridging pySerial and Firmata
Summary
Chapter 3. The First Project – Motion-triggered LEDs
Motion-triggered LEDs – the project description
The project goal
Method 1 – using a standalone Arduino sketch
Method 2 – using Python and Firmata
Summary
Chapter 4. Diving into Python-Arduino Prototyping
Prototyping
Working with pyFirmata methods
Prototyping templates using Firmata
Prototyping with the I2C protocol
Summary
Chapter 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
Chapter 6. Storing and Plotting Arduino Data
Working with files in Python
Using CSV files to store data
Storing Arduino data in a CSV file
Getting started with matplotlib
Plotting random numbers using matplotlib
Plotting data from a CSV file
Plotting real-time Arduino data
Integrating plots in the Tkinter window
Summary
Chapter 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
Chapter 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
Chapter 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
Chapter 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
Chapter 11. Tweet-a-PowerStrip
Project overview
Stage 1 – a smart power strip with Arduino and relays
Stage 2 – the Python code to process tweets
Testing and troubleshooting
Extending the project with additional features
Summary
Index
更新时间:2021-07-23 20:11:54