7 Segment 0.56" Comman Cathode + 74LS48 Kit

If your looking for digital indicators and numeric displays, for your project, these 7 segment displays will be able to get the job done.

Quick Spec

  • 0.56 inch single digit 7-segment LED displays
  • Digit height: 0.5-inch (12.7mm)
  • Dimensions: 12.7mm X 19mm
  • Emitting color: Green
  • Polarity: Cathode
  • Made with white segments and black surface RoHS Directive-compliant

Pinout

7_SEG_018_RED_001

Code


// make an array to save Sev Seg pin configuration of numbers

int num_array[10][7] = {  { 1,1,1,1,1,1,0 },    // 0
                          { 0,1,1,0,0,0,0 },    // 1
                          { 1,1,0,1,1,0,1 },    // 2
                          { 1,1,1,1,0,0,1 },    // 3
                          { 0,1,1,0,0,1,1 },    // 4
                          { 1,0,1,1,0,1,1 },    // 5
                          { 1,0,1,1,1,1,1 },    // 6
                          { 1,1,1,0,0,0,0 },    // 7
                          { 1,1,1,1,1,1,1 },    // 8
                          { 1,1,1,0,0,1,1 }};   // 9
                                       
//function header
void Num_Write(int);

void setup() 
{ 
  // set pin modes
  pinMode(2, OUTPUT);   
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  
 
}

void loop() 
{
  
  //counter loop
  
  for (int counter = 10; counter > 0; --counter) 
  {
   delay(1000);
   Num_Write(counter-1); 
  }
  delay(3000);
}

// this functions writes values to the sev seg pins  
void Num_Write(int number) 
{
  int pin= 2;
  for (int j=0; j < 7; j++) {
   digitalWrite(pin, num_array[number][j]);
   pin++;
  }

Resources

Shipping List

  • 1 X 7 Segment 0.56" Comman Cathode - Green
  • 1 X 74LS48 IC


7 Segment 0.56" Comman Cathode + 74LS48 Kit

  • Brand: Generic
  • Product Code: 7SEG-LS48-KIT
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock UL295
    Stellenbosch In Stock Z2058
  • R20.00 (Inc Tax: R23.00)


Tags: 7, segment, display, led, common, cathode, green, 0.5 inch, 0.56, kkit