How to use the TM1637 Digit Display with an Arduino (Quick Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

  • @RyanChan
    @RyanChan  4 ปีที่แล้ว +10

    Here is a function you can use to display integers on the TM1637:
    void displayNumber(int num){
    tm.display(3, num % 10);
    tm.display(2, num / 10 % 10);
    tm.display(1, num / 100 % 10);
    tm.display(0, num / 1000 % 10);
    }

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

    I like those kind of Vids. No long digressions - straight to the point.👏

  • @robrobbins
    @robrobbins 4 ปีที่แล้ว +5

    I love these TM1637 4 digit displays. I ordered some from China which come in various colors instead of the usual red.

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

    Very well explained, straight to the point without any knob-jhobs
    Thanks for the tutorial

  • @3xAudio
    @3xAudio 4 ปีที่แล้ว +3

    Great Vid. I love Arduino projects and the inspiration you get from other people.

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

    Thank you for the tutorial, very easy and fun. l enjoyed this for the first time for me.

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

    Just received that display and this is very helpful. Thanks

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

    Dude big thanks! I was messing around for a while and nothing was working because I was trying to use DIO and DCLK pins on my board (BluePill). Turned out I just had to use any other two GPIOs.

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

    Great video!!!

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

    Very simply explained...

  • @arif41man1
    @arif41man1 4 ปีที่แล้ว +4

    Thanks for the vid, Can you display letters like U or L

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

    it worked! thanks

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

    Hi, how can i change position and charakter value to temperature from else equal?

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

    How to display 3 temperature numbers on seven segment?

  • @MrAlinkarl
    @MrAlinkarl 4 ปีที่แล้ว +2

    nice video! can you help me? when there is an input like sensor then give a time (ex. 30 min), and it display in tm1637 and countdown when the time is zero it will buzz. thanks

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

    I think you can simplify anything, Thanks a lot

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

    How to display numbers with commas?
    For example 27.30.

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

    awesome content pls upload more

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

    Is it possible to use the tm.display function to generate other symbols, like the rest of the alphabet or a = ?

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

      Pretty sure not possible with that display.

  • @SiddharthSingh-sk2md
    @SiddharthSingh-sk2md 3 ปีที่แล้ว +1

    Can we use tm1628 and TM1668 ic

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

    how can you get 2 7 segment displays to work at once doing different things?

    • @RyanChan
      @RyanChan  4 ปีที่แล้ว

      You can get different displays to do different things by connecting their CLK and DIO pins to different pins on the Arduino, so for example you can connect one display's CLK and DIO to pins 2 and 3 on the Arduino, and another display's CLK and DIO to pins 4 and 5. Hope that helps!

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

    Very nice video, is there a function to turn the 4 segments off?

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

    How to clear the display

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

      Shoul I just use this?
      tm.clear();

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

      @@redenmoradz803 i have tried it doesn't work.

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

      I have used this :D
      void loop() {
      tm.display(0,18);
      tm.display(1,18);
      tm.point(0);
      tm.display(2,18);
      tm.display(3,18);
      }
      That deactivates the numbers. Not the best way, but better then nothing :P

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

    I wonder if they can be daisy chained.

  • @loicplestan8518
    @loicplestan8518 4 ปีที่แล้ว +2

    Merci pour la video les kheys

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

    thanks to you.

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

    How to clear display ....can you please give me syntax

  • @SparkBuzzer
    @SparkBuzzer 4 ปีที่แล้ว +2

    Hi, i just loved your project and Channel #sparkbuzzer

  • @domi-no1826
    @domi-no1826 9 หลายเดือนก่อน

    ERROR: no such library
    come on man

  • @jayc1983
    @jayc1983 4 ปีที่แล้ว +2

    Hi Ryan, great tutorial video even for us noobs.
    i need help on probably very easy setup and coding. can i contact you somehow? email? would really help me out.

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

      Thanks! Also, you can post your question in the comments, I'd be happy to help!

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

      Ryan Chan hi. I think over messenger would be easyer but what i want to do is:
      Control a tm1637 display with a potentiometer. Showing numbers from 0:00 to 9:99. Components arduino nano, potentiometer with on off function, cr2032 coin as power source, step up module and of course the display itself

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

      @@jayc1983 That's a good question. I've made this function to make it easier to do that:
      void displayNumber(int num){
      tm.display(3, num % 10);
      tm.display(2, num / 10 % 10);
      tm.display(1, num / 100 % 10);
      tm.display(0, num / 1000 % 10);
      }
      To make the TM1637 display a number, paste that function into your code and pass in the integer you want to display into the function.
      So for your project, I suggest mapping the value of the potentiometer and then passing that value into the displayNumber function like so: pastebin.com/Xi5T5H7B
      Thanks for bringing this up, I will pin that function in a comment so others can use it as well

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 6 หลายเดือนก่อน

    Hello man.