Chapter 15. 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 turns on a switch if the first point's voltage is greater than the second point's voltage. It turns off ...

Get Robot Building for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.