O'Reilly logo

Robot Building for Beginners, Third Edition by David Cook

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

CHAPTER 15

image

Comparators

You’re in the midst of prototyping a line-following robot on a solderless breadboard. At this point, the breadboard has a power supply (9 V battery), a power switch, a power indicator (LED circuit), and two pairs of brightness sensors. It’s time to add some brains.

In this chapter, you’ll learn about a comparator chip. Upon adding it to the breadboard, it compares the sensors and illuminates an LED depending on which pair of sensors is receiving more light.

Voltage Comparator

An analog voltage comparator chip (see Figure 15-1) is somewhat like a tiny voltmeter with built-in switches. It samples voltages at two points and ...

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

Start Free Trial

No credit card required