Python Programming with Raspberry Pi
Build small yet powerful robots and automation systems with Raspberry Pi Zero
Sai Yamanoor
Srihari Yamanoor
BIRMINGHAM - MUMBAI
Python Programming with Raspberry Pi
Copyright 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2017
Production reference: 1260417
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78646-757-7
www.packtpub.com
Credits
Authors Sai Yamanoor Srihari Yamanoor | Copy Editors Safis Editing Dipti Mankame |
Reviewer Ian McAlpine | Project Coordinator Judie Jose |
Commissioning Editor Vijin Boricha | Proofreader Safis Editing |
Acquisition Editor Rahul Nair | Indexer Pratik Shirodkar |
Content Development Editor Abhishek Jadhav | Graphics Kirk D'Penha |
Technical Editor Gaurav Suri | Production Coordinator Shantanu N. Zagade |
About the Authors
Sai Yamanoor is an embedded systems engineer working for a private startup school in the San Francisco Bay Area, where he builds devices that helps students achieve their full potential. He completed his graduate studies in Mechanical Engineering at Carnegie Mellon University, Pittsburgh PA, and his undergraduate work in Mechatronics Engineering from Sri Krishna College of Engineering and Technology, Coimbatore, India. His interests, deeply rooted in DIY and ppen software and hardware cultures, include developing gadgets and apps that improve Quality of Life, Internet of Things, crowdfunding, education, and new technologies. In his spare time, he plays with various devices and architectures such as the Raspberry Pi, Arduino, Galileo, Android devices and others. Sai blogs about his adventures with Mechatronics at the aptly named Mechatronics Craze blog at http://mechatronicscraze.wordpress.com/. You can find his project portfolios at http://saiyamanoor.com.
This book is Sai's second title and he has earlier published a book titled Raspberry Pi Mechatronics Projects.
I would like to thank my parents for encouraging me in all my endeavors and for making me what I am today. I am thankful to my brother who has helped me shape my career all these years. I would like to sincerely apologize to Balaji Raghavendra for the mixup with the first book and sincerely thank him for his reviews and advice on the first book. I am also thankful to the team at Packt, especially Abhishek who was patient and understanding under trying circumstances.
Srihari Yamanoor is a mechanical engineer, working on medical devices, sustainability, and robotics in the San Francisco Bay Area. He completed his graduate studies in Mechanical Engineering at Stanford University, and his undergraduate studies in Mechanical Engineering from PSG College of Technology, Coimbatore, India. He is severally certified in SolidWorks, Simulation, Sustainable Design, PDM as well as, in quality and reliability engineering and auditing. His interests have a wide range, from DIY, crowdfunding, AI, travelling, and photography to gardening and ecology. In his spare time, he is either traveling across California, dabbling in nature photography, or at home, tinkering with his garden and playing with his cats.
I have many people to thank for any and all success in my life, one of the culminations being this second book. I start with my parents for always making sure that I put my career and education first. My brother Sai Yamanoor, is the main reason I have my name on not one, but two books! I have to thank several professors and teachers, not the least of whom are Kenneth Waldron, Dr. Radhakrishnan, Dr. R. Rudramoorthy, Dr. K.A. Jagadeesh, Cyril "Master", and the Late "Master" Williams. Of course, I'd be remiss, if I didnt acknowledge my mentors, Russ Sampson, James Stubbs, Mukund Patel, and Anna Tamura. Then, I have my dearest friends, Patrick Nguyen, Anna Jao, Andrew Eib, Vishnu Prasad Ramachandran, and David Ma, who have put up with my quirks over the last several years, patiently offering advice and helping me weather several storms. I too would like to apologize to Balaji Raghavendra, who was left out of the acknowledgements from our last book, purely by accident, and nevertheless, inexcusably so. Without your help, we would not have been able to complete that book and start on this one. I second Sai in recognizing Abhishek Jadhavs immeasurable patience and guidance throughout the course of the publication of this book. Last but not the least, there are my beloved felines, the glaring that keeps me going Bob, Gi-Ve, Fish Bone and Saxi.
We would like to acknowledge that 100% of the proceeds in revenue and profits of the authors, is being turned over to worthy non-profits.
About the Reviewer
Ian McAlpine had his first introduction to computers was his school's Research Machines RML-380Z and his physics teacher's Compukit UK101. That was followed by a Sinclair ZX81 and then a BBC Micro Model A, which he still has to this day. That interest resulted in a MEng degree in Electronic Systems Engineering from Aston University and an MSc degree in Information Technology from the University of Liverpool. Ian is currently a Senior Product Expert in the BI & Analytics Competence Centre at SAP Labs in Vancouver, Canada.
The introduction of the Raspberry Pi rekindled his desire to "tinker", but also provided an opportunity to give back to the community. Consequently Ian was a very active volunteer for 3 years on The MagPi, a monthly magazine for the Raspberry Pi, which you can read online or download for free at http://www.raspberrypi.org/magpi/. He also holds an amateur radio license (callsign VE7FTO) and is a communications volunteer for his local community Emergency Management Office. He was a technical reviewer for Packt books, such as Raspberry Pi Cookbook for Python Programmers
Next page