How to use 4-digit LED TM1637 display with Arduino

  Рет қаралды 45,039

Mario's Ideas

Mario's Ideas

Күн бұрын

Пікірлер: 78
@agahgokdag1845
@agahgokdag1845 Ай бұрын
You explained the lesson like a "white swan" dancing on the lake,thank you Sir...
@rollover36
@rollover36 3 жыл бұрын
I liked the way you showed each running piece of code while running the test, good work sir, ty
@marios_ideas
@marios_ideas 3 жыл бұрын
Thanks:)
@maxdre433
@maxdre433 3 жыл бұрын
frckin loved that you did an understandable example in the end
@marios_ideas
@marios_ideas 3 жыл бұрын
Glad you found it helpful:)
@Eurus721
@Eurus721 Жыл бұрын
Best video on this display I’ve ever seen. Helped so much being able to see the code as the program was running. Thanks for so much effort into this very useful video.
@marios_ideas
@marios_ideas Жыл бұрын
You are too kind;) Consider supporting my channel
@elektron2kim666
@elektron2kim666 Ай бұрын
My first one didn't light up and I'm stuck. Now I have a test board for those and a good app. The micro controller is like a TTL interface with GPS (taking time data out) and I could use it for the u-blox software. My Cardputer is more fancy with this and I can type through it and get a clock on that display. My little oscilloscope show that the signals are fine, so I will buy a few more TM1637 modules to see what happens.
@SebaSpeed
@SebaSpeed 3 жыл бұрын
Very good tutorial, thanks bud!!
@marios_ideas
@marios_ideas 3 жыл бұрын
Thanks:)
@u1kim
@u1kim Жыл бұрын
Thanks for the tutorial. Even after two years since this tutorial, there's still no definitive reference I can find on TM1637 on Arduino, and this video is about the only piece that shows the placement of decimal point. However, I'm still struggling with formatting floating point numbers with specific decimal point placement. For instance, how would you write the parameters to display four digit number with one of them after the DP? e.g. displaying a variable named data with a value of 123.4?
@jeffbeck6501
@jeffbeck6501 2 жыл бұрын
It was so good, the video that is, that I had to subscribe. Great job man.
@marios_ideas
@marios_ideas 2 жыл бұрын
Thx. Also give video a like to help to promote it:)
@selimcanovur587
@selimcanovur587 3 ай бұрын
Hello, I could not trust most of the products, some seems like dots are available but actually not connected physically to the module. Can you suggest me a product with the decimal points, which I can drive with tm1637 ? Because I wrote my own library for raspberry pi and everything works fine except the decimal points. Some of the products work like a timing module even though they have decimal segments.
@marios_ideas
@marios_ideas 3 ай бұрын
I can't. The one I used in the video was purchased in the large selection of components. And If I need to use this display stick to this one:) Find a local electronic shop , not the online shop. If this is not what is advertised you can simply return it.
@anokhautomation4453
@anokhautomation4453 2 жыл бұрын
Useful tutorial.thanks for sharing.
@marios_ideas
@marios_ideas 2 жыл бұрын
Thanks.
@passibharat
@passibharat 2 жыл бұрын
Very good explanation
@marios_ideas
@marios_ideas 2 жыл бұрын
Give video a like if you enjoyed it:) Helps me a lot. I also have some OLED display tutorials you may find useful
@abdulqadirahmedli610
@abdulqadirahmedli610 2 жыл бұрын
Çox sağ olun. Mənə InşəAllah kömək etdi.
@marios_ideas
@marios_ideas 2 жыл бұрын
Thanks:)
@lolleepop
@lolleepop 2 жыл бұрын
How to make the display show the variable. Im making a distance measuring system and I want to display the output number to this type of displays. Plz help
@marios_ideas
@marios_ideas 2 жыл бұрын
I have one video where I am working displaying time on this display. Please check how I displayed variable there kzbin.info/www/bejne/mKO3n3h7f6d5kK8
@chbonnici
@chbonnici 2 жыл бұрын
Very nicer thank you.
@marios_ideas
@marios_ideas 2 жыл бұрын
Thx:)Give video a like if you enjoyed it. It helps to grow my channel
@Ktos1
@Ktos1 3 жыл бұрын
Dobra robota, filmik mi bardzo pomógł, szkoda że nie robisz drugiej wersji po polsku.
@marios_ideas
@marios_ideas 3 жыл бұрын
Super ze sie podoba:)
@grzegorzbrzeczyszczykiewic2089
@grzegorzbrzeczyszczykiewic2089 2 жыл бұрын
Po polsku ?
@magnetservicecenter
@magnetservicecenter 3 жыл бұрын
sir i am layman since age 33,now i am 43 but you are Gineous
@marios_ideas
@marios_ideas 3 жыл бұрын
Naaaaa:)
@knerduno5942
@knerduno5942 3 жыл бұрын
So I ordered two of these, and not from Alixpress as I did not want to wait 1-6 months for delivery. First one i got, I realized after does not have decimals between the numbers. I had to remove the in your code for the display to show numbers correctly. The other one does have decimals, and is similar to the larger one you have here, even with similar markings. Not only is it not displaying decimals, it is only showing a single 0. Advice on that?
@marios_ideas
@marios_ideas 3 жыл бұрын
I am afraid it would be difficult for me to support here. Maybe you have some other type that does not work well with that library. Displaying just a zero when you clearly attempt to display a different content is not a good sign
@knerduno5942
@knerduno5942 3 жыл бұрын
@@marios_ideas Okay. I will give the other libraries I try. Thanks!
@brotherdevastro393
@brotherdevastro393 2 жыл бұрын
can i change the 7 segment to 2.3 inch seven segment with 7Volt Supply?
@marios_ideas
@marios_ideas 2 жыл бұрын
Inspect the part and it has a microchip TM1637 on it then you can. So you power from 7 v but connect 5v logic from arduino to the signal pins to control it.
@eligijuspranskunas3509
@eligijuspranskunas3509 Жыл бұрын
on the code compiler it says- has no member "clear"
@marios_ideas
@marios_ideas Жыл бұрын
Arduino nano or uno has only 2k of ram. Easy to go over the limit. You were adding your own code , I presume
@coroomchannel414
@coroomchannel414 2 жыл бұрын
How to display numbers with commas? For example 27.30.
@marios_ideas
@marios_ideas 2 жыл бұрын
Answer is in the video. Check timestamp 6:05. There I am displaying all the dots. There is a fourloop there using k variable. But instead of using k you can use either 3,2,1,or 0 and it will display one of the dots
@coroomchannel414
@coroomchannel414 2 жыл бұрын
@@marios_ideas How to display 3 temperature numbers on seven segment?
@lamse_barmajiyye
@lamse_barmajiyye 2 жыл бұрын
How can we use this module with micro c?
@marios_ideas
@marios_ideas 2 жыл бұрын
I have not looked at Micro C and PIC microcontrollers. Sorry
@lamse_barmajiyye
@lamse_barmajiyye 2 жыл бұрын
@@marios_ideas OK thank you
@MrAlinkarl
@MrAlinkarl 4 жыл бұрын
nice video! can u make a video a countdown timer if there is a input signal ex. sensor and give time to countdown. thanks.....
@marios_ideas
@marios_ideas 4 жыл бұрын
I am not sure I understand. CAnyou explain more
@MrAlinkarl
@MrAlinkarl 4 жыл бұрын
@@marios_ideas if the arduino detect input sensor, then it will give time ( ex. 30 minutes) it will countdown and it will display the minutes and sec., and zero comes it will end and stay zero display. thanks for the rply
@marios_ideas
@marios_ideas 4 жыл бұрын
Well this is a very specific request not really good for dedicated video. What I might do in the future is to do a stopwatch and eggtimer which should give you good idea how this would work. But I do not have this project in my immediate pipeline. In a meantime you can look at the other video of mine which shows how to display time. If you can do it then all you need to do is to detect the sensor state change and record time and then show 30:00Min on the display and come up with formula which calculate the amount of time that has passed since we recorded the timestamp and substract it from 30 min. Should not be very difficult
@PiyushRobotics
@PiyushRobotics Жыл бұрын
amazing
@marios_ideas
@marios_ideas Жыл бұрын
Glad you think so!
@safadelican
@safadelican 3 жыл бұрын
THANKS
@marios_ideas
@marios_ideas 3 жыл бұрын
My pleasure
@user-xb5zu6zu7j
@user-xb5zu6zu7j 4 жыл бұрын
How did you fix dot issue?
@marios_ideas
@marios_ideas 4 жыл бұрын
By using clock.showNumberDecEx((int)myRTC.hours/10*1000+(myRTC.hours-((int)myRTC.hours/10)*10)*100+ (int)myRTC.minutes/10*10+myRTC.minutes-((int)myRTC.minutes/10)*10, (0x80 >> 1), true); In that command (0x80 >> 1) is responsible for displaying the colon. Mind you you have to have a specific TM1637 display. There ones meant for displaying decimal numbers and they have dots and there are ones for displaying time with colons. There some that have both but then you have to experiment with different libraries. My experience is that I use either dots or columns depending on display type. I have separate video on TM1637 where this is covered
@andrasparanici5491
@andrasparanici5491 4 жыл бұрын
Nice!
@marios_ideas
@marios_ideas 4 жыл бұрын
Thanks:)
@yuvrajsingh8901
@yuvrajsingh8901 Жыл бұрын
Can u help me
@Sekhar_Home
@Sekhar_Home 4 жыл бұрын
I want to control tm1638 without library.. is it possible. If yes then pls make a video or give me link where to get tutorial. Thank u in advance
@marios_ideas
@marios_ideas 4 жыл бұрын
I am not sure. I will check. Why would you want not to use the library?
@SebaSpeed
@SebaSpeed 3 жыл бұрын
Obviously is possible but you need more code to send each bite to controller to make changes,
@Sekhar_Home
@Sekhar_Home 3 жыл бұрын
@@SebaSpeed pls tell me where to follow any tutorials
@SebaSpeed
@SebaSpeed 3 жыл бұрын
@@Sekhar_Home I not know any tutorial but you can start studying the datasheet and make inverse engineering to the libraries.
@knerduno5942
@knerduno5942 3 жыл бұрын
Just look at the code in the library. That is what Object Orientated Programming is all about: the reuse of code.
@sirchannel1754
@sirchannel1754 3 жыл бұрын
your video is amazingg sirrrr, goodjob can this tm1637 do the running text? if that possible can you show me the code :D
@marios_ideas
@marios_ideas 3 жыл бұрын
Well. You have a limited number of characters. Displaying what text did you have in mind?
@sunilkb144
@sunilkb144 4 жыл бұрын
is all alphabets displayable .especially z,k,m,r,t,w,x,
@marios_ideas
@marios_ideas 4 жыл бұрын
Nope . You cant e.g make z or m or x etc
@mikethelittletrader2790
@mikethelittletrader2790 Жыл бұрын
If anyone is interested, here is my test code for this display to work without any library. #define CLK 2 #define DIO 3 /* * 0 - * 5 | | 1 * 6 - 7 : only at 2nd register * 4 | | 2 * 3 - * */ #define chA 0b01110111 #define chH 0b01110110 #define chO 0b00111111 #define chJ 0b00011110 #define chBlank 0 const byte nums[] = {0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x6F}; byte bfr[5]; void setup() { Serial.begin(57600); pinMode(CLK, OUTPUT); // CLK pinMode(DIO, OUTPUT); // DIO digitalWrite(DIO, HIGH); digitalWrite(CLK, HIGH); } void loop() { SetBrightness(0); WriteLCD(chA, chH, chO, chJ, false); delay(2000); SetBrightness(2); WriteLCD(nums[0], nums[1], nums[2], nums[3], false); delay(2000); SetBrightness(4); WriteLCD(nums[4], nums[5], nums[6], nums[7], true); delay(2000); SetBrightness(6); WriteLCD(chBlank, nums[8], nums[9], chBlank, false); delay(2000); } void SetBrightness(byte level) // value 0 .. 7; { bfr[0] = 0b10001000 | (level & 0x07); // Display ON + jas SendMsg(1); } void WriteLCD(byte D0, byte D1, byte D2, byte D3, bool colon) { bfr[0] = 0b01000000; // command: write data to display SendMsg(1); bfr[0] = 0b11000000; // command: address C0H bfr[1] = D0; bfr[2] = D1 | (colon ? 0x80 : 0); bfr[3] = D2; bfr[4] = D3; SendMsg(5); } void SendMsg(byte byteCount) { int tmpBfr = 0; pinMode(DIO, OUTPUT); digitalWrite(DIO, LOW); // start digitalWrite(CLK, LOW); // clk ready for (int i = 0; i> 1; } digitalWrite(DIO, LOW); pinMode(DIO, INPUT); // waiting for ACK digitalWrite(CLK, HIGH); // test for LOW - not implemented digitalWrite(CLK, LOW); } pinMode(DIO, OUTPUT); digitalWrite(CLK, HIGH); // clk ready digitalWrite(DIO, HIGH); // end }
@marios_ideas
@marios_ideas Жыл бұрын
Wooo... this code is a little over my head:) I wił have to thoroughly analyse it. Thanks for your feedback
@janmatlas
@janmatlas 4 ай бұрын
Perfektní, děkuji! Použil jsem do programu pro řízení sušičky.
How to control 4 digit 7 segment display with MAX7219 module
11:34
Mario's Ideas
Рет қаралды 20 М.
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,4 МЛН
[야 너도 할 수 있어!] 유니티 캐릭터 컨트롤러 제작하기
31:43
진우의 혼잣말하는 유튜브
Рет қаралды 1
LED Displays with Arduino - 7-Segment & Dot-Matrix
44:43
DroneBot Workshop
Рет қаралды 208 М.
All About TM1637
8:58
Crazy Couple DIY
Рет қаралды 24 М.
TM1637 LED Display Interfaced Using STM32 Microcontroller
14:04
Useful Electronics
Рет қаралды 10 М.
#2 - Getting Started With the Free Robo Eyes Arduino Library
6:46
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 908 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,1 МЛН