Read Input from switches and Output to Seven Segment Display.


Arduino UNO


1 Seven Segment Display

4 Push Button Switches

6 1k ohm Resistors

Connecting Wires


The 4 switches will serve as input, where "on" state reads as 1 in Binary digit and "off" state reads as 0 in Binary digits.


The Seven Segment Display will serve as output, where it will display the Decimal equivalent of the BInary input.


Example: if only the 1st switch is on, and the 3 switches are off, the input will read 1000, and the Seven Segment will display the equivalent decimal of 1000 which is 8.