Beginning robotics with Raspberry Pi and Arduino using Python and OpenCV

Learn how to use a Raspberry Pi in conjunction with an Arduino to build a basic robot with advanced capabilities. Getting started in robotics does not have to be difficult. This book is an insightful and rewarding introduction to robotics and a catalyst for further directed study. You'll be led...

Full description

Bibliographic Details
Main Author: Cicolani, Jeff
Format: eBook
Language:English
Published: New York Apress 2018
Series:Technology in action
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Remote AccessRemote Desktop with xrdp; SSH with PuTTY; Finding Your Device on a Network; Summary; Chapter 3: A Crash Course in Python; Python Overview; Downloading and Installing Python; Python Tools; The Python Shell; The Python Editor; The Zen of Python; Writing and Running a Python Program; Hello World; Basic Structure; Program Parts; Indentation; Comments; Running a Program; Programming in Python; Variables; Data Types; Strings; String Manipulation; Numbers; Lists; Tuples; Dictionaries; None Type; A Final Note on Variables; Control Structures; if Statements; Loops; for Loop; while Loop
  • Intro; Table of Contents; About the Author; About the Technical Reviewer; Introduction; Chapter 1: Introduction to Robotics; Robotics Basics; Linux and Robotics; Sensors and GPIO; Motion and Control; Raspberry Pi and Arduino; Project Overview; The Robot; Bill of Materials (BOM); Summary; Chapter 2: An Introduction to Raspberry Pi; Downloading and Installing Raspbian; Raspbian with OpenCV; The "Hard" Way; The "Easy" Way; Connecting Raspberry Pi; Configuring Your Pi; Using raspi-config; Users; Securing Root; Change the Default Username; Connecting to a Wireless Network; Going Headless
  • Cheating with ExamplesUsing Tabs and Multiple Files; Sketches; Hello Arduino; Anatomy of a Sketch; A Brief Introduction to the Arduino Language; Including Other Files; Variables and Data Types; Characters and Strings; The String Object; Numbers; Arrays; Control Structures; if and else; while Loops; for Loops; Functions; Working with Pins; Digital Operations; Analog Input; Analog Output (PWM); Pulsing LED; The Circuit; The Code; Objects and Classes; Serial; Connecting to Serial; Sending Serial Data; Receiving Serial Data; Arduino to Pi and Back Again; Installing PySerial
  • Pulse Width Modulation (PWM)Hooking Up the Circuit; Writing the Code; Simple Input; Push-button Example; Hooking up the Circuit; Writing the Code; Sonic Rangefinder Example; Hooking Up the Circuit; Writing the Code; Summary; Chapter 5: Raspberry Pi and Arduino; Raspberry Pi's GPIO in Review; Real-Time or Near Real-Time Processing; Analog Input; Analog Output; Arduino to the Rescue; Using Arduino; Installing the Arduino IDE; Connecting an Arduino; Programming Arduino; The Arduino IDE; Icons and the Menu; Creating a New Sketch; Saving a Sketch; Opening Exiting Sketches; Board and Port Selection
  • FunctionsDefining a Function; Passing Arguments; Default Values; Return Values; Adding Functionality through Modules; Importing and Using Modules; Built-in Modules; Extended Modules; Custom Modules; Classes; Creating a Class; Planning; Initial Sample Robot Class; Initial Sample Robot Class; Styling; Blank Lines; Commenting; Naming Conventions; Summary; Chapter 4: Raspberry Pi GPIO; Raspberry Pi GPIO; Pin Numbering; Connecting to the Raspberry Pi; Limitations of Raspberry Pi's GPIO; Accessing GPIO with Python; Simple Output: LED Example; Hooking Up the Circuit; Writing the Code