Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

Attaching and reading an ultrasonic sensor

First, we should wire in and secure these sensors to the robot. We will talk about the requirements for wiring them and go a little further into the voltage levels that we touched upon in chapter 9 Programming RGB Strips in Python, explaining why we use them. We will then write some simple test code that we can use to base our behavior code on in the next section. After this selection, the robot block diagram will look like what's shown in the following diagram:

Robot block diagram with ultrasonic sensors
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content