<<<< Read Previous Part (Part 3)
Arduino program to display "11" in the seven segment displays is given below. Complete the circuit and upload the following program to your arduino board.
Output will be 11.
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 a HIGH to LOW transition to INPUT A of 7490. This will display "1" 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 a HIGH to LOW transition to INPUT A of 7490. This will display "1" 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 4 seconds.
Arduino program to display "11" 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() { /* When 12th digital output of arduino is HIGH, R0(1) and R0(2) of 7490 becomes HIGH. This will reset 7490. Counting will restart from 0 */ digitalWrite(R01_and_R02, HIGH); /*When 10th digital output of arduino is LOW, LE of first 4511 becomes LOW. Now, the output (Qa - Qg) of first 4511 will change when input (D0 - D3) of 4511 changes.*/ digitalWrite(LE1, LOW); /*When 10th and 12th digital outputs of arduino are LOW, during the negative transition (HIGH to LOW transition) of clock input (INPUT A of 7490 IC), 7490 counts.*/ digitalWrite(R01_and_R02, LOW); //Send one clock pulse to INPUT_A for(i=0;i<1;i++) { digitalWrite(INPUT_A, HIGH); digitalWrite(INPUT_A, LOW); } /*When 10th digital output of arduino is HIGH, LE of first 4511 becomes HIGH. This will keep the output (Qa - Qg) of that 4511 in previous state, even if the input (D0 - D3) of 4511 changes.*/ digitalWrite(LE1, HIGH); /* When 12th digital output of arduino is HIGH, R0(1) and R0(2) of 7490 becomes HIGH. This will reset 7490. Counting will restart from 0 */ digitalWrite(R01_and_R02, HIGH); /*When 9th digital output of arduino is LOW, LE of second 4511 becomes LOW. Now, the output (Qa - Qg) of second 4511 will change when input (D0 - D3) of 4511 changes.*/ digitalWrite(LE2, LOW); /*When 10th and 12th digital outputs of arduino are LOW, during the negative transition (HIGH to LOW transition) of clock input (INPUT A of 7490 IC), 7490 counts.*/ digitalWrite(R01_and_R02, LOW); //Send one clock pulse to INPUT_A for(i=0;i<1;i++) { digitalWrite(INPUT_A, HIGH); digitalWrite(INPUT_A, LOW); } /*When 9th digital output of arduino is HIGH, LE of second 4511 becomes HIGH. This will keep the output (Qa - Qg) of that 4511 in previous state, even if the input (D0 - D3) of 4511 changes.*/ digitalWrite(LE2, HIGH); delay(4000); }
Output will be 11.
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 a HIGH to LOW transition to INPUT A of 7490. This will display "1" 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 a HIGH to LOW transition to INPUT A of 7490. This will display "1" 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 4 seconds.
Continued in Next Part (Part 5) >>>> |
Great Article
ReplyDeleteIoT Projects
Python Training in Chennai
Project Center in Chennai
Python Training in Chennai