TM1637 4 Digit 7 Segment Display

776-s59

New product

TM1637 4 Digit 7 Segment Display

More details

₨ 130

-₨ 20

₨ 150

Add to wishlist

More info

TM1637 based 4 Bits Red Digital Tube LED Display Module for Arduino

TM1637 is a chip for driving 7-segment displays. There are several modules using this chip to form a 4 digit numerical display module. TM1637 has also keyboard input capability, but is not used in this module. The Arduino Interface library is also available at github.

Features of TM1637 based 4 Bits Red Digital Tube LED Display Module:

  • Ease to use.
  • Ease of multiplexing.
  • Can use as a 4 digit display unit.
  • Can use as a clock display.

Applications of TM1637 based 4 Bits Red Digital Tube LED Display Module:

  • DIY clock project.
  • 4 digit display unit.
  • Electrical/Electronic projects.
  • Counter project using 7 segment display.

     

// By Irfan Ahmad

// Example code to get TEMPERATURE VALUE FROM DS18B20 AND DISPLAY ON TM1637
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);


#include <TM1637Display.h>
#define CLK 11
#define DIO 10
TM1637Display display(CLK, DIO);

void setup(void)
{
Serial.begin(9600);
sensors.begin();
}
/////////////////
void loop(void)
{
float temp;
sensors.requestTemperatures(); // Send the command to get temperatures
temp=sensors.getTempCByIndex(0);
display_temperature(temp);
Serial.print("Temperature=");
Serial.println(temp);
// delay(100);
}
/////////////////////////////////
void display_temperature(int temp)
{
uint8_t data[] = { 0b01111000, 0, 0xff, 0b00111001 };
display.setBrightness(15); // 0 means minimum , 15=0x0f= maximum
data[0] = display.encodeDigit(0);
data[1] = display.encodeDigit((temp/100)% 10);
data[2] = display.encodeDigit((temp/10) % 10);
data[3] = display.encodeDigit((temp%10));
display.setSegments(data);
}

Reviews

No customer reviews for the moment.

Write a review

TM1637 4 Digit 7 Segment Display

TM1637 4 Digit 7 Segment Display

TM1637 4 Digit 7 Segment Display