Difference between revisions of "Crowbits-Digital Display"

From Elecrow
Jump to navigation Jump to search
Line 23: Line 23:
 
2. Connect the module to the I2C interface on the Crowbits-UNO board, as shown in the figure:
 
2. Connect the module to the I2C interface on the Crowbits-UNO board, as shown in the figure:
  
[[File: Crowbits-Digital Display-Wiki 1.JPG |600px]]
+
[[File: Crowbits-Digital Display-Wiki 1.JPG |700px]]
  
 
3. Download the library Crowbits-Digital Display library. Unzip and put it in the libraries file, for example: C:\Program Files (x86)\Arduino\libraries.
 
3. Download the library Crowbits-Digital Display library. Unzip and put it in the libraries file, for example: C:\Program Files (x86)\Arduino\libraries.

Revision as of 18:12, 30 July 2020

Description

The nixie tube is composed of four 7-segment nixie tubes. Each 7-segment nixie tube can display a number. It can display all the parameters that can be represented by numbers, such as time, date, and temperature. The module has an LED driver chip TM1650, which can communicate through the I2C interface. When the module receives data, it is encoded by TM1650 and sent to the digital display.

Crowbits-Digital-Display-1.jpg

Features

  • 4-digit red alpha-numeric display

Specification

  • Interface Type:I2C
  • Operating Voltage: 3.3V DC
  • Dimensions: 56(L)*31(W)*13(H)mm

Application Ideas

  • Time display
  • Stopwatch

Usage

The following sketch demonstrates a simple application of digital display.

1. You need to prepare a Crowbits motherboard, such as Crowbits-UNO board.

2. Connect the module to the I2C interface on the Crowbits-UNO board, as shown in the figure:

Crowbits-Digital Display-Wiki 1.JPG

3. Download the library Crowbits-Digital Display library. Unzip and put it in the libraries file, for example: C:\Program Files (x86)\Arduino\libraries.

4. Upload the following code to the Crowbits-UNO board.

/*
  Demo code of P21 - 4 Digital 7-Segment LED with Time Separator
  by maker studio
*/
#include "TM1650.h"
#include <inttypes.h>
static uint8_t TubeTab[] = {
               0x3F,0x06,0x5B,0x4F,
               0x66,0x6D,0x7D,0x07,
               0x7F,0x6F,0x77,0x7C,
               0x39,0x5E,0x79,0x71,   
               };//0~9,A,B,C,D,E,F  
static uint8_t TubeTabwithPoit[] = {
               0xBF,0x86,0xDB,0xCF,
               0xE6,0xED,0xFD,0x87,
               0xFF,0xEF   
               };//0~9  
TM1650 DigitalLED(A5,A4);
int8_t number[] = {0,0,0,0};
void setup()
{
  //Serial.begin(9600);
}

void loop()
{
    DigitalLED.clearDisplay();
     delay(1000);
     DigitalLED.display(0,TubeTab[1]);
     DigitalLED.display(1,TubeTab[2]);
     DigitalLED.display(2,TubeTab[3]);
     DigitalLED.display(3,TubeTab[4]);
     delay(1000);
     DigitalLED.clearDisplay();
     delay(100);
     DigitalLED.display(0,TubeTabwithPoit[5]);
     DigitalLED.display(1,TubeTabwithPoit[6]);
     DigitalLED.display(2,TubeTabwithPoit[7]);
     DigitalLED.display(3,TubeTabwithPoit[8]);
     delay(1000);
}

5. After the code is uploaded successfully, you will see the following display on the digital tube.