TM1637 LED Display

Experiments & prototyping with the Arduino.
rwblinn
Site Admin
Posts: 211
Joined: 07 Oct 2017, 12:16

TM1637 LED Display

Postby rwblinn » 08 Oct 2017, 18:32

B4R Experiment: Show a blinking number (30) on a TM1637 display (4 digit 7 segment).

Parts Needed
• 1x Arduino UNO (used for the test)
• 1x TM1637 LED Display

Wiring
TM1638 = Arduino UNO
VCC = 3.3v or 5v
GND = GND
CLK = D2 - Clock
DIO = D3 - Data

B4R Code

Code: Select all

Sub Process_Globals
  Public Serial1 As Serial
  Private tm As TM1637Display
  Private timer1 As Timer
  Private on As Boolean = False
End Sub

Private Sub AppStart
  Serial1.Initialize(115200)
  ' Init with pin clk and dio
  tm.Initialize(2, 3)
  timer1.Initialize("timer1_Tick", 1000)
  timer1.Enabled = True
End Sub

Sub Timer1_Tick
  on = Not(on)
  tm.SetBrightness(7, on)
  tm.ShowNumberDec2(30, False, 4, 0)
End Sub


Circuit
Image

Download Source Code

Additional Libraries
rTM1637 (included)

ToDo
• Experiment is completed.

Version
20170307

Return to “Arduino”

Who is online

Users browsing this forum: No registered users and 1 guest