4-digit display TM1637 with TinkerPie
Big bright digits: clocks, scoreboards, counters.
| Type | Displays and lights |
|---|---|
| Connect to | CLK and DIO on two pins |
| Gives | numbers and a clock colon |
| Simulator | Yes: a control appears under the simulated board |
How it works
The TM1637 module drives four 7-segment digits and a colon. It uses two wires (CLK and DIO) with its own simple protocol, which TinkerPie handles for you.
How to wire it
OLED and LCD go into a SENSOR port (I2C). The 4-digit display and LED strips use one or two signal pins.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
digits.showNumber(Pin.S1, Pin.S2, 1234)
digits.showTime(Pin.S1, Pin.S2, 9, 30)
// Arduino C++
digits::showNumber(Pin::S1, Pin::S2, 1234)
digits::showTime(Pin::S1, Pin::S2, 9, 30) Good to know
- Shows numbers, a clock with a colon, and some letters.
- Brightness can be set in 8 steps.
- Big bright digits are easy to read across a room.
Projects with the 4-digit display TM1637
Similar modules
More projects to try
Questions
Can I try the 4-digit display TM1637 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Is the TM1637 an I2C device?
No. It uses two wires like I2C, but its own protocol, so connect CLK and DIO to any two accessory pins.