In this chapter, we introduced two major Python programming paradigms: creating, reading, and writing files using Python while also storing data into these files and plotting sensor values and updating plots in real time. We also explored methods to store and plot real-time Arduino sensor data. Besides helping you in your Arduino projects, these methods can also be used in your everyday Python projects. Throughout the chapter, using simple exercises, we interfaced the newly learned CSV and matplotlib
modules with the Tkinter
and pyFirmata
modules that we learned in the previous chapters. In the next chapter, you will be introduced to your second project—a portable unit that measures and displays environmental data such as temperature, humidity, and ambient light. We will be utilizing the concepts that we have learned so far to build this project.
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