,

7-segment Display

Availability:

Out of stock


7 Segment – Blue 1.8″ Common Cathode

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

  • 1.5 inch single digit 7-segment LED display
  • Digit height: 1.8-inch (45.7mm)
  • Dimensions: 55 x 37.9 x 11mm
  • Emitting colour: Blue
  • Polarity: Cathode
  • Made with white segments and black surface RoHS Directive-compliant
  • Weight: 22g

Dimensions

7-SEG-018-BLU-003

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++;

40.00

Out of stock

7 Segment – Blue 1.8″ Common Cathode

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

  • 1.5 inch single digit 7-segment LED display
  • Digit height: 1.8-inch (45.7mm)
  • Dimensions: 55 x 37.9 x 11mm
  • Emitting colour: Blue
  • Polarity: Cathode
  • Made with white segments and black surface RoHS Directive-compliant
  • Weight: 22g

Dimensions

7-SEG-018-BLU-003

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++;

Based on 0 reviews

0.0 overall
0
0
0
0
0

Be the first to review “7-segment Display”

There are no reviews yet.