Digital Tube Display

Use Arduino Uno to drive the digital tube to display the current count value (increase by 1 every 1 second).

Device connection

Hardware connection

Use a type B data cable to connect Arduino Uno and the computer.

Software connection

Open the "Arduino IDE" software and select the model and serial port number corresponding to the development board.

Digital tube (common negative)

The driver chip used by the 4-bit digital tube module is tm1650:

Digital I2C base address: 0x34

Digital register I2C base address: 0x24

image-20240607111025177

Function pinFunction
VCCPower supply interface: 3.3V, 5V
SDAI2C data transmission interface
SCLI2C timing transmission interface
GNDGround interface

Digital tube installation

We use it with a car here. You can directly use the PH2.0 interface cable that comes with the digital tube module to connect the car expansion board.

image-20240607112144441

Code analysis

Here we only briefly introduce the code content. For detailed code, please refer to the corresponding code file. The code file is provided in the download area!

Experimental results

After compiling the program successfully, upload the code to the Arduino Uno development board.

After the program is started, the number displayed on the digital tube increases by 1 every 1 second, and the maximum number displayed is 9999!