Method to Control 8*8 LED Matrix using Shift Register IC 74595 and Arduino Mega

by realfinetime  |  in LED Matrix at  22:05

In the past few blogs, we found the basics of working of 8*8 LED matrix and shift register IC 74595. In this blog, we will see the circuit to connect 8*8 LED matrix to arduino through shift registers using minimum number of digital pins of arduino. Essence of this circuit is, controlling 64 LEDs using only six digital output pins from arduino. Circuit is given at the bottom of this page. Before starting the circuit, you should be familiar about the pinout diagram of, 8*8 LED matrix and 74595 shift register IC.

Pinout diagram of 8*8 LED matrix

Pinout diagram of 8*8 LED matrix is given below. Refer this blog to get a simple circuit to demonstrate the working of 8*8 LED matrix. Small wedges on the middle of four edges of the 8*8 LED matrix is the indication of the pin from which pin numbering should be started.
Internal Circuit of 8*8 LED matrix

Internal circuit of 8*8 LED matrix is given below. Pin numbering of 8*8 LED matrix is a bit confusing. Read this blog to get a clear idea about the pin numbering of 8*8 LED matrix.

Pin out diagram of 74595

Pinout diagram of 74595 is given below. Two 74595 ICs are used in this circuit. Read this blog to get an idea about the working of 74595.

Next is the circuit diagram. Two 74595 ICs are used to control one LED matrix. One IC is for controlling the rows of LED matrix and the other IC is for controlling the columns of LED matrix. 5V for the working of IC is given from a 5V regulator. SHCP, STCP and DS pins of both 74595 are connected to separate digital output pins of arduino as shown in the circuit. VCC and MRbar of both ICs should be connected to 5V. Gnd and OEbar of both ICs should be connected to the Gnd of voltage source. 100 Ohm current limiting resistors should be connected to the cathode pins of 8*8 LED matrix. If current limiting resistor is connected to the anode pins of 8*8 LED matrix, brightness of LEDs will decrease, when more LEDs will turn on. Gnd pin of arduino should be connected to the gnd pin of voltage source for voltage leveling.

Connection between arduino mega and 1st 74595 can be summarized as follows.

1.  Digital pin 11 of arduino is connected to the DS pin (14th pin) of 1st 74595.
2.  Digital pin 12 of arduino is connected to the STCP pin (12th pin) of 1st 74595.
3.  Digital pin 13 of arduino is connected to the SHCP pin (11th pin) of 1st 74595.

Connection between arduino mega and 2nd 74595 can be summarized as follows.

1.  Digital pin 5 of arduino is connected to the DS pin (14th pin) of 2nd 74595.
2.  Digital pin 6 of arduino is connected to the STCP pin (12th pin) of 2nd 74595.
3.  Digital pin 7 of arduino is connected to the SHCP pin (11th pin) of 2nd 74595.

Connection between 1st 74595 and 8*8 LED matrix can be summarized as follows.

1.  Q0 pin (15th pin) of 1st 74595 is connected to the 16th pin 8*8 LED matrix.
2.  Q1 pin (1st pin) of 1st 74595 is connected to the 15th pin 8*8 LED matrix.
3.  Q2 pin (2nd pin) of 1st 74595 is connected to the 11th pin 8*8 LED matrix.
4.  Q3 pin (3rd pin) of 1st 74595 is connected to the 3rd pin 8*8 LED matrix.
5.  Q4 pin (4th pin) of 1st 74595 is connected to the 10th pin 8*8 LED matrix.
6.  Q5 pin (5th pin) of 1st 74595 is connected to the 5th pin 8*8 LED matrix.
7.  Q6 pin (6th pin) of 1st 74595 is connected to the 6th pin 8*8 LED matrix.
8.  Q7 pin (7th pin) of 1st 74595 is connected to the 13th pin 8*8 LED matrix.

Connection between 2nd 74595 and 8*8 LED matrix can be summarized as follows.

1.  Q0 pin (15th pin) of 2nd 74595 is connected to the 4th pin 8*8 LED matrix.
2.  Q1 pin (1st pin) of 2nd 74595 is connected to the 7th pin 8*8 LED matrix.
3.  Q2 pin (2nd pin) of 2nd 74595 is connected to the 2nd pin 8*8 LED matrix.
4.  Q3 pin (3rd pin) of 2nd 74595 is connected to the 8th pin 8*8 LED matrix.
5.  Q4 pin (4th pin) of 2nd 74595 is connected to the 12th pin 8*8 LED matrix.
6.  Q5 pin (5th pin) of 2nd 74595 is connected to the 1st pin 8*8 LED matrix.
7.  Q6 pin (6th pin) of 2nd 74595 is connected to the 14th pin 8*8 LED matrix.
8.  Q7 pin (7th pin) of 2nd 74595 is connected to the 9th pin 8*8 LED matrix.

1. Is it possible to use similar circuit to drive an 8x8 stepper-motors matrix?

1. of course but must be controlled by only, cannot apply directo to motors, it can burn the arduino board

2. Is it possible to use similar circuit to drive an 8x8 stepper-motors matrix?

3. Excellent guide, sincere congratulations

4. Hi, my name is marlin. Good article, this is very interesting and can increase my knowledge. thank you for sharing. always success

Arduino Tutorial For Begginers

Arduino Uno Project For Beginners

How To Reset Arduino Uno

1. IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

5. Great Information. A debt of gratitude is in order for sharing valuable data.
led screen rental

6. Nice information. You will get something to learn new. Visit Led Video Screen For Sale to browse outdoor and indoor LED video wall prices.

7. It's very useful blog post with inforamtive and insightful content and i had good experience with this information.I have gone through CRS Info Solutions Home which really nice. Learn more details About Us of CRS info solutions. Here you can see the Courses CRS Info Solutions full list. Find Student Registration page and register now. Go through Blog post of crs info solutions. I just read these Reviews of crs really great. You can now Contact Us of crs info solutions. You enroll for Pega Training at crs info solutions.

8. More appreciating blog and this is Great post for me. It looks extremely good and Maintain a good job. get one of the best Display and Monitor Rentals New Orleans then visit on our website.

9. I read your blog and i found it very interesting and useful blog for me. thanks for sharing good information. get one of the best Display and Monitor Rentals New Orleans then visit our website.

10. อีกทั้งเรายังให้บริการ เกมสล็อต ยิงปลา แทงบอลออนไลน์ รองรับทุกการใช้งานในอุปกรณ์ต่าง ๆ HTML5 คอมพิวเตอร์ แท็บเล็ต สมาทโฟน คาสิโนออนไลน์ และมือถือทุกรุ่น เล่นได้ตลอด 24ชม. ไม่ต้อง Downloads เกมส์ให้ยุ่งยาก ด้วยระบบที่เสถียรที่สุดในประเทศไทย

11. Online slots (Slot Online) could be the introduction of a gambling device. Slot computer As stated before Used to produce electric games known as online slots, as a result of the development era, folks have turned to gamble by way of computers. Will bring slot games making internet gambling games Via the web network device Which players can have fun with through the slot program or will have fun with Slots through the system provider's website Which internet slots games are on hand around the type of playing guidelines. It is similar to playing on a slot device. Each of those practical photos and also sounds are at the same time thrilling as they visit living room in the casino in the world.บาคาร่า
ufa
ufabet
แทงบอล
แทงบอล
แทงบอล

12. อย่างไรก็ตามในการเล่นเกมส์คาสิโนออนไลน์หรือการเดิมพันออนไลน์ชนิดต่างๆคุณจะต้องให้ความสำคัญในเรื่องของการเลือกเว็บคาสิโนออนไลน์เลือกเว็บเดิมพันออนไลน์ที่คุณจะใช้บริการให้ดีคุณจำเป็ สล็อต นที่จะต้องศึกษาและหาข้อมูลเกี่ยวกับเว็บก่อนที่คุณจะตัดสินใจใช้บริการเพื่อความปลอดภัยในการใช้บริการของคุณและเพื่อประโยชน์ในการใช้บริการเว็บที่คุณจะต้องใช้บริการไปอีกนานถ้าคุณใช้บริการเว็บที่ให้บริการที่ดีคุณก็จะมีความสะดวกสบายในการใช้บริการเว็บคาสิโนออนไลน์หรือเว็บเดิมพันออนไลน์ต่างๆ

13. A great information from your page. I had once done a similar project with a PIC microcontroller but never with arduino.
Sir, please how do I modify the code to shift strings, like shifting strings from a serial monitor.

14. Thanks for sharing the best information and suggestions, it is very nice and very useful to us. I appreciate the work that you have shared in this post. Keep sharing these types of articles here.
How To Unlock Android Phone Password Without Factory Reset

15. In some circumstances security chauffeur
it may be appropriate to use decoy vehicles, which add an additional layer of security, particularly if there are concerns that information has been leaked or the operation has been compromised.

16. This is really good and useful information. thanks for posting. Foreign visitors can apply for a Turkish Visit Visa online. 100 Eligible Countries can apply for Turkey Visa.

17. I am happy to see your work. Some additional charges may apply in case of emergency in India visa fees.

18. The website is good and the stock is good. Thanks for all you do. India urgent visa, you can fill an online Indian emergency visa application form. Within 5 to 10 minutes you can fill your India emergency visa application form. Urgent visa to India you get in 1 to 3 business days.

19. Hii friends, If you are interested in traveling to India, Without a visa you can never enter India. But you can travel in India first check you are citizens of an eligible country then you can apply for an Indian visa. You can read more info about evisa India via on our India visa page.

20. I am feeling very excited after reading your post . Thank You . Saudi Arabia e visa is very popular nowadays and the government of Saudi is supporting the e visa system . Really it make Saudi visa system very easy and supportive. And it also helps to promote Saudi tourism.

21. He looked behind the door and didn't like what he saw.ThingsyoudoforbeautyHe had decided to accept his fate of accepting his fate.INDIA'S BEST OFF SITE SEO PROVIDER CHEAPEST AND FASTEST OFF SITE SEO SERVICE IN INDIA infocompanion educatijhnAs the rental car rolled to a stop on the dark road, her fear increased by the moment.

22. Very awesome!!! When I looked for it, I found this website at the top of all the blogs in the search engine. Indian visa for US citizen are available online. US citizens can apply for an Indian visa within 5 to 10 minutes. Firstly you can read all the document requirements for Indian visa for US citizens via our website then you can apply for your Indian visa.

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.