Search icon CANCEL
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
Learn Robotics Programming

You're reading from   Learn Robotics Programming Build and control autonomous robots using Raspberry Pi 3 and Python

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher Packt
ISBN-13 9781789340747
Length 472 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Danny Staple Danny Staple
Author Profile Icon Danny Staple
Danny Staple
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Introduction to Robotics 2. Exploring Robot Building Blocks - Code and Electronics FREE CHAPTER 3. Introducing the Raspberry Pi - Starting with Raspbian 4. Preparing a Raspberry Pi for a Robot - Headless by Default 5. Backing Up the Code with Git and SD Card Copies 6. Building Robot Basics - Wheels, Power, and Wiring 7. Drive and Turn - Moving Motors with Python 8. Programming Line-Following Sensors Using Python 9. Programming RGB Strips in Python 10. Using Python to Control Servo Motors 11. Programming Distance Sensors with Python 12. Programming Encoders with Python 13. Robot Vision - Using a Pi Camera and OpenCV 14. Voice Communication with a Robot Using Mycroft 15. Programming a Gamepad on Raspberry Pi with Python 16. Taking Your Robot Programming Skills Further 17. Planning Your Next Robot Project - Putting It All Together 18. Assessments 19. Other Books You May Enjoy Appendix

Chapter 9, Programming RGB Strips in Python

  • When soldering, do you heat the pad, the pin, or the solder?
    • You heat the pad and pin first, so the solder melts and flows into them.
  • Why do you not connect the LED strip directly to the Raspberry Pi?
    • The LED strip requires 5V and the Pi is running 3.3V. At best, it will communicate poorly; at worst, it could damage the Pi. Use the logic-level shifter.
  • Why are we using fractions of the number of LEDs in the LED class for our ranges?
    • The number of LEDs in different strips and configurations can change, for example, the LED Shim has 24 LEDs. This means one behavior will work with different LED setups.
  • What is the difference between a HSV color with a saturation of 0 and a saturation at the full range?
    • At saturation 0, the color will be gray or have nearly no color. At the full range, the color will be very vivid.
...
lock icon The rest of the chapter is locked
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