So far, we used a hardwired serial connection to interact with Arduino, a serial monitor to observe the Arduino serial data, and a Python serial library (pySerial
) to transfer data between the Arduino and Python applications. During this entire exchange, the range of communication was limited due to the hardwired serial connection. As a solution, you can use a wireless protocol such as ZigBee, Bluetooth, or other RF channels to establish a communication channel for a remote serial interface. These wireless protocols are extensively used in remote hardware applications, and they use the serial interface to transfer data. Due to their use of serial communication, these protocols require very little to no additional programming changes on the Arduino or Python side. You may require additional hardware to enable these protocols, however. The major benefit of these protocols is that they are really easy to implement. However, they are restricted with...
Python Programming for Arduino
Python Programming for Arduino
Overview of this book
Table of Contents (18 chapters)
Python Programming for Arduino
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with Python and Arduino
Working with the Firmata Protocol and the pySerial Library
The First Project – Motion-triggered LEDs
Diving into Python-Arduino Prototyping
Working with the Python GUI
Storing and Plotting Arduino Data
The Midterm Project – a Portable DIY Thermostat
Introduction to Arduino Networking
Arduino and the Internet of Things
The Final Project – a Remote Home Monitoring System
Tweet-a-PowerStrip
Index
Customer Reviews