Supposedly, our laboratory assignment for our Digital Electronics class is driving a 7-Segment display. However, we weren’t able to perform it due to time constraint brought by the Typhoon Odette. Curios as I am, I decided to perform it anyway without lab intruction from our instructor. My first attempt is to use an Arduino UNO to drive 7-segment display by mapping the corresponsing segments for a decimal digit and store it as an array.
From the name itself, 7-segment display is just 7 LEDs arranged in a manner shown below.
Each segment as a corresponding pin which to need to power on/off depending on the digit we want to display. For our purpose, we want to display digits 0 to 9.