Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Results Page:  Previous Next
Author Yamanoor, Sai, author.

Title Python programming with Raspberry Pi : build small yet powerful robots and automation systems with Raspberry Pi Zero / Sai Yamanoor, Srihari Yamanoor. [O'Reilly electronic resource]

Publication Info. Birmingham, UK : Packt Publishing, 2017.
QR Code
Description 1 online resource (305 pages) : illustrations
Summary Become a master of Python programming using the small yet powerful Raspberry Pi Zero About This Book This is the first book on the market that teaches Python programming with Raspberry Pi Zero Develop exciting applications such as a mobile robot and home automation controller using Python This step-by-step guide helps you make the most out of Raspberry Pi Zero using Python programming Who This Book Is For This book is aimed at hobbyists and programmers who want to learn Python programming and develop applications using the Pi Zero. They should have basic familiarity with electronics. What You Will Learn Configure Raspberry Pi using Python Control loops to blink an LED using simple arithmetic operations Understand how interface sensors, actuators, and LED displays work Get to grips with every aspect of Python programming using practical examples Explore machine vision, data visualization, and scientific computations Build a mobile robot using the Raspberry Pi as the controller Build a voice-activated home automation controller In Detail Raspberry Pi Zero is a super-small and super-affordable product from Raspberry Pi that is packed with a plethora of features and has grabbed the notice of programmers, especially those who use Python. This step-by-step guide will get you developing practical applications in Python using a Raspberry Pi Zero. It will become a valuable resource as you learn the essential details of interfacing sensors and actuators to a Raspberry Pi, as well as acquiring and displaying data. You will get started by writing a Python program that blinks an LED at 1-second intervals. Then you will learn to write simple logic to execute tasks based upon sensor data (for example, to control a motor) and retrieve data from the web (such as to check e-mails to provide a visual alert). Finally, you will learn to build a home automation system with Python where different appliances are controlled using the Raspberry Pi. The examples discussed in each chapter of this book culminate in a project that help improve the quality of people's lives. Style and approach This will be a learning, step-by-step guide to teach Python programming using the famous Raspberry Pi Zero. The book is packed with practical examples at every step along with tips and tricks for the Raspberry Pi fans.
Contents Credits; About the Authors; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Getting Started with Python and the Raspberry Pi Zero; Let's get started!; Things needed for this book; Buying the Raspberry Pi Zero; Introduction to the Raspberry Pi Zero; The features of the Raspberry Pi Zero; The setup of the Raspberry Pi Zero; Soldering the GPIO headers; Enclosure for the Raspberry Pi Zero; OS setup for the Raspberry Pi; micro SD card preparation; Let's learn Python!; The Hello World example; Setting up your Raspberry Pi Zero for Python programming.
IDLE's interactive toolThe text editor approach; Launching the Python interpreter via the Linux Terminal; Executing Python scripts using the Linux Terminal; The print() function; The help() function; Summary; Chapter 2: Arithmetic Operations, Loops, and Blinky Lights; Hardware required for this chapter; Arithmetic operations; Bitwise operators in Python; Logical operators; Data types and variables in Python; Reading inputs from the user; The formatted string output; The str.format() method; An exercise for the reader; Another exercise for the reader; Concatenating strings; Loops in Python.
A for loopIndentation; Nested loops; A while loop; Raspberry Pi's GPIO; Blinky lights; Code; The applications of GPIO control; Summary; Chapter 3: Conditional Statements, Functions, and Lists; Conditional statements; An if-else statement; if-elif-else statement; Breaking out of loops; The applications of conditional statements: executing tasks using GPIO; Breaking out a loop by counting button presses; Functions in Python; Passing arguments to a function:; Returning values from a function; The scope of variables in a function; GPIO callback functions; DC motor control in Python.
Some mini-project challenges for the readerSummary; Chapter 4: Communication Interfaces; UART -- serial port; Raspberry Pi Zero's UART port; Setting up the Raspberry Pi Zero serial port; Example 1 -- interfacing a carbon dioxide sensor to the Raspberry Pi; Python code for serial port communication; I2C communication; Example 2 -- PiGlow; Installing libraries; Example; Example 3 -- Sensorian add-on hardware for the Raspberry Pi; I2C drivers for the lux sensor; Challenge; The SPI interface; Example 4 -- writing to external memory chip; Challenge to the reader; Summary.
Chapter 5: Data Types and Object-Oriented Programming in PythonLists; Operations that could be performed on a list; Append element to list:; Remove element from list:; Retrieving the index of an element; Popping an element from the list; Counting the instances of an element:; Inserting element at a specific position:; Challenge to the reader; Extending a list; Clearing the elements of a list; Sorting the elements of a list; Reverse the order of elements in list; Create copies of a list; Accessing list elements; Accessing a set of elements within a list; List membership.
Subject Raspberry Pi (Computer)
Python (Computer program language)
Computer input-output equipment.
Raspberry Pi (Ordinateur)
Python (Langage de programmation)
Ordinateurs -- Équipement d'entrée-sortie.
Computer input-output equipment
Python (Computer program language)
Raspberry Pi (Computer)
Added Author Yamanoor, Srihari, author.
Other Form: Print version: Yamanoor, Sai. Python Programming with Raspberry Pi. Birmingham : Packt Publishing, ©2016
ISBN 9781786469151 (electronic bk.)
1786469154 (electronic bk.)
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information