Blogroll

Powered by Blogger.

Tuesday, 4 November 2014

Program to Display 64 & 95 in Two SSDs - Arduino + 7490 + Two 4511 (Part 7 of 9)

by realfinetime  |  in Seven Segment Display at  12:00

<<<<  Read Previous Part (Part 6)

          Arduino program to display "64" and "95" 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() {   
  digitalWrite(R01_and_R02, HIGH);    
  digitalWrite(LE1, LOW);  
  digitalWrite(R01_and_R02, LOW);
  for(i=0;i<6;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<4;i++)
  {
    digitalWrite(INPUT_A, HIGH);
    digitalWrite(INPUT_A, LOW);   
  }
  digitalWrite(LE2, HIGH);  
  
  delay(1000);  
    
  digitalWrite(R01_and_R02, HIGH);    
  digitalWrite(LE1, LOW);  
  digitalWrite(R01_and_R02, LOW);
  for(i=0;i<9;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<5;i++)
  {
    digitalWrite(INPUT_A, HIGH);
    digitalWrite(INPUT_A, LOW);   
  } 
  digitalWrite(LE2, HIGH);  
  delay(1000); 
}

Output will be 65 and 95 displayed in the seven segment displays in one second delay.

Algorithm of program is given below.

Make LE of first 4511 LOW, so that any change in input (D0 - D3) of that 4511 will make changes in the output (Qa - Qg) of 4511 and hence in the seven segment display.

Send HIGH to R0(1) and R0(2) of 7490 to reset 7490. This is to display "0" in the seven segment display.

Send LOW to R0(1) and R0(2) to convert 7490 from reset mode to count mode.

Send six HIGH to LOW transitions to INPUT A of 7490. This will display "6" in the first seven segment display.

Make LE of first 4511 HIGH, so that further changes in the input (D0 - D3) of first 4511 will not change the output (Qa - Qg) of that 4511. That is, number displayed will not change in further HIGH to LOW transitions of clock input (INPUT A of 7490).


Make LE of second 4511 LOW, so that any change in input (D0 - D3) of that 4511 will make changes in the output (Qa - Qg) of 4511 and hence in the seven segment display.

Send HIGH to R0(1) and R0(2) of 7490 to reset 7490. This is to display "0" in the seven segment display.

Send LOW to R0(1) and R0(2) to convert 7490 from reset mode to count mode.

Send four HIGH to LOW transitions to INPUT A of 7490. This will display "4" in the second seven segment display.

Make LE of second 4511 HIGH, so that further changes in the input (D0 - D3) of second 4511 will not change the output (Qa - Qg) of that 4511. That is, number displayed will not change in further HIGH to LOW transitions of clock input (INPUT A of 7490).

Delay 1 second.

Make LE of first 4511 LOW, so that any change in input (D0 - D3) of that 4511 will make changes in the output (Qa - Qg) of 4511 and hence in the seven segment display.

Send HIGH to R0(1) and R0(2) of 7490 to reset 7490. This is to display "0" in the seven segment display.

Send LOW to R0(1) and R0(2) to convert 7490 from reset mode to count mode.

Send nine HIGH to LOW transitions to INPUT A of 7490. This will display "6" in the first seven segment display.

Make LE of first 4511 HIGH, so that further changes in the input (D0 - D3) of first 4511 will not change the output (Qa - Qg) of that 4511. That is, number displayed will not change in further HIGH to LOW transitions of clock input (INPUT A of 7490).


Make LE of second 4511 LOW, so that any change in input (D0 - D3) of that 4511 will make changes in the output (Qa - Qg) of 4511 and hence in the seven segment display.

Send HIGH to R0(1) and R0(2) of 7490 to reset 7490. This is to display "0" in the seven segment display.

Send LOW to R0(1) and R0(2) to convert 7490 from reset mode to count mode.

Send five HIGH to LOW transitions to INPUT A of 7490. This will display "4" in the second seven segment display.

Make LE of second 4511 HIGH, so that further changes in the input (D0 - D3) of second 4511 will not change the output (Qa - Qg) of that 4511. That is, number displayed will not change in further HIGH to LOW transitions of clock input (INPUT A of 7490).

Delay 1 second.


Continued in Next Part (Part 8) >>>>

0 comments:

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.