Build an 8-bit binary counter in Python
Jun 04, 2019
5 minutes
We’re taking a somewhat different tack for this tutorial. We’ll be learning about the binary numbering system and using Python to build an LED 8-bit binary counter. In digital electronics, a binary number is a base-2 numeral system that uses two symbols, zero and one. By comparison, the decimal number system requires ten different symbols or digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. In digital electronics this is called the base-10 numeral system.
In either base system, the symbols that are used to denote a number take on a different place value depending upon their position. Using the decimal numeral system, the number 114 represents the sum of (1 x 10 ) + (1 x 10 ) + (4 x 10 ). The digit
You’re reading a preview, subscribe to read more.
Start your free 30 days