Arduino 7 Segment Display Lab CTY SAR FCPS Alexander Velikanov
What are we working with?
How to Shine a display? This type of display uses 7 segments to create the image and the 1 segment for the decimal point. Each segment has it's own input for a high voltage and then the entire digit has a common ground called a common cathode which takes up a single pin
Arduino Proximity Schematic
Goal Have the display loop through a few letters then through all the numbers 0-9 and a decimal point.
Programming The Display
Display Code Initializing global variables Setup() Loop() Create a constant for each pin and the associated segment of the display Create a function for each letter and number you which to print, making sure you set to LOW each segment you don't want on Make a function that loops through every letter/number with a 1 second pause in between Setup() Serial.begin(9600) starts using the Serial Port Turn every pin to digital output Loop() Send a serial message that the program is starting Call the character looping function
CODE
Building the Display circuit
Supplies 1 Arduino Leonardo board 2 220 ohm resistors 12 wires 1 7 segment display
Diagram of distance Circuit
Questions?