Difference between revisions of "Lesson 31--Static Display of Chinese Characters on the 16*16 Lattice"

From Microduino Wiki
Jump to: navigation, search
(Result)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Language|第三十二课--Microduino 16*16点阵汉字右移}}
+
{{Language | 第三十一课--Microduino 16*16点阵汉字静态显示}}
 
{| style="width: 800px;"
 
{| style="width: 800px;"
 
|-
 
|-
 
|
 
|
 
 
==Objective==
 
==Objective==
This tutorial will teach how to move an image to the right dynamicly on 16*16 lattice. Take an Chinese characters for example.
+
Designed for LM-2256 series 16 *16 dot matrix, its size is 40.46*40.46*5mm. The size of each LED lamp is 2.0mm. Using four 74ls595 chips to control it, so you only need three pins to control 256 lights, which is enough to show a Chinese character not only just simple letters or numbers.  
 
+
This experiment combines Minroduino modules and the lattice, making it beautiful and compact.
 
==Equipment==
 
==Equipment==
 
*'''[[Microduino-Core]]'''
 
*'''[[Microduino-Core]]'''
*'''[[Microduino-FT232R]]'''
+
*'''[[Microduino-USBTTL]]'''
 
*Other equipment
 
*Other equipment
*USB calbe
+
*USB cable
 
*LM-2256 16 *16 lattice
 
*LM-2256 16 *16 lattice
 +
*Pegboard
 +
*Studs, screws
 +
*Welding tools:
 +
**Electric iron
 +
**Solder
 +
**Wire
 +
**Forceps
  
 
==Document==
 
==Document==
 
LM-2256 Series 16 *16 matrix displays:'''[[File:.led_16_16.zip]]'''
 
LM-2256 Series 16 *16 matrix displays:'''[[File:.led_16_16.zip]]'''
 +
==Features==
 +
*Small, the size is 40.46*40.46*5mm;
 +
*Using 2mm round LED;
 +
*LED lattice screen on a black background, very beautiful;
 +
==Debug==
 +
===Welding circuit===
 +
Step 1: Cut pegboard;
  
==Feature==
+
Step 2: Design the position of Microduino base plate, then Welding Microduino base plate;
*Smale, the size is 40.46*40.46*5mm;
+
 
*Using 2mm round LED;
+
Step 3: Fix the pegboard and lattice, and then plus studs for fixed;
*LED lattice screen on a black background, very beautiful;
+
 
 +
[[File:Led2256_Circuit_2.jpg|800px|thumb|center|LM-2256]]
  
==Principle==
+
Step 4: Welding control pin;
*Every 8 columns as a moving unit, moving 16 steps.
 
*In 0 ~ 8 moving step, the right part move to right, at the same time still need to put on the left side's data.
 
*In 8 ~ 16 moving step, put the left graphics code to the right directly and then move to right.
 
  
==Debug==
+
*Pin connection:
*Prepared Work
+
[[File:Led2256_Circuit_3.jpg|800px|thumb|center|LM-2256]]
**Download test program:'''[[File:.led_16_16_move_right.zip]]'''
 
**Modulus software:'''[[File:PCtolCD.zip]]'''
 
*Step 1:Downlaod the test program, uncompress and open it;
 
*Step 2:Compile it and selte the board type to download;
 
*Step 3:Change the Chinese character or image
 
**Change font
 
Detailed information,please refer to: http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%BA%8C%E8%AF%BE--Microduino_OLED%E4%BD%BF%E7%94%A8/zh
 
  
Note: modulus method changed to: determinant, Yang code, reverse.
+
*Finished welding
 +
[[File:Led2256_Circuit_4.jpg|800px|thumb|center|LM-2256]]
 +
[[File:Led2256_Circuit_5.jpg|800px|thumb|center|LM-2256]]
 +
===Program===
 +
*Prepare Work:
 +
**Download test program:'''[[File:.led_16_16_static.zip]]'''
 +
**Modulus software:'''[[File:PCtolCD.zip]]'''
 +
Step 1: Download test program, and then open it;
 +
Step 2: Compile it and then select the board to download, after download, you can see a Chinese character "Ya" (雅);
  
**Change dinamic display timer
+
[[File:Led2256_Circuit_6.jpg|800px|thumb|center|LM-2256]]
In loop() function, the second for() loop uses to control display timer for every image, large number with large timer.
 
  
==Grammar==
+
Step 3: Change the font;
*"<<": left shift operator, From low to high
+
Note:'''Change the modulus method to:Determinant, yang code, reverse. After finished, download directly.'''
For example:
 
a=0x03;// binary:00000011
 
b=a<<3// binary:00011000
 
then b=0x18;
 
*"<<=": lefe shift operator, and assign the shift value to yourself.
 
For example:
 
a<<=0x03;
 
then a==0x18;
 
  
*">>": right shift operator, from high to low.
+
Detailed information, please refer to :http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%BA%8C%E8%AF%BE--Microduino_OLED%E4%BD%BF%E7%94%A8/zh
For example:
 
a=0x30;// binary:00110000
 
b=a>>3// binary:00000110
 
then b=0x06;
 
  
*"|": Bitwise or operator, as long as there is a data 1, then the result is 1, otherwise the result is 0.
+
[[File:Led2256_Circuit_7.jpg|800px|thumb|center|LM-2256]]
0 0 1 1 operand 1   
 
0 1 0 1 operand 2 
 
--------------
 
0 1 1 1 result
 
*”&”: Bitwise and operator, two data both are 1, then the result is 1, otherwise the result is 0.
 
0 0 1 1 operand 1   
 
0 1 0 1 operand 2 
 
--------------
 
0 0 0 1 result
 
  
 
==Result==
 
==Result==
Through testing, the move speed of Chinese character is about half a second. Users can modify the display images and time according to personal interest.
+
Through the test, it can display a Chinese character statically, and each LED light's brightness is uniform, and beautiful.
 +
 
 +
==Extension==
 +
In this experiment, we used Microduino-Core and Microduino Ft232R, thickness is a little big。If use the Microduino-32U4 (Instead Microduino-Core and Microduino Ft232R), the thickness will be decreased.
  
==Pay attention issue==
+
[[File:Led2256_Circuit_8.jpg|800px|thumb|center|LM-2256]]
*The difference between left shift and right shift;
 
*When change the font, need set the modulus format correctly.
 
  
 +
==Issue need to pay attention==
 +
*When welding microduino base plate, pay attention to pin. After welding, had better measure it using a multimeter, then power on.
 +
*Change the font, need to set modulus format properly.
 
==Video==
 
==Video==
 +
http://v.youku.com/v_show/id_XNjc2MzI1NTMy.html
 
|}
 
|}

Latest revision as of 08:44, 12 September 2016

Language: English  • 中文

Objective

Designed for LM-2256 series 16 *16 dot matrix, its size is 40.46*40.46*5mm. The size of each LED lamp is 2.0mm. Using four 74ls595 chips to control it, so you only need three pins to control 256 lights, which is enough to show a Chinese character not only just simple letters or numbers. This experiment combines Minroduino modules and the lattice, making it beautiful and compact.

Equipment

Document

LM-2256 Series 16 *16 matrix displays:File:.led 16 16.zip

Features

  • Small, the size is 40.46*40.46*5mm;
  • Using 2mm round LED;
  • LED lattice screen on a black background, very beautiful;

Debug

Welding circuit

Step 1: Cut pegboard;

Step 2: Design the position of Microduino base plate, then Welding Microduino base plate;

Step 3: Fix the pegboard and lattice, and then plus studs for fixed;

LM-2256

Step 4: Welding control pin;

  • Pin connection:
LM-2256
  • Finished welding
LM-2256
LM-2256

Program

Step 1: Download test program, and then open it; Step 2: Compile it and then select the board to download, after download, you can see a Chinese character "Ya" (雅);

LM-2256

Step 3: Change the font; Note:Change the modulus method to:Determinant, yang code, reverse. After finished, download directly.

Detailed information, please refer to :http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%BA%8C%E8%AF%BE--Microduino_OLED%E4%BD%BF%E7%94%A8/zh

LM-2256

Result

Through the test, it can display a Chinese character statically, and each LED light's brightness is uniform, and beautiful.

Extension

In this experiment, we used Microduino-Core and Microduino Ft232R, thickness is a little big。If use the Microduino-32U4 (Instead Microduino-Core and Microduino Ft232R), the thickness will be decreased.

LM-2256

Issue need to pay attention

  • When welding microduino base plate, pay attention to pin. After welding, had better measure it using a multimeter, then power on.
  • Change the font, need to set modulus format properly.

Video

http://v.youku.com/v_show/id_XNjc2MzI1NTMy.html