Search icon
Subscription
0
Cart icon
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
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

Table of Contents (18) Chapters

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

Motion-triggered LEDs – the project description


When you start learning any programming language, in most cases, you will be writing code to print 'Hello World!'. Meanwhile, in hardware projects, the majority of tutorials begin by helping a user to write the code to blink an LED. These exercises or projects are useful for developers to get started with the language, but mostly, they do not carry any importance towards real-world applications. However, we don't want to overwhelm you with a complex and sophisticated project that might require you to have a good amount of domain knowledge.

While working with the Firmata protocol in the previous chapter, we already blinked an LED on the Arduino board. To keep the tradition alive (of having a blinking LED as a first major project) and also build excitement towards the project, let's put a twist in the blinking LED project. In this project, we will blink two different LEDs, but instead of performing these actions in a random manner, we will do...

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}