Ks0139 keyestudio EASY plug I2C 8x8 LED Matrix: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==EASY plug I2C 8x8 LED Matrix== <br>500px|frameless|thumb<br> ==Introduction== What's better than a single LED? Lots of LEDs! A fun way to make a small...")
 
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug I2C 8x8 LED Matrix==
==EASY plug I2C 8x8 LED Matrix==
<br>[[File:ks0139-1.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0139-2.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix. This matrix uses a driver chip that does all the heavy lifting for you: They have a built in clock so they multiplex the display. They use constant-current drivers for ultra-bright, consistent color, 1/16 step display dimming, all via a simple I2C interface.<br>
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix. <br>
Note: this module needs to be used together with EASY plug control board.<br>
This module uses HT16K33 chip to drive an 8x8 dot matrix. Just need to use the I2C communication port of microcontroller to control the dot matrix, which can save more port resources of microcontroller.<br>
The four pin of this module is integrated into a crystal plug. All you need to do is connect the module to control board for communication using an RJ11 cable.<br>
This module should be used 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>


==Specification==
==Specification==
Line 11: Line 17:
* Supply voltage: 4.5V-5.5V
* Supply voltage: 4.5V-5.5V
* Maximum display: 16*8
* Maximum display: 16*8
* Size: 53*32mm
* Size: 56*32mm*18mm
* Weight: 6g
* Weight: 14.7g
 
<br>
==Connection Diagram ==
<br>[[File:图片1-0139.png|700px|frameless|thumb]]<br>
 
<br>
==Sample Code==
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0397 21.1.png|500px|frameless|thumb]]<br>
 
<br>
==What You Should See==
Upload the code successfully, it will light up a dot light on the matrix. 
<br>[[File:0397-21-1.png|500px|frameless|thumb]]<br>
 
<br>
==Extension Experiment 1==
<br>
<span style=color:brown><big>'''Showing 0~5'''</big></span><br>
You can upload the code below to show the number 0~5.
<br>[[File:ks0397 21.2.1.png|500px|frameless|thumb]]<br>
<br>[[File:ks0397 21.2.2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0397 21.2.3.png|500px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
Upload the code successfully, the matrix will show the number from 0 to 5.
<br>[[File:0397-21-2.png|500px|frameless|thumb]]<br>
<br>[[File:0397-21-3.png|500px|frameless|thumb]]<br>
<br>[[File:0397-21-4.png|500px|frameless|thumb]]<br>
<br>
 
==Extension Experiment 2==
<br>
<span style=color:brown><big>'''Button Controlled Heart'''</big></span><br>
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug 8x8 LED Matrix module and button module to control board using RJ11 cables.
<br>[[File:8x8点阵按键.jpg|500px|frameless|thumb]]<br>
 
<br>
'''Test Code'''<br>
Below is an example code.<br>
<br>[[File:ks0397 21.3.1.png|500px|frameless|thumb]]<br>
<br>[[File:ks0397 21.3.2.png|500px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
<br>[[File:ks0397 21-6.png|500px|frameless|thumb]]<br>
<br>
Upload the code successfully, press the button, you can control the matrix show a big heart image or a small one. It seems like a beating heart.
<br>[[File:0397-21-5.png|500px|frameless|thumb]]<br>
<br>[[File:0397-21-6.png|500px|frameless|thumb]]<br>
 
 
<br>
== Resources ==
 
https://fs.keyestudio.com/KS0139




==Connection Diagram ==
<br>
<br>[[File:ks0139-2.png|500px|frameless|thumb]]<br>


== Get One Now ==
*[https://www.keyestudio.com/keyestudio-easy-plug-iic-i2c-88-le-d-dot-matrix-display-for-arduino-steam-p0081-p0081.html  '''Official Website''' ]


==Sample Code==
*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-IIC-I2C-8-8-LE-D-Dot-Matrix-Display-for-Arduino/1452162_32637470995.html?spm=2114.12010612.8148356.33.5f23503bM43KdL   Aliexpress store ]
<pre>
#include <Wire.h>  // Place file “Wire.h” under the directory “library” of Arduino
#include "Adafruit_LEDBackpack.h" // Place file “Adafruit_LEDBackpack.h” under the directory “library” of Arduino
#include "Adafruit_GFX.h"  // Place file “Adafruit_GFX.h” under the directory “library” of Arduino
#define _BV(bit) (1<<(bit))
#endif
Adafruit_LEDBackpack matrix = Adafruit_LEDBackpack();
uint8_t counter = 0;
void setup() {
  Serial.begin(9600);
  Serial.println("HT16K33 test");
  matrix.begin(0x70);  // pass in the address
}
void loop() {
  // paint one LED per row. The HT16K33 internal memory looks like
  // a 8x16 bit matrix (8 rows, 16 columns)
   for (uint8_t i=0; i<8; i++) {
    // draw a diagonal row of pixels
    matrix.displaybuffer[i] = _BV((counter+i) % 16) | _BV((counter+i+8) % 16)  ;
  }
  // write the changes we just made to the display
  matrix.writeDisplay();
  delay(100);


  counter++;
  if (counter >= 16) counter = 0; 
}
</pre>


[[category:Module]]
[[Category:EASY Plug]]

Latest revision as of 08:22, 8 January 2021

EASY plug I2C 8x8 LED Matrix


thumb

Introduction

What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix.
This module uses HT16K33 chip to drive an 8x8 dot matrix. Just need to use the I2C communication port of microcontroller to control the dot matrix, which can save more port resources of microcontroller.
The four pin of this module is integrated into a crystal plug. All you need to do is connect the module to control board for communication using an RJ11 cable.
This module should be used 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.


Specification

  • Interface: Easy plug
  • Supply voltage: 4.5V-5.5V
  • Maximum display: 16*8
  • Size: 56*32mm*18mm
  • Weight: 14.7g


Connection Diagram


thumb


Sample Code

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

thumb


What You Should See

Upload the code successfully, it will light up a dot light on the matrix.
thumb


Extension Experiment 1


Showing 0~5
You can upload the code below to show the number 0~5.
thumb

thumb

thumb


What You Should See
Upload the code successfully, the matrix will show the number from 0 to 5.
thumb

thumb

thumb

Extension Experiment 2


Button Controlled Heart

Hookup Guide
Connect the EASY Plug 8x8 LED Matrix module and button module to control board using RJ11 cables.
thumb


Test Code
Below is an example code.

thumb

thumb


What You Should See

thumb

Upload the code successfully, press the button, you can control the matrix show a big heart image or a small one. It seems like a beating heart.
thumb

thumb



Resources

https://fs.keyestudio.com/KS0139



Get One Now