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

Method 1 – using a standalone Arduino sketch


As we discussed in the previous chapters, a project can be implemented by creating project-specific native Arduino code or by using a Python-Arduino hybrid approach.

The native Arduino sketches are useful in applications where negligible or no communication with a computer system is required. Although this type of standalone project enables continuous operation in the absence of serial connectivity, it is difficult to keep updating and uploading an Arduino sketch for minor modifications.

If you look at the various applications of this project, you will notice that only a few of them require the project to be implemented as a standalone system that just detects motion and blinks LEDs. This type of system can be easily implemented by a simple Arduino sketch.

The project setup

Before we go ahead with the project, make sure that you have the following things in place:

  • The hardware components are set up and are functioning correctly

  • Your Arduino is connected...