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

Stage 2 – a control center using Python and the Raspberry Pi


In order to deliver the status of the system and other sensor observations to the user, the control center needs to perform various operations that include obtaining raw sensor data from the monitoring station, calculating the status of the system, reporting this data to the cloud services, and displaying observation using GUI. While the control center includes two major hardware components (the Raspberry Pi and TFT LCD screen), it is also comprised of two major software components (the Mosquitto broker and Python code) to handle the control center logic.

Tip

We are using a Raspberry Pi instead of a regular computer as we want the control center to be a deployable and portable unit that can be mounted on a wall.

You can still use your own computer to edit and test the Python code for development purposes instead of using a Raspberry Pi directly. However, we recommend that you switch back to the Raspberry Pi once you are ready for...