O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Python Robotics Projects

Book Description

Leverage the power of Python to build DIY robotic projects

About This Book
  • Design, build, and stimulate collaborative robots
  • Build high-end robotics projects such as a customized personal Jarvis
  • Leverage the power of Python and ROS for DIY robotic projects
Who This Book Is For

If building robots is your dream, then this book is made for you. Prior knowledge of Python would be an added advantage.

What You Will Learn
  • Get to know the basics of robotics and its functions
  • Walk through interface components with microcontrollers
  • Integrate robotics with the IoT environment
  • Build projects using machine learning
  • Implement path planning and vision processing
  • Interface your robots with Bluetooth
In Detail

Robotics is a fast-growing industry. Multiple surveys state that investment in the field has increased tenfold in the last 6 years, and is set to become a $100-billion sector by 2020. Robots are prevalent throughout all industries, and they are all set to be a part of our domestic lives. This book starts with the installation and basic steps in configuring a robotic controller. You'll then move on to setting up your environment to use Python with the robotic controller. You'll dive deep into building simple robotic projects, such as a pet-feeding robot, and more complicated projects, such as machine learning enabled home automation system (Jarvis), vision processing based robots and a self-driven robotic vehicle using Python.

By the end of this book, you'll know how to build smart robots using Python.

Style and approach

A simple step-by-step guide to help you learn the concepts of robotics using simple to advanced steps. You'll not only learn the concepts of AI, machine learning, and Vision Processing, but also how to practically implement them in your projects.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Title Page
  2. Copyright and Credits
    1. Python Robotics Projects
  3. Packt Upsell
    1. Why subscribe?
    2. PacktPub.com
  4. Contributors
    1. About the author
    2. About the reviewer
    3. Packt is searching for authors like you
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
      1. Download the example code files
      2. Download the color images
      3. Conventions used
    4. Get in touch
      1. Reviews
  6. Robotics 101
    1. The hardware arsenal
    2. Setting up Raspberry Pi
    3. Let's program
    4. Playing with voltage
    5. Summary
  7. Using GPIOs as Input
    1. A deeper dive into GPIOs
      1. Interfacing the PIR sensor
      2. Interfacing the ultrasonic proximity sensor
    2. Interfacing through I2C
    3. Summary 
  8. Making a Gardener Robot
    1. Working with solenoids
    2. Making the robot
      1. Making it more intelligent
      2. Making it truly intelligent
    3. Summary
  9. Basics of Motors
    1. The basics
    2. Getting it rolling
    3. Changing the speed 
    4. Summary
  10. Making a Pet Feeding Robot
    1. Force measurement
    2. Constructing the robot 
    3. Making the robot detect pets
    4. Summary
  11. Bluetooth-Controlled Robotic Car
    1. Basics of the vehicle
    2. Getting the vehicle ready
    3. Controlling the vehicle by Bluetooth
    4. Summary
  12. Sensor Interface for Obstacle Avoidance
    1. Infrared proximity sensor
    2. Autonomous emergency braking
    3. Giving the car self-steering capabilities
    4. Making it fully autonomous
    5. Summary
  13. Making Your Own Area Scanner
    1. Servo motor
    2. Lists
    3. Looking around 
    4. LIDAR on an autonomous vehicle 
    5. Summary
  14. Vision Processing
    1. The basics of images
      1. Preparing Raspberry Pi for vision processing application
    2. Image recognition
    3. Summary
  15. Making a Guard Robot
    1. Face detection
    2. Knowing the face
    3. Recognizing the face
    4. Making the guard robot
    5. Summary
  16. Basic Switching
    1. Making Jarvis wake you up 
      1. Working with relay and PIR sensor
      2. Making the alarm irritating
      3. Making it even more irritating
    2. Summary
  17. Recognizing Humans with Jarvis
    1. Turn on the light Jarvis
    2. Understanding motion
    3. Perfecting motion
      1. Controlling the intensity
      2. Intelligent temperature control
      3. Adding more 
    4. Summary
  18. Making Jarvis IoT Enabled
    1. Basics of IoT
    2. The MQTT protocol
    3. Setting up the MQTT broker
    4. Making an IoT-based intrusion detector
    5. Controlling the home
    6. Summary
  19. Giving Voice to Jarvis
    1. Basic installation
    2. Automatic delivery answering machine 
    3. Making an interactive door – answering robot
    4. Making Jarvis understand our voice
    5. Summary
  20. Gesture Recognition
    1. Electric field sensing
    2. Using the Flick HAT
    3. Gesture recognition-based automation
    4. Summary
  21. Machine Learning
    1. Making a dataset
    2. Predicting using a dataset
    3. Making your home learn
    4. Home learning and automation
    5. Summary
  22. Gesture-Controlled Robotic Vehicle
    1. Accelerometers and gyroscope
    2. Interfacing the inertial measurement unit
    3. Gesture-controlled car 
    4. Making it more advanced
    5. Summary
  23. Making a Robotic Arm
    1. Basics of a robotic arm
    2. Degrees of freedom
    3. Power house
      1. Voltage
      2. Capacity
      3. Power-to-weight ratio
      4. Maximum charge and discharge rate
      5. Chemical composition
    4. Finding the limits
    5. Making the robot safe
    6. Programming multiple frames
    7. Speed control
    8. Summary
  24. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think