Book Image

Python Programming for Arduino

Book Image

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
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...