64x64 RGB LED Matrix Panel - SmartMatrix and Teensy 3.6

  Рет қаралды 82,197

Gadget Reboot

Gadget Reboot

Күн бұрын

Showing my struggles getting a 64x64 1/32 scan RGB LED matrix panel working, limitations of how some libraries work and what is required to get this type of display going.
Smaller displays work fine with libraries like PxMatrix on an ESP8266 but my display flickered with that setup. Let's look at the panel controller schematic and see how they really work.
I got my 64x64 panel on AliExpress (Affiliate link)
s.click.aliexpress.com/e/_AmlaFP
My SmartMatrix3 library modification files and Teensy 3.6 wiring schematic
github.com/GadgetReboot/LEDPa...
RGB LED panel documentation
github.com/esden/led-panel-docs
Sparkfun article about how RGB LED panels are controlled
www.sparkfun.com/sparkx/blog/...
SmartMatrix Library for Teensy3 and an ESP32 port, and discussion on getting 64x64 1/32 panels working with the version 3 SmartMatrix shield
github.com/pixelmatix/SmartMa...
hackaday.io/project/148066-sm...
community.pixelmatix.com/t/mo...
forum.pjrc.com/threads/34808-...
PxMatrix Library for ESP8266 and ESP32
github.com/2dom/PxMatrix
Adafruit RGB Matrix Panel Library
github.com/adafruit/RGB-matri...
If you'd like to support the channel, you can:
Support me on Patreon: / gadgetreboot
Shop through my affiliate links!
Banggood www.banggood.com/custlink/3vK...
Aliexpress s.click.aliexpress.com/e/_AFeHwB
Amazon.com www.amazon.com/?&_encoding=UT...
Amazon.ca www.amazon.ca/?&_encoding=UTF...
Videos are mirrored at LBRY/Odysee: odysee.com/@GadgetReboot:4
#ElectronicsCreators

Пікірлер: 83
@keithglynn9237
@keithglynn9237 4 жыл бұрын
Thank Mr. Gadget ! Thanks for such a quick and thorough response about the led matrix graduation cap. I will dive in to your recommendations this weekend and see if I can pull it off. Thanks again !
@TheJacklwilliams
@TheJacklwilliams 3 жыл бұрын
Beyond informative. Saved to my library as this is a project I want to do. Actually I'd like to cube these. THANK YOU! SUBSCRIBED! Incredible amount of detail shared, fantastic work.
@SimpleEnough2k9
@SimpleEnough2k9 4 жыл бұрын
Really impressive. It's amazing to see what you've done to get it working. It's a good demonstration of what can be achieved with a strong will combined with shared knowledge. Thanks for sharing these moments with us.
@GadgetReboot
@GadgetReboot 4 жыл бұрын
It was one of those projects where I always felt I was almost there but not quite, so I kept going. Things like this also remind me why it’s good to buy so many things on eBay. Suddenly you need a different processor platform, reach into the drawer! At least that’s the excuse I’m going to use to keep shopping.
@Can_I_Have_A_Go
@Can_I_Have_A_Go 2 жыл бұрын
@Gadget Reboot hi are you still looking at your msgs? Got a question if you are...
@nathanpayne7396
@nathanpayne7396 4 жыл бұрын
Great video! I have been tempted to get one to play with myself.
@raffyturc
@raffyturc 4 жыл бұрын
good thing you finally got it working 👍
@kindut8952
@kindut8952 3 жыл бұрын
This is great. I recently picked up a 64x64 and 64x32 and am now working on getting everything setup. I've got a teensy 4.1, so it sounds like i've got some work ahead of me.
@maxketschik5625
@maxketschik5625 3 жыл бұрын
did you get it to work with the new teensy?
@MikeBramm
@MikeBramm 4 жыл бұрын
Nice work. I know how much of a pain gathering all of this information can be. It sure is nice once you get something up and running.
@silu8590
@silu8590 4 жыл бұрын
hi sir ,i am Gina,i can offer rental /fixed /indoor /outdoor led display ,if you need that contact me please.whatsapp/skype: 8615803088171 email address: gina@atsilu.com wechat : XRX1070848443,looking forward to your reply.
@user-tr9sw5vn1y
@user-tr9sw5vn1y Ай бұрын
Sueccessfully recreated with Teensy 3.6 and Adafruit 64x64. May 2024. Great vid
@supahfly_uk
@supahfly_uk 2 жыл бұрын
This is great information thanks, I'm just dipping my toes into electronics.
@volleyballjerry
@volleyballjerry 2 жыл бұрын
Absolutely outstanding work, GR. I am an engineering project manager with 40 years of both hardware and software experience going back to when I was just 15 years old. Exceptionally thorough, well researched, and very well presented. If you are ever looking for a job, let me know.
@GadgetReboot
@GadgetReboot 2 жыл бұрын
Thanks! I try to be thorough because eventually when I need to revisit certain projects, I may have totally forgotten everything I learned the first time around so it’s good to document everything I can. A few LEDs got knocked off of that panel when I moved last year, I should fire it up again and see if it is still usable.
@tomgburklin1112
@tomgburklin1112 2 жыл бұрын
good info... i pulled out an old 64x64 display found that Adafruit had sent me wrong hats for raspberry pi :( was couple years ago... way too many projects on my plate. So your research will be help full getting me started. Thank you for sharing.
@anispinner
@anispinner 4 жыл бұрын
Huge research. Good job
@lynes2peters438
@lynes2peters438 4 жыл бұрын
what a cool project!
@pileofstuff
@pileofstuff 4 жыл бұрын
Cool research project.
@jonniji
@jonniji 4 жыл бұрын
Well Done Sir, Well Done!
@electronic7979
@electronic7979 4 жыл бұрын
Useful video 👍
@keithglynn9237
@keithglynn9237 4 жыл бұрын
First off, thanks very much for taking the time to share with such great detail. I know it can get quite involved between the video effects, editing, sound, etc. And thats not even to mention the retracing of your steps to re construct the project. I'm still doing the research in looking to put together an led matrix for my daughter's college graduation cap, but it's been a tricky road. Im studying this video you made, but I'm a newbee with this whole craft. Im open to suggestions if you see this post soon. She graduates May 1st, and I have not ordered any components yet so this may be a wash. I am pretty good with soldering, and have just recently purchased an elegoo mega complete starter kit. I have already constructed a few projects and typed in the sketches rather than just downloading them so there maybe some hope for me, as I am pretty good at electronic and mechanical repairs. I have a good soldering rework station and some cool tools too !
@GadgetReboot
@GadgetReboot 4 жыл бұрын
That’s great to be working on such a practical and flashy project this early in the hobby! For maybe simple text scrolling on clothing, maybe a display like this is a bit bulky and advanced and expensive, so I wonder if using standard neo pixels might be better. Take a look at this video and see if it might be fitting... suited...unexpected attire puns... kzfaq.info/get/bejne/oMWGqa95v6u0img.html
@mehdinikoozad7068
@mehdinikoozad7068 3 жыл бұрын
Well Described. Thanks .
@davejwaugh
@davejwaugh 4 жыл бұрын
i have 2 of these panel and no teensy so im still looking for esp32 version i can run the panels with the DFRobot libs on a mega but failed to get it working on any other board . i live in hope the mega i far to big for what i want . but enjoyed how you worked this all out ..
@dzee9481
@dzee9481 4 жыл бұрын
Thanks for the very informative video, I have made a 32x32 display using a bicolor display. It is using 74238 chips for the row and 74595 for each of the colors. Interesting the Chinese took the concept from some of the projects here and made custom chips for these boards that have the same functional components. Aside from that I was curious is the smartmatrix can be modified to use on neopixel displays or apa102 displays. These are RGBW strips that can be made of any size. If there is a way do you know where a link to this would be?
@GadgetReboot
@GadgetReboot 3 жыл бұрын
I haven’t tried to use smart matrix for anything other than the panels but I see reference to the version for hardware shield being able to do APA102 github.com/pixelmatix/SmartMatrix/blob/master/examples/FastLED_Panel_Plus_APA/FastLED_Panel_Plus_APA.ino
@angrycatowner
@angrycatowner 4 жыл бұрын
This is a very informative video. My question is: exactly what is it that you are using R0, G0, and B0 for? Are you shifting in 8 bit color value per line? or is it a PWM signal for each LED?
@GadgetReboot
@GadgetReboot 4 жыл бұрын
www.sparkfun.com/sparkx/blog/2650 This article mentions binary code modulation and image planes as a way to do something similar to PWM to generate the images.
@foxfyre3600
@foxfyre3600 4 жыл бұрын
As far as i know, SmartMatrix uses clever DMA and Timer tricks to manage such dispIays. I drive mine completely in software using the technique learned from (www.batsocks.co.uk/readme/art_bcm_1.htm) Because this display is 64 pixels high and uses two RGB streams, 5 address lines are present. R0 G0 and B0 drive the upper half of the rows, R1, G1, B1 drive the lower half. Fully on or fully off, hence the BCM. Address lines E D C B A select which row is being driven at the time, only two lines are actually on at any time. CLK is 'flicked' once a row is loaded, LAT copies the loaded data to the output. OE is driven high to blank the display for various reasons. With all completely white pixels, it should draw about 8A (40W) per panel. It's a bit wasteful but I store a framebuffer as bytes that are read through from start to finish straight to the output port. That way the display service routine runs at top speed. It also wastes 2/8 of the bits. Now the pixels are spread over bitplanes in the buffer which makes drawing much slower but in my implementation appearance takes priority. Gamma is about 2.5 so shades need compensation, I get 15-bit color. I currently have a Teensy 3.6 driving 8 32x64 boards cascaded to become a 64x256 15-bit 250Hz display. With double-buffering, both buffers use 80KB RAM total, and I can VSync to prevent tearing.
@Sekir80
@Sekir80 9 ай бұрын
@@foxfyre3600 Very interesting! I mav be understood the half of it, but still, it is very interesting!
@mdaslamknl
@mdaslamknl Жыл бұрын
Excellent Thank You
@trandam2652
@trandam2652 4 жыл бұрын
I want to control module p5 display text from pc . Thank you!
@yuxuanhuang3523
@yuxuanhuang3523 2 жыл бұрын
Hi I would love to know whether this has been ported to ESP32, because I can have access to these panels secondhand really cheap, the only problem is their driver card is really expensive. So I would really like to be able to drive it one panel at a time with a esp32
@brett20000000009
@brett20000000009 2 жыл бұрын
Is it possible to get these panels to do a 1:1 scanrate? just like a crt
@user-hm6xe6kr5y
@user-hm6xe6kr5y 3 жыл бұрын
wow it's cool
@dileeppulluru8700
@dileeppulluru8700 Жыл бұрын
will this library supports for p10 32 X 16 panel ?
@ahmadkamaludin671
@ahmadkamaludin671 4 жыл бұрын
Hi Master, very impressive tutorial.. any body to try with 1/8 scan? I tried with 1/8 scan led module but doesn't working properly... please advise to solve for led module Hub75 with 1/8 scan
@GadgetReboot
@GadgetReboot 4 жыл бұрын
Since I don’t have a 1/8 scan display I can only guess that these settings below are what need to be changed in the sketch for the width and height of the panel and mod8scan etc #define COLOR_DEPTH 24 // known working: 24, 48 - If the sketch uses type `rgb24` directly, COLOR_DEPTH must be 24 const uint8_t kMatrixWidth = 32; // known working: 32, 64, 96, 128 const uint8_t kMatrixHeight = 32; // known working: 16, 32, 48, 64 const uint8_t kRefreshDepth = 36; // known working: 24, 36, 48 const uint8_t kDmaBufferRows = 4; // known working: 2-4, use 2 to save memory, more to keep from dropping frames and automatically lowering refresh rate const uint8_t kPanelType = SMARTMATRIX_HUB75_32ROW_MOD16SCAN; // use SMARTMATRIX_HUB75_16ROW_MOD8SCAN for common 16x32 panels, or use SMARTMATRIX_HUB75_64ROW_MOD32SCAN for common 64x64 panels const uint8_t kMatrixOptions = (SMARTMATRIX_OPTIONS_NONE); // see docs.pixelmatix.com/SmartMatrix for options
@mikewaxx
@mikewaxx Жыл бұрын
i'm confused about this. @8:15 you say that the series arrangement of the shift registers is too slow, but i calculated that with a 384-bit shift you can get a frame rate of 122Hz. The 2037 chips have a shift rate of 30MHz, which means 13uS to shift through 2 lines of screen, so that's 410uS for 64 lines. And for 20 modules, that's 410u x 20 = 8.2mS for the whole screen, which means 122Hz frame rate. And you don't have to wire the shifters in series. With the Teensy you have enough DIOs to have 6 parallel inputs and 64-bit shifters, so that's 732Hz.
@diamony123
@diamony123 7 ай бұрын
Can yo do the same thing for Teensy 4.1
@Codebyakshay
@Codebyakshay 6 ай бұрын
can u make a video where we can connect it with raspberry pi
@tablatronix
@tablatronix 4 жыл бұрын
P2 ooh nice
@GadgetReboot
@GadgetReboot 4 жыл бұрын
Yeah I was thinking smaller pitch would be better for close-up work. I still need to try to download some Gifs into it and see how those look
@clarkr4407
@clarkr4407 Жыл бұрын
Can you point me to the example code for the soft changing background that looks like a heat map? (reds and greens in the opening shot of the vid)??
@GadgetReboot
@GadgetReboot Жыл бұрын
I think it was in FastLED Functions github.com/pixelmatix/SmartMatrix/tree/master/examples/FastLed_Functions
@boerny6757
@boerny6757 3 жыл бұрын
Wait is that at 2:25 the controller you use? I read that you'll need a Beaglebone Black/Raspberry Pi 4 for 64x32 because others are not powerfull enough. Could you link the controller? Just ordered two 64x32 1/16 which i want to put together to one 64x64
@GadgetReboot
@GadgetReboot 3 жыл бұрын
The controller I used was Teensy 3.6 www.pjrc.com/store/teensy36.html and the library I used with it is github.com/pixelmatix/SmartMatrix There is now a Teensy 4 but I don't see mention in that library for supporting it, but the 3.6 worked fine with 64x64 for me. not sure how big a display it can do before issues. I haven't tried the raspberry pi but it would use this library github.com/hzeller/rpi-rgb-led-matrix Originally I tried an ESP8266 module but it couldn't handle 64x64
@boerny6757
@boerny6757 3 жыл бұрын
@@GadgetReboot 64x64 is the max size I want to go. Thanks alot for the information :)
@davidthacher1397
@davidthacher1397 9 ай бұрын
Couple things. Most of these libraries will flicker. They do not really support more than 240Hz scan, and for the most part this is okay. The contrast is limited to around 11-12 bits however this is limited by the multiplex. (Just subtract the number of address pins if using decoder row select.) BCM is commonly used and I am not sure how many panels properly support this beyond 240Hz on the row and column side. Some panels can go a little further, but you need special logic in the row drivers and in the column drivers. Be aware of outdoor displays which do custom multiplexing.
@davidthacher1397
@davidthacher1397 9 ай бұрын
Note remember dot correction, fan out (long chains) and gamma correction. Most of these libraries do not support the hardware PWM panels.
@hy_ball1809
@hy_ball1809 3 жыл бұрын
hello. sorry to ask. Can you add 4 led matrix panels that are connected to each other?
@GadgetReboot
@GadgetReboot 3 жыл бұрын
In general, multiple panels can be chained and the sketch can be set to say how wide and tall the final display is, but there's limited information about the exact capabilities for maximum displays or total pixels in any orientation, or what processors can handle how many pixels, or even if 64x64 itself can be chained. I only have the one 64x64 so I can't experiment but I saw something that might suggest 64x64 is a special panel that uses an extra address line compared to smaller panels so they can't even be cascaded for some reason, but a bunch of 32x32 or 32x64 maybe can be, to get the same final result of pixels because those use less address lines and can be linked. Then the info I see says the more pixels/panels, the faster the processor that's needed to keep up, so I saw some info about Teensy 4 being able to do 64x128, or 96x96 (with lower refresh rate or something like that). So it's hard to know what will work. Originally I tried to get 64x64 working on ESP8266 and it was flickering too much to use, but when I used Teensy 3.6 it was fine because it's faster. But if I tried cascading a bunch of 32x32 or something (so they can be cascaded) to get a bigger display than 64x64 overall, I don't know how far I could go before that flickers and I'd need to try Teensy 4, which I have also and it's again way faster.
@Kumodot
@Kumodot 2 жыл бұрын
Just want simple arcade games running on it :) Is it possible to drive 4 of them in chain ? So to have 128x128 ? That way it could show pico-8 games 1:1 ;)
@GadgetReboot
@GadgetReboot 2 жыл бұрын
they can be chained but the biggest limitation would probably be the processor driving it, not able to keep up with refreshing it after sending out that much serial data for that many pixels. And if the processor can handle it and somebody has written a proper library to correctly display an image with the panels sharing portions of the overall picture properly, it would have to be assessed to see if those chips like the shift registers are capable of switching data as fast as needed to get all those pixels updated to have a proper refresh rate, which I don’t know but these panels do get used in huge commercial displays. I think if somebody comes up with an FPGA controller instead of a regular micro controller that would help because I think that’s how it’s actually done commercially
@wiperpaul
@wiperpaul 3 жыл бұрын
What program do you use for your breadboard planning
@GadgetReboot
@GadgetReboot 3 жыл бұрын
For drawing the wiring diagrams for simple Arduino type projects just to show the connections I use Fritzing. For proper schematics and PCB projects I use KiCad
@FL0RI4NN
@FL0RI4NN 4 жыл бұрын
A lot of data to be sent out fast... time to go get a fpga ;D
@4.0.4
@4.0.4 4 жыл бұрын
FPGA costs a lot and is hard to develop for, if you were driving some huge commercial array of LED panels sure, but for 64x64 a microcontroller does it.
@jamalani4249
@jamalani4249 4 жыл бұрын
sir please how to code and combine esp32+p2.5 128x64 rgb 1/32 scan
@silu8590
@silu8590 4 жыл бұрын
hi sir ,i am Gina,i can offer rental /fixed /indoor /outdoor led display ,if you need that contact me please.whatsapp/skype: 8615803088171 email address: gina@atsilu.com wechat : XRX1070848443,looking forward to your reply.
@Dev_Everything
@Dev_Everything 4 жыл бұрын
Hello, If you were to buy this again would you? I am looking at the dfrobot led matrix but I am not sure
@GadgetReboot
@GadgetReboot 4 жыл бұрын
I still like the display and would buy it again. If I intend to use multiple displays together I would buy them all at once from the same source because there may be slight variations between batches and they wouldn’t work well together visually.
@Dev_Everything
@Dev_Everything 4 жыл бұрын
@@GadgetReboot Thank you for the reply, have a good day!
@mattivirta
@mattivirta 4 жыл бұрын
interesting and want make too, but all infos go out of my hair, i not understand good anythink. i think not can newer code own text roll to display or other own sign.
@jaredayrton3709
@jaredayrton3709 4 жыл бұрын
So how many panels can you add. Could you make a led panel wall?
@GadgetReboot
@GadgetReboot 4 жыл бұрын
It’s limited by the memory and speed of the processor and I didn’t see any clear specifications for this library but I read somewhere that Teensy 3.6 might be able to handle one 128 x 128 so four of these 64 x 64 panels. I only have the one panel so I haven’t tried larger displays.
@jaredayrton3709
@jaredayrton3709 4 жыл бұрын
@@GadgetRebootHmm interesting, Thanks for the reply :)
@silu8590
@silu8590 4 жыл бұрын
hi sir ,i am Gina,i can offer rental /fixed /indoor /outdoor led display ,if you need that contact me please.whatsapp/skype: 8615803088171 email address: gina@atsilu.com wechat : XRX1070848443,looking forward to your reply.
@huukhoale1298
@huukhoale1298 4 жыл бұрын
combine esp8266 P5 led matrix ?
@GadgetReboot
@GadgetReboot 4 жыл бұрын
I found ESP 8266 wasn’t good enough for 64 x 64, it kept flickering but I am working on using ESP 32.
@huukhoale1298
@huukhoale1298 4 жыл бұрын
Thank you. I use Esp32 . Not use esp8266
@jstro-hobbytech
@jstro-hobbytech 11 ай бұрын
I have 7 of them and a teensy 4 and 4.1 haha
@ArjanvanVught
@ArjanvanVught 4 жыл бұрын
I suppose all libraries are written for the Arduino IDE. The Arduino IDE gives a lot of code overhead. Basically, it is a complete OS with several abstraction layers. I am always surprised to see the Arduino IDE with ESP, Teensy or any powerful ARM core chip. Using the Arduino IDE is wasting just so much power from the modern ARM chips. Writing real baremetal, for example with Eclipse IDE, would make it all a lot easier.
@HazeAnderson
@HazeAnderson 4 жыл бұрын
Imagine how many resources are wasted by watching this KZfaq video. ;)
@jstro-hobbytech
@jstro-hobbytech 11 ай бұрын
Mine only has abce and there is a gnd pin where d should be. I banged my head off the wall for 2 weeks only to find out they lied and its tied to their ecosystem. Im going to keep digging. None of the ics on my panel match any i can find. Ive decided to revisit it hahaha.
@70Anatoliy
@70Anatoliy 3 жыл бұрын
👍👍👍👍👍5+++++++
@Grazykids30
@Grazykids30 4 жыл бұрын
Ich bin stockschwul
@spartansmartech4.0
@spartansmartech4.0 4 жыл бұрын
But, the way you are explaining was very plain, alot of boring, talking like a dead body... .. Please man ... use your inner spirit, more entertaining people in each discussion, more encouraging people that make we like or enjoying the time spend with you ir your presentation... Ok body, pls more life and spirit not like a dead body...
@travispierce9886
@travispierce9886 2 жыл бұрын
maybe you should learn some basic grammar before correcting another person's presentation
How does an RGB LED Matrix work?
11:36
ezContents
Рет қаралды 37 М.
LED-matrices for video screens
34:48
Электроника в объективе
Рет қаралды 96 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 9 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 59 МЛН
Build Your Own Live NHL Scoreboard with Raspberry Pi!
10:45
Howchoo
Рет қаралды 103 М.
2 Retro Clocks with an ESP32 (Couldn't be simpler!)
5:37
Brian Lough
Рет қаралды 102 М.
Make your own 48x48 Neopixel Matrix 2304 Leds by ESP32
13:53
BOOMY Tech
Рет қаралды 5 М.
#200 Build an MQTT based RGB LED panel! // Project
8:32
MickMake
Рет қаралды 55 М.
Raspberry Pi 4 LED Matrix Display | #160 (Halloween AI #5)
18:38
Brandon Jacobson
Рет қаралды 28 М.
YouTube Button - Nerd Level [ESP8266, RGB LED Matrix]
6:10
bitluni
Рет қаралды 124 М.
Making Infinity LED CUBE
18:48
Mecharms
Рет қаралды 12 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,4 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 422 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН