Tetris Clock using an LED Matrix and an ESP32 (without RTC)

  Рет қаралды 40,350

Brian Lough

Brian Lough

Күн бұрын

Пікірлер: 113
@toblum
@toblum 5 жыл бұрын
Nice to see that the good old TetrisClock library is getting some attention again. I haven't been able to do as much of it over the last few months as I wanted. I don't really understand why it doesn't want to run on the 8266 anymore. I‘ll test this out with my spare 32x32 matrix, which I have here laying around.
@BrianLough
@BrianLough 5 жыл бұрын
thanks for all the hard work on it! I'm sure I broke it whatever I did! It would be great if you did, I think the main problem is trying to run the animation in a ticker. Tabltronix did some good research into it on an issue for the Tetris clock sketch
@GreenOnionBrother
@GreenOnionBrother 5 жыл бұрын
Have you figured out out yet? I can't seem to get it to work either. (not that I'm particularly qualified)
@toblum
@toblum 5 жыл бұрын
@@GreenOnionBrother Unfortunately I didn't find time to look deeper into it, so far. But I could make the original version (github.com/toblum/esp_p10_tetris_clock/) work on my new matrix. But I also had issues with tetrisanimation lib.
@LaurentPerrinlolo
@LaurentPerrinlolo 4 жыл бұрын
​@@toblum It is not possible to execute delay() or yield() from an asynchronous callback. Adafruit_GFX::writeLine() is calling yield(). Therefore, you cannot call any primitives drawing lines from a ticker. Interestingly, if you use a scale of 1 and no colon, everything works fine. Else, just set a flag in the ticker and draw in loop(). Works well.
@toblum
@toblum 4 жыл бұрын
​@@LaurentPerrinlolo Thanks for your feedback. I'm trying to find time to revisit that project soon. I'll try to remember your message when I have a look at it again. Or if you have a improved version, please feel free to send over a PR in github.
@hshpegel
@hshpegel 4 жыл бұрын
Hi Brian, just finished a build of this clock using your tinyPico and Matrix. Was very easy and it looks great. Many Thanks! for a great project. Did have one issue (fixed now) and wanted to feedback to help others. Clock had 2 horizontal bands of missing pixels about 3/4" wide. The trouble shooting section of PxMatrix library provided the answer: add this line to code: display.setMuxDelay(1,1,1,1,1); I put it at line 234 just before buffer flush in // Intialise display library section. Adds a 1us delay to each of the A-E channels. Guess panel I purchased has a slow multiplexer.
@ChunkySteveo
@ChunkySteveo 5 жыл бұрын
Awesome amount of work seen in this video, great work Brian!!
@BrianLough
@BrianLough 5 жыл бұрын
Thanks Steve!
@swift675
@swift675 2 жыл бұрын
Wow very cool - i would love to try this project one day - Thank You for sharing Brian
@kevintrout7158
@kevintrout7158 5 жыл бұрын
Brian thank you for this project, this was fun to do. Appreciate all your work and am subscribed to your channel now. Nice writeup in Hackspace magazine!
@AJB2K3
@AJB2K3 5 жыл бұрын
Liked straight away because of the Tinypico plug!
@SleepingMage
@SleepingMage 5 жыл бұрын
I'm definitely gonna be making this, I love Tetris! ❤️
@rosscastona7809
@rosscastona7809 4 жыл бұрын
Thank you for your Tetris Clock project. I don't know what I'm doing ha,ha. But after a few weeks I got it to work. I needed to add more code to the sketch to get my panel to display properly. // Set the number of panels that make up the display area width (default is 1) display.setPanelsWidth(4); That took care of my problem, and now is working as expected. Thank You very much!
@PepsterMuze
@PepsterMuze 4 жыл бұрын
Amazing stuff, love the clock!
@ChunkySteveo
@ChunkySteveo 5 жыл бұрын
Only just noticed the MakerCast on the VGA monitor in the background.... amazing work!!
@BrianLough
@BrianLough 5 жыл бұрын
I literally point to it :P
@luism9028
@luism9028 3 жыл бұрын
Realizado con panel p4 y p3, gran proyecto. Gracias Brian
@maicod
@maicod 5 жыл бұрын
Love your project Brian !
@TomaszCzajka80
@TomaszCzajka80 5 жыл бұрын
Ha! Nice to see my 3D print design (even after surgery) in your project!
@BrianLough
@BrianLough 5 жыл бұрын
Thank you for the design Tomasz!
@scanlime
@scanlime 5 жыл бұрын
wow, i might have to make one! thanks for the great project and the instructional video.
@BrianLough
@BrianLough 5 жыл бұрын
Thank you Micah! Would love to hear how you get on if you do!
@Chickey
@Chickey 5 жыл бұрын
Cracking project, shall have to try it on my matrix display as it needs some use.
@RetroBuiltGames
@RetroBuiltGames 5 жыл бұрын
Built one, and it's really a novel idea. Love it. Brian, the code doesn't support 32x16 matrices even though there are comment-out options to enable these? I see a lot of positioning and sprite sizes are hard coded for 64x32 sized matrix correct?
@MarcoOchse
@MarcoOchse 5 жыл бұрын
This is awesome. Will be the first Maker project I will be doing with my daughter (hint: she loves Tetris 😃).
@EmilePolka
@EmilePolka 2 ай бұрын
already tried this, works great, as long as the matrix is 64x32 and based on HUB75 it should work on any pitch models, already tried it with P2, P3, P4 and P6
@andymouse
@andymouse 5 жыл бұрын
Very nice work Brian, I had no idea this animation existed, definitely a lot of fun. How about another mode? Tip on its side and its playable ?
@andrewkieran8942
@andrewkieran8942 5 жыл бұрын
Seon: "Make something unexpected" Me: :"OK" Nice touch!
@BrianLough
@BrianLough 5 жыл бұрын
Felt like I had to put something there 😂
@supperka2
@supperka2 4 жыл бұрын
Any update for year 2020? Project looks awesome.
@jamesbrady9105
@jamesbrady9105 9 ай бұрын
good video... will it work on Rasberry PICO?
@mdaslamknl
@mdaslamknl 2 жыл бұрын
Excellent Can i use esp12f I will try to make Thanks
@AJB2K3
@AJB2K3 5 жыл бұрын
Nice work, thanks for sharing!
@BrianLough
@BrianLough 5 жыл бұрын
Thank you Adam!
@hahainguyen3403
@hahainguyen3403 5 жыл бұрын
what pin is P_E on LED P5?I don't find it
@BrianLough
@BrianLough 5 жыл бұрын
It's not on all displays, usually it's only found on 64x64 ones
@hahainguyen3403
@hahainguyen3403 5 жыл бұрын
@@BrianLough,thanks!!! so could you help me connect LED matrix 64x32 to esp32,please???
@BrianLough
@BrianLough 5 жыл бұрын
@@hahainguyen3403 just make the same connections in the GitHub link but don't connect the p_e wire
@hahainguyen3403
@hahainguyen3403 5 жыл бұрын
@@BrianLough yeah,thank you so much
@leorusnac
@leorusnac 5 жыл бұрын
awesome, maybe this will be the thing to live on my matrix :D these configurations on a webpage would have been pretty sweet :)
@BrianLough
@BrianLough 5 жыл бұрын
Thanks Leo! Sure I needed to leave something for V2 😂
@duncanx99
@duncanx99 5 жыл бұрын
Excellent... A few 'links in the description' to the displays, the adaptor board and the brackets would have been nice.
@BrianLough
@BrianLough 5 жыл бұрын
Thanks Duncan! Links to everything are in the description though?
@n13ldo
@n13ldo 5 жыл бұрын
Ordered a D1 from your Tindie. I bought a ProjectMC2 from Amazon (£20) yonks ago after seeing BigClive tearing one down.
@BrianLough
@BrianLough 5 жыл бұрын
Cool, if your in the UK your order came in literally just in time as my wife was just about to head to the post office! Is that the pixel purse? I know for sure it works with them as somebody has tested it before, but you will need to solder to the unpopulated connector of the purse and possibly solder to the power connector too. I'll try update the instructions page of my website with some more info about it
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
Morning Brian just wondered if you had thoughts of the 32x16 panel problem 64x32 ok
@SCAPE0GOAT
@SCAPE0GOAT 5 жыл бұрын
I love this project ! I've never used or built with any Arduino type device or coded them. Would this be a good project for an experienced electronics builder with no Arduino experience ? Any advice would be great. Great videos though. Spot on 👍
@MsJhgb
@MsJhgb 5 жыл бұрын
Looks great. Great thumbnail
@embeddeddevzone5605
@embeddeddevzone5605 4 жыл бұрын
Hi. How can it work with P5 panel ?? Thank you
@MaxintRD
@MaxintRD 5 жыл бұрын
What's not to like? Blinkenlights, internet and a TinyPico. Great breakout board. Well done! I'm looking forward to try this Tetris library on my 24 x 16 matrix. Sounds like it's easy to use and very flexible but my display might be too small. (Still curious to know why the ESP8266 crashes. My experience is that it needs plenty of RAM available (>25K) or it may become unstable (depending on what libraries you use).
@umiturgutaswwsa
@umiturgutaswwsa 4 жыл бұрын
Can't we use nodemcuv3 instead of esp32?
@kprasann1979
@kprasann1979 3 жыл бұрын
Beautiful, thanks for the code! It came out very nice.But sometimes, I get a flicker on top right few LEDs and middle row LEDs, though not in full brighness, just a bit to distract you. Any help with this ? Thank you once again!
@kprasann1979
@kprasann1979 3 жыл бұрын
Just an update, got it sorted as my supply was underpowered...3a for the display and usb supply from laptop for the esp32, after parallel supplying from led supply to esp32, no flickering. Thanks for the awesome code, looks beautiful!
@arie-janwillemvanderpadt592
@arie-janwillemvanderpadt592 Жыл бұрын
Tried to built the Titris clock. using your ESP32 Matrix Shield (Mini 32) - Kit, loaded all libaries and imaged loaded fine without no errors but the Led matrix is not working. Any tips? Thanks AJ
@Grimm93
@Grimm93 Жыл бұрын
Hello Unfortunately I have a problem. First of all, thank you for the great video and your work. I ordered an ESP32 D1 mini, your board and a 64x32 display. Can upload the sketch but the display stays black. Can someone help me here? Can upload examples and they work, but unfortunately the time doesn't😬 Would be grateful to you.
@WagonLoads
@WagonLoads 3 жыл бұрын
This looks nice.. Will the Tetris code work on a TTGO T-Display?
@BrianLough
@BrianLough 3 жыл бұрын
If there is a library for the display that uses adafruit gfx if would be possible for sure!
@MPElectronique
@MPElectronique 4 жыл бұрын
It would be cool to download a jpeg from inet with Esp32 and display it on the matrix... I saw the spotify display on a 64x64 but the jpeg didnt came out great. An idea? Thanks.
@TechnoWit3D
@TechnoWit3D 3 жыл бұрын
Hi Brian. Do you know how to make KZbin live stream viewer counter using esp8266?
@sekerbaba2631
@sekerbaba2631 3 жыл бұрын
Hallo super Project.. ich habe eine Frage, ich kann im sketch die Parameter nicht erkennen. #define P_LAT 16 #define P_A 5 #define P_B 4 #define P_C 15 #define P_D 12 #define P_OE 2 ist es möglich die parameter in deinem sketch hier aufschreiben. mit dieser einstellung funktioniert es bei mir nicht. Danke im Voraus
@PapLab
@PapLab 5 жыл бұрын
Beautiful project! I would love to replicate it :) If I understood well, the minimum hardware needed is - matrix panel - esp32 mini - power adapter Is this correct?
@BrianLough
@BrianLough 5 жыл бұрын
Yup! You'll also need some longer style Dupont cables because you need to connect from one connector to the other. Wiring diagram is on the project GitHub page. It definitely doesn't need 8amps, but I don't really just the rating on cheap power supplies! I'd say the displays in general probably need 4 amps , this project needs a little less because it's not setting the colours to white often Will be writing up an instructables for it shortly.
@PapLab
@PapLab 5 жыл бұрын
@@BrianLough Thank you for your reply! Parts will need some time to arrive from China, so I can wait for your Instructables too (I'm not an expert with programming but I'm very good to follow instructions!).
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
Hi mate all working on 32x64 panel how do I change code for 32x16 I have changed size to 32x16 in the px matrix line do I need to change anything else thankyou
@kodys_corolla
@kodys_corolla Ай бұрын
This sounds really hard can you slowly explain it better?
@DirkTas
@DirkTas 4 жыл бұрын
Hello Brian, Recently bought the ESP32 kit from you on Tindie and I want to use this with a 64x64 display, is this possible? Regards, Dirk
@BrianLough
@BrianLough 4 жыл бұрын
Yes it can do 64x64
@DirkTas
@DirkTas 4 жыл бұрын
@@BrianLough i can change this in the .ino file?
@BrianLough
@BrianLough 4 жыл бұрын
If it's the pxMatrix version you can yes, you can just change the values that are passed to the constructor near the top
@ManofCulture
@ManofCulture 5 жыл бұрын
Awesome
@BrianLough
@BrianLough 5 жыл бұрын
Cheers!
@NeilHodgsonDARKHOURS
@NeilHodgsonDARKHOURS 4 жыл бұрын
Hello and a great project. Maybe you can help me with a problem I'm having with mine I'm running the tiny pico with the display you suggested when it's running all I have is the first four rows are working the next four are not working. The next four are, the next four are not working etc. I have 4 displays and it doing the same on any of them I try I'm not sure where to go from here. or what to change in the code I have watched your other videos on RGB led matrix how to get started etc but not having any luck Thank You for any help
@BrianLough
@BrianLough 4 жыл бұрын
github.com/2dom/PxMatrix/issues/119 there is a solution for this problem here, skip down towards the end
@NeilHodgsonDARKHOURS
@NeilHodgsonDARKHOURS 4 жыл бұрын
@@BrianLough thank you for your reply My clock is working fantastic now Not too many people on youtube answer back on questions Again Thank You for your great help
@KSITREVS
@KSITREVS 3 жыл бұрын
Hi! I have this up and running and have changed it slightly for a 64x64 display for better viewing pleasure :D Im really trying to get my head around this RTOS... why couldnt i just add some animations at the bottom of void loop? i can set a pixel, but anything else everything just seems to fall over!
@micha4038
@micha4038 2 жыл бұрын
Hi, can you share the code for the 64x64 display pls? Thx so much
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
Hi Brian got your esp32 board running from tindie and running code examples fine ie aura and pixal time the Tetris clock ino uploads fine no errors but when I plug matrix in the matrix does not light I have set all dip switches right to run example codes fine but no go with Tetris clock been at this for a while now please help thankyou
@BrianLough
@BrianLough 4 жыл бұрын
Did you update your wifi details? Is there anything happening in the serial monitor?
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
Serial monitor showing just 1 back to front question mark
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
Sorry 3 back to front question marks
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
And D
@muserbellamy1140
@muserbellamy1140 4 жыл бұрын
I have a Adafruit panel which the R1 pin top left so with the the 2dom wiring it doesn’t require pin B ? I reset device and have a ok in serial monitor still no light
@damianpinnington5477
@damianpinnington5477 5 жыл бұрын
I made this with a devkitv1 module and it works great, but you need to change the display.begin() about 2/3 through the code. I don't think it was mentioned at all. I used my bench power supply and it never goes above 250mA, so if you only want a Tetrix Matrix clock you could power from usb.
@vectorautomationsystems
@vectorautomationsystems 3 жыл бұрын
Hi everyone. This project is not compiling/has errors on Arduino 1.8.13. Any pointers? Links to a forum where this problem can/has been discussed and where error messages can be shared?
@jrok96
@jrok96 3 жыл бұрын
do you have the libraries installed? and the right board picked? I too wish we had a forum cause i have a different issue with a 64x64 panel not displaying properly.
@Davedarko
@Davedarko 5 жыл бұрын
nice intro and thumbnail :P
@harriebosgraaf2977
@harriebosgraaf2977 3 жыл бұрын
Beautiful clock. But can`t get it to work! Could someone help me understand what i`m doing wrong? I have wired it like it is mentioned on the github page. I have tested it with the pixeltime sketch. Works like a charm. But if i load the tetris sketch, the display won`t light up. First i tried it with the d1 esp32, just like the one used in the example. I use a p4 matrix. I don`t have to use the e pin, so i changed the sketch into ( PxMATRIX display(64,32,P_LAT, P_OE,P_A,P_B,P_C,P_D); ) The pinout is ( #define P_LAT 22 #define P_A 19 #define P_B 23 #define P_C 18 #define P_D 5 #define P_E 15 //#define P_OE 26 //TinyPICO //#define P_OE 21 //Huzzah32 #define P_OE 2 // Generic ESP32 The matrix doesn`t light up. With the pixeltime sketch it does, but not with the tetris sketch! Than i tried it with an esp8266. It starts, it connects. Shows brian lough, than it goes black and does it again. So the screen works. But not with the esp32. What am i doing wrong?. In the monitor you can see it connects to the network and gets the time, but it won`t light the matrix? Please some help??? I would like this clock to work. The dancing banana, the mario and all the other examples work! But not this clock. Greetz Harrie
@MPElectronique
@MPElectronique 4 жыл бұрын
Hey, 32x16 doesnt looks great :-(
@mveldt
@mveldt 5 жыл бұрын
So you did a different type of plastic surgery here :) Really nice project
@ザヴァレント
@ザヴァレント 5 жыл бұрын
欲しい
@JeremyCook
@JeremyCook 5 жыл бұрын
Tell Seon to open up his wallet! ;-) Seriously though, great video/build!
@BrianLough
@BrianLough 5 жыл бұрын
I hope so, I guess I won't find out til he gets up later if it helped or not!
@JeremyCook
@JeremyCook 5 жыл бұрын
@@BrianLough Ha, well looks like a cool device. I see he's waaaay overfunded, so I guess others liked it too!
@もかちゃん-i7n
@もかちゃん-i7n 5 жыл бұрын
give me it early!
@романроман-б6г
@романроман-б6г Жыл бұрын
congratulation.for beginer...
@almostanengineer
@almostanengineer 5 жыл бұрын
#NotSponseredButSeonIsAMate 😂😂😂
@bigtst36
@bigtst36 Жыл бұрын
This seller is taking a break until Dec. 31, 2023. Sign up below to get an email when they're back! well damn, no breakout till 2024.
@BrianLough
@BrianLough Жыл бұрын
Hi Roy, to be honest I'm not sure I'll open again. check out this video though kzbin.info/www/bejne/rKbKpp-wiJV4pbc It's the same project using a different board that is available to buy now. It's actually even easier cause you flash it directly from your browser!
@bigtst36
@bigtst36 Жыл бұрын
@@BrianLough Do you have a link to the Trinity board?
@bigtst36
@bigtst36 Жыл бұрын
@@BrianLough Disregard that, lol. I found it. Thanks.
@bigtst36
@bigtst36 Жыл бұрын
​@@BrianLough Thanks Brian, got two Trinity boards on the way!
@jittaweemetesirorat7577
@jittaweemetesirorat7577 3 жыл бұрын
Thank you ขอบคุมากครับ ใช้งานได้ดีมากครับ kzbin.info/www/bejne/n5iQdodmq8yEaLs
2 Retro Clocks with an ESP32 (Couldn't be simpler!)
5:37
Brian Lough
Рет қаралды 122 М.
🤖Я в шоке! ChatGPT пишет Arduino проекты
28:24
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
BUILD LED MATRIX 48x48 Neopixel 2304 Leds by ESP32 and WLED
13:23
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,3 МЛН
Hacking an Etch-a-Sketch into a 0.1FPS TV  |  OpenSource ESP32 BLDC Motor Controls
28:42
How I Made This Transparent Hollow Clock - It is 3D Printed!
10:19
engineericly
Рет қаралды 171 М.
How to make a 16x16x16 LED CUBE at home with Arduino platform
20:09
Malt Whiskey
Рет қаралды 4,4 МЛН
The 20 Best ESP32 Projects of 2024!
14:44
ToP Projects Compilation
Рет қаралды 129 М.
YouTube Button - Nerd Level [ESP8266, RGB LED Matrix]
6:10
bitluni
Рет қаралды 126 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН