Blogroll

Powered by Blogger.

Tuesday, 4 November 2014

Arduino Program to Display 0 to 99 in Two SSDs - 7490 + Two 4511 ICs (Part 8 of 9)

by realfinetime  |  in Seven Segment Display at  12:21

<<<<  Read Previous Part (Part 7)

          Arduino program to display from 0 to 99 in one second delay, in the seven segment displays, is given below. Complete the circuit and upload the following program to your arduino board.

int INPUT_A = 13;
int R01_and_R02 = 12;
int LE1 = 10;
int LE2 = 9;

int i=0, j=0, k=0, first_digit=10, second_digit=10;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(INPUT_A, OUTPUT);     
  pinMode(R01_and_R02, OUTPUT);
  pinMode(LE1, OUTPUT);
  pinMode(LE2, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() { 
  for(k=0;k<second_digit;k++)
  {
    for(j=0;j<first_digit;j++)
    {
      digitalWrite(R01_and_R02, HIGH);  
      digitalWrite(LE1, LOW);
      digitalWrite(R01_and_R02, LOW);
      for(i=0;i<k;i++)
      {
        digitalWrite(INPUT_A, HIGH);
        digitalWrite(INPUT_A, LOW);   
      }
      digitalWrite(LE1, HIGH);
  
      digitalWrite(R01_and_R02, HIGH);  
      digitalWrite(LE2, LOW);
      digitalWrite(R01_and_R02, LOW);
      for(i=0;i<j;i++)
      {
        digitalWrite(INPUT_A, HIGH);
        digitalWrite(INPUT_A, LOW);   
      }
      digitalWrite(LE2, HIGH);  
      delay(1000); 
    }
  }
}

Output will be 0 - 99 displayed in the seven segment displays.


Next : Watch the Video Demonstration >>>>

1 comment:

  1. This blog is very helpful and informative for this particular topic. I appreciate your effort that has been taken to write this blog for us.
    Invention Of Mobile Phone

    ReplyDelete

IMPORTANT NOTICE

All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips



Proudly Powered by Blogger.