<<<< Read Previous Part (Part 9)
Arduino Program to turn on Diagonal LEDs
We have seen the programs to control individual LEDs of a 2*2*2 LED cube using arduino in the last few blogs. Circuit is done as shown in the following image.
But it becomes difficult, if you want to turn on two diagonal LEDs together (LED 5 and LED 3 or LED 1 and LED 7 or LED 2 and LED 8 or LED 4 and LED 6). Let us analyse one example.
If you want to turn on LED 5 and LED 3 together, positive voltage should be supplied to the "e" and "f" terminals of LED cube and negative voltage should be supplied to the "a" and "d" terminals of LED cube. The effect will be, LED 1, LED 3, LED 5 and LED 7 will turn on. But we want to turn on LED 5 and LED 3 only. Here, we have to go for the principle of "persistence of vision".
Arduino Program to turn on Diagonal LEDs
We have seen the programs to control individual LEDs of a 2*2*2 LED cube using arduino in the last few blogs. Circuit is done as shown in the following image.
But it becomes difficult, if you want to turn on two diagonal LEDs together (LED 5 and LED 3 or LED 1 and LED 7 or LED 2 and LED 8 or LED 4 and LED 6). Let us analyse one example.
If you want to turn on LED 5 and LED 3 together, positive voltage should be supplied to the "e" and "f" terminals of LED cube and negative voltage should be supplied to the "a" and "d" terminals of LED cube. The effect will be, LED 1, LED 3, LED 5 and LED 7 will turn on. But we want to turn on LED 5 and LED 3 only. Here, we have to go for the principle of "persistence of vision".
Continued in Next Part (Part 11) >>>> |
0 comments: