How to control 8x8 dot Matrix with MAX7219 and Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มิ.ย. 2024
  • A while back I posted a video showing how to control 8x8 dot matrix without any aditional drivers and libraries.
    I promised a follow up video which would show how to control those matrixes with MAX7219 Driver And here it is.
    It shows how to use MAX7219 to control the matrix as well as compares the results with the ones from the previous video.
    The code and a list of components can be found here:
    www.hackster.io/mdraber/contr...
    create.arduino.cc/projecthub/...\
    If you like this content and you want to support me in creating similar videos go to my Patreon webpage
    / mariosideas
    Or
    www.paypal.com/cgi-bin/webscr...
    Music credits:
    ------------------------------
    Track: Special Days - JayJen [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • Special Days - JayJen ...
    Free Download / Stream: alplus.io/special-days
    ------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 69

  • @uajoku
    @uajoku 7 หลายเดือนก่อน +3

    This tutorial is so helpful. The most explanatory of the few videos I've watched in this past too day I ran into building a scrolling "Merry Christmas" panel for a friend. I believe it will make the project go well without any stress. Thank you.

    • @marios_ideas
      @marios_ideas  7 หลายเดือนก่อน +1

      Thanks. If you liked this one you definetly need to check this th-cam.com/video/oZDFh95Tt_E/w-d-xo.html

  • @meyogy2414
    @meyogy2414 ปีที่แล้ว +1

    Thank you for this. I was following a project and just grabbed a 8x8 rgb led matrix not realising some don't have the driver built in

  • @camaroblackmatte
    @camaroblackmatte 10 หลายเดือนก่อน

    thank you ! very interesting to twist your code examples for different output

    • @marios_ideas
      @marios_ideas  10 หลายเดือนก่อน

      Do you mean something like this? th-cam.com/video/IiWhnIhf-uU/w-d-xo.html AND th-cam.com/video/ux3cpw0nHo4/w-d-xo.html

  • @GorkemYildirim
    @GorkemYildirim 3 ปีที่แล้ว +1

    Thanks for your efforts.

  • @Drxxx
    @Drxxx 3 ปีที่แล้ว +1

    This is great module, i also made 8x8 one..

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      I will make few other videos using it.

    • @Drxxx
      @Drxxx 3 ปีที่แล้ว

      @@marios_ideas cool, i already subscribe to your channel

  • @amandachafin1708
    @amandachafin1708 2 ปีที่แล้ว

    Great project! Tell me - if you're not just hooked up to your computer, what do you recommend for a suitable power source?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      I usually either use 9v power supply or I connect to the power bank via usb cable

  • @lukaszdwornik
    @lukaszdwornik ปีที่แล้ว

    Thanks for your efforts! I'll be helping my nice to create a costume for some cosplay and she wants to use some simple visualization, since I'm familiar with Arduino I was looking for tutorial how to use this led matrix. Possibly I will need to use the larger display, so this will involve 4 or 8 matrix boards. I believe this can be combined together, but do you know what amount of led matrices is the max the Arduino can support?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      You can support as many as you want but you will need external power supply to power them. You won't be able to power more then 4 from your Arduino, I think.

  • @larsbecker2003
    @larsbecker2003 2 ปีที่แล้ว

    Thank you verry much! Is there a skript to generate the int array for the scrolling text?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      I will be doing an update on this. I guess using INT for that array is not the most optimal way from memory use perspective. I will also be doing the video on using parola library with multiple 7219 matrixes stacked in. Cannot promise when this will be. Just stayed tuned. In a meantime give video a like. Helps to grow y channel

  • @larsbecker2003
    @larsbecker2003 2 ปีที่แล้ว

    If you have the issue that the scrolling text is mirrored, write ( 8 - ( i + 1 ) ) instead of just i after lc.setLed( 0, ...

  • @nickcook3948
    @nickcook3948 3 ปีที่แล้ว +1

    Excellent video. Is it possible to adjust the brightness of LEDs individually?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      Unfortunately not

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +2

      You could do it by blink the leds that you want to be less bright in very short interbvals so your eye does not register. This wll give the impression the led is less bright.

  • @icollided
    @icollided 6 หลายเดือนก่อน

    Is the MAX7129 multiplexing in parallel? 8 LEDs at a time, and cycling through the 8 rows. Or is it cycling individual LEDs much faster than the Arduino is able to do by itself?

    • @marios_ideas
      @marios_ideas  5 หลายเดือนก่อน

      I believe this is done raw by raw. You can try to film it with your phone with different lighting and tehn this shoud be visible

  • @raidentatsunoko
    @raidentatsunoko ปีที่แล้ว

    what do i use to control either a big matrix or alot of 8x8 matrix. do i need a max7219 for each 8x8 or there are other modules?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      Max 7219 for each. Check my other videos e.g the one about controllingv4matrixes with Parola library

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      Also i have one video about controling 4x largo custom seven segment display with max7219

  • @chadikus_
    @chadikus_ 2 ปีที่แล้ว

    i really like the vid, but what was the green board under the matrix called?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Max7218 module. When you buy you get both the board and the matrix

    • @chadikus_
      @chadikus_ 2 ปีที่แล้ว

      @@marios_ideas where would i buy this? i cant find it on amazon under that name

    • @chadikus_
      @chadikus_ 2 ปีที่แล้ว

      nvm i found it

  • @ahlamrafeek9141
    @ahlamrafeek9141 3 ปีที่แล้ว

    Can we manipulate each led separately to light up? For example if 100 hz was heard then 1rst column first row led should turn on and if 500 Hz then 4th column 6th row led should turn on. I want to make a circuit to check hearing.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      It is possible. Not sure what you would need to detect different frequencies

    • @ahlamrafeek9141
      @ahlamrafeek9141 3 ปีที่แล้ว

      Is it possible to use this with a rotary encoder? Each time the encoder shaft turns, one led in the row lights up then if the encoder button is pressed then different columns light up?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Ahlam Rafeek Yes it is possible

    • @ahlamrafeek9141
      @ahlamrafeek9141 3 ปีที่แล้ว

      @@marios_ideas Is there any code or Library you suggest I use?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      @@ahlamrafeek9141 The library is mentioned in the video. As for code you will need to figure it out for yourself. If you get stuck I will be more then happy to give a hint or two:)

  • @KashifKhan-kw3ez
    @KashifKhan-kw3ez 3 ปีที่แล้ว

    Sir (Sliding a digit make the function) please can u make a video with full explanation

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Not sure I understand your post. What explanation you are looking for. Can you send more details

    • @happysongs4kyrone
      @happysongs4kyrone 3 ปีที่แล้ว

      @@marios_ideas So I've been reading the post again and again, and I think he's using google translate, so I decided to read it word by word to try and make sense out of it; and what I think he needs is one of those scrolling animation things? Not sure how to describe it but yeah

  • @fizrantoumar6863
    @fizrantoumar6863 2 ปีที่แล้ว

    Can the one by one Led Control Program be used using 4 ICMax 7219 Modules?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      Yes it can. I am just now working on such video. Give me 2 Weeks:)

    • @fizrantoumar6863
      @fizrantoumar6863 2 ปีที่แล้ว

      @@marios_ideas Thank You

    • @fizrantoumar6863
      @fizrantoumar6863 2 ปีที่แล้ว

      @@marios_ideas How About 8 IcMax 7219 Modules?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      @@fizrantoumar6863 My video would show how to stack 4 but stacking 8 is no different. I would understand when you would see my video

    • @fizrantoumar6863
      @fizrantoumar6863 2 ปีที่แล้ว

      @@marios_ideas thank you very much

  • @ErlankBru
    @ErlankBru หลายเดือนก่อน

    I connected the matrix display, entered everything just like the example, but instead of one dot, like with the third led in the first row, ALL the dots light up?

    • @marios_ideas
      @marios_ideas  หลายเดือนก่อน

      I matrix common cathode?

    • @ErlankBru
      @ErlankBru หลายเดือนก่อน

      Mine is the MAX7219... with the two sets of 5 pins, onboard IC.

    • @marios_ideas
      @marios_ideas  หลายเดือนก่อน

      @@ErlankBru If you Max7219 behaves differently maybe it is a different setup. The one I have in my video is that the matrix is common cathode and the max7219 module works with this type of matrix. If you have common Anode matrix then the module needs to control that matrix differently and then my code would not work on it.

    • @marios_ideas
      @marios_ideas  หลายเดือนก่อน

      Have you purchased max7129 module and the matrix separately or they came together?

  • @kavyashree4415
    @kavyashree4415 3 ปีที่แล้ว

    Hi, have you tried MD_parola library?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      Yep. It will be in one of my upcoming video. I will control 32x8 dot matrix

    • @kavyashree4415
      @kavyashree4415 3 ปีที่แล้ว

      @@marios_ideas what is the code to display a single character on 8x8 dot matrix?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      @@kavyashree4415 If you installed the library it comes with number of examples. Some very simple ones like parola_helloworld. There you just replace "hello world" with the character that you want and done. In Arduino IDE go to File-Examples-MD_Parola

    • @kavyashree4415
      @kavyashree4415 3 ปีที่แล้ว

      @@marios_ideas thank you

  • @zoya3396
    @zoya3396 7 วันที่ผ่านมา

    can you please give me the link of the code!! the previous one didn't work for me

    • @marios_ideas
      @marios_ideas  7 วันที่ผ่านมา

      Added one more link. Please check it out

  • @graemewilson4126
    @graemewilson4126 11 หลายเดือนก่อน

    Hi Mario, I am new to Arduino and Dot Matrix 8x8 Max7219(White), I do not know where the things go, but I would like to learn how to use Arduino and a 8x8 Matrix to show NUMBERS 1-0(10 numbers), for 10 turnouts/points, one at a time on a model railway layout. I need to know where everything is placed in the IDE, I DO NOT EXPECT the WHOLE CODE DONE FOR ME, I have already got Number 1 and have a pattern to copy for the others, WHERE TO PUT THE OTHER is what I need. THANK YOU

    • @marios_ideas
      @marios_ideas  11 หลายเดือนก่อน

      Doing it with patterns does not make sense. Check this video of mine th-cam.com/video/oZDFh95Tt_E/w-d-xo.html. It shows 4 matrixes joined together but the same context applies to one matrix . Go to link to code.
      www.hackster.io/mdraber/create-text-animations-with-parola-library-for-arduino-b67955 Look at the Parola example.Then you need to change MAX_DEVICES 1 and in animation table replace all texts to animate with 1,2,3,4,5 . If you run the code you should see count from 1 to 10 each number having a different animation for entering and departing. Pick the one you like and update it accross that table.

    • @graemewilson4126
      @graemewilson4126 11 หลายเดือนก่อน

      @@marios_ideas THANK VERY MUCH FOR YOUR REPLY - I am sorry but I do not know enough about what goes where. JUST imagine an Arduino on a board along with 8x8 White, on top of the 8x8 will be 64 x 0.75mm fibre cable, with the ends set in in glue sitting on top of the leds, then this bunch of fibre will go through the base of a model Railway Layout further up the side of a Gantry to a BOX that will the other end of the Fibre Cable, again in a Glue Box that will show a Number from 1 to 0, ONE AT A TIME. THIS TOP BOX, I would like it to be about 7mm square, this will have to be on the side of a Gantry, as the Operator will not be inline to see the 7mm square Box as it will be too far to the left to be seen, and THESE TURNOUTS/POINTS (10), go further away and over 2.0mtrs away and there may be OTHER CARRIAGEs/WAGONS in the way of EYE SIGHT, so with this in mind I will try to do what you sent me. I am surprised that only you have bothered to reply, I do not expect a reply. THANKS for your time, may be later.

    • @marios_ideas
      @marios_ideas  11 หลายเดือนก่อน

      @@graemewilson4126 What you describe is the end effect. To make it work first you need a working prototype on the breadboard. Do you have the matrox with this Max7219 chip? SO five pins to connect to Arduino?

    • @graemewilson4126
      @graemewilson4126 11 หลายเดือนก่อน

      @@marios_ideas WELL, I am surprised to find this reply in my email box, BUT THANKS anyway, yes I have the following, Breadboard, Arduino 8x8 Max7219, Cables, Resistors Blue Power Cable, I was able to find online what the 1's and 0's are required to show on the 8x8 and now have all 10 numbers code ready to enter into a IDE, but then my KNOWLEDGE stops in where to enter any further CODE in the right place. I am now thinking that this 7mm square Board with black background and white leds could be too small to work with, being placed on the layout and be seen by the Operator, on the GANTRY some 450mm from the front of the layout, even though its to HO SCALE.

    • @marios_ideas
      @marios_ideas  11 หลายเดือนก่อน

      @@graemewilson4126 To write a code like that you have to understand it. Did you go over those two videos of mine and try to understand what the code does. I truly believe the using Parola library is much simpler then creating bitmaps of numbers in Arduino code. One more hint. And I am not joking. Use AI, chatGPT to be exact. And in chatGPT write following request " Write Arduino code to count from 0 to 9 on 8x8 MAX7219 matrix using Parola library". This should present the code. Make sure you connect the pins as described in the code and see if this works. This should be the good statrting point. Then you have a code and if it works you can then adjust it to your needs.

  • @itsmybuddy3908
    @itsmybuddy3908 ปีที่แล้ว

    Is it arduino clone