KS0369 EASY plug 4-Digit LED Display: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 7: Line 7:
The four pins of LED display are GND、VCC、DIO、CLK. (GND is ground, VCC is for power supply, DIO is data IO pin, CLK is clock signal pin.) <br>
The four pins of LED display are GND、VCC、DIO、CLK. (GND is ground, VCC is for power supply, DIO is data IO pin, CLK is clock signal pin.) <br>
The module pins are extended into Registered jack, so you can easily connect it to EASY Plug control board using a RJ11 cable.<br>
The module pins are extended into Registered jack, so you can easily connect it to EASY Plug control board using a RJ11 cable.<br>
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br>
This module should be used together with EASY plug control board.<br>
 
<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
 
<br>
<br>


Line 26: Line 30:
<br>
<br>
==Upload the Code==
==Upload the Code==
Copy and paste below code to Arduino IDE and upload. <br>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
'''Note:''' before compile the code, do remember to place the necessary libraries inside the libraries directory of Arduino IDE.<br>
<br>[[File:ks0397 9.1.1.png|600px|frameless|thumb]]<br>
You can download the libraries from the link:<br>
<br>[[File:ks0397 9.1.2.png|600px|frameless|thumb]]<br>
https://drive.google.com/open?id=1F7LbjsK0600YRM4OClhy8xd-BGc1Gmc2
<pre>
#include "TM1637.h"
#define CLK 4//pins definitions for TM1637 and can be changed to other ports     
#define DIO 3
TM1637 tm1637(CLK,DIO);
void setup()
{
  tm1637.init();
  tm1637.set(BRIGHT_TYPICAL);//BRIGHT_TYPICAL = 2,BRIGHT_DARKEST = 0,BRIGHTEST = 7;
}
void loop()
{
  //int8_t NumTab[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};//0~9,A,b,C,d,E,F
  int8_t NumTab[] = {0,1,2,3,4,5,6,7,8,9};//0~9,A,b,C,d,E,F
  int8_t ListDisp[4];
  unsigned char i = 0;
  unsigned char count = 0;
  delay(150);
  while(1)
  {
    i = count;
    count ++;
    if(count == sizeof(NumTab)) count = 0;
    for(unsigned char BitSelect = 0;BitSelect < 4;BitSelect ++)
    {
      ListDisp[BitSelect] = NumTab[i];
      i ++;
      if(i == sizeof(NumTab)) i = 0;
   
    tm1637.display(0,ListDisp[0]);
    tm1637.display(1,ListDisp[0]);
    tm1637.display(2,ListDisp[0]);
    tm1637.display(3,ListDisp[0]);
    tm1637.point(POINT_ON);
    delay(100);
    }
  }
}
</pre>


<br>
<br>


==What You Should See==
==What You Should See==
After uploading the code, you should see the 4-digit LED display jump the number from 0 to 9.  
After uploading the code, you should see the 4-digit LED display show the number jumping. <br>
<br>[[File:ks0369 Result.jpg|600px|frameless|thumb]]<br>
On the left side, show 555; after one second, show 0125 on the right side; after one second, show 125; then after one second, the display brightness is 1, becoming rather darker. One second later, the display brightness is 7, becoming rather brighter. <br>
After one second again, show the 12:89; then one second later, do not show the colon. After one second, the LED display is off; and one second later, start to repeat the display again.
<br>[[File:ks0397 9-2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0397 9-3.png|500px|frameless|thumb]]<br>
 
<br>
<span style="color: red"><big>'''Troubleshooting:'''</big></span> <br>
* '''Compiling Fails ?'''<br>
This happens sometimes, the most likely case is a library file not added.  You should be sure all the libraries under the '''KS_EasyPulg''' are added to the libraries directory of Arduino-1.8.5. Shown below.<br>
<br>[[File:0397libraries 1.png|600px|frameless|thumb]]<br>
<br>[[File:0397libraries 2.png|600px|frameless|thumb]]<br>
<br>[[File:0397libraries 3.png|600px|frameless|thumb]]<br>
 
<br>
* '''Program Not Uploading?'''<br>
This happens sometimes, the most likely case is a confused Board and serial port, you should firstly select your proper board and port. <br>
<br>[[File:ks0397 9-1.png|600px|frameless|thumb]]<br>
 
 
<br>
 
==Extension Experiment 1==
<br>
<span style=color:brown><big>'''Time Counting'''</big></span><br>
 
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug 4-digit LED display module to control board using an RJ11 cable.  
<br>[[File:KS0369.jpg|600px|frameless|thumb]]<br>
 
'''Test Code'''<br>
Below is an example code.
<br>[[File:ks0397 9.2.png|600px|frameless|thumb]]<br>


<br>
'''What You Should See'''<br>
Upload the code success.
<br>[[File:ks0397 9-4.png|500px|frameless|thumb]]<br>
The 4-digit LED display starts to show the time counting. Seconds on the right, minutes on the left, and return to zero after 60 minutes.
<br>[[File:ks0397 9-5.png|500px|frameless|thumb]]<br>
<br>
==Extension Experiment 2 ==
<br>
<span style=color:brown><big>'''Counting And Reset'''</big></span><br>
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug 4-digit LED display module and button module to control board using RJ11 cables.
<br>[[File:数码管.jpg|500px|frameless|thumb]]<br>
<br>
'''Test Code'''<br>
Below is an example code.
<br>[[File:ks0397 9.3.1.png|600px|frameless|thumb]]<br>
<br>[[File:ks0397 9.3.2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0397 9.3.3.png|600px|frameless|thumb]]<br>
<br>
'''What You Should See'''<br>
The 4-digit LED display starts to show the time counting. If press the button, it will reset the counting.
<br>


==Resources ==
==Resources ==
'''Download the PDF:'''<br>
https://drive.google.com/open?id=1XnoZiAUFd7R9szdJAM8j47OxiaaaGnWy


'''Download the Code:'''<br>
https://fs.keyestudio.com/KS0369
https://drive.google.com/open?id=1Vd35rEqSXbxxTWSNfoAdTiSCp91sKQOQ
 


'''Download the libraries:'''<br>
https://drive.google.com/open?id=1F7LbjsK0600YRM4OClhy8xd-BGc1Gmc2
<br>
<br>


==Buy from ==
==Buy from ==
*'''Official Website:''' http://www.keyestudio.com/ks0369.html
*[https://www.keyestudio.com/keyestudio-easy-plug-4-digit-led-display-module-for-arduino-stem-p0504-p0504.html '''Official Website''']
 


*[https://www.aliexpress.com/store/product/Keyestudio-EASY-plug-4-Digit-LED-Display-Module-for-Arduino-STEM/1452162_32959183604.html?spm=2114.12010612.8148356.9.65312f0cWwpXAF  Shop on aliexpress ]


[[category:EASY Plug]]
[[category:EASY Plug]]

Latest revision as of 08:43, 8 January 2021

Keyestudio EASY plug 4-Digit LED Display


Introduction

This is a 4-digit 0.36’’ Common Anode LED display module, a 12-pin display module with score points.
The driver chip used in the matrices is TM1637, using only two signal cables to make the microcontroller control the 4-digit LED display.
The four pins of LED display are GND、VCC、DIO、CLK. (GND is ground, VCC is for power supply, DIO is data IO pin, CLK is clock signal pin.)
The module pins are extended into Registered jack, so you can easily connect it to EASY Plug control board using a RJ11 cable.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Parameters

  • Operating Voltage: DC5V
  • Operating Temperature Range: -40~+85℃
  • Property: ROHS


Technical Details

  • Dimensions: 50mm*23mm*18mm
  • Weight: 9g


Connect It Up

Connect the EASY Plug 4-Digit LED display to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb

thumb


What You Should See

After uploading the code, you should see the 4-digit LED display show the number jumping.
On the left side, show 555; after one second, show 0125 on the right side; after one second, show 125; then after one second, the display brightness is 1, becoming rather darker. One second later, the display brightness is 7, becoming rather brighter.
After one second again, show the 12:89; then one second later, do not show the colon. After one second, the LED display is off; and one second later, start to repeat the display again.
thumb

thumb


Troubleshooting:

  • Compiling Fails ?

This happens sometimes, the most likely case is a library file not added. You should be sure all the libraries under the KS_EasyPulg are added to the libraries directory of Arduino-1.8.5. Shown below.

thumb

thumb

thumb


  • Program Not Uploading?

This happens sometimes, the most likely case is a confused Board and serial port, you should firstly select your proper board and port.

thumb



Extension Experiment 1


Time Counting


Hookup Guide
Connect the EASY Plug 4-digit LED display module to control board using an RJ11 cable.
thumb

Test Code
Below is an example code.
thumb


What You Should See
Upload the code success.
thumb

The 4-digit LED display starts to show the time counting. Seconds on the right, minutes on the left, and return to zero after 60 minutes.
thumb


Extension Experiment 2


Counting And Reset

Hookup Guide
Connect the EASY Plug 4-digit LED display module and button module to control board using RJ11 cables.
thumb

Test Code
Below is an example code.
thumb

thumb

thumb


What You Should See
The 4-digit LED display starts to show the time counting. If press the button, it will reset the counting.



Resources

https://fs.keyestudio.com/KS0369



Buy from