Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Programming with Raspberry Pi

You're reading from   Python Programming with Raspberry Pi Build small yet powerful robots and automation systems with Raspberry Pi Zero

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781786467577
Length 312 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Sai Yamanoor Sai Yamanoor
Author Profile Icon Sai Yamanoor
Sai Yamanoor
Srihari Yamanoor Srihari Yamanoor
Author Profile Icon Srihari Yamanoor
Srihari Yamanoor
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Getting Started with Python and the Raspberry Pi Zero FREE CHAPTER 2. Arithmetic Operations, Loops, and Blinky Lights 3. Conditional Statements, Functions, and Lists 4. Communication Interfaces 5. Data Types and Object-Oriented Programming in Python 6. File I/O and Python Utilities 7. Requests and Web Frameworks 8. Awesome Things You Could Develop Using Python 9. Lets Build a Robot! 10. Home Automation Using the Raspberry Pi Zero 11. Tips and Tricks

Let's get started!

In the first chapter, we will learn about the Raspberry Pi Zero, set things up for learning Python with this book, and write our first piece of code in Python.

Things needed for this book

The following items are needed for this book. The sources provided are just a suggestion. The reader is welcome to buy them from an equivalent alternative source:

Name Link Cost (in USD)
Raspberry Pi Zero (v1.3 or higher) (The purchase of the Raspberry Pi would be discussed separately) $5.00
USB hub http://amzn.com/B003M0NURK $7.00 approx
USB OTG cable https://www.adafruit.com/products/1099 $2.50
Micro HDMI to HDMI adapter cable https://www.adafruit.com/products/1358 $6.95
USB Wi-Fi adapter http://amzn.com/B00LWE14TO $9.45
Micro USB power supply http://amzn.com/B00DZLSEVI $3.50
Electronics starter kit (or similar) http://amzn.com/B00IT6AYJO $25.00
2x20 headers https://www.adafruit.com/products/2822 $0.95
NOOBS micro SD card or a blank 8 GB micro SD card http://amzn.com/B00ENPQ1GK $13.00
Raspberry Pi camera module (optional) http://a.co/6qWiJe6 $25.00
Raspberry Pi camera adapter (optional) https://www.adafruit.com/product/3170 $5.95

The other items needed for this include a USB mouse, USB keyboard, and a monitor with the HDMI output or DVI output. We will also need an HDMI cable (or DVI to HDMI cable if the monitor has an DVI output). Some vendors such as the Pi Hut sell the Raspberry Pi Zero accessories as a kit (for example, https://thepihut.com/collections/raspberry-pi-accessories/products/raspberry-pi-zero-essential-kit).

Apart from the components mentioned in this section, we will also discuss certain features of the Raspberry Pi Zero and Python programming using additional components such as sensors and GPIO expanders. These components are optional but definitely useful while learning the different aspects of Python programming.

The electronics starter kit mentioned in the bill of materials is just an example. Feel free to order any beginners electronics kit (that contains a similar mix of electronic components).

Buying the Raspberry Pi Zero

The Raspberry Pi Zero is sold by distributors such as the Newark element14, Pi Hut, and Adafruit. At the time of writing this book, we encountered difficulties in buying a Raspberry Pi Zero. We recommend monitoring websites such as www.whereismypizero.com to find out when the Raspberry Pi Zero becomes available. We believe that it is rare to locate the Pi Zero because of its popularity. We are not aware if there might be an abundant stock of the Raspberry Pi Zero in the future. The examples discussed in this book are also compatible with the other flavors of the Raspberry Pi (for example, Raspberry Pi 3).

Pi Zero availability information provided by www.whereismypizero.com

While purchasing the Raspberry Pi Zero, make sure that the board version is 1.3 or higher. The board version is printed on the backside of the board (the example of this is shown in the following picture). Verify that the board version using the seller's product description before purchase:

Raspberry Pi board version
You have been reading a chapter from
Python Programming with Raspberry Pi
Published in: Apr 2017
Publisher: Packt
ISBN-13: 9781786467577
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image