yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Roboduino V2📖
0.Instruction manual
  • Instruction manual
1.Get started quickly
  • 01.Assembly of the Car
  • 02.Remote Control Car
  • 03.Common Problem Analysis
  • 04. Lithium Battery Pack and Charger Usage Guidelines
  • 05. Important Notes (Read Before Starting)
2.Environment Construction
  • 01.Serial port driver installation
  • 02.Arduino IDE Installation
  • 03.Arduino IDE usage
  • 04.Using third-party libraries
  • 05.Program compilation and upload
3.Basic car course
  • 01.RGB Control
  • 02.Serial Print
  • 03.KEY Read
  • 04.Buzzer control
  • 05.Logo Breath
  • 06.Servos Control
  • 07.Motor Control
  • 08.Ultrasonic Ranging
  • 09.Track Print
  • 10.Infrared Remote Print
  • 11.WIFI Camera
4.Advanced car course
  • 01.RGB Breath
  • 02.Play Music
  • 03.KEY Control RGB
  • 04.KEY Control Buzzer
  • 05.Serial Parse Data
  • 06.Parse Data Control Motor
  • 07.Parse Data Control RGB
  • 08.Parse Data Control Buzzer
  • 09.Parse Data Control Servo
5.Car motion control
  • 00.Mecanum wheel motion principle
  • 01.Car Vertical Movement
  • 02.Car Diagonal Movement
  • 03.Car Sideways Movement
  • 04.Car Rotational Movement
  • 05.Car Patrol
6.Comprehensive gameplay of car
  • 01.Car tracking
  • 02.Car Obstacle Avoid
  • 03.Car Follow Hand
  • 04.Car tracking Avoid
  • 05.Car Infrared Remote
  • 06.WiFi Control Car
  • 07.IR WiFi Control Car
7.AI vision course
  • 1. Cat(dog) detection
  • 2. Color recognition
  • 3. QR code instructions
  • 4. Person Recognition
  • 5. Face Detection
  • 6. Color Follows
  • 7. Face following
8.Expand peripherals
  • 01.Digital Tube Display
  • 02.Color Recognition
Download
  • Code
  • Library
  • Hardware manual
  • Software
  • 3D Model
  • Instruction Manual
Download ZIP

Welcome to Roboduino V2 repository

01.Digital Tube Display

Digital Tube Display

Digital Tube DisplayDevice connectionHardware connectionSoftware connectionDigital tube (common negative)Digital tube installationCode analysisExperimental results

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!

  • Include Wire和TM1650 library

x
#include <Wire.h>    // 包含用于I2C通信的库 Include Wire library
#include <TM1650.h>  // 包含用于TM1650显示模块的库  Include TM1650 library
  • Create a TM1650 object to control the nixie

x
TM1650 Digital_Tube;  // 创建一个TM1650对象,用于控制数码管 Create a TM1650 object to control the nixie
  • Initialization Code

xxxxxxxxxx
void setup() {
  Wire.begin();                   // 初始化I2C通信 Initialize I2C communication
  Digital_Tube.init();            // 初始化数码管模块 Initializes the nixie module
  Digital_Tube.displayOff();      // 关闭数码管显示 Turn off the nixie display
  Digital_Tube.setBrightness(1);  // 设置数码管的亮度,参数范围:0-7 Set the brightness of the nixie tube. The parameter range is 0-7
}
  • Looping code

x
void loop() {
  for (unsigned int uTimeCount = 0; uTimeCount <= 9999; uTimeCount++) {
    Digital_Tube.displayOn();                   // 打开数码管显示 Open the nixie display
    char numberString[5];                       // 定义一个字符数组,用于存储数字字符串 Defines a character array for storing numeric strings
    sprintf(numberString, "%04d", uTimeCount);  // 格式化数字并存储到字符数组中,确保数字为4位 Format the number and store it in a character array, making sure the number is 4 digits
    Digital_Tube.displayString(numberString);   // 将格式化后的数字字符串显示在数码管上 Displays the formatted string of numbers on the nixie tube
    delay(1000);                                // 控制显示的更新速率 Controls the display update rate
    Digital_Tube.displayOff();                  // 关闭数码管显示 Turn off the nixie display
  }
}

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!

xxxxxxxxxx
The burning program cannot use other programs to occupy the serial port or an external serial communication module (for example: WiFi camera module), otherwise the program cannot be burned or an error message will be prompted!

 

Face following
Color Recognition

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文