CHAPTER 22

Binary Clock

image

This project uses different colored LEDs to display the time. However, it displays the time in binary, with a 1 being indicated by the LED being lit (Figure 22-1).

image

FIGURE 22-1 Binary clock.

 

Binary

The decimal numbers that we usually use have 10 possible digits in each position. That is, each digit is between 0 and 9, and if we need a number bigger than 9, we add another digit that counts in 10s rather than single units.

Binary only has two possible values in each digit position—a 1 or a 0. Therefore, this means that ...

Get The TAB Book of Arduino Projects: 36 Things to Make with Shields and Proto Shields 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.