Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Python Programming for Arduino
  • Toc
  • feedback
Python Programming for Arduino

Python Programming for Arduino

By : Pratik Desai
4.6 (22)
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 (13 chapters)
close
12
Index

Stage 1 – prototyping the thermostat


In this prototyping stage, we will develop the Arduino and Python code for our thermostat, which will be later used in the second stage with minor changes. Before you start the coding exercise, make sure that you have the thermostat sensor unit ready with the Arduino board and the connected sensors, as described in the previous section. For this stage, you will be using your regular computer which is equipped with the Arduino IDE and the Python programming environment. The prototyping stage requires two levels of programming, the Arduino sketch for the thermostat sensor unit and the Python code for the computational unit. Let's get started with coding for our thermostat.

The Arduino sketch for the thermostat

The goal of this Arduino program is to interface sensors, get measurements from the sensors, and print them on the serial port. As we discussed earlier, rather than using the standard Firmata sketch that we used in the previous project, we are going...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

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