The goal of this lab was to wire and program a seven segment display with an Arduino to count to 15 in hexadecimal. They wired the display to digital output ports on the Arduino and used a switch case to set the proper segments to display each number. By creating a for loop that incremented by one and included the switch case function, they were able to easily increment the display up to 15. Determining the correct ports for each segment and manually programming the LED output for each switch case presented some challenges.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
66 views
7 Segment Display Lab
The goal of this lab was to wire and program a seven segment display with an Arduino to count to 15 in hexadecimal. They wired the display to digital output ports on the Arduino and used a switch case to set the proper segments to display each number. By creating a for loop that incremented by one and included the switch case function, they were able to easily increment the display up to 15. Determining the correct ports for each segment and manually programming the LED output for each switch case presented some challenges.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Seven Segment Display Lab
Hunter Schmidt, Michael Heng and Justice Davis
Goal: The goal of this lab was to wire and program a seven segment display with an Arduino microcontroller in order to count to 15 in hexadecimal. Procedure: We began with a basic setup to wire the Arduino to a USB male connection to get data and power. Then we wired the seven segment display to digital output ports. Initially we had to determine which port went to each segment. Then, we created a switch case to set the proper segments to fire for each number. Because the display is common cathode, we had to turn off segments by setting the output to HIGH and turn on segments by sending a LOW value. By creating a for loop that incremented by one, and putting the switch case function in the loop, we could increment the display easily. Problems Encountered: We had to determine the ports that went to each segment. We also had trouble manually programming the led output for every switch case.