Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Python Programming for Arduino
  • Table Of Contents Toc
  • Feedback & Rating feedback
Python Programming for Arduino

Python Programming for Arduino

By : Pratik Desai
4.6 (22)
close
close
Python Programming for Arduino

Python Programming for Arduino

4.6 (22)
By: Pratik Desai

Overview of this book

This is the book for you if you are a student, hobbyist, developer, or designer with little or no programming and hardware prototyping experience, and you want to develop IoT applications. If you are a software developer or a hardware designer and want to create connected devices applications, then this book will help you get started.
Table of Contents (18 chapters)
close
close
Python Programming for Arduino
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Remaking your first Python-Arduino project with a GUI


Just to refresh your memory, I would like to remind you that we created a motion detection system that generated alerts by blinking the red LED when a motion was detected. While working with the project, we were printing the state of the proximity sensor onto the Python prompt. In this exercise, we are going to use the concepts that you learned in the previous exercises and we will create an interface for our project.

As part of this exercise, you have to connect the same circuit that we used in Chapter 3, The First Project – Motion-triggered LEDs. Make sure you have the exact same circuit with the PIR sensor and the LEDs before you move ahead. Once you are ready with your hardware, open the firstProjectWithGUI.py file from the code folder of this chapter. In the code, change the appropriate port values and run the GUI for the project.

As you can see in the pin assignments, we now have three digital pins—two of them as outputs and one as...

Limited Time Offer

$10p/m for 3 months

Get online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech and supported with AI assistants
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon

Create a Note

Modal Close icon
You need to login to use this feature.

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note