8 Segment 4 digit red display common cathode

https://www.botshop.co.za/web/image/product.template/453/image_1920?unique=ed6fc98
(0 review)

35.86 35.86 ZAR 35.86 VAT Included

31.18 VAT Included

Not Available For Sale

This combination does not exist.

0

Internal Reference: DL-047


Electronic components:8 Segment 4 digit red display common cathode.


Do you need a display to show off your next project? This 4-digit (8-Segment) Display is perfect for projects that need to display clock time, counters, range data, temperatures, or just about anything that uses up to 4 numbers to represent the data. The dimensions allow for easy prototyping on standard breadboards. Get yours today and complete your project!!

4 Digit (7-Segment) Display Specifications:

  • Continuous uniform segments
  •  Low power requirement
  •  Excellent character appearance
  •  Solid state reliability
  •  Categorized for luminous intensity.
  •  Multiplex drive common anode
  •  Black face, white segments
  •  Dimensions (L x W x H): 40.18 mm X 12.8 mm X 7 mm
  •  Width between pin Columns: 10.16 mm


Code

int timer = 200; 
int ledPins[] = {2, 3, 4, 5, 6, 7};

void setup() {
 for (int thisPin = 0; thisPin < 6 ; thisPin++) {
 pinMode(ledPins[thisPin], OUTPUT); }
 pinMode(8, OUTPUT);
 pinMode(9, OUTPUT);
 pinMode(10, OUTPUT);
 pinMode(11, OUTPUT);
 pinMode(12, OUTPUT);
}

void loop() {
 digitalWrite(9, HIGH);
 cycle();
 digitalWrite(10, HIGH);
 cycle(); 
 digitalWrite(11, HIGH);
 cycle();
 digitalWrite(12, HIGH);
 cycle();
 Flash();
 digitalWrite(12, LOW);
 cycle();
 digitalWrite(11, LOW);
 cycle();
 digitalWrite(10, LOW);
 cycle();
 }

void cycle(){
 for (int thisPin = 0; thisPin < 6; thisPin++) {
 digitalWrite(ledPins[thisPin], HIGH);
 delay(timer);
 digitalWrite(ledPins[thisPin], LOW);
 }
}

void Flash(){
 for (int i = 0; i < 5; i++){ 
 digitalWrite(8, HIGH);
 delay(timer);
 digitalWrite(8, LOW);
 delay(timer);
 }
}