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 (price excl. VAT)


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


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

Also Bought

Coil 47UH (4 Pack)

Coil 47UH (4 Pack)

Coil 47UH (4 Pack) Power inductors are important in applications where voltage conversion is necessary because they yield lower core losses. Power inductors are also used in order to store energy, pr..

R12.00

Dip Switch 4 Pole - Piano (4 Pack)

Dip Switch 4 Pole - Piano (4 Pack)

Dip Switch 4 Pole - Piano (4 Pack) These DIP switch has 4 individual switch positions. The pins have 2.54mm spacing, fits great into a breadboard and works as general control switches when multiple s..

R15.00

DSC0011 Slide Switch 2.54 (4 Pack)

DSC0011 Slide Switch 2.54 (4 Pack)

DSC0011 Slide Switch 2.54mm (4 Pack) These small slider switches are very handy and comes in packs of 4. The leg spacing is 2.54mm. Quick Spec Switch Type: Slide Switch - 1 Pole 2 Throw ..

R11.00

Header Pin 40 Pin Round (10 Pack)

Header Pin 40 Pin Round (10 Pack)

Header Pin 40 Pin Round (10 Pack) These 40 Pin (1x40) single Inline (DIL) male header connector can be cut into any size. Used with custom PCBs or general custom headers. Quick Spec Pin Sty..

R20.00

USB 2 Type C Connector Breakout

USB 2 Type C Connector Breakout

USB 2 Type C Connector Breakout The USB Type-C connector is intended to supersede a wide range of existing USB connectors. It is reversible and can serve in both USB host and USB device roles, allowi..

R39.00