Trybotics Logo

TM1637 Digit Display - Arduino Quick Tutorial © GPL3+

DESCRIPTION

About

The TM-1637 (also called the Grove 4-Digit Display by Seeed Studio) is a 7-segment 4-digit display that can be easily controlled with a few wires on an Arduino.

Instructions

1.) Build the circuit according to the circuit diagram.

2.) Install the TM1637 library in the Arduino IDE by going to Sketch>Include Library>Manage Libraries. Then, type in "TM1637" and install the library labeled "Grove 4-Digit Display" by Seeed Studio.

3.) Type in the setup code (This can be found in the "Code" section of this page):

CLK and DIO can be set to any pin on the Arduino, they do not have to be pins 2 and 3.

To set the brightness, pass in a value between 0-7 into tm.set();

4.) Now you can display characters in the loop function.

tm.display(<position>, <character> ); will display a character on the display.

Position refers to the digit you want to change. The first is 0 and the last is 3.

Character refers to the character you want to display. 0-9 displays 0-9 and 10-15 displays A-F

Here is an example that displays "12:Ab":

5.) Connect your Arduino to the computer and upload the sketch.

Video Tutorial

Video Tutorial


Description:

A000066 iso both
Arduino UNO & Genuino UNO
Any Arduino should work
×1
TM1637 Digit Display
×1
11026 02
Jumper wires (generic)
×1

Description:

Description:

About

The TM-1637 (also called the Grove 4-Digit Display by Seeed Studio) is a 7-segment 4-digit display that can be easily controlled with a few wires on an Arduino.

Instructions

1.) Build the circuit according to the circuit diagram.

2.) Install the TM1637 library in the Arduino IDE by going to Sketch>Include Library>Manage Libraries. Then, type in "TM1637" and install the library labeled "Grove 4-Digit Display" by Seeed Studio.

3.) Type in the setup code (This can be found in the "Code" section of this page):

CLK and DIO can be set to any pin on the Arduino, they do not have to be pins 2 and 3.

To set the brightness, pass in a value between 0-7 into tm.set();

4.) Now you can display characters in the loop function.

tm.display(<position>, <character> ); will display a character on the display.

Position refers to the digit you want to change. The first is 0 and the last is 3.

Character refers to the character you want to display. 0-9 displays 0-9 and 10-15 displays A-F

Here is an example that displays "12:Ab":

5.) Connect your Arduino to the computer and upload the sketch.

Video Tutorial

Video Tutorial


Description:

CodeC/C++
#include <TM1637.h>

int CLK = 2;
int DIO = 3;

TM1637 tm(CLK,DIO);

void setup() {
  // put your setup code here, to run once:
  tm.init();

  //set brightness; 0-7
  tm.set(2);
}

void loop() {
  // put your main code here, to run repeatedly:

  // example: "12:ab"
  // tm.display(position, character);
  tm.display(0,1);
  tm.display(1,2);
  tm.point(1);
  tm.display(2,10);
  tm.display(3,11);
}

Description:

Diagram
Tm1637 sketch bb cxdapye3vh


YOU MIGHT ALSO LIKE