Pages

  • Home
  • About Us
  • Contact Us
* 3*3*3 LED Cube
* 2*2*2 LED Cube
* 8*8 LED Matrix
* 16*8 LED Matrix
* Segment Display
* Motor Driver

Blogroll

Powered by Blogger.

Sunday 14 September 2014

Tutorial of 16*8 LED Matrix Using Arduino and Shift Register IC 74595 (Part 12 of 13)

by realfinetime  |  in LED Matrix at  06:28

<<<<  Read previous part (Part 11)

          We had already seen the frames needed to generate "HE" display. In the last blog, we created the seventh frame for "HE" display. In this blog, we will create the eighth frame. Complete the circuit given in this page. Upload the following program to your arduino board. This program will create the eighth frame for "HE" display.


int latchPin = 11;  //Pin connected to ST_CP of 1st 74595
int clockPin = 12;  //Pin connected to SH_CP of 1st 74595
int dataPin = 13;   //Pin connected to DS of 1st 74595

int latchPin2 = 8;  //Pin connected to ST_CP of 2nd 74595
int clockPin2 = 9;  //Pin connected to SH_CP of 2nd 74595
int dataPin2 = 10;  //Pin connected to DS of 2nd 74595

void setup() {
  //set pins to output so you can control the shift register
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  
  pinMode(latchPin2, OUTPUT);
  pinMode(clockPin2, OUTPUT);
  pinMode(dataPin2, OUTPUT);
}

void loop() {
  
    // take the latchPin low so the LEDs don't change while you're sending in bits:     
    digitalWrite(latchPin, LOW);
    //Send 1 1 1 1 1 1 1 0 (254) to Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 of 2nd 74595
    shiftOut(dataPin, clockPin, MSBFIRST, 254);
    //Send 1 1 0 0 0 0 1 1 (195) to Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 of 1st 74595
    shiftOut(dataPin, clockPin, MSBFIRST, 195);
    // shift out the bits:    
    digitalWrite(latchPin, HIGH);
          
    // take the latchPin low so the LEDs don't change while you're sending in bits:    
    digitalWrite(latchPin2, LOW);
    //Send 0 1 1 1 1 1 1 1 (127) to Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 of 3rd 74595
    shiftOut(dataPin2, clockPin2, MSBFIRST, 127);
    // shift out the bits:  
    digitalWrite(latchPin2, HIGH); 
    

    /********* Turn off all the LEDs *********/
    
    // take the latchPin low so the LEDs don't change while you're sending in bits:    
    digitalWrite(latchPin2, LOW);
    //Send 1 1 1 1 1 1 1 1 (255) to Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 of 3rd 74595
    shiftOut(dataPin2, clockPin2, MSBFIRST, 255);
    // shift out the bits:  
    digitalWrite(latchPin2, HIGH);    
}

Output of the above program can be seen in 16*8 LED display. Output is given below.


          Arduino will shift out number 254 to the first 74595. Then, 254 will be stored in first 74595. After that, arduino will shift out number 195 to the first 74595. Then, 254 will be shifted to the second 74595 from first 74595 and 195 will be stored in first 74595. After that, arduino will shift out 127 to the third 74595. This can be pictorially represented as shown below. 195 stored in first 74595 will appear across the anode terminals of first 8*8 LED matrix. 254 stored in second 74595 will appear across the anode terminals of second 8*8 LED matrix. 127 stored in third 74595 will appear across the cathode terminals of both 8*8 LED matrices which will give the expected output.

          After that, turn off all LEDs by shifting out 255 to the third 74595. 255 will send HIGH to the cathode terminals of LED matrices which will turn off all LEDs.


Continue reading in next page (part 13)

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

For More Electronic Tips


Blog Archive

  • ▼  2014 (243)
    • ▼  September (51)
      • Modify Arduino Program for Turning on LED 8 of 2*2...
      • Modify 2*2*2 LED Cube Circuit to Turn on LED 3 onl...
      • How to Turn on LED 2 only of 2*2*2 using a Battery...
      • Circuit to Turn on LED 1 only of a 2*2*2 LED Cube ...
      • Circuit Diagram of a 2*2*2 LED Cube (Part 1 of 13)
      • Amazing Pattern in a Cluster of 8 Seven Segment Di...
      • Connecting Current Limiting Resistors to a Cluster...
      • How to Write Superscript and Subscript Letters in ...
      • Scrolling Number Display in a Cluster of 8 Seven S...
      • Display 1, 2 and 3 in 1st, 2nd and 3rd SSDs using ...
      • Program to Display 1 and 2 in 1st and 2nd SSDs usi...
      • Amazing Pattern in a Cluster of 8 Seven Segment Di...
      • Improve the Brightness of a Cluster of Seven Segme...
      • Program to Display 12345678 in 8 Seven Segment Dis...
      • Program and Working of Circuit to Display 9 in the...
      • Display 0 in a Seven Segment Display of a Cluster ...
      • Simple and Easy way to Display 8 in the Last Seven...
      • Logic Behind Displaying 7 in the 7th SSD out of 8 ...
      • Arduino Program and Circuit to Display 6 in the 6t...
      • Program to Display 5 in the 5th Display in a Clust...
      • Display 4 in the 4th Seven Segment Display in a Cl...
      • How to Display 3 in the 3rd Seven Segment Display ...
      • Program to Display 2 in the Cluster of SSDs using ...
      • Arduino Program to Display 1 in the 1st SSD in a C...
      • Cluster of 8 Common Cathode SSDs Arranged as 8*8 L...
      • Circuit to Control a Cluster of 8 Common Cathode S...
      • Convert Segments of a Cluster of 8 Common Cathode ...
      • Circuit to Control a Cluster of 8 Seven Segment Di...
      • Effective Technique to Increase the Brightness of ...
      • Complete Arduino Program to Display "HE" in a 16*8...
      • Tutorial of 16*8 LED Matrix Using Arduino and Shif...
      • How to Turn on Certain LEDs of 16*8 LED Matrix to ...
      • Turn on Required LEDs of Sixth Row for Displaying ...
      • Demonstration of the Use of Persistence of Vision ...
      • Turn on Required LEDs in 4th Row to Display "HE" i...
      • Display the Required Pixels of "HE" in the Third R...
      • Turning on the 2nd Row of 16*8 LED Matrix using Ar...
      • Arduino Program to Turn on First Row of 16*8 LED M...
      • Logic Behind Displaying Texts in 16*8 LED Display ...
      • Circuit Between 74595 and Arduino Mega to Control ...
      • Circuit Between Two 8*8 LED Matrices to Make a 16*...
      • Circuit to Control 16*8 LED Matrix Using Arduino M...
      • Arduino Program For Cascade Operation of Two 74HC5...
      • Arduino Program to Demonstrate the Working of Casc...
      • Cascade Operation of Two 74595 Shift Registers usi...
      • Logic Behind Connecting Current Limiting Resistors...
      • Circuit to Connect Current Limiting Resistors to L...
      • Circuit to Display Texts on 8*8 LED Matrix using A...
      • Good Arduino Program to Display "HELLO" in an 8*8 ...
      • "HELLO..." in an 8*8 LED Matrix Using Arduino Mega...
      • Beautiful, Running Arrow Demonstration in an 8*8 L...

    Popular Posts

© 2014 Funny Electronics. Blogger templates by Bloggertheme9
Proudly Powered by Blogger.

4617作文网周公解梦梦见坟墓生辰八字算命先生秦起名女孩子名字周易卜算方法运程算命2020周易起名字昊辰周易中心周公解梦拦路周公解梦 梦见找丈夫店铺起名土特产周浦二手车交易市场地址食品起商标好名字大全解梦穿袜子给新游戏周易起名周易八卦 五行周易笔画熏酱为主的饭店起名阴命怎么算出马姓女孩起名两个字设计公司名字起名起名字女孩叫什么姓姚男孩起名有哪些红楼梦秦可卿判词解读秦姓女孩起名100分吗周易手机号码测试打分免费周公解梦梦见做法事周易八卦免费算周公解梦梦见骑自行车算命的说老公有外遇了周易终身卦淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男子给前妻转账 现任妻子起诉要回网友建议重庆地铁不准乘客携带菜筐月嫂回应掌掴婴儿是在赶虫子重庆警方辟谣“男子杀人焚尸”国产伟哥去年销售近13亿新的一天从800个哈欠开始男孩疑遭霸凌 家长讨说法被踢出群高中生被打伤下体休学 邯郸通报男子持台球杆殴打2名女店员被抓19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警两大学生合买彩票中奖一人不认账德国打算提及普京时仅用姓名山西省委原副书记商黎光被逮捕武汉大学樱花即将进入盛花期今日春分张家界的山上“长”满了韩国人?特朗普谈“凯特王妃P图照”王树国3次鞠躬告别西交大师生白宫:哈马斯三号人物被杀代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了房客欠租失踪 房东直发愁倪萍分享减重40斤方法“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火手机成瘾是影响睡眠质量重要因素考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼网友洛杉矶偶遇贾玲呼北高速交通事故已致14人死亡西双版纳热带植物园回应蜉蝣大爆发男孩8年未见母亲被告知被遗忘张立群任西安交通大学校长恒大被罚41.75亿到底怎么缴沈阳一轿车冲入人行道致3死2伤奥运男篮美国塞尔维亚同组周杰伦一审败诉网易国标起草人:淀粉肠是低配版火腿肠外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万杨倩无缘巴黎奥运男子被猫抓伤后确诊“猫抓病”春分“立蛋”成功率更高?记者:伊万改变了国足氛围奥巴马现身唐宁街 黑色着装引猜测

4617作文网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化