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

Поделиться
HTML-код
  • Опубликовано: 2 июл 2024
  • A fast video tutorial on how to use the TM1637 with an Arduino. It is a 7 Segment, 4 Digit Display. It can also be referred to as the Grove 4-Digit Display by Seeed Studio.
    Here is the project page that has the code towards the bottom of the page: www.hackster.io/ryanchan/tm16...
    Thanks for watching!
    Timestamps:
    0:00 Wiring
    0:35 Install Library
    1:01 Coding
    3:15 Demo
  • НаукаНаука

Комментарии • 37

  • @RyanChan
    @RyanChan  3 года назад +8

    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);
    }

  • @robrobbins
    @robrobbins 3 года назад +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

    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

  • @Drxxx
    @Drxxx 4 года назад +3

    Great video!!!

  • @NileshPandey13
    @NileshPandey13 3 года назад +1

    Very simply explained...

  • @nighttime9539
    @nighttime9539 2 года назад +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.

  • @minecraftworks937
    @minecraftworks937 3 года назад +1

    awesome content pls upload more

  • @skmplanet9591
    @skmplanet9591 2 года назад +1

    I think you can simplify anything, Thanks a lot

  • @avcimustafa7052
    @avcimustafa7052 2 года назад +1

    thanks to you.

  • @MrAlinkarl
    @MrAlinkarl 3 года назад +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

  • @arif41man1
    @arif41man1 3 года назад +3

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

  • @TheMon2137
    @TheMon2137 3 года назад +2

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

  • @ennohellmann8222
    @ennohellmann8222 Год назад

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

  • @coroomchannel414
    @coroomchannel414 2 года назад +1

    How to display numbers with commas?
    For example 27.30.

  • @coroomchannel414
    @coroomchannel414 2 года назад +1

    How to display 3 temperature numbers on seven segment?

  • @SiddharthSingh-sk2md
    @SiddharthSingh-sk2md 3 года назад +1

    Can we use tm1628 and TM1668 ic

  • @loicplestan8518
    @loicplestan8518 3 года назад +2

    Merci pour la video les kheys

  • @SparkBuzzer
    @SparkBuzzer 4 года назад +2

    Hi, i just loved your project and Channel #sparkbuzzer

  • @rasmuswestergren6221
    @rasmuswestergren6221 2 года назад +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.

  • @Eurus721
    @Eurus721 Год назад

    I wonder if they can be daisy chained.

  • @callumcrook7284
    @callumcrook7284 3 года назад +1

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

    • @RyanChan
      @RyanChan  3 года назад

      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!

  • @pradhyumnvyas8487
    @pradhyumnvyas8487 11 месяцев назад

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

  • @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.

  • @jayc1983
    @jayc1983 3 года назад +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  3 года назад +1

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

    • @jayc1983
      @jayc1983 3 года назад +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  3 года назад +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

  • @domi-no1826
    @domi-no1826 3 месяца назад

    ERROR: no such library
    come on man