Download presentation
Presentation is loading. Please wait.
1
Arduino 7 Segment Display Lab
CTY SAR FCPS Alexander Velikanov
2
What are we working with?
3
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
4
Arduino Proximity Schematic
5
Goal Have the display loop through a few letters then through all the numbers 0-9 and a decimal point.
6
Programming The Display
7
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
8
CODE
9
Building the Display circuit
10
Supplies 1 Arduino Leonardo board 2 220 ohm resistors 12 wires
1 7 segment display
11
Diagram of distance Circuit
12
Questions?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.