Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Programming for Arduino

You're reading from  Python Programming for Arduino

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781783285938
Pages 400 pages
Edition 1st Edition
Languages
Toc

Table of Contents (18) Chapters close

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 5. Working with the Python GUI 6. Storing and Plotting Arduino Data 7. The Midterm Project – a Portable DIY Thermostat 8. Introduction to Arduino Networking 9. Arduino and the Internet of Things 10. The Final Project – a Remote Home Monitoring System 11. Tweet-a-PowerStrip Index

Method 2 – using Python and Firmata


In the previous chapter, we discussed the benefits of using Python programming that is assisted by Firmata over using native Arduino sketches. The Python-based programming approach provides tangible experience when performing any algorithmic or parametric changes. In this section, we are going to explore these benefits and also learn important Python programming paradigms.

The project setup

Let's make sure that you have done the following before we go ahead with Python programming:

  • Made sure that the hardware components are set up, as described in the system design

  • Connected the Arduino to your computer using a USB cable

  • Uploaded the StandardFirmata sketch back to Arduino

  • Made sure that you have Python and the Python packages (pySerial and pyFirmata) installed on your computer

  • Obtained a text editor to write Python codes

Working with Python executable files

In the previous chapters, we explored Python programming using the interactive Python interpreter. However...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}