Powered by Blogger.

Monday, 25 August 2014

Arduino Program to Increase the Brightness of LEDs in 8*8 LED Matrix

by realfinetime  |  in LED Matrix at  23:34

<< Read Previous Page
          We have already seen the technique to turn on diagonal LEDs only in previous page. Next is to increase the brightness of these LEDs. Circuit is the same done in previous page.

          Beginners will plan to reduce the value of series resistance to increase the brightness because LEDs will get more current if series resistance is LOW. But it is not a good idea. This may lead to the permanent damage of LEDs due to over current. Then the best method is to make some modifications in the program. Upload this modified program to your arduino board.

int pin_4 = 10;  //Connect 4th pin of LED matrix to the 10th pin of arduino
int pin_7 = 11;  //Connect 7th pin of LED matrix to the 11th pin of arduino
int pin_15 = 13; //Connect 15th pin of LED matrix to the 13th pin of arduino
int pin_16 = 12; //Connect 16th pin of LED matrix to the 12th pin of arduino

int i=0;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(pin_4, OUTPUT);   
  pinMode(pin_7, OUTPUT); 
  pinMode(pin_15, OUTPUT); 
  pinMode(pin_16, OUTPUT);   

// the loop routine runs over and over again forever:
void loop() {
    // Turn on 1st LED and turn off all the other LEDs
    digitalWrite(pin_4, LOW);   
    digitalWrite(pin_16, HIGH); 
  // Turn off 1st LED
  digitalWrite(pin_4, HIGH);  
  digitalWrite(pin_16, LOW);   

    // Turn on 10th LED and turn off all the other LEDs
    digitalWrite(pin_7, LOW);    
    digitalWrite(pin_15, HIGH);  
  // Turn off 10th LED 
  digitalWrite(pin_7, HIGH);   
  digitalWrite(pin_15, LOW);   


          If uploading is successful, brightness of the LEDs will increase. This program increases the ON time of LEDs ten times more than the OFF time. "for" loop executes the command to turn on LEDs ten times. But the command to turn off LEDs run only one time. Then by persistence of vision, on time will be ten times more than off time which will give a feeling to the eyes that brightness of LEDs are increased.

          Read about the technique to reduce the number of arduino digital pins required to control LED matrix in next page.

Read Next Page >>

1 comment:


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

Blog Archive

Proudly Powered by Blogger.