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

What are optical line sensors?

There are a few types of sensor that can be used. One type is known as hall sensors, which can detect magnetic strips or current carrying cables. The other type are optical sensors. Basic optical line sensing bounces infrared light off of whatever is below the robot. It then detects the intensity of the reflected light.

These send a data value depending on this. The sensor we will use turns this intensity into a binary, 1 or 0, value by seeing if the detected light passes a threshold. The following photo shows the sensors:

A pair of line sensors

The previous photo shows a typical pair of inexpensive optical line ...

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