Reader small image

You're reading from  Practical Arduino Robotics

Product typeBook
Published inMar 2023
PublisherPackt
ISBN-139781804613177
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Lukas Kaul
Lukas Kaul
author image
Lukas Kaul

Lukas Kaul is a robotics Research Scientist, currently working at the Toyota Research Institute in Silicon Valley, where he develops mobile manipulation technologies to support people in their homes and in their workplace. Throughout his career he has worked on projects as diverse as humanoid robots, aerial robots and mobile manipulation systems. A maker at heart, Lukas has been using Arduino technology extensively for more than a decade in countless side-projects, ranging from mapping systems to self-balancing robots. Lukas is passionate about teaching robotics with Arduino to inspire and empower anyone who wants to enter the exciting field of robotics. He holds a PhD degree from the Karlsruhe Institute of Technology, Germany.
Read more about Lukas Kaul

Right arrow

Common sensor interfaces and code examples

Now that we have gotten to know a few types of very useful sensors for Arduino robots, we need to understand how to talk to them. As we mentioned in Chapter 1, Introducing Robotics and the Arduino Ecosystem, an Arduino board such as the Arduino Uno has many different types of interfaces and the Arduino IDE provides us with the software building blocks to use these interfaces very easily. This section will walk you through the most relevant interfaces and show example code for each of them that communicates with a specific sensor.

GPIO – great for simple sensors

General-Purpose Input/Output (GPIO) includes all the digital pins of our Arduino. For the purpose of this section, we will only use its input functionality. To interface with sensors, it can be used in two different modes (with and without an internal pull-up resistor), and some GPIOs can serve as external interrupt triggers to capture inputs with very high timing accuracy...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Practical Arduino Robotics
Published in: Mar 2023Publisher: PacktISBN-13: 9781804613177

Author (1)

author image
Lukas Kaul

Lukas Kaul is a robotics Research Scientist, currently working at the Toyota Research Institute in Silicon Valley, where he develops mobile manipulation technologies to support people in their homes and in their workplace. Throughout his career he has worked on projects as diverse as humanoid robots, aerial robots and mobile manipulation systems. A maker at heart, Lukas has been using Arduino technology extensively for more than a decade in countless side-projects, ranging from mapping systems to self-balancing robots. Lukas is passionate about teaching robotics with Arduino to inspire and empower anyone who wants to enter the exciting field of robotics. He holds a PhD degree from the Karlsruhe Institute of Technology, Germany.
Read more about Lukas Kaul